/* moyga.ru — mobile-first, green-turquoise + sunset/ocean */
:root {
  --green: #0d7a5f;
  --green-deep: #065f46;
  --teal: #14b8a6;
  --turquoise: #2dd4bf;
  --ocean: #0ea5e9;
  --sunset: #f97316;
  --sunset-soft: #fb923c;
  --sand: #fef3c7;
  --cream: #f0fdf9;
  --ink: #0f172a;
  --muted: #475569;
  --white: #ffffff;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(13, 122, 95, 0.15);
  --radius: 1.25rem;
  --font: "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --sticky-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  padding-bottom: calc(var(--sticky-h) + 16px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section-alt { background: linear-gradient(180deg, #ecfdf5 0%, #f0f9ff 100%); }
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: rgba(255,255,255,0.92); color: var(--green-deep);
  font-size: 0.8rem; font-weight: 700; padding: 0.35em 0.85em;
  border-radius: 999px; letter-spacing: 0.02em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.4em; border-radius: 999px; border: none;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(13, 122, 95, 0.45); }
.btn-sunset {
  background: linear-gradient(135deg, var(--sunset), #ea580c);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.2); color: var(--white);
  border: 2px solid rgba(255,255,255,0.65); backdrop-filter: blur(6px);
}
.btn-outline {
  background: transparent; color: var(--green-deep);
  border: 2px solid var(--teal);
}
.btn-sm { padding: 0.55em 1em; font-size: 0.9rem; }
.btn-wa { background: #25d366; color: #fff; }
.btn-tg { background: #229ed9; color: #fff; }
.btn-phone { background: var(--ocean); color: #fff; }

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(240, 253, 249, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 122, 95, 0.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0; gap: 1rem;
}
.logo {
  font-weight: 800; font-size: 1.15rem; color: var(--green-deep);
  text-decoration: none; display: flex; align-items: center; gap: 0.4em;
}
.logo-mark {
  width: 2rem; height: 2rem; border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--turquoise), var(--ocean));
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.header-cta { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* —— Hero —— */
.hero {
  position: relative; min-height: min(92vh, 780px);
  display: flex; align-items: flex-end; color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 40, 35, 0.35) 0%, rgba(6, 78, 59, 0.75) 55%, rgba(4, 47, 46, 0.92) 100%),
    url("../images/hero-panorama.jpg") center/cover no-repeat,
    linear-gradient(135deg, #0d9488, #0369a1);
}
.hero-content {
  position: relative; z-index: 1; padding: 3rem 0 2.5rem; width: min(1120px, 92%); margin: 0 auto;
}
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.hero-lead { color: rgba(255,255,255,0.92); font-size: clamp(1rem, 2.5vw, 1.2rem); max-width: 36ch; }
.hero-prices {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1.5rem;
}
.price-pill {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius); padding: 0.85rem 1.1rem; min-width: 140px;
}
.price-pill strong { display: block; font-size: 1.45rem; color: #fff; }
.price-pill span { font-size: 0.8rem; color: rgba(255,255,255,0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.disclaimer-mini {
  font-size: 0.78rem; color: rgba(255,255,255,0.78); max-width: 52ch;
  line-height: 1.45; border-left: 3px solid var(--sunset-soft); padding-left: 0.75rem;
}

/* —— Pain cards —— */
.pain-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }
.pain-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.pain-card img {
  width: 100%; height: 160px; object-fit: cover;
  background: linear-gradient(135deg, #134e4a, #0e7490);
}
.pain-card .body { padding: 1.1rem 1.15rem 1.35rem; flex: 1; }
.pain-card h3 { color: var(--green-deep); margin-bottom: 0.4em; }
.pain-card p { font-size: 0.92rem; margin: 0; }

/* —— Timeline —— */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li {
  position: relative; padding: 0 0 1.75rem 3.25rem;
  counter-increment: step;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--ocean));
  color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.timeline li::after {
  content: ""; position: absolute; left: 1.15rem; top: 2.5rem; bottom: 0.25rem;
  width: 3px; background: linear-gradient(180deg, var(--turquoise), transparent);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 0.25em; color: var(--ink); }
.timeline p { margin: 0; font-size: 0.95rem; }

/* —— Family / calculator —— */
.family-grid {
  display: grid; gap: 1.75rem; align-items: stretch;
}
@media (min-width: 800px) {
  .family-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.family-visual {
  border-radius: var(--radius); overflow: hidden; position: relative;
  min-height: 260px; box-shadow: var(--shadow);
}
.family-visual img {
  width: 100%; height: 100%; min-height: 260px; object-fit: cover;
  background: linear-gradient(135deg, #059669, #0284c7);
}
.family-visual .overlay {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(6, 78, 59, 0.88));
  color: #fff; font-size: 0.9rem;
}
.calc-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border: 2px solid rgba(20, 184, 166, 0.25);
}
.calc-prices { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.calc-prices .tag {
  flex: 1; min-width: 120px; background: var(--cream);
  border-radius: 0.85rem; padding: 0.85rem; text-align: center;
}
.calc-prices .tag b { display: block; font-size: 1.35rem; color: var(--green-deep); }
.calc-prices .tag span { font-size: 0.78rem; color: var(--muted); }
.calc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.calc-controls { display: flex; align-items: center; gap: 0.5rem; }
.calc-controls button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: none;
  background: var(--green); color: #fff; font-size: 1.25rem; font-weight: 700;
  cursor: pointer;
}
.calc-controls input {
  width: 3.5rem; text-align: center; font-size: 1.25rem; font-weight: 800;
  border: 2px solid var(--teal); border-radius: 0.6rem; padding: 0.35rem;
}
.calc-total-box {
  background: linear-gradient(135deg, #0d9488, #0369a1);
  color: #fff; border-radius: 1rem; padding: 1.15rem 1.25rem; text-align: center;
}
.calc-total-box .label { font-size: 0.85rem; opacity: 0.9; }
.calc-total-box .total { font-size: 2rem; font-weight: 800; margin: 0.2em 0; }
.calc-total-box .breakdown { font-size: 0.85rem; opacity: 0.9; }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.85rem; }

/* —— Include / exclude —— */
.check-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 720px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-box {
  background: var(--white); border-radius: var(--radius); padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.check-box.yes { border-top: 4px solid var(--teal); }
.check-box.no { border-top: 4px solid var(--sunset); }
.check-box h3 { display: flex; align-items: center; gap: 0.5em; }
.check-box ul { margin: 0; padding: 0; list-style: none; }
.check-box li {
  padding: 0.55em 0 0.55em 1.7em; position: relative;
  font-size: 0.95rem; color: var(--muted); border-bottom: 1px solid #f1f5f9;
}
.check-box li:last-child { border-bottom: none; }
.check-box.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.check-box.no li::before { content: "✕"; position: absolute; left: 0; color: var(--sunset); font-weight: 800; }

/* —— Dream —— */
.dream-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 720px) { .dream-grid { grid-template-columns: repeat(3, 1fr); } }
.dream-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  min-height: 280px; box-shadow: var(--shadow);
}
.dream-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  
  background: linear-gradient(135deg, #134e4a, #0c4a6e);
}
.dream-card .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.25rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
  color: #fff;
}
.dream-card .cap h3 { color: #fff; margin-bottom: 0.35em; }
.dream-card .cap p { color: rgba(255,255,255,0.88); font-size: 0.9rem; margin: 0; }
.dream-links {
  margin-top: 1.5rem; text-align: center; font-size: 0.92rem; color: var(--muted);
}
.dream-links a { font-weight: 700; }

/* —— Cases —— */
.cases-grid {
  display: grid; gap: 1.15rem;
}
@media (min-width: 720px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  background: var(--white); border-radius: var(--radius); padding: 1.35rem;
  box-shadow: var(--shadow); border: 1px dashed rgba(13, 122, 95, 0.35);
}
.case-card .stars { color: var(--sunset); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.case-card .placeholder-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  background: var(--sand); color: #92400e; padding: 0.2em 0.55em; border-radius: 999px;
  margin-bottom: 0.65rem;
}
.case-card p { font-style: italic; margin-bottom: 0.75rem; }
.case-card .who { font-size: 0.85rem; font-weight: 700; color: var(--green-deep); font-style: normal; }

/* —— FAQ —— */
.faq-list { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-item {
  background: var(--white); border-radius: 1rem; box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.1rem 1.25rem; font: inherit; font-weight: 700; color: var(--ink);
  cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-q::after {
  content: "+"; font-size: 1.4rem; color: var(--teal); font-weight: 400; flex-shrink: 0;
}
.faq-item.is-open .faq-q::after { content: "−"; }
.faq-a {
  display: none; padding: 0 1.25rem 1.15rem; color: var(--muted); font-size: 0.95rem;
}
.faq-item.is-open .faq-a { display: block; }
.faq-a a { font-weight: 600; }

/* —— Sticky CTA —— */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  transform: translateY(110%); transition: transform 0.28s ease;
  background: rgba(15, 23, 42, 0.94); backdrop-filter: blur(12px);
  padding: 0.65rem 0; box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-inner {
  width: min(1120px, 94%); margin: 0 auto;
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; align-items: center;
}
.sticky-label {
  color: rgba(255,255,255,0.75); font-size: 0.8rem; margin-right: 0.25rem;
  display: none;
}
@media (min-width: 640px) { .sticky-label { display: inline; } }

/* —— Footer —— */
.site-footer {
  background: #042f2e; color: rgba(255,255,255,0.85); padding: 2.5rem 0 2rem;
  font-size: 0.88rem;
}
.site-footer a { color: var(--turquoise); }
.footer-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer p { color: rgba(255,255,255,0.7); }
.footer-note {
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

.section-intro { max-width: 42ch; margin-bottom: 1.75rem; }
.section-head { margin-bottom: 0.35em; color: var(--green-deep); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ocean); margin-bottom: 0.5rem;
}

/* Fallback when image missing */
.img-fallback {
  background: linear-gradient(135deg, #0d9488 0%, #0369a1 50%, #f97316 100%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}
