:root {
  --green: #70b85f;
  --green-dark: #5a9a4b;
  --green-light: #e8f5e3;
  --cream: #faf9f6;
  --dark: #2c2c2c;
  --text: #3a3a3a;
  --text-light: #5e5e5e;
  --font-display: "Playfair", Georgia, serif;
  --font-body: "Cormorant", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--green);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-logo {
  width: 120px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero h1 span {
  color: var(--green);
}

.hero-subtitle {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(112, 184, 95, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn img {
  width: 22px;
  height: 22px;
}

/* ── SERVICES ── */
.section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.how-section {
  background: #fff;
  padding: 100px 24px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.step {
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.step p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  color: var(--green);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.cta-sub {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── FOOTER ── */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-links img {
  width: 32px;
  height: 32px;
}

.footer-copy {
  font-size: 16px;
  color: var(--text-light);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TABLET (3 колонки услуг, последняя по центру) ── */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Центрируем 4-ю карточку в неполном ряду */
  .service-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

/* ── SMALL TABLET (2 колонки) ── */
@media (max-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .section,
  .how-section {
    padding: 64px 20px;
  }

  .hero {
    padding: 100px 20px 64px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ── SMALL MOBILE (1 колонка) ── */
@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
