:root {
  --ink: #153641;
  --muted: #5f7480;
  --brand: #087fa0;
  --brand-dark: #055d78;
  --accent: #ffbb2e;
  --sea: #eaf8fb;
  --paper: #ffffff;
  --line: #dce9ed;
  --shadow: 0 18px 50px rgba(21, 54, 65, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; left: 12px; top: -60px; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(15,70,89,.08); backdrop-filter: blur(16px); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 235px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: #31515c; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.main-nav a:hover { color: var(--brand); }
.header-phone { text-decoration: none; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: var(--sea); }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--brand-dark); }

.hero { min-height: 690px; position: relative; display: grid; align-items: center; overflow: hidden; color: #fff; background: #0e657d url("/assets/hero.jpg") center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,46,63,.92) 0%, rgba(3,58,76,.72) 44%, rgba(3,58,76,.24) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .78fr; gap: 70px; align-items: center; padding-block: 84px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow, .section-heading--light .eyebrow, .sanatoriums .eyebrow { color: #8ce7f5; }
.hero h1 { max-width: 680px; margin: 0 0 22px; font-size: clamp(44px, 5.2vw, 66px); line-height: .98; letter-spacing: -.045em; }
.hero-copy > p { max-width: 610px; margin: 0 0 28px; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.86); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 100px; background: rgba(255,255,255,.09); font-size: 13px; }

.lead-form { padding: 32px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 22px; }
.form-heading strong { font-size: 24px; }
.form-heading span { color: var(--muted); font-size: 13px; }
.lead-form label { display: block; margin-bottom: 14px; }
.lead-form label > span { display: block; margin-bottom: 7px; color: #44616b; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lead-form input { width: 100%; height: 50px; padding: 0 14px; color: var(--ink); background: #f6fafb; border: 1px solid #dce8ec; border-radius: 12px; outline: none; }
.lead-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,127,160,.12); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 12px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button--primary { width: 100%; color: #fff; background: linear-gradient(135deg, var(--brand), #0ca9ba); box-shadow: 0 12px 26px rgba(8,127,160,.24); }
.button--small { min-height: 42px; align-self: flex-start; color: #fff; background: var(--brand); }
.button--light { color: var(--brand-dark); background: #fff; }
.form-note { margin: 13px 0 0; color: #70838a; font-size: 11px; line-height: 1.45; }
.form-note a { color: var(--brand-dark); }
.form-status { min-height: 20px; margin: 10px 0 0; color: var(--brand-dark); font-size: 13px; font-weight: 700; }

.section { padding: 100px 0; }
.section-heading { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-heading h2, .request h2, .contacts h2, .sanatoriums h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.destination-card { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #ddebef; }
.destination-card img { width: 100%; height: 100%; object-fit: cover; }
.destination-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(4,37,49,.88)); }
.destination-card > div { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; color: #fff; }
.destination-card h3 { margin: 0 0 6px; font-size: 26px; }
.destination-card a { font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.price-disclaimer { max-width: 760px; margin: 24px auto 0; color: var(--muted); font-size: 12px; text-align: center; }

.offers { position: relative; color: #fff; background: #063d51 url("/assets/offer-bg.jpg") center / cover fixed; }
.offers::before { content: ""; position: absolute; inset: 0; background: rgba(5,51,67,.8); }
.offers .container { position: relative; z-index: 1; }
.section-heading--light p { color: rgba(255,255,255,.75); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.offer-card { overflow: hidden; display: grid; grid-template-columns: 42% 58%; min-height: 360px; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.offer-card img { width: 100%; height: 100%; object-fit: cover; }
.offer-card__body { padding: 24px 20px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.offer-card__body > span { color: var(--brand-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.offer-card__body strong { font-size: 29px; line-height: 1; }
.offer-card__body small { color: var(--muted); }

.process { background: var(--sea); }
.process-list { counter-reset: process; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.process-list li { min-height: 210px; display: flex; gap: 20px; padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 35px rgba(14,81,102,.08); }
.process-list li > span { color: var(--accent); font-size: 34px; font-weight: 900; }
.process-list strong { display: block; margin: 6px 0 10px; font-size: 20px; }
.process-list p { margin: 0; color: var(--muted); }

.sanatoriums { position: relative; min-height: 720px; display: grid; align-items: center; color: #fff; background: #193d32 url("/assets/sanatorium-bg.jpg") center / cover no-repeat; }
.sanatoriums-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,45,40,.94), rgba(14,65,66,.72), rgba(8,66,80,.28)); }
.sanatoriums-content { position: relative; z-index: 1; max-width: 900px; }
.sanatoriums-content > div { max-width: 720px; }
.sanatoriums-content > div p { color: rgba(255,255,255,.78); font-size: 18px; }
.sanatorium-list { max-width: 660px; margin: 30px 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sanatorium-list li { padding: 13px 16px; display: flex; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; backdrop-filter: blur(8px); }
.sanatorium-list strong { white-space: nowrap; }
.sanatorium-note { max-width: 660px; color: rgba(255,255,255,.62); font-size: 12px; }

.request { background: #f6fbfc; }
.request-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; }
.request-grid > div > p { max-width: 550px; color: var(--muted); font-size: 18px; }
.direct-links { display: grid; gap: 12px; margin-top: 28px; }
.direct-links a { max-width: 440px; display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.direct-links span { color: var(--muted); }
.direct-links strong { color: var(--brand-dark); }

.contacts { padding: 86px 0; color: #fff; background: #103846; }
.contacts .eyebrow { color: #85dce9; }
.contacts-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; }
.contacts address { margin: 18px 0; color: rgba(255,255,255,.82); font-style: normal; font-size: 18px; }
.contacts p { color: rgba(255,255,255,.75); }
.company-data { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.company-data span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 100px; color: rgba(255,255,255,.8); font-size: 13px; }

.site-footer { padding: 24px 0; color: #9db2b9; background: #092731; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner div { display: flex; gap: 18px; }
.footer-inner a { color: #c9d7db; }
.whatsapp-float { position: fixed; z-index: 90; right: 24px; bottom: 24px; width: 60px; height: 60px; display: grid; place-items: center; background: #25d366; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 12px 35px rgba(12,64,49,.28); }
.whatsapp-float svg { width: 32px; fill: #fff; }

@media (max-width: 1020px) {
  .header-phone { display: none; }
  .hero-grid, .request-grid { grid-template-columns: 1fr 420px; gap: 36px; }
  .hero h1 { font-size: 56px; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-card img { height: 230px; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 190px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; margin: 0; padding: 14px 20px 22px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 25px rgba(0,0,0,.08); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .hero { min-height: auto; }
  .hero-grid, .request-grid, .contacts-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 64px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-points { justify-content: center; }
  .lead-form--hero { max-width: 540px; width: 100%; margin-inline: auto; }
  .destination-grid, .offer-grid, .process-list { grid-template-columns: 1fr; }
  .destination-card { min-height: 440px; }
  .offer-card { grid-template-columns: 42% 58%; min-height: 320px; }
  .offer-card img { height: 100%; }
  .sanatorium-list { grid-template-columns: 1fr; }
  .company-data { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 72px 0; }
  .hero-grid { padding-block: 50px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 17px; }
  .lead-form { padding: 22px; border-radius: 18px; }
  .form-heading { display: block; }
  .form-heading strong, .form-heading span { display: block; }
  .form-heading span { margin-top: 3px; }
  .destination-card { min-height: 380px; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-card img { height: 250px; }
  .process-list li { min-height: 0; }
  .sanatoriums { min-height: auto; }
  .sanatorium-list li { font-size: 13px; }
  .direct-links a { display: block; }
  .direct-links span, .direct-links strong { display: block; }
  .footer-inner, .footer-inner div { flex-direction: column; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
