/* =========================================================
   HAPPINESS LIFE — одностраничный лендинг
   Палитра: тёплый коралл + бирюза + золото на кремовом фоне —
   оптимистичная, «человечная», далёкая от клинического вида.
   ========================================================= */

:root {
  --ink: #241F3A;
  --ink-soft: #5B5470;
  --paper: #FFF8F1;
  --paper-raised: #FFFFFF;
  --coral: #FF6B52;
  --coral-dark: #E14E36;
  --teal: #128A82;
  --teal-dark: #0C665F;
  --teal-tint: #E4F5F3;
  --gold: #FFC145;
  --gold-tint: #FFF0D6;
  --line: #F1E4D6;
  --radius: 20px;
  --shadow: 0 14px 40px rgba(36, 31, 58, 0.10);
  --shadow-btn: 0 10px 24px rgba(255, 107, 82, 0.35);
  --font-display: "Nunito", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --sunrise: linear-gradient(100deg, var(--coral) 0%, #FF9152 55%, var(--gold) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 800; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* --- Top bar: contacts + city switch --- */
.topbar {
  background: var(--ink);
  color: #EDEAF5;
  font-size: 13.5px;
  position: sticky; top: 0; z-index: 100;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 9px 22px; gap: 12px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar a.phone-link { color: #fff; font-weight: 800; text-decoration: none; }
.topbar-live { display: flex; align-items: center; gap: 6px; color: #C9C3DC; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,0.25); flex-shrink: 0; }

.city-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.city-toggle a {
  border: none; background: transparent; color: #C9C3DC;
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.city-toggle a.active { background: var(--coral); color: #fff; }

/* --- Logo --- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--sunrise);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 19px;
  flex-shrink: 0;
}
.brand-text { font-family: var(--font-display); font-weight: 900; font-size: 21px; color: var(--ink); }
.brand-text span { color: var(--coral); }

.masthead { background: var(--paper-raised); padding: 16px 0; border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead-cta { display: flex; gap: 10px; align-items: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px;
  font-family: var(--font-display);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(18,138,130,0.3); }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 64px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 780px 560px at 88% -8%, rgba(255,193,69,0.30), transparent 60%),
    radial-gradient(ellipse 640px 520px at 8% 25%, rgba(18,138,130,0.14), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--coral-dark);
  background: #FFE6DD;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.hero-more { font-weight: 800; font-size: 14.5px; color: var(--coral-dark); text-decoration: none; }
.hero-more:hover { color: var(--coral); }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.hero-bullet { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.hero-bullet svg { flex-shrink: 0; color: var(--teal); }

.hero-copy { position: relative; }
.hero-arrow {
  color: var(--gold);
  display: block;
  margin: -6px 0 4px -4px;
}
@media (max-width: 900px) { .hero-arrow { display: none; } }

.hero-decor {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.hero-decor::before, .hero-decor::after {
  content: ""; position: absolute; border-radius: 50%;
}
.hero-decor::before {
  width: 240px; height: 240px; top: -60px; left: 46%;
  background: radial-gradient(circle, rgba(18,138,130,0.14), transparent 70%);
}
.hero-decor::after {
  width: 180px; height: 180px; bottom: 10%; left: 2%;
  background: radial-gradient(circle, rgba(255,193,69,0.28), transparent 70%);
}

.hero-visual { position: relative; z-index: 1; max-width: 420px; margin: 0 auto; }
.hero-blob {
  position: absolute;
  top: -22px; right: -18px; bottom: 26px; left: 30px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--coral) 100%);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  z-index: 0;
  opacity: 0.9;
}
.hero-doctor {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 42% 58% 65% 35% / 48% 42% 58% 52%;
  box-shadow: 0 20px 50px rgba(36,31,58,0.22);
  display: block;
}
.hero-float-card {
  position: absolute; left: -16px; bottom: 10px; z-index: 2;
  background: #fff; border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  max-width: 240px;
}
.hero-float-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0;
}
.hero-float-title { font-weight: 800; font-size: 14px; color: var(--ink); }
.hero-float-sub { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 500px) { .hero-float-card { left: -6px; bottom: -20px; max-width: 190px; padding: 11px 15px; } }

/* --- Sections --- */
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-dark);
  background: var(--teal-tint); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.py { padding: 76px 0; }
.py-tight { padding: 56px 0; }

/* --- Pain points --- */
.pain-section { background: var(--ink); color: #EDEAF5; }
.pain-section .eyebrow { background: rgba(255,255,255,0.1); color: var(--gold); }
.pain-section h2 { color: #fff; }
.pain-section .section-head p { color: #C9C3DC; }
.pain-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
@media (max-width: 780px) { .pain-list { grid-template-columns: 1fr; } }
.pain-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 18px 20px;
}
.pain-check { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.pain-item p { color: #DAD5E8; margin: 0; font-size: 15px; }

/* --- How steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-display); font-weight: 900; font-size: 2.4rem;
  background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px; display: block;
}
.step-card h3 { margin-bottom: 6px; }
.step-card p { font-size: 14.5px; }

/* --- Why grid --- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 6px 20px rgba(36,31,58,0.05);
}
.why-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--gold-tint);
  display: flex; align-items: center; justify-content: center; color: var(--coral-dark);
  margin-bottom: 16px;
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { font-size: 14.5px; margin: 0; }

/* --- Doctors --- */
.doctors-section { background: var(--teal-tint); }
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
@media (max-width: 860px) { .doctors-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.doctor-card { text-align: center; }
.doctor-photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; margin: 0 auto 14px; box-shadow: var(--shadow); max-width: 168px; background: var(--gold-tint); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-name { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.doctor-role { font-size: 12.5px; color: var(--ink-soft); }

/* --- FAQ --- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 800; font-family: var(--font-display);
  font-size: 15.5px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--coral); font-weight: 400; flex-shrink: 0; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 15px; color: var(--ink-soft); }

/* --- Final CTA --- */
.final-cta {
  background: var(--sunrise);
  border-radius: 32px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.92); max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .btn-primary { background: #fff; color: var(--coral-dark); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.final-cta .btn-primary:hover { background: #fff; opacity: 0.92; }
.final-cta .btn-outline { border-color: #fff; color: #fff; }
.final-cta .btn-outline:hover { background: #fff; color: var(--coral-dark); }
@media (max-width: 640px) { .final-cta { padding: 40px 24px; border-radius: 24px; } }

/* --- Footer --- */
footer { background: var(--ink); color: #C9C3DC; padding: 44px 0 26px; margin-top: 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand p { color: #9C96B3; font-size: 13.5px; max-width: 36ch; margin-top: 10px; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer-contacts a { color: #EDEAF5; text-decoration: none; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #7C7593;
}
.footer-bottom a { color: #7C7593; }
.footer-bottom a:hover { color: var(--gold); }

/* --- Sticky mobile CTA bar --- */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(36,31,58,0.14);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.mobile-cta-bar .btn { flex: 1; padding: 14px 10px; font-size: 15px; }
@media (max-width: 780px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 640px; margin: 0 auto;
  background: var(--ink); color: #EDEAF5;
  border-radius: 18px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  transform: translateY(140%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner p { color: #C9C3DC; font-size: 13.5px; margin: 0; flex: 1 1 240px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: 13.5px; }
@media (max-width: 780px) {
  .cookie-banner { bottom: 90px; left: 12px; right: 12px; padding: 16px; }
}
@media (max-width: 420px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* --- 404 page --- */
.notfound {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 22px;
}
.notfound-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4rem, 14vw, 8rem);
  background: var(--sunrise); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 10px;
}
.notfound p { max-width: 44ch; margin-left: auto; margin-right: auto; }
.notfound .hero-actions { justify-content: center; margin-top: 26px; }
.static-page { padding: 50px 0 80px; }
.static-page h2 { margin-top: 34px; }

/* --- Mobile tuning --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .py { padding: 52px 0; }
  .topbar .wrap { padding: 8px 16px; }
  .topbar-live span.txt { display: none; }
  .masthead-cta .btn span.label { display: none; }
}
@media (max-width: 420px) {
  .city-toggle button { padding: 6px 10px; font-size: 11.5px; }
}
