/* ══════════════════════════════════════════
   Медцентр «Лимфа Си» — стили
   Палитра: глубокий teal + чистая мята + тёплый коралл
   ══════════════════════════════════════════ */

:root {
  --ink:        #0C2E2B;   /* глубокий тёмный teal — текст/заголовки */
  --teal:       #12977E;   /* основной бренд-цвет */
  --teal-700:   #0E7C68;
  --teal-300:   #6FD4BE;
  --mint:       #EAF6F1;   /* мягкий мятный фон секций */
  --mist:       #F4FAF7;
  --coral:      #FF6B54;   /* тёплый акцент — рейтинг, детали */
  --coral-soft: #FFE7E0;
  --text:       #26403C;
  --muted:      #5F736F;
  --line:       #E1EDE8;
  --white:      #FFFFFF;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; /* заголовки — чисто и профессионально */
  --font-accent: "Unbounded", var(--font-body); /* фирменный акцент: логотип и цифры */

  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(12, 46, 43, .06);
  --shadow-md: 0 12px 30px rgba(12, 46, 43, .09);
  --shadow-lg: 0 24px 60px rgba(12, 46, 43, .14);
  --wrap: 1180px;
}

/* ── база ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding: 6px 14px;
  background: var(--mint);
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow.light { color: #cdefe6; background: rgba(255,255,255,.1); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}
.section-title.light { color: #fff; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.ink-accent { color: var(--teal); }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .96rem;
  border: 1.5px solid transparent; border-radius: 100px;
  padding: 13px 26px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(18,151,126,.28); }
.btn-primary:hover { background: var(--teal-700); box-shadow: 0 12px 26px rgba(18,151,126,.38); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); background: var(--mist); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ══════════ ШАПКА ══════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-text { font-family: var(--font-accent); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-accent { color: var(--teal); }

.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a { font-weight: 600; font-size: .96rem; color: var(--text); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--teal); border-radius: 2px; transition: width .22s ease;
}
.nav a:hover { color: var(--teal-700); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.header-phone-label { font-size: .72rem; color: var(--muted); }
.header-phone-num { font-weight: 700; font-size: .98rem; color: var(--ink); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .mobile-phone { color: var(--teal-700); }
.mobile-menu .btn { margin-top: 12px; border-bottom: none; }

/* ══════════ HERO ══════════ */
.hero { position: relative; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--mist) 0%, #fff 78%); overflow: hidden; }
.hero-flow { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.hero-flow svg { width: 100%; height: 100%; }
.flow-line { fill: none; stroke: var(--teal-300); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 20; animation: flow 18s linear infinite; }
.flow-line-2 { stroke: var(--coral); opacity: .35; animation-duration: 26s; animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -680; } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.8vw, 3.7rem); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
.hero-lead { margin-top: 22px; font-size: 1.14rem; color: var(--muted); max-width: 500px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats { list-style: none; display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-accent); font-weight: 600; font-size: 1.8rem; color: var(--teal-700); line-height: 1; }
.hero-stats span { margin-top: 8px; font-size: .84rem; color: var(--muted); }

/* hero визуал */
.hero-visual { position: relative; height: 440px; display: flex; align-items: center; justify-content: center; }
.blob {
  position: absolute; width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%, var(--teal-300), var(--teal) 70%);
  border-radius: 42% 58% 60% 40% / 46% 44% 56% 54%;
  filter: blur(2px); opacity: .95;
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 42% 58% 60% 40% / 46% 44% 56% 54%; }
  50% { border-radius: 58% 42% 44% 56% / 54% 58% 42% 46%; }
}
.hero-photo {
  position: relative; z-index: 2; width: 350px; height: 420px; overflow: hidden;
  border-radius: 46% 54% 52% 48% / 42% 44% 56% 58%;
  border: 6px solid rgba(255,255,255,.85);
  box-shadow: 0 24px 50px rgba(12,46,43,.30);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rating-card {
  position: absolute; top: 24px; right: 0; z-index: 3;
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-md); text-align: left;
}
.rating-stars { color: var(--coral); font-size: .9rem; letter-spacing: 2px; }
.rating-num { font-family: var(--font-accent); font-weight: 600; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.rating-num span { font-size: .9rem; color: var(--muted); }
.rating-text { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.pill-card {
  position: absolute; bottom: 26px; left: 0; z-index: 3;
  background: #fff; border-radius: 100px; padding: 12px 18px 12px 16px;
  box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px; line-height: 1.25;
}
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18,151,126,.18); flex-shrink: 0; }

.hero-trust { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trust span { font-size: .9rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: "✓"; color: var(--teal); font-weight: 800; }

/* ══════════ УСЛУГИ ══════════ */
.services {
  position: relative;
  background:
    radial-gradient(560px 380px at 108% -8%, rgba(43,183,158,.14), transparent 70%),
    radial-gradient(480px 340px at -10% 108%, rgba(255,107,84,.09), transparent 70%),
    #fff;
}
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 15px; background: var(--mint); color: var(--teal-700); margin-bottom: 18px; }
.service-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: .92rem; color: var(--muted); }
.service-card.is-featured { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-700) 100%); border-color: transparent; color: #fff; }
.service-card.is-featured h3 { color: #fff; }
.service-card.is-featured p { color: rgba(255,255,255,.86); }
.service-card.is-featured .service-ico { background: rgba(255,255,255,.16); color: #fff; }
.card-tag { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--coral); color: #fff; padding: 4px 10px; border-radius: 100px; }

/* ══════════ О ЦЕНТРЕ ══════════ */
.about { background: var(--mint); }
.about-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about-badge {
  position: absolute; right: 18px; bottom: 18px; background: #fff; border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.about-badge b { font-family: var(--font-accent); font-weight: 600; font-size: 1.6rem; color: var(--teal-700); line-height: 1; }
.about-badge span { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.about-copy p { color: var(--text); font-size: 1.05rem; margin-top: 6px; }
.about-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }

/* ══════════ ВРАЧИ ══════════ */
.doctors {
  background:
    radial-gradient(620px 420px at -8% 0%, rgba(43,183,158,.12), transparent 70%),
    radial-gradient(460px 320px at 110% 100%, rgba(43,183,158,.10), transparent 70%),
    #fff;
}
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor-card { text-align: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.doctor-photo {
  width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 8px 20px rgba(12,46,43,.16), 0 0 0 3px var(--teal-300);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.doctor-card h3 { font-size: 1.1rem; color: var(--ink); }
.doctor-role { color: var(--teal-700); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.doctor-exp { color: var(--muted); font-size: .84rem; margin: 6px 0 16px; }
.doctors-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 24px; font-style: italic; }

/* ══════════ ПОЧЕМУ МЫ ══════════ */
.why {
  background:
    linear-gradient(rgba(12,46,43,.88), rgba(12,46,43,.92)),
    url("img/water.jpg") center 30% / cover no-repeat;
  color: #fff;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { padding-top: 20px; border-top: 2px solid rgba(255,255,255,.16); }
.why-num { font-family: var(--font-accent); font-weight: 600; font-size: .95rem; color: var(--teal-300); }
.why-item h3 { font-size: 1.35rem; margin: 14px 0 10px; }
.why-item p { color: rgba(255,255,255,.72); }

/* ══════════ ГАЛЕРЕЯ ══════════ */
.gallery { background: #fff; }
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.gallery-item {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-height: 240px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  color: var(--ink); font-weight: 700; font-size: .86rem;
  padding: 8px 16px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,46,43,.35));
}

/* ══════════ ОТЗЫВЫ ══════════ */
.reviews {
  background:
    radial-gradient(640px 420px at 108% 0%, rgba(43,183,158,.14), transparent 70%),
    radial-gradient(520px 380px at -8% 100%, rgba(255,107,84,.10), transparent 70%),
    var(--mist);
}
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.review-stars { color: var(--coral); letter-spacing: 3px; margin-bottom: 14px; }
.review-card blockquote { font-size: 1.06rem; color: var(--text); line-height: 1.55; }
.review-card figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.review-card figcaption b { color: var(--ink); }
.review-card figcaption span { font-size: .84rem; color: var(--muted); }

/* ══════════ ЗАПИСЬ ══════════ */
.booking {
  background:
    linear-gradient(150deg, rgba(14,124,104,.93) 0%, rgba(12,46,43,.96) 100%),
    url("img/massage.jpg") center / cover no-repeat;
  color: #fff;
}
.booking-inner { display: grid; grid-template-columns: 1fr .9fr; gap: 56px; align-items: start; }
.booking-lead { color: rgba(255,255,255,.8); font-size: 1.06rem; margin-top: 14px; }
.contacts-list { list-style: none; display: grid; gap: 18px; margin: 32px 0 26px; }
.contacts-list li { display: flex; align-items: center; gap: 16px; }
.contact-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.contact-ico svg { width: 22px; height: 22px; }
.contacts-list b { display: block; font-size: 1.06rem; }
.contacts-list span { font-size: .86rem; color: rgba(255,255,255,.66); }
.insta-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #cdefe6; border: 1.5px solid rgba(255,255,255,.24); padding: 10px 18px; border-radius: 100px; transition: .2s; }
.insta-link:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

.booking-form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.form-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field > span i { color: var(--muted); font-weight: 400; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text); /* ≥16px — iOS не зумит при фокусе */
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--mist);
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { resize: vertical; }
.field-error { display: none; color: var(--coral); font-size: .8rem; margin-top: 6px; font-style: normal; }
.field.invalid input, .field.invalid select { border-color: var(--coral); background: var(--coral-soft); }
.field.invalid .field-error { display: block; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success { margin-top: 16px; padding: 14px 16px; background: var(--mint); color: var(--teal-700); border-radius: 14px; font-weight: 600; font-size: .92rem; text-align: center; }

/* ══════════ ПОДВАЛ ══════════ */
.site-footer {
  background:
    linear-gradient(rgba(12,46,43,.95), rgba(12,46,43,.97)),
    url("img/water.jpg") center 70% / cover no-repeat;
  color: #fff; padding-top: 56px;
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 300px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.72); font-size: .94rem; }
.footer-nav a:hover { color: var(--teal-300); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.footer-contact span { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom span { color: rgba(255,255,255,.5); font-size: .8rem; }

/* ── плавающая кнопка (моб.) ── */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90; background: var(--coral); color: #fff; font-weight: 700; padding: 14px 24px; border-radius: 100px; box-shadow: 0 12px 26px rgba(255,107,84,.42); }

/* ── появление при скролле ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ══════════ АДАПТИВ ══════════ */
@media (max-width: 1040px) {
  .header-phone { display: none; } /* шапке тесно — сначала убираем телефон */
}
@media (max-width: 820px) {
  .nav { display: none; }
  .header-cta .btn-sm { display: none; }
  .burger { display: flex; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { height: 360px; order: -1; }
  .about-inner { grid-template-columns: 1fr; gap: 56px; }
  .booking-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { min-height: 200px; }
  .hero-photo { width: 270px; height: 330px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .fab { display: inline-flex; }
  .blob { width: 320px; height: 320px; }
}
@media (max-width: 480px) {
  .cards-grid, .doctors-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .booking-form { padding: 24px; }
}

/* ── доступность ── */
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
