:root {
  --bg: #fffbf5;
  --surface: #ffffff;
  --text: #1f3a2c;
  --muted: #5c7168;
  --primary: #ff8c6b;
  --primary-hover: #ff7555;
  --primary-text: #ffffff;
  --accent: #7bae7f;
  --overlay: rgba(255, 251, 245, 0.42);
  --link: #2d6a4f;
  --shadow-cta: 0 6px 18px rgba(255, 140, 107, 0.35);
  --shadow-card: 0 2px 12px rgba(31, 58, 44, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b2430;
    --surface: #232e3c;
    --text: #f5f5f5;
    --muted: #a8b5b0;
    --overlay: rgba(27, 36, 48, 0.55);
    --link: #8fd4a8;
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tg-theme-text-color, var(--text));
  background: var(--tg-theme-bg-color, var(--bg));
  line-height: 1.45;
  font-size: 15px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
}

.hero {
  position: relative;
  color: var(--text);
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  flex: 0 0 auto;
  min-height: 100dvh;
}

.hero-art {
  width: 100%;
  background-image: url("hero-wide.webp?v=20260422c");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  aspect-ratio: 2 / 1;
  min-height: 160px;
  max-height: 38dvh;
}

.hero-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px max(16px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom), 4dvh)
    max(16px, env(safe-area-inset-right));
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-bottom: 14px;
}

.logo__name {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tg-theme-text-color, var(--text));
  line-height: 1;
}

.logo__tagline {
  font-family: "Caveat", cursive;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero h1 {
  font-size: clamp(1.65rem, 5vw, 1.9rem);
  margin: 0 0 2px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tg-theme-text-color, var(--text));
}

.tagline {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: -2px 0 8px;
  opacity: 0.95;
}

.lead {
  font-size: 0.95rem;
  font-weight: 400;
  max-width: 22rem;
  margin: 0 auto 10px;
  color: var(--tg-theme-hint-color, var(--muted));
}

.cta {
  display: flex;
  justify-content: center;
  padding: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-cta);
}

.btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 8px 22px rgba(255, 140, 107, 0.42);
}

.micro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px max(16px, env(safe-area-inset-left)) 6px max(16px, env(safe-area-inset-right));
  flex: 0 0 auto;
}

.micro-card {
  background: var(--tg-theme-section-bg-color, var(--tg-theme-secondary-bg-color, var(--surface)));
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
}

.micro-card h2 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--link);
}

.micro-lines {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
}

.foot {
  padding: 14px max(16px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  text-align: center;
  font-size: 0.78rem;
  color: var(--tg-theme-hint-color, var(--muted));
  margin-top: auto;
  flex-shrink: 0;
}

.foot p,
.foot__links {
  margin: 0;
}

.foot a,
.foot__links a {
  color: var(--tg-theme-link-color, var(--link));
  text-decoration: none;
}

.foot a:hover,
.foot__links a:hover {
  text-decoration: underline;
}

/* --- SEO sections: stats, services, steps, features, reviews, FAQ, footer --- */

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 12px auto 0;
  max-width: 26rem;
  font-size: clamp(0.78rem, 2.8vw, 0.88rem);
  font-weight: 600;
  color: var(--tg-theme-hint-color, var(--muted));
}

.stats-bar__num {
  color: var(--tg-theme-text-color, var(--text));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stats-bar__sep {
  opacity: 0.45;
  user-select: none;
}

.section {
  padding: 36px 0 max(16px, env(safe-area-inset-bottom));
}

.section__inner {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.section--bg {
  background: var(--tg-theme-bg-color, var(--bg));
}

.section--surface {
  background: var(--tg-theme-section-bg-color, var(--tg-theme-secondary-bg-color, var(--surface)));
}

.section__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tg-theme-text-color, var(--text));
}

.section__subtitle {
  margin: 32px 0 14px;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 700;
  color: var(--tg-theme-link-color, var(--link));
}

.section__lead {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
  max-width: 36rem;
}

.section__lead--small {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--tg-theme-secondary-bg-color, var(--surface));
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.section--surface .card {
  background: var(--tg-theme-bg-color, var(--bg));
}

.card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tg-theme-link-color, var(--link));
}

.card__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
}

/* Кликабельные карточки услуг (главная и посадочные) */
a.card.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 40px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.card.card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 58, 44, 0.12);
}

@media (prefers-color-scheme: dark) {
  a.card.card--link:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

a.card.card--link:active {
  transform: translateY(0);
}

.card__arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  pointer-events: none;
}

.card--quote .card__text {
  font-style: italic;
}

.card__meta {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: normal;
  color: var(--tg-theme-hint-color, var(--muted));
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.steps__num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-text);
  background: var(--accent);
}

.steps__body {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
}

.steps__head {
  display: block;
  font-size: 0.95rem;
  color: var(--tg-theme-text-color, var(--text));
  font-weight: 700;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list__item {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
}

.feature-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list__item--accent {
  color: var(--tg-theme-text-color, var(--text));
}

.badge-free {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-text);
  background: var(--primary);
  vertical-align: middle;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 6px;
}

.faq__item {
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--tg-theme-bg-color, var(--bg));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq__q {
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tg-theme-text-color, var(--text));
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__item[open] .faq__q {
  color: var(--tg-theme-link-color, var(--link));
}

.faq__a {
  padding: 0 14px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
}

.cities-line {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--tg-theme-subtitle-text-color, var(--muted));
}

@media (min-width: 768px) {
  .hero-art {
    background-image: url("hero-wide.webp?v=20260422c");
    background-position: center 58%;
    aspect-ratio: auto;
    height: 44vh;
    min-height: 280px;
    max-height: 440px;
  }

  .hero-copy {
    padding: 18px max(24px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-bottom), 4dvh)
      max(24px, env(safe-area-inset-right));
  }

  .hero h1 {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    margin: 0 0 2px;
  }

  .tagline {
    font-size: 1.5rem;
    margin: 0 0 8px;
  }

  .lead {
    font-size: 1.05rem;
    max-width: 30rem;
    margin: 0 auto 14px;
  }

  .btn {
    max-width: 360px;
    min-height: 52px;
    font-size: 1.05rem;
  }

  .micro-features {
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 8px;
    max-width: 720px;
  }

  .micro-card {
    padding: 12px 18px;
  }

  .micro-card h2 {
    font-size: 0.9rem;
    margin: 0 0 4px;
  }

  .micro-lines {
    font-size: 0.9rem;
  }

  .stats-bar {
    margin-top: 16px;
    max-width: 42rem;
    font-size: 0.9rem;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section__title {
    margin-bottom: 12px;
  }

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

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .card {
    padding: 20px 24px;
  }

  a.card.card--link {
    padding-bottom: 44px;
  }

  .foot {
    padding-top: 18px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    font-size: 0.85rem;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Верхняя навигация (лендинги) */
.site-topnav {
  background: var(--tg-theme-bg-color, var(--bg));
  border-bottom: 1px solid rgba(31, 58, 44, 0.08);
}

.site-topnav__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 12px 0 10px;
}

.site-topnav a {
  font-weight: 600;
  color: var(--tg-theme-link-color, var(--link));
  text-decoration: none;
  white-space: nowrap;
}

.site-topnav a:hover {
  text-decoration: underline;
}

.site-topnav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .site-topnav {
    border-bottom-color: rgba(245, 245, 245, 0.1);
  }
}

/* Страница «О нас» */
.o-nas-header {
  padding-top: 8px;
  padding-bottom: 8px;
}

.o-nas-back {
  margin-bottom: 10px;
}

.o-nas-back a {
  color: var(--tg-theme-link-color, var(--link));
  font-weight: 600;
  text-decoration: none;
}

.o-nas-back a:hover {
  text-decoration: underline;
}

.o-nas-logo-link {
  text-decoration: none;
  color: inherit;
}

.logo--align-start {
  align-items: flex-start;
  margin-bottom: 12px;
}

.o-nas-h1 {
  margin-top: 0;
}

.o-nas-hero-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 22px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.o-nas-hero-wrap img {
  width: 100%;
  display: block;
  max-height: min(70vh, 540px);
  object-fit: contain;
  object-position: center;
}

.o-nas-strip {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  margin: 8px 0 20px;
  -webkit-overflow-scrolling: touch;
}

.o-nas-strip__item {
  flex: 0 0 auto;
  width: min(236px, 78vw);
  scroll-snap-align: start;
  margin: 0;
}

.o-nas-strip__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
  box-shadow: var(--shadow-card);
}

.o-nas-final {
  margin-top: 1rem;
}

.o-nas-cta {
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.o-nas-btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.o-nas-btn-secondary:hover {
  background: rgba(255, 140, 107, 0.12);
}

@media (min-width: 600px) {
  .o-nas-strip__item {
    width: min(252px, 42vw);
  }

  .o-nas-strip__item img {
    height: 340px;
  }
}
