@import url('/assets/css/fonts.css');

/* ===========================================================================
   Подолайн — центр подологии. Дизайн-система публичной части.
   Палитра: тёплый песок + глубокий изумруд + мягкая мята.
   =========================================================================== */

:root {
  /* Цвета */
  --ink:        #16231F;
  --ink-2:      #3E524C;
  --ink-3:      #6E837C;
  --paper:      #FBF7F2;
  --paper-2:    #FFFFFF;
  --sand:       #F1E8DD;
  --sand-2:     #E6D8C7;
  --brand:      #0E5F55;
  --brand-2:    #14776A;
  --brand-soft: #DCEEE9;
  --mint:       #9ED7C8;
  --accent:     #C4703F;
  --accent-soft:#F7E4D6;
  --line:       #E4DACC;
  --ok:         #2E7D5B;
  --err:        #B3402E;

  /* Типографика */
  --font:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif:  'Prata', 'Times New Roman', Georgia, serif;

  /* Ритм */
  --wrap: 1200px;
  --gap: 24px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 40px;

  --shadow-s: 0 2px 8px rgba(22,35,31,.06);
  --shadow-m: 0 12px 32px -12px rgba(22,35,31,.16);
  --shadow-l: 0 32px 64px -24px rgba(22,35,31,.24);

  --t: .28s cubic-bezier(.2,.7,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
p  { margin: 0 0 1em; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
em.serif, .serif em { font-style: italic; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--sand { background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 40%, var(--sand) 100%); }
.section--paper { background: var(--paper-2); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- Заголовки секций ----------------------------------------------------- */
.shead { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 18px;
}
.shead__title { margin-bottom: .35em; }
.shead__text { color: var(--ink-2); font-size: 18px; margin: 0; }

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--brand); --btn-fg: var(--brand); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: #fff; }
.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--wide { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* --- Шапка ---------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,247,242,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }
.header__bar { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo__name { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: .01em; }
.logo__sub { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 9px 14px; border-radius: 100px; color: var(--ink-2);
  font-size: 15.5px; font-weight: 600; transition: background var(--t), color var(--t);
}
.nav__link:hover, .nav__link.is-active { background: var(--brand-soft); color: var(--brand); }

.header__side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header__phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--brand); }
.header__phone small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.header__phone-ico { display: none; width: 20px; height: 20px; }

.burger {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 14px;
  background: transparent; cursor: pointer; padding: 0; place-items: center; color: var(--ink);
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform var(--t), background var(--t); }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t), top var(--t); }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 20px; right: 20px; top: calc(100% + 10px);
    background: var(--paper-2); padding: 14px; border-radius: var(--r-m);
    box-shadow: var(--shadow-l); border: 1px solid var(--line);
  }
  .nav.is-open .nav__link { padding: 13px 16px; font-size: 17px; }
}
@media (max-width: 720px) {
  /* Телефон превращается в компактную круглую кнопку с иконкой */
  .header__phone-text { display: none; }
  .header__phone-ico { display: block; }
  .header__phone {
    width: 46px; height: 46px; justify-content: center; gap: 0;
    border: 1.5px solid var(--line); border-radius: 14px; color: var(--brand);
  }
  .header__phone:hover { border-color: var(--brand); }
  .header .btn--header { display: none; }
}

/* --- Первый экран --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 100px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero__blob--1 { width: 520px; height: 520px; background: var(--brand-soft); right: -140px; top: -160px; }
.hero__blob--2 { width: 420px; height: 420px; background: var(--accent-soft); left: -160px; bottom: -180px; opacity: .7; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-s); margin-bottom: 24px;
}
.hero__badge b { color: var(--brand); }
.hero__badge .ico { width: 18px; height: 18px; color: var(--brand); }
.hero__title { margin-bottom: .5em; }
.hero__title span { color: var(--brand); font-family: var(--serif); font-weight: 400; }
.hero__text { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 16px; }
.hero__note { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-3); }
.hero__note .ico { width: 18px; height: 18px; color: var(--ok); }

.hero__figure { position: relative; }
.hero__card {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, var(--brand) 0%, #0B4A43 100%);
  box-shadow: var(--shadow-l); aspect-ratio: 4 / 4.4;
}
.hero__card img, .hero__card svg { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--paper-2); border-radius: var(--r-m); padding: 14px 18px;
  box-shadow: var(--shadow-m); font-size: 14px; line-height: 1.35;
  animation: floaty 6s ease-in-out infinite;
}
.hero__chip b { display: block; font-size: 20px; line-height: 1.1; color: var(--brand); }
.hero__chip--1 { left: -18px; top: 12%; }
.hero__chip--2 { right: -12px; bottom: 16%; animation-delay: -3s; }
.hero__chip .ico { width: 30px; height: 30px; color: var(--accent); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { max-width: 460px; margin-inline: auto; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
}
@media (max-width: 620px) {
  /* На узком экране заголовок должен быть виден сразу, картинка — ниже */
  .hero__card { aspect-ratio: 4 / 3.2; }
  .hero__chip { padding: 11px 14px; font-size: 13px; }
  .hero__chip b { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
}

/* --- Полоса показателей --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line);
  border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-s); }
.stats__item { background: var(--paper-2); padding: 28px 22px; text-align: center; }
.stats__num { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); color: var(--brand); line-height: 1; }
.stats__text { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Карточки услуг ------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 30px 28px 26px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px;
  background: var(--brand-soft); border-radius: 50%; opacity: 0; transition: opacity var(--t); z-index: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--mint); }
.card:hover::after { opacity: .5; }
.card > * { position: relative; z-index: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex-shrink: 0;
}
.card__icon .ico { width: 28px; height: 28px; }
.card__title { font-size: 20px; margin: 0; }
.card__problem { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card__text { color: var(--ink-2); font-size: 15.5px; margin: 0; flex-grow: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.card__price { font-weight: 800; font-size: 18px; }
.card__price small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.card__link .ico { width: 18px; height: 18px; transition: transform var(--t); }
.card:hover .card__link .ico { transform: translateX(4px); }
.card--flat { padding: 26px; }

/* --- Преимущества --------------------------------------------------------- */
.adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.adv__item { display: flex; gap: 16px; }
.adv__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--brand); flex-shrink: 0; }
.adv__title { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.adv__text { font-size: 15px; color: var(--ink-2); margin: 0; }

/* --- Прайс ---------------------------------------------------------------- */
.price-group { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(22px, 3vw, 36px); margin-bottom: 20px; }
.price-group__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.price-group__title h3 { margin: 0; }
.price-group__note { font-size: 14px; color: var(--ink-3); }
.price-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row__name { font-weight: 600; }
.price-row__name span { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.price-row__val { font-weight: 800; font-size: 18px; white-space: nowrap; }
.price-row__val small { font-size: 12px; font-weight: 600; color: var(--ink-3); display: block; text-align: right; }
.price-row .btn { padding: 9px 18px; font-size: 14px; }
.hit { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 100px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 620px) {
  .price-row { grid-template-columns: 1fr auto; }
  .price-row .btn { grid-column: 1 / -1; justify-self: start; }
}

/* --- Специалист ----------------------------------------------------------- */
.doctor { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.doctor__photo { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--sand); aspect-ratio: 4/5; box-shadow: var(--shadow-m); }
.doctor__photo img, .doctor__photo svg { width: 100%; height: 100%; object-fit: cover; }
.doctor__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 100px;
  background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.tag--sand { background: var(--sand); color: var(--ink-2); }
.doctor__quote { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: var(--ink);
  border-left: 3px solid var(--mint); padding-left: 22px; margin: 0 0 22px; }
@media (max-width: 860px) { .doctor { grid-template-columns: 1fr; } .doctor__photo { max-width: 380px; } }

/* --- Галерея сертификатов / работ ---------------------------------------- */
.scroller { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; flex: 0 0 auto; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: var(--sand-2); border-radius: 100px; }

.cert { width: 200px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2); cursor: zoom-in; transition: transform var(--t); }
.cert:hover { transform: translateY(-4px); }
.cert img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.cert__cap { font-size: 13px; padding: 10px 12px; color: var(--ink-2); }

.work { width: 320px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.work__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); position: relative; }
.work__pair figure { margin: 0; position: relative; background: var(--sand); }
.work__pair img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.work__pair figcaption {
  position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(22,35,31,.72); color: #fff; padding: 4px 9px; border-radius: 100px;
}
.work__body { padding: 18px 20px 20px; }
.work__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.work__text { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.work__sessions { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand); }

/* --- Отзывы --------------------------------------------------------------- */
.review { width: 380px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review--grid { width: auto; }
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars .ico { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.stars .ico.is-off { color: var(--sand-2); }
.review__body { font-size: 15.5px; color: var(--ink-2); margin: 0; flex-grow: 1; }
.review__body.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 14px;
  font-weight: 700; color: var(--brand); cursor: pointer; }
.review__foot { display: flex; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.review__ava { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.review__ava img { width: 100%; height: 100%; object-fit: cover; }
.review__name { font-weight: 700; font-size: 15px; }
.review__date { font-size: 13px; color: var(--ink-3); }

.rating-badge { display: inline-flex; align-items: center; gap: 14px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 100px; padding: 12px 22px; box-shadow: var(--shadow-s); }
.rating-badge b { font-size: 26px; font-family: var(--serif); color: var(--brand); line-height: 1; }
.rating-badge span { font-size: 14px; color: var(--ink-3); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq__item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  padding: 22px 24px; background: none; border: 0; font: inherit; font-size: 17px; font-weight: 700;
  color: var(--ink); text-align: left; cursor: pointer;
}
.faq__q .ico { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; transition: transform var(--t); }
.faq__item.is-open .faq__q .ico { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq__a > div { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }

/* --- Призыв к действию ---------------------------------------------------- */
.cta { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(140deg, var(--brand) 0%, #0A443E 100%); color: #fff; }
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; opacity: .12; background: var(--mint); }
.cta::before { width: 380px; height: 380px; right: -90px; top: -140px; }
.cta::after  { width: 260px; height: 260px; left: -80px; bottom: -120px; }
.cta__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.cta__phone { font-size: 24px; font-weight: 800; color: #fff; }
.cta__phone:hover { color: var(--mint); }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* --- Формы ---------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form--card { background: var(--paper-2); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-m); }
.field { display: grid; gap: 7px; }
.field__label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field__label span { color: var(--err); }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--paper-2); font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.input.is-error, .textarea.is-error { border-color: var(--err); }
.textarea { resize: vertical; min-height: 108px; }
.select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236E837C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
.field__err { font-size: 13px; color: var(--err); min-height: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form__msg { padding: 14px 18px; border-radius: var(--r-s); font-size: 15px; font-weight: 600; display: none; }
.form__msg.is-ok  { display: block; background: #E4F3EB; color: var(--ok); }
.form__msg.is-err { display: block; background: #FBE9E5; color: var(--err); }

/* --- Онлайн-запись -------------------------------------------------------- */
.booking { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 940px) { .booking { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.step__num { counter-increment: step; width: 38px; height: 38px; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.step__num::before { content: counter(step); }
.step__title { font-weight: 700; margin: 6px 0 4px; }
.step__text { font-size: 15px; color: var(--ink-2); margin: 0; }

.daylist { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.day {
  flex: 0 0 auto; width: 74px; padding: 12px 6px; border-radius: var(--r-m); border: 1.5px solid var(--line);
  background: var(--paper-2); cursor: pointer; text-align: center; font: inherit;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.day:hover { border-color: var(--mint); transform: translateY(-2px); }
.day.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.day.is-off { opacity: .4; cursor: not-allowed; }
.day__dow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.day.is-active .day__dow { color: rgba(255,255,255,.75); }
.day__num { font-size: 22px; font-weight: 800; line-height: 1.2; }
.day__free { font-size: 11px; color: var(--ink-3); }
.day.is-active .day__free { color: rgba(255,255,255,.75); }

.slots { display: flex; flex-wrap: wrap; gap: 9px; }
.slot { padding: 11px 18px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--paper-2);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: all var(--t); }
.slot:hover { border-color: var(--mint); }
.slot.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.slots__empty { font-size: 15px; color: var(--ink-3); }

/* --- Контакты ------------------------------------------------------------- */
.contacts-grid { display: grid; grid-template-columns: 380px 1fr; gap: var(--gap); align-items: stretch; }
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; }
.contact-item .ico { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.contact-item b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; }
.contact-item span, .contact-item a { font-size: 17px; font-weight: 600; color: var(--ink); }
.map { min-height: 420px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--sand); position: relative; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map__stub { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--ink-3); }

/* --- Блог ----------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.post-card__img { aspect-ratio: 16/10; background: var(--sand); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card__date { font-size: 13px; color: var(--ink-3); }
.post-card__title { font-size: 19px; font-weight: 700; margin: 0; color: var(--ink); }
.post-card__text { font-size: 15px; color: var(--ink-2); margin: 0; flex-grow: 1; }

.article { max-width: 760px; margin-inline: auto; font-size: 17.5px; }
.article h2 { margin-top: 1.6em; font-size: clamp(24px, 3vw, 32px); }
.article h3 { margin-top: 1.4em; }
.article img { border-radius: var(--r-m); margin: 1.5em 0; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 1.6em 0; padding: 20px 26px; background: var(--brand-soft); border-radius: var(--r-m);
  font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.article th, .article td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article th { font-weight: 700; background: var(--sand); }
.article a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Хлебные крошки, пагинация ------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); padding: 22px 0 4px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px;
  border-radius: 100px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Подвал --------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 72px) 0 28px; margin-top: clamp(48px, 6vw, 80px); }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--mint); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
/* Кнопки в подвале сохраняют собственные цвета: .footer a иначе красит текст в белый */
.footer .btn { color: var(--btn-fg); }
.footer .btn:hover { color: var(--btn-fg); }
.footer .logo { color: #fff; }
.footer .logo__sub { color: rgba(255,255,255,.5); }
.footer__title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer__disclaimer { font-size: 12.5px; color: rgba(255,255,255,.4); margin-top: 14px; max-width: 70ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background var(--t), transform var(--t); }
.socials a:hover { background: var(--brand-2); transform: translateY(-2px); }

/* --- Плавающие элементы --------------------------------------------------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-m); transition: transform var(--t); }
.fab__btn:hover { transform: scale(1.06); color: #fff; }
.fab__btn--wa { background: #25D366; }
.fab__btn--tg { background: #2AABEE; }
.fab__main { padding: 0 24px; width: auto; height: 56px; border-radius: 100px; font-weight: 700; gap: 10px; border: 0; font: inherit; font-size: 16px; cursor: pointer;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; box-shadow: var(--shadow-m); }
@media (max-width: 620px) { .fab { right: 14px; bottom: 14px; } .fab__main span { display: none; } .fab__main { width: 56px; padding: 0; justify-content: center; } }

/* --- Модальное окно ------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; padding: 20px; overflow-y: auto; }
.modal.is-open { display: grid; place-items: center; }
.modal__back { position: fixed; inset: 0; background: rgba(22,35,31,.55); backdrop-filter: blur(3px); }
.modal__box { position: relative; width: min(100%, 520px); background: var(--paper); border-radius: var(--r-l);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-l); animation: pop .3s cubic-bezier(.2,.9,.3,1); }
.modal__box--wide { width: min(100%, 880px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--sand); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.modal__close:hover { background: var(--sand-2); }
.lightbox img { width: 100%; border-radius: var(--r-m); }

/* --- Cookie --------------------------------------------------------------- */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90; max-width: 640px; margin-inline: auto;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-l);
  padding: 18px 22px; display: none; align-items: center; gap: 18px; font-size: 14px; color: var(--ink-2); }
.cookie.is-visible { display: flex; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; text-align: center; } }

/* --- Анимация появления --------------------------------------------------- */
/* Прячем блок до появления только когда JS активен: без него всё видно сразу. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- Мелочи --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-l { margin-top: 40px; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.badge-soft { display: inline-block; padding: 5px 12px; border-radius: 100px; background: var(--sand); font-size: 13px; font-weight: 600; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 12px; z-index: 200; background: #fff; padding: 10px 18px; border-radius: 10px; }
