:root {
  --primary: #8B4513;
  --secondary: #D4A574;
  --accent: #C9A227;
  --bg: #FFFAF5;
  --bg-alt: #F5EBE0;
  --text: #2D1810;
  --text-muted: #6B5344;
  --border: #E8DDD4;
  --success: #5D8A4A;
  --error: #B85450;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bg);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(45, 24, 16, 0.1);
}

.burger {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger span {
  position: absolute;
  width: 28px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 12px;
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  bottom: 12px;
}

.burger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) translateX(-20px);
}

.burger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.burger:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.burger:focus:not(:focus-visible) {
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg);
  z-index: 999;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu a {
  font-size: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--bg);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background-color: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.btn-primary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary:focus:not(:focus-visible) {
  outline: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--bg);
}

.btn-secondary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-secondary:focus:not(:focus-visible) {
  outline: none;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--primary);
  color: var(--bg);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--bg);
}

.section-dark .text-muted {
  color: var(--secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tab-btn {
  background-color: transparent;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.tab-btn:hover {
  border-color: var(--secondary);
  color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.tab-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-btn:focus:not(:focus-visible) {
  outline: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background-color: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 24, 16, 0.12);
}

.card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
}

.card-colored {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--bg);
}

.card-colored .card-title,
.card-colored .card-text {
  color: var(--bg);
}

.advantage-card {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.advantage-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

.advantage-card .icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--bg);
  font-size: 1.5rem;
}

.advantage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.advantage-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.process-card {
  position: relative;
  background-color: var(--bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.process-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.1);
}

.process-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.process-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-card {
  background-color: var(--bg);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(201, 162, 39, 0.15);
}

.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Polecamy';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: var(--bg);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.pricing-card ul li i {
  color: var(--success);
  margin-right: 0.5rem;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.guarantee-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
}

.guarantee-item .icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background-color: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

.guarantee-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.guarantee-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.testimonial-card {
  background-color: var(--bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(139, 69, 19, 0.08);
}

.testimonial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: var(--bg-alt);
  cursor: pointer;
}

.testimonial-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-video:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .faq-container {
    grid-template-columns: 280px 1fr;
  }
}

.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-nav-btn {
  text-align: left;
  padding: 1rem 1.25rem;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
}

.faq-nav-btn:hover {
  border-color: var(--secondary);
  background-color: var(--bg-alt);
}

.faq-nav-btn.active {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.faq-nav-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-nav-btn:focus:not(:focus-visible) {
  outline: none;
}

.faq-content {
  background-color: var(--bg-alt);
  border-radius: 12px;
  padding: 2rem;
}

.faq-answer {
  display: none;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.faq-answer h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #5D3310 100%);
  color: var(--bg);
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  color: var(--bg);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background-color: var(--accent);
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.cta-section .btn-primary:hover {
  background-color: var(--bg);
  color: var(--primary);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-progress {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-progress-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-progress-step.active .step-number,
.form-progress-step.completed .step-number {
  background-color: var(--accent);
  color: var(--bg);
}

.form-progress-step.completed .step-number {
  background-color: var(--success);
}

.form-progress-step span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-progress-step.active span {
  color: var(--text);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--error);
}

.form-group.error input:focus,
.form-group.error textarea:focus,
.form-group.error select:focus {
  box-shadow: 0 0 0 3px rgba(184, 84, 80, 0.15);
}

.form-checkbox.error {
  color: var(--error);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0.125rem;
  accent-color: var(--accent);
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 400;
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.footer {
  background-color: var(--primary);
  color: var(--bg);
  padding-top: 0;
}

.footer-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #A88520 100%);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.footer-cta h3 {
  color: var(--bg);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.footer-cta p {
  color: rgba(255, 250, 245, 0.9);
  margin-bottom: 1.5rem;
}

.footer-cta .btn-primary {
  background-color: var(--bg);
  color: var(--primary);
}

.footer-cta .btn-primary:hover {
  background-color: var(--text);
  color: var(--bg);
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--bg);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  font-family: 'Playfair Display', serif;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--secondary);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bg);
}

.footer-contact p {
  color: var(--secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--secondary);
}

.footer-contact a:hover {
  color: var(--bg);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: var(--secondary);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--secondary);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--bg);
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary);
  transform: translateY(-4px);
}

.scroll-top:focus {
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

.scroll-top:focus:not(:focus-visible) {
  outline: none;
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text);
  color: var(--bg);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(45, 24, 16, 0.2);
}

.cookie-popup p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cookie-popup p {
    margin-bottom: 0;
  }
}

.cookie-popup a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-popup .btn-primary {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .form-progress {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .footer-cta {
    padding: 2rem 1.5rem;
    margin-top: -2rem;
  }

  .footer-cta h3 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
