/* =========================================================
   BeneficMed Bălți — landing
   ========================================================= */

:root {
  color-scheme: light;

  --bg:            #FBF6F5;
  --surface:       #ffffff;
  --ink:           #2B2628;
  --ink-2:         #4A4244;
  --muted:         #6E6468;
  --muted-2:       #7C7175;
  --muted-3:       #8A7F82;
  --label:         #A9989D;

  --accent:        #A63A5E;
  --accent-dark:   #8C2E4D;
  --accent-darker: #7E2843;
  --accent-soft:   #F4E7EA;
  --accent-soft-2: #F7EAEE;
  --accent-soft-3: #FAEFF2;
  --accent-light:  #E9A2BA;

  --line:          #F0E4E6;
  --line-2:        #EFE2E4;
  --line-3:        #E9DADD;
  --line-4:        #F3EAEB;

  --shadow-sm: 0 8px 24px rgba(43, 38, 40, .04);
  --shadow-md: 0 10px 30px rgba(43, 38, 40, .05);
  --shadow-lg: 0 22px 50px rgba(43, 38, 40, .12);

  --radius:    26px;
  --radius-sm: 22px;
  --wrap:      1180px;
  --gutter:    20px;

  --header-h:  70px;

  --serif: 'Marcellus', 'Times New Roman', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* offset for the sticky header when jumping to #anchors */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(166, 58, 94, .12);
}

img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-darker); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(166, 58, 94, .22);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-3);
  font-weight: 400;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 11px 20px; min-height: 44px; font-size: 14px; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 246, 245, .88);
  border-bottom: 1px solid var(--line-2);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .header {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.header__bar {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .01em;
}
.brand__name em { color: var(--accent); font-style: normal; }
.brand__sub {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #9A8E91;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 400;
}
.nav a { color: #58504F; }
.nav a:hover,
.nav a[aria-current="true"] { color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 500;
  background: transparent;
  color: #8C7B7F;
  transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line-3);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
}
.burger svg { transition: transform .25s; }
.burger[aria-expanded="true"] svg { transform: rotate(90deg); }

/* mobile drop-down panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 6px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  gap: 2px;
  border-top: 1px solid var(--line);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 15px 4px;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: #3A3335;
  font-size: 16.5px;
  border-bottom: 1px solid var(--line-4);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 10px; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.section { padding-top: clamp(40px, 6vw, 88px); }

.hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(30px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.1;
  margin: 22px 0 0;
}
.hero h1 em { color: var(--accent); font-style: italic; }

.hero__sub {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  margin: 20px 0 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 30px 0 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--muted-3);
  letter-spacing: .02em;
}
.trust li { list-style: none; }

/* ---------------------------------------------------------
   Slider
   --------------------------------------------------------- */

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #EFE6E4;
  box-shadow: var(--shadow-lg);
  height: clamp(280px, 46vw, 470px);
  touch-action: pan-y;
}

.slider__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform .75s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  background: linear-gradient(to top, rgba(43, 38, 40, .42), transparent);
  pointer-events: none;
}

.slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .86);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s;
}
.slider__nav:hover { background: #fff; }
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 0;
}
/* the visible bar is 8px tall, but the tappable box around it is ~24px */
.slider__dots button {
  box-sizing: content-box;
  border: 0;
  cursor: pointer;
  width: 8px;
  height: 8px;
  padding: 8px 7px;
  background-color: rgba(255, 255, 255, .55);
  background-clip: content-box;
  border-radius: 999px;
  transition: width .3s, background-color .3s;
}
.slider__dots button[aria-current="true"] {
  width: 26px;
  background-color: #fff;
}

/* ---------------------------------------------------------
   Section heads
   --------------------------------------------------------- */

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.sec-head h2,
.card-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 12px 0 0;
}
.sec-head p {
  font-size: 15px;
  color: var(--muted-2);
  max-width: 380px;
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

/* услуги разбиты на два блока: гинекология и общая УЗИ-диагностика */
.svc-group + .svc-group { margin-top: 32px; }
.svc-group__label {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  /* six services read best as 3x2, never 4+2 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--4 .card h3 { font-size: 18px; }

@media (max-width: 980px) {
  .cards,
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
@media (hover: hover) {
  .card:hover {
    border-color: #E0C3CB;
    box-shadow: 0 14px 34px rgba(43, 38, 40, .08);
    transform: translateY(-2px);
  }
}
.card__num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 17px;
}
.card h3 { font-size: 20px; margin: 20px 0 10px; line-height: 1.3; }
.card p { font-size: 14.5px; line-height: 1.65; color: #766B6F; margin: 0; }

/* ---------------------------------------------------------
   Prices
   --------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.prices { padding: clamp(24px, 3.5vw, 46px); }

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.card-head h2 { margin: 0; }
.currency {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
}
.prices__note {
  font-size: 14px;
  color: var(--muted-3);
  margin: 0 0 18px;
}

.price-list { display: flex; flex-direction: column; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px;
  border-top: 1px solid var(--line-4);
}
.price-row__name {
  font-size: 16px;
  color: #37302F;
  font-weight: 400;
  flex: 1 1 auto;
}
.price-row__leader {
  flex: 1 1 20px;
  border-bottom: 1px dotted #DDCFD2;
  min-width: 16px;
  transform: translateY(-4px);
}
.price-row__value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   About / doctor
   --------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #EEE0E2;
  background-color: #F4EDEC;
  max-width: 460px;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__ph {
  text-align: center;
  padding: 24px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.about__ph b {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: #A08F92;
  text-transform: uppercase;
}
.about__ph span { font-size: 11px; color: #B8A9AC; display: block; margin-top: 8px; }

.about h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 12px 0 6px; }
.about__role { font-size: 15px; color: var(--accent); font-weight: 400; margin-bottom: 18px; }
.about p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 14px; }
.about p:last-of-type { margin-bottom: 0; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}
.tags li {
  list-style: none;
  background: var(--accent-soft-2);
  color: var(--accent-dark);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact {
  max-width: var(--wrap);
  margin: clamp(40px, 6vw, 88px) auto 0;
  padding-inline: var(--gutter);
}

.contact__grid {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact__main { padding: clamp(26px, 3.5vw, 46px); }
.contact__main h2 { font-size: clamp(25px, 3.4vw, 38px); margin: 12px 0 20px; }

.note {
  background: var(--accent-soft-3);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #6B5257;
  margin: 0 0 26px;
}

.facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 26px;
  padding: 0;
}
.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fact svg { margin-top: 2px; flex: 0 0 auto; }
.fact__label {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
}
.fact__value {
  display: block;
  margin-top: 4px;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.fact__value a { color: var(--ink-2); overflow-wrap: anywhere; }
.fact__value a:hover { color: var(--accent); }

.label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
}
.messengers li { list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .2s, color .2s;
}
.chip--wa { background: #F1F8F2; color: #1D6B36; }
.chip--wa:hover { background: #E3F2E6; color: #14512A; }
.chip--vb { background: #F4F0FB; color: #5B3B9E; }
.chip--vb:hover { background: #EBE3F8; color: #472E7C; }
.chip--tg { background: #EEF6FC; color: #1D6FA5; }
.chip--tg:hover { background: #E1EFF9; color: #145A85; }
/* у почты нет фирменного цвета — берём акцент сайта */
.chip--mail { background: var(--accent-soft-2); color: var(--accent-dark); }
.chip--mail:hover { background: #F0DAE1; color: var(--accent-darker); }

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.socials li { list-style: none; }
.socials a {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #EDDFE2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background-color .2s;
}
.socials a:hover { border-color: var(--accent); background: #FCF4F6; }
.socials__note { font-size: 13px; color: #B0A2A5; }

.contact__map {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border-left: 1px solid var(--line);
}
.contact__map iframe {
  border: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 260px;
  filter: saturate(.85);
}

.wayfind {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: #FAF3F4;
  border-top: 1px solid var(--line);
}
.wayfind__thumbs { display: flex; gap: 8px; flex: 0 0 auto; }
.wayfind img {
  width: 78px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}
.wayfind img.is-street { object-position: 72% 40%; }
.wayfind p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-2);
  margin: 0;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.footer {
  margin-top: clamp(44px, 6vw, 90px);
  background: var(--ink);
  color: #E7DEDF;
}
.footer__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(34px, 4vw, 58px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.footer__brand { font-family: var(--serif); font-size: 22px; color: #fff; }
.footer__brand em { color: var(--accent-light); font-style: normal; }
.footer__city {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #9B8E90;
  margin-top: 6px;
}
.footer p {
  font-size: 14px;
  color: #A79A9C;
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 250px;
}
.footer__label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #877A7C;
  margin-bottom: 12px;
}
.footer__val { font-size: 15px; line-height: 1.7; color: #DCD2D3; }
.footer__val .dim { color: #877A7C; }
.footer a { color: var(--accent-light); }
.footer a.muted { color: #A79A9C; }
.footer a.muted:hover { color: var(--accent-light); }
.footer__bottom { border-top: 1px solid #3B3436; }
.footer__bottom > div {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter);
  font-size: 13px;
  color: #7E7274;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------------------------------------------------------
   Modal: документы и полный прайс
   --------------------------------------------------------- */

/* специфичнее, чем `.about p`, иначе отступ съедается */
.about .about__docs { margin: 30px 0 0; }
.prices__actions { margin: 22px 0 0; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 32px);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 40, .55);
  animation: modalFade .2s ease-out;
}
@supports (backdrop-filter: blur(3px)) {
  .modal__backdrop { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}

.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86dvh, 900px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(43, 38, 40, .3);
  overflow: hidden;
  animation: modalIn .24s cubic-bezier(.2, .8, .3, 1);
}

.modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.modal__title {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0;
  flex: 1 1 auto;
}
.modal__close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line-3);
  background: var(--surface);
  border-radius: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background-color .2s;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); background: #FCF4F6; }

.modal__body {
  padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 32px) calc(clamp(18px, 3vw, 30px) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* --- полный прайс внутри модалки --- */
.ptable { width: 100%; border-collapse: collapse; }
.ptable caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--muted-3);
  margin-bottom: 14px;
}
.ptable th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.ptable th:last-child, .ptable td:last-child { text-align: right; }
.ptable td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-4);
  font-size: 15px;
  line-height: 1.5;
  color: #37302F;
  vertical-align: top;
}
.ptable td:first-child {
  width: 30px;
  color: var(--label);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ptable td:last-child {
  white-space: nowrap;
  padding-left: 16px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* --- документы внутри модалки --- */
.docs__group + .docs__group { margin-top: 26px; }
.docs__label {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 12px;
}
.docs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.docs__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #FDFAFA;
}
.docs__item b { display: block; font-weight: 500; font-size: 15.5px; color: var(--ink); }
.docs__item span { display: block; font-size: 14px; color: var(--muted-2); margin-top: 5px; line-height: 1.55; }

.docs__file {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.filelink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent-soft-2);
  color: var(--accent-dark);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .2s, color .2s;
}
.filelink:hover { background: #F0DAE1; color: var(--accent-darker); }
.filelink small { font-weight: 400; opacity: .7; }

.modal__note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-3);
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    animation: modalUp .26s cubic-bezier(.2, .8, .3, 1);
  }
  .modal__head { padding: 18px 16px; }
  .modal__body { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
  .ptable td { font-size: 14.5px; padding: 12px 0; }
  .ptable td:last-child { font-size: 16px; padding-left: 12px; }
  .about__docs .btn, .prices__actions .btn { width: 100%; }
  .filelink { flex: 1 1 100%; justify-content: center; }
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

/* когда модалка открыта — фон не скроллим */
body.is-locked { overflow: hidden; }
body.is-locked .fab { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------
   Floating contact button
   --------------------------------------------------------- */

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* redundant once the contact block is on screen — and it sits right on top
   of the messenger buttons there */
.fab.is-hidden {
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
}
.fab {
  transition: opacity .25s, transform .25s;
}

.fab__menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.fab__menu.is-open { display: flex; }
.fab__menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 11px 16px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(43, 38, 40, .16);
  animation: fabIn .22s ease-out both;
}
.fab__menu a.is-wa { color: #1D6B36; }
.fab__menu a.is-vb { color: #5B3B9E; }
.fab__menu a.is-tg { color: #1D6FA5; }
.fab__menu a.is-mail { color: var(--accent-dark); }

.fab__toggle {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(166, 58, 94, .35);
  animation: fabPulse 2.8s ease-out infinite;
}
.fab__toggle svg { transition: transform .25s; }
.fab__toggle[aria-expanded="true"] svg { transform: rotate(135deg); }

@keyframes fabPulse {
  0%   { box-shadow: 0 12px 28px rgba(166, 58, 94, .35), 0 0 0 0 rgba(166, 58, 94, .35); }
  70%  { box-shadow: 0 12px 28px rgba(166, 58, 94, .35), 0 0 0 18px rgba(166, 58, 94, 0); }
  100% { box-shadow: 0 12px 28px rgba(166, 58, 94, .35), 0 0 0 0 rgba(166, 58, 94, 0); }
}
@keyframes fabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* --- tablets and below ---------------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
  .contact__map { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- narrow tablets: the two hero columns get too tight --- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(24px, 4vw, 40px);
  }
  /* the photo sells the place faster than the copy does */
  .hero__media { order: -1; }
  .hero__sub { max-width: 620px; }
  .slider { height: clamp(240px, 44vw, 380px); }
}

/* --- phones --------------------------------------------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --radius: 20px; --radius-sm: 18px; }

  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero__sub { font-size: 16px; margin-top: 16px; }
  .hero__cta { margin-top: 24px; gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .trust { margin-top: 22px; gap: 8px 18px; font-size: 13px; }

  .slider { height: 58vw; min-height: 230px; max-height: 340px; }
  .slider__nav { display: none; }        /* swipe + dots on touch */
  .slider__dots { bottom: 12px; }

  .sec-head { margin-bottom: 24px; display: block; }
  .sec-head p { margin-top: 12px; max-width: none; }

  .cards,
  .cards--4 { grid-template-columns: 1fr; gap: 12px; }
  .svc-group + .svc-group { margin-top: 24px; }
  .card { padding: 22px 20px 24px; }
  .card h3 { font-size: 19px; margin-top: 16px; }

  .prices { padding: 22px 18px 26px; }
  /* the dotted leader reads as a divider once it wraps — drop it and
     let the name wrap under a right-aligned price instead */
  .price-row {
    gap: 12px;
    padding: 14px 2px;
  }
  .price-row__name { flex: 1 1 auto; font-size: 15.5px; }
  .price-row__leader { display: none; }
  .price-row__value { flex: 0 0 auto; font-size: 17px; }

  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; margin-inline: auto; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__main { padding: 24px 18px 28px; }
  .note { padding: 16px 18px; font-size: 15px; }
  .chip { flex: 1 1 auto; justify-content: center; }
  /* четыре канала связи ложатся сеткой 2x2 */
  .messengers li { flex: 1 1 calc(50% - 5px); display: flex; }
  .contact__map { min-height: 0; }
  .contact__map iframe { min-height: 240px; }
  .wayfind { flex-wrap: wrap; }
  .wayfind p { flex: 1 1 100%; }

  /* inline contact links need a finger-sized box, without breaking wrapping */
  .fact__value a,
  .footer__val a { display: inline-block; padding: 8px 0; }
  .fact__value { margin-top: 0; }

  .footer__grid { gap: 24px; }
  .footer__bottom > div { flex-direction: column; gap: 6px; }

  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .fab__toggle { width: 54px; height: 54px; }
}

/* --- very narrow phones ---------------------------------- */
@media (max-width: 380px) {
  .brand__sub { letter-spacing: .22em; font-size: 9.5px; }
  .lang button { padding: 8px 9px; }
}

/* ниже ~350px две колонки уже режут текст на кнопках */
@media (max-width: 350px) {
  .messengers li { flex: 1 1 100%; }
}

/* --- short landscape phones ------------------------------ */
@media (max-height: 480px) and (orientation: landscape) {
  .slider { height: 62vh; min-height: 200px; }
  .mobile-menu { max-height: calc(100dvh - 56px); }
}

/* --- print ----------------------------------------------- */
@media print {
  .header, .fab, .slider, .contact__map, .skip-link { display: none !important; }
  body { background: #fff; }
  .panel, .card { box-shadow: none; }
}

/* --- motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .slider__track { transition: none; }
}
