/* =========================================================
   HAPPINES.ASIA — уникальная дизайн-система
   Палитра: глубокий индиго + янтарь + мята на прохладном
   бело-голубом фоне. Вёрстка mobile-first: базовые стили —
   для узких экранов, расширения — через min-width media queries.
   ========================================================= */

:root {
  --ink: #16213E;
  --ink-soft: #4A5578;
  --paper: #F4F7FA;
  --paper-raised: #FFFFFF;
  --amber: #FF9F1C;
  --amber-dark: #E8890A;
  --mint: #2EC4B6;
  --mint-dark: #1F9E92;
  --mint-tint: #E3F7F5;
  --line: #E3E8F0;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(22, 33, 62, 0.10);
  --font-display: "Sora", -apple-system, sans-serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --dawn: linear-gradient(100deg, var(--ink) 0%, var(--mint-dark) 55%, var(--amber) 100%);
}

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

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

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 6vw, 2.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 4vw, 1.85rem); }
h3 { font-size: clamp(1.02rem, 3vw, 1.18rem); font-weight: 700; }
p { margin: 0 0 1.05em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; width: 100%; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 18px; width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  font-family: var(--font-display); text-decoration: none; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; width: 100%;
}
@media (min-width: 560px) { .btn { width: auto; } }
.btn-primary { background: var(--amber); color: #1A1200; box-shadow: 0 10px 22px rgba(255,159,28,0.32); }
.btn-primary:hover { background: var(--amber-dark); color: #1A1200; }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: var(--mint-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--mint-tint); color: var(--mint-dark); }
.btn-ghost:hover { background: var(--mint); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 13px; width: auto; }

.topbar { background: var(--ink); color: #E7EAF3; font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; gap: 10px; flex-wrap: wrap; position: relative; }
.topbar a { color: #E7EAF3; text-decoration: none; }
.topbar a.phone-link { color: #fff; font-weight: 700; }
.topbar-contacts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.topbar-contacts span { display: none; }
@media (min-width: 700px) { .topbar-contacts span { display: inline; } }
.city-pill { background: rgba(255,255,255,0.12); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; }
.city-dropdown-panel {
  columns: 2; background: var(--ink); position: absolute; right: 18px; top: 100%;
  padding: 14px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  z-index: 90; max-height: 260px; width: max-content; max-width: min(300px, calc(100vw - 20px));
  overflow-y: auto;
}
.city-dropdown-panel a { display: block; padding: 3px 0; color: #C3C9DC; text-decoration: none; font-size: 12.5px; break-inside: avoid; }
.city-dropdown-panel a:hover { color: var(--amber); }

.nav { background: var(--paper-raised); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; gap: 12px; position: relative; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--dawn); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.brand-text span { color: var(--amber-dark); }

.nav-links { display: none; }
.nav-links.open {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--paper-raised); z-index: 120; padding: 16px 18px 24px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.18); overflow-y: auto;
  transform: translateX(0); transition: transform 0.25s ease;
}
.nav-links > li { border-bottom: 1px solid var(--line); }
.nav-links > li > a { display: block; padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
@media (min-width: 940px) {
  .nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; align-items: center; position: static; width: auto; background: none; box-shadow: none; flex-direction: row; transform: none; }
  .nav-links > li { border-bottom: none; }
  .nav-links > li > a { padding: 0; }
  .nav-links > li > a:hover { color: var(--mint-dark); }
}

.mm-close-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.mm-close { background: var(--mint-tint); border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 15px; color: var(--ink); cursor: pointer; }
@media (min-width: 940px) { .mm-close-row { display: none; } }

.has-mega { position: relative; }
.mega-trigger summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 700; font-size: 15px; padding: 13px 4px; }
.mega-trigger summary::-webkit-details-marker { display: none; }
.mega-trigger summary::after { content: " ▾"; font-size: 10px; color: var(--mint-dark); }
.mega-trigger[open] summary { color: var(--amber-dark); }
.mega-menu { padding: 4px 4px 12px 10px; }
.mega-grid { display: flex; flex-direction: column; gap: 14px; }
.mega-col-title { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-dark); margin-bottom: 6px; }
.mega-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mega-grid a { font-size: 13.5px; text-decoration: none; color: var(--ink-soft); }
.mega-grid a:hover { color: var(--mint-dark); }
.mega-all { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 13px; color: var(--mint-dark); text-decoration: none; }
@media (min-width: 940px) {
  .mega-trigger summary { padding: 0; }
  .mega-menu {
    position: absolute; top: calc(100% + 14px); left: -16px; background: var(--paper-raised);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; width: 560px; z-index: 70;
  }
  .mega-grid { flex-direction: row; }
  .mega-grid > div { flex: 1; }
  .mega-all { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
}

.burger { display: flex; background: none; border: none; cursor: pointer; width: 36px; height: 36px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 940px) { .burger { display: none; } }

.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-cta .btn-outline.btn-sm { display: none; }
@media (min-width: 700px) { .nav-cta .btn-outline.btn-sm { display: inline-flex; width: auto; } }
.nav-cta .btn-mint.btn-sm { display: none; }
@media (min-width: 940px) { .nav-cta .btn-mint.btn-sm { display: inline-flex; width: auto; } }

.mm-overlay { position: fixed; inset: 0; background: rgba(22,33,62,0.5); z-index: 110; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.mm-overlay.show { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.crumbs { font-size: 12.5px; color: var(--ink-soft); padding: 14px 0 0; overflow-x: auto; white-space: nowrap; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--mint-dark); }

.hero {
  padding: 30px 0 36px;
  background: radial-gradient(ellipse 500px 340px at 90% -10%, rgba(255,159,28,0.16), transparent 60%),
              radial-gradient(ellipse 420px 340px at 4% 25%, rgba(46,196,182,0.14), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; } }
.kicker { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--amber-dark); background: #FFF1DB; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; }
.hero-lead { font-size: 1rem; color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.hero-more { font-weight: 700; font-size: 13.5px; color: var(--mint-dark); text-decoration: none; align-self: flex-start; }
.hero-photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; position: relative; order: -1; }
@media (min-width: 860px) { .hero-photo { aspect-ratio: 4/5; order: 0; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--dawn); z-index: 2; }

.service-hero { padding: 16px 0 6px; }
.service-hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 16px 0 4px; }
@media (min-width: 860px) { .service-hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; } }
.service-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
@media (min-width: 860px) { .service-photo { aspect-ratio: 5/4; } }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mint-dark); background: var(--mint-tint); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.eyebrow.narko { color: var(--amber-dark); background: #FFF1DB; }

.section-head { max-width: 640px; margin-bottom: 22px; }
.py { padding: 34px 0; }
.py:first-of-type { padding-top: 20px; }
@media (min-width: 860px) { .py { padding: 50px 0; } }

.service-layout { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 18px 0 6px; }
@media (min-width: 940px) { .service-layout { grid-template-columns: 1fr 300px; gap: 44px; align-items: start; } }
.service-body { max-width: 100%; overflow-wrap: break-word; }
@media (min-width: 940px) { .service-body { max-width: 720px; } }
.service-body h2 { margin-top: 30px; }
.service-body h2:first-child { margin-top: 0; }
.service-body h3 { margin-top: 20px; color: var(--amber-dark); }
.side-card { background: var(--ink); color: #E7EAF3; border-radius: 18px; padding: 22px 20px; }
@media (min-width: 940px) { .side-card { position: sticky; top: 84px; } }
.side-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.side-card p { color: #B7BEDA; font-size: 13.5px; }
.side-card .btn { margin-top: 8px; }
.side-card .addr { font-size: 12.5px; color: #B7BEDA; margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 12px; }

.related-inline { margin-top: 36px; }
.related-inline-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .related-inline-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .related-inline-grid { grid-template-columns: repeat(3, 1fr); } }
.related-inline-grid a { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; text-decoration: none; }
.related-inline-grid a:hover { border-color: var(--mint); background: var(--mint-tint); }

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 780px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.item-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.item-card h3 { margin-bottom: 4px; font-size: 0.98rem; }
.item-card p { font-size: 13.5px; margin: 0; }

.why-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.why-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: 0 6px 18px rgba(22,33,62,0.05); }
.why-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--mint); margin-bottom: 4px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.doctors-section { background: var(--mint-tint); border-radius: 22px; margin: 0 10px; }
@media (min-width: 860px) { .doctors-section { margin: 0 18px; border-radius: 28px; } }
.doctors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 860px) { .doctors-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.doctor-card { text-align: center; }
.doctor-photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; margin: 0 auto 8px; box-shadow: var(--shadow); max-width: 120px; background: #FFF1DB; }
@media (min-width: 860px) { .doctor-photo { max-width: 150px; } }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.doctor-role { font-size: 11.5px; color: var(--ink-soft); }

.sitemap-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 780px) { .sitemap-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
.sitemap-sub { margin-bottom: 20px; }
.sitemap-sub h3 { font-size: 0.94rem; color: var(--amber-dark); margin-bottom: 8px; }
.sitemap-sub ul { list-style: none; margin: 0; padding: 0; columns: 1; }
@media (min-width: 480px) { .sitemap-sub ul { columns: 2; } }
.sitemap-sub li { margin-bottom: 5px; break-inside: avoid; }
.sitemap-sub a { font-size: 13px; text-decoration: none; }
.city-menu-grid { columns: 2; font-size: 13px; }
@media (min-width: 640px) { .city-menu-grid { columns: 3; } }
@media (min-width: 940px) { .city-menu-grid { columns: 4; } }
.city-menu-grid a { display: block; padding: 4px 0; color: var(--mint-dark); text-decoration: none; break-inside: avoid; }

.cta-band { background: var(--dawn); border-radius: 22px; padding: 30px 22px; text-align: center; color: #fff; }
@media (min-width: 860px) { .cta-band { padding: 44px; border-radius: 28px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; align-items: center; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; opacity: 0.9; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); }

footer { background: var(--ink); color: #B7BEDA; padding: 36px 0 20px; margin-top: 50px; }
@media (min-width: 860px) { footer { padding: 50px 0 24px; margin-top: 70px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.2fr repeat(4, 1fr); gap: 24px; } }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: #B7BEDA; text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--amber); }
.footer-brand p { color: #8E96B8; font-size: 13px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: #8E96B8; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a { color: #8E96B8; }
.footer-bottom a:hover { color: var(--amber); }
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }
.city-switcher summary { cursor: pointer; list-style: none; color: #B7BEDA; font-size: 13px; }
.city-switcher summary::-webkit-details-marker { display: none; }

.static-page { padding: 30px 0 50px; }
@media (min-width: 860px) { .static-page { padding: 44px 0 70px; } }
.static-page h2 { margin-top: 26px; }
.notfound { min-height: 55vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 18px; }
.notfound-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 18vw, 6.5rem); background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 6px; }
.notfound p { max-width: 44ch; margin: 0 auto; }
.notfound .hero-actions { justify-content: center; align-items: center; margin-top: 18px; }

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: #E7EAF3; border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -10px 36px rgba(0,0,0,0.25); transform: translateY(140%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (min-width: 560px) { .cookie-banner { flex-direction: row; align-items: center; padding: 14px 18px; } }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner p { color: #B7BEDA; font-size: 12.5px; margin: 0; flex: 1; }
.cookie-banner a { color: #fff; text-decoration: underline; }

main { padding-bottom: 6px; overflow-x: hidden; }
