/* G8-centre — Eurodon-inspired design system (adapted) */

:root {
  /* G8 brand */
  --blue: #4593ff;
  --blue-dark: #1275ff;
  --indigo: #646efa;
  --purple: #a578ff;

  /* Eurodon tokens mapped to G8 */
  --blue-soft: #e8f2ff;
  --blue-tint: #f3f8ff;
  --coral: #ff7a59;
  --coral-soft: #ffe8e1;
  --mint: #3bcfa9;
  --mint-soft: #def5ee;
  --lilac: #a578ff;
  --lilac-soft: #efeafe;
  --amber: #f5b53f;
  --amber-soft: #fff1d6;

  --ink: #323232;
  --ink-2: #4a4a55;
  --muted: #6b7a99;
  --muted-light: #9aa6bf;
  --line: #e5eaf2;
  --surface: #f4f7fb;
  --surface-2: #eef2f8;
  --white: #ffffff;
  --page-bg: #f2f5fa;

  --shadow-sm: 0 2px 8px rgba(50, 50, 50, 0.06);
  --shadow-md: 0 4px 24px rgba(50, 50, 50, 0.08);
  --shadow-lg: 0 12px 40px rgba(69, 147, 255, 0.12);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --font: 'Onest', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-h: 72px;
  --top-strip-h: 41px;
  --bottom-nav-h: 62px;
  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }

.icon { flex-shrink: 0; }

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

.text-blue { color: var(--blue); }

/* ── Top strip ── */
.top-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}

.top-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-strip__left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.top-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-strip__item .icon { color: var(--blue); }

/* Режим работы убран из шапки */
.top-strip__item--muted { display: none; }

.top-strip__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.top-strip__phone .icon { color: var(--blue); }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
  overflow: visible;
}

.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  overflow: visible;
}

.logo {
  flex-shrink: 0;
  margin-right: auto;
  position: relative;
  z-index: 101;
  line-height: 0;
}

.logo img {
  height: 70px;
  width: auto;
  border-radius: 8px;
  display: block;
  margin-block: calc((var(--header-h) - 70px) / 2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav a {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 100px;
  transition: background 0.2s var(--ease), color 0.2s;
}

.nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav a.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

/* ── Nav dropdown (Услуги) ── */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown__chev {
  transition: transform 0.2s var(--ease);
}

.nav-item--dropdown.is-open .nav-dropdown__chev,
.nav-item--dropdown:hover .nav-dropdown__chev {
  transform: rotate(180deg);
}

.nav-dropdown__wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-42%);
  padding-top: 10px;
  z-index: 200;
}

.nav-dropdown__wrap[hidden] {
  display: none;
}

.nav-dropdown__panel {
  position: relative;
  left: auto;
  transform: none;
  min-width: 660px;
  padding: 28px 32px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  animation: navDropIn 0.2s var(--ease);
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.nav-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown__list a {
  display: block;
  padding: 10px 12px;
  margin: 0 -12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  background: none;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown__list a:hover {
  color: var(--blue);
  background: var(--blue-tint);
}

/* Single-column list dropdown (Врачи) */
.nav-dropdown__panel--list {
  grid-template-columns: 1fr;
  min-width: 320px;
  max-width: 380px;
  padding: 8px 0;
}

.nav-dropdown__list--stack {
  gap: 0;
}

.nav-dropdown__list--stack li {
  border-bottom: 1px dashed var(--line);
}

.nav-dropdown__list--stack li:last-child {
  border-bottom: none;
}

.nav-dropdown__list--stack a {
  padding: 14px 24px;
  margin: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
}

.nav-dropdown__list--stack a:hover {
  background: var(--blue-tint);
}

.mobile-menu__group {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mobile-menu__sub {
  padding: 12px 20px 12px 32px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: var(--surface) !important;
  border-color: transparent !important;
}

.header-search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 10px 10px 18px;
  cursor: pointer;
}

.header-search .icon { color: var(--muted); }

.header-search__placeholder {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-light);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  top: calc(var(--top-strip-h) + var(--header-h));
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  padding: 20px;
  animation: slideDown 0.35s var(--ease);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__nav > a:not(.btn) {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.mobile-menu__nav .btn {
  margin-top: 4px;
  border: none;
}

.mobile-menu__nav .btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 8px 20px rgba(69, 147, 255, 0.35);
}

.mobile-menu__nav .btn--ghost {
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile bottom navigation ── */
.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  body:has(#bottomNav) {
    padding-bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 500;
    box-sizing: border-box;
    min-height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 0.5px solid var(--line);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .bottom-nav__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    gap: clamp(2px, 1.5vw, 8px);
  }

  .bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    max-width: 88px;
    padding: 4px clamp(2px, 1vw, 6px);
    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--muted);
    text-align: center;
    transition: color 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav__item span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bottom-nav__item.is-active {
    color: var(--blue);
  }

  .bottom-nav__icon {
    flex-shrink: 0;
    width: clamp(20px, 5.5vw, 22px);
    height: clamp(20px, 5.5vw, 22px);
  }

  .bottom-nav__fab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: clamp(48px, 13vw, 52px);
    height: clamp(48px, 13vw, 52px);
    margin: -22px clamp(4px, 1.5vw, 8px) 0;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(69, 147, 255, 0.45);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav__fab .bottom-nav__icon {
    width: clamp(22px, 6vw, 26px);
    height: clamp(22px, 6vw, 26px);
  }

  .bottom-nav__fab:active {
    transform: scale(0.96);
  }

  .bottom-nav__fab.is-active {
    box-shadow: 0 8px 24px rgba(69, 147, 255, 0.55);
  }

  /* Меню всегда поверх контента при скролле */
  body.mobile-menu-open .bottom-nav {
    z-index: 500;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 100px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn:active { transform: scale(0.97); }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--block { width: 100%; margin-top: 12px; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(69, 147, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(69, 147, 255, 0.45);
}

.btn--ghost {
  color: var(--blue);
  background: transparent;
}

.btn--ghost:hover { background: var(--blue-soft); }

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover { background: #1a1a1a; }

.btn--dark {
  background: var(--ink);
  color: #fff;
  padding: 16px 26px;
  border-radius: var(--radius-md);
  font-size: 15.5px;
  box-shadow: 0 12px 28px rgba(50, 50, 50, 0.18);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  border: 1px solid var(--line);
}

.btn--outline-dark {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 15px 24px;
}

.btn--surface {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-weight: 700;
}

.btn--white {
  background: var(--white);
  color: var(--ink);
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--mint { background: var(--mint); color: #fff; }
.tag--blue { background: var(--blue); color: #fff; }
.tag--coral { background: var(--coral); color: #fff; }
.tag--amber { background: var(--amber); color: var(--ink); }

/* ── Hero ── */
.hero {
  padding: 32px 0 0;
}

.hero__shell {
  position: relative;
}

.hero-swiper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  height: 580px;
}

.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-slide {
  height: 100%;
  padding: 56px 0 0 64px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.hero-slide--1 { background: #ffe5b4; }
.hero-slide--2 { background: #a8e4a0; }
.hero-slide--3 { background: #afdafc; }
.hero-slide--4 { background: #e6e6fa; }

.hero-slide__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.hero-slide__content {
  align-self: center;
}

.hero-slide__promo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.hero-slide__title {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero-slide__title span { color: var(--blue); }

.hero-slide__text {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-slide__visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  height: 100%;
  min-height: 0;
}

.hero-slide__visual img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.1));
  display: block;
}

.hero-swiper__footer {
  position: absolute;
  left: 64px;
  bottom: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-swiper__pagination {
  position: static !important;
  width: auto !important;
  display: flex;
  gap: 6px;
}

.hero-swiper__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 6px;
  border-radius: 99px;
  background: rgba(50, 50, 50, 0.2);
  opacity: 1;
  margin: 0 !important;
  transition: width 0.3s var(--ease), background 0.3s;
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
  width: 36px;
  background: var(--ink);
}

.hero-swiper__counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.hero-swiper__nav {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-swiper__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: background 0.2s;
}

.hero-swiper__btn:hover { background: var(--surface); }

.hero-swiper__btn--prev::after,
.hero-swiper__btn--next::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.hero-swiper__btn--prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.hero-swiper__btn--next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

/* ── Sections (Eurodon DSection) ── */
.edc-section {
  padding: 64px 0;
}

.edc-section--tight { padding-bottom: 32px; }

.edc-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.edc-section__head--center {
  text-align: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.edc-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.edc-section__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.edc-section__action::after { content: '→'; }

.edc-section__action:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* Toolbar */
.edc-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.edc-toolbar__title {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.edc-toolbar__action {
  flex-shrink: 0;
}

.edc-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow-x: auto;
}

.edc-tabs__btn {
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.edc-tabs__btn.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.edc-tabs-panels {
  margin-top: 4px;
}

.edc-tabs-panel[hidden] {
  display: none !important;
}

.edc-tabs-panel[data-panel="specialists"] .vrachi-card p {
  display: none;
}

.edc-tabs-panel[data-panel="specialists"] .vrachi-card {
  min-height: 70px;
  padding: 12px 44px 12px 18px;
  justify-content: center;
}

.edc-tabs-panel[data-panel="specialists"] .vrachi-card h3 {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.25;
}

.edc-tabs-panel[data-panel="specialists"] .vrachi-card__arrow {
  bottom: 50%;
  right: 16px;
  transform: translateY(50%);
  font-size: 16px;
}

/* Service columns */
.edc-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.edc-col {
  border-radius: 28px;
  padding: 28px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.edc-col--blue { background: var(--blue-soft); }
.edc-col--mint { background: var(--mint-soft); }
.edc-col--coral { background: var(--coral-soft); }

.edc-col__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.edc-col h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.edc-col ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edc-col li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.edc-col li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.edc-col--mint li::before { background: var(--mint); }
.edc-col--coral li::before { background: var(--coral); }

.edc-col__link {
  align-self: flex-start;
  margin-top: 20px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.edc-col__link::after { content: ' →'; }

.edc-col__link:hover { transform: translateY(-2px); }

.edc-col::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Mini category cards */
.edc-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.edc-mini__card {
  border-radius: 24px;
  padding: 22px;
  min-height: 150px;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.edc-mini__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.edc-mini__card--lilac { background: var(--lilac-soft); }
.edc-mini__card--amber { background: var(--amber-soft); }
.edc-mini__card--blue { background: var(--blue-soft); }
.edc-mini__card--coral { background: var(--coral-soft); }

.edc-mini__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.edc-mini__card h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.edc-mini__card p {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  max-width: 220px;
}

.edc-mini__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* Stats / Why us */
.edc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.edc-stat {
  border-radius: 24px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease);
}

.edc-stat:hover { transform: translateY(-2px); }

.edc-stat--blue { background: var(--blue-soft); }
.edc-stat--mint { background: var(--mint-soft); }
.edc-stat--coral { background: var(--coral-soft); }
.edc-stat--amber { background: var(--amber-soft); }
.edc-stat--lilac { background: var(--lilac-soft); }

.edc-stat__icon {
  display: none;
}

.edc-stat__num {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.edc-stat h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.edc-stat p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

/* Check-up bento */
.edc-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 280px 220px;
  gap: 18px;
  grid-template-areas:
    "main uzi lab"
    "main doc book";
}

.edc-bento__card {
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.edc-bento__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.edc-bento__card--main {
  grid-area: main;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #d6e5fe 100%);
  padding: 32px;
  min-height: 100%;
}

.edc-bento__card--uzi {
  grid-area: uzi;
  background: linear-gradient(135deg, var(--mint-soft) 0%, #c2ebdb 100%);
}

.edc-bento__card--lab {
  grid-area: lab;
  background: linear-gradient(135deg, var(--coral-soft) 0%, #ffd8c9 100%);
}

.edc-bento__card--doc {
  grid-area: doc;
  background: linear-gradient(135deg, var(--amber-soft) 0%, #ffd79a 100%);
}

.edc-bento__card--book {
  grid-area: book;
  background: linear-gradient(135deg, var(--lilac-soft) 0%, #dcd2fb 100%);
}

.edc-bento__card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 8px;
}

.edc-bento__card--main h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 320px;
}

.edc-bento__card p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
  max-width: 280px;
}

.edc-bento__cta {
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
}

.edc-bento__img {
  position: absolute;
  right: 16px;
  bottom: 0;
  max-height: 260px;
  width: auto;
  pointer-events: none;
}

/* About */
.edc-about {
  padding: 0 0 64px;
}

.edc-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 36px;
}

.edc-about__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-soft);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.edc-about__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.edc-about__text h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.edc-about__text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
  max-width: 540px;
  margin-bottom: 28px;
}

.edc-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.edc-about__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edc-about__img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 24px;
}

.edc-about__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.edc-metric {
  border-radius: 24px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edc-metric--blue { background: var(--blue-soft); }
.edc-metric--mint { background: var(--mint-soft); }
.edc-metric--coral { background: var(--coral-soft); }
.edc-metric--amber {
  display: none;
  background: var(--amber-soft);
}

.edc-metric__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.edc-metric__num {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 16px;
}

.edc-metric p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
  line-height: 1.35;
}

/* Branch / contact */
.edc-branch {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.edc-branch__map {
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--blue-soft);
}

.edc-branch__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.edc-branch__map-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  background: var(--blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.edc-branch__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edc-branch__body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.edc-branch__addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.edc-branch__addr .icon { color: var(--blue); margin-top: 2px; }

.edc-branch__hours {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
}

.edc-branch__hours-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.edc-branch__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
}

.edc-branch__hours-row span { color: var(--muted); }
.edc-branch__hours-row strong { font-weight: 600; }

.edc-branch__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* CTA */
.edc-cta {
  padding: 0 0 72px;
}

.edc-cta__card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.edc-cta__card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.edc-cta__card > p {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.edc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.edc-cta__phone {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 56px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand img {
  display: none !important;
}

.footer__brand p {
  font-size: 14px;
  opacity: 0.65;
  max-width: 280px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.footer__phone {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer__col h4,
.footer__cta h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a,
.footer__email {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}

.footer__col a:hover,
.footer__email:hover {
  opacity: 1;
  color: var(--blue);
}

.footer__email {
  display: none !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.45;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .edc-cols { grid-template-columns: 1fr; }
  .edc-mini { grid-template-columns: repeat(2, 1fr); }
  .edc-stats { grid-template-columns: repeat(2, 1fr); }
  .edc-about__metrics { grid-template-columns: repeat(2, 1fr); }
  .edc-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "main main"
      "uzi lab"
      "doc book";
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hide-mobile { display: none; }
  .hide-tablet { display: none; }
  .nav { display: none; }
  .burger { display: flex; }

  :root { --top-strip-h: 38px; }

  .top-strip {
    padding: 7px 0;
    font-size: 11px;
  }

  .top-strip__inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .top-strip__left {
    gap: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  .top-strip__item {
    font-size: 11px;
    line-height: 1.25;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-strip__item .icon {
    width: 12px;
    height: 12px;
  }

  .top-strip__phone {
    flex-shrink: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .mobile-menu { top: calc(var(--top-strip-h) + var(--header-h)); }

  .hero-swiper {
    height: auto;
    min-height: 480px;
  }

  .hero-swiper .swiper-wrapper,
  .hero-swiper .swiper-slide {
    height: auto;
  }

  .hero-slide {
    height: auto;
    min-height: 480px;
    padding: 40px 28px 40px;
  }

  .hero-slide__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .hero-slide__content { align-self: auto; }
  .hero-slide__text { margin-left: auto; margin-right: auto; }
  .hero-slide__actions { justify-content: center; }
  .hero-slide__visual {
    order: -1;
    align-self: auto;
    justify-content: center;
  }
  .hero-slide__visual img {
    max-height: 260px;
    object-position: bottom center;
  }

  .hero-swiper__footer { left: 28px; }
  .edc-about__grid { grid-template-columns: 1fr; }
  .edc-about__visual { min-height: 200px; }
  .edc-branch { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .edc-toolbar { flex-direction: column; align-items: stretch; }
  .edc-tabs { width: 100%; }
  .edc-mini { grid-template-columns: 1fr; }
  .edc-stats { grid-template-columns: 1fr; }
  .edc-about__metrics { grid-template-columns: 1fr; }
  .hero-swiper__nav { display: none; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__brand p { margin: 0 auto 12px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .top-strip__left { gap: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-slide__actions { flex-direction: column; width: 100%; }
  .hero-slide__actions .btn { width: 100%; }
}
