/* ==========================================================================
   maksymkats.com — design system
   ========================================================================== */

:root {
  --brand: #124390;
  --brand-700: #0f3a7d;
  --brand-600: #1a55b3;
  --brand-500: #2a6ad1;
  --brand-200: #c6d6f0;
  --brand-100: #e4ecf8;
  --brand-50: #f1f5fb;
  --navy: #0b1f44;

  --ink: #10192b;
  --ink-2: #3a4557;
  --ink-3: #6a7487;
  --ink-4: #98a2b3;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e2e7ef;
  --line-2: #ccd4e0;

  --accent: #f2b233;
  --accent-soft: #fdf1d3;
  --ok: #1f9d6a;
  --ok-soft: #e3f5ec;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16, 25, 43, .05), 0 2px 8px rgba(18, 67, 144, .05);
  --shadow-md: 0 4px 14px rgba(16, 25, 43, .06), 0 12px 32px rgba(18, 67, 144, .08);
  --shadow-lg: 0 20px 60px rgba(11, 31, 68, .18);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open, body.modal-open { overflow: hidden; }
html, body { overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; }
a { color: var(--brand-600); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
small { font-size: .875em; }
table { border-collapse: collapse; width: 100%; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #d9e2f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--brand-soft { background: var(--brand-50); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-500); border-radius: 2px; }
.section--navy .eyebrow { color: #9dbcf0; }
.section--navy .eyebrow::before { background: #9dbcf0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; text-decoration: none !important;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(18, 67, 144, .28); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 10px 24px rgba(18, 67, 144, .32); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand-200); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-50); }
.btn--light { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--brand-50); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 12px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--brand); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 31, 68, .06); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none !important; flex: none; }
.logo__icon { width: 34px; height: 37px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.logo__sub { font-size: .68rem; letter-spacing: .08em; color: var(--ink-3); margin-top: 3px; }
.logo--light .logo__name { color: #fff; }
.logo--light .logo__sub { color: #9db0d1; }
.logo--light { color: #fff; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list > li { margin: 0; position: relative; }
.nav__list a, .nav__sub-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  text-decoration: none !important; transition: background .15s, color .15s;
}
.nav__list a:hover, .nav__sub-toggle:hover { background: var(--brand-50); color: var(--brand); }
.nav__list a[aria-current="page"] { color: var(--brand); background: var(--brand-100); }
.nav__item--sub.is-active > .nav__sub-toggle { color: var(--brand); }
.nav__sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item--sub.is-open > .nav__sub-toggle svg { transform: rotate(180deg); }
.nav__sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item--sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub li { margin: 0; }
.nav__sub a { display: flex; width: 100%; border-radius: var(--r-sm); padding: 10px 12px; }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.site-header__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none !important; }
.site-header__phone svg { width: 20px; height: 20px; color: var(--brand); }
.site-header__phone:hover { color: var(--brand); }
.site-header__cta { padding: 13px 20px; font-size: .92rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { min-width: 0; }
@media (max-width: 1599px) {
  .site-header__phone span { display: none; }
  .site-header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 12px; background: var(--brand-50); }
  .nav__list a, .nav__sub-toggle { padding: 10px 9px; font-size: .9rem; }
  .site-header__cta { padding: 12px 16px; font-size: .88rem; }
  .site-header__in { gap: 16px; }
}
@media (max-width: 1023px) {
  .site-header__cta, .site-header__phone { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 99;
    padding: 20px var(--gutter) 40px; overflow: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
    display: flex; flex-direction: column;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a, .nav__sub-toggle { width: 100%; font-size: 1.15rem; padding: 14px 16px; border-radius: 12px; justify-content: space-between; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
  .nav__item--sub.is-open > .nav__sub, .nav__item--sub.is-active > .nav__sub { display: block; }
  .nav__sub a { font-size: 1.02rem; padding: 12px 16px; }
  .nav__mobile-extra { display: block; margin-top: auto; padding-top: 28px; }
  .nav__mobile-social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; justify-content: center; }
  .nav__mobile-social a { font-weight: 600; }
}

/* ---------- mobile bottom bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 1023px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .72rem; font-weight: 600; color: var(--ink-2); text-decoration: none !important; padding: 4px 0; border-radius: 10px; }
  .mobile-bar a:first-child { color: #fff; background: var(--brand); }
  .mobile-bar svg { width: 22px; height: 22px; }
  .nav-open .mobile-bar, .modal-open .mobile-bar { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(18, 67, 144, .10), transparent 70%),
    radial-gradient(40% 40% at 5% 90%, rgba(242, 178, 51, .10), transparent 70%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero__title { margin-bottom: 10px; }
.hero__title small { display: block; font-size: .42em; font-weight: 600; color: var(--brand-600); letter-spacing: 0; margin-top: .3em; }
.hero__lead { font-size: 1.25rem; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; }
.hero__text { font-size: 1.05rem; color: var(--ink-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__sign { display: flex; align-items: center; gap: 18px; }
.hero__sign img { width: 150px; height: auto; opacity: .85; }
.hero__sign span { font-size: .9rem; color: var(--ink-3); }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--brand-100); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero__badge {
  position: absolute; left: -28px; bottom: 40px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 280px;
}
.hero__badge-num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--brand); line-height: 1; white-space: nowrap; }
.hero__badge-text { font-size: .88rem; color: var(--ink-2); line-height: 1.3; }
.hero__badge--top { left: auto; right: -20px; bottom: auto; top: 36px; }
@media (max-width: 1023px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 28px; }
  .hero__media { order: -1; max-width: 420px; }
  .hero__photo { aspect-ratio: 4 / 4.4; }
  .hero__badge { left: 12px; bottom: -22px; padding: 12px 16px; }
  .hero__badge--top { right: 12px; top: 12px; left: auto; bottom: auto; }
  .hero__badge-num { font-size: 1.5rem; }
}
@media (max-width: 639px) {
  .hero__media { max-width: none; }
  .hero__photo { aspect-ratio: 4 / 4.6; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.trust__item span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 1023px) { .trust__in { grid-template-columns: repeat(2, 1fr); } .trust__item:nth-child(3) { border-left: 0; padding-left: 0; } .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 639px) { .trust__in { grid-template-columns: 1fr; } .trust__item { border-left: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); } .trust__item:last-child { border-bottom: 0; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card--flat { box-shadow: none; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service p { font-size: .95rem; color: var(--ink-2); margin: 0 0 16px; flex: 1; }
.service .link-arrow { font-size: .92rem; }
.service--link .link-arrow::after { content: ""; position: absolute; inset: 0; }
.service--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.service--primary h3, .service--primary p, .service--primary .link-arrow { color: #fff; }
.service--primary .service__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.service--primary:hover { border-color: var(--brand); box-shadow: 0 14px 34px rgba(18, 67, 144, .35); }
.service details { margin-top: auto; }
.service summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--brand); }
.service summary::-webkit-details-marker { display: none; }
.service summary svg { width: 16px; height: 16px; transition: transform .2s; }
.service details[open] summary svg { transform: rotate(180deg); }
.service details p { margin-top: 12px; font-size: .92rem; }
@media (max-width: 1023px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .services { grid-template-columns: 1fr; } }

/* ---------- cases (before / after) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); }
.case__pair a { position: relative; display: block; background: #000; }
.case__pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.case__pair a:hover img { opacity: .9; }
.case__pair a span { position: absolute; left: 10px; top: 10px; padding: 4px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; background: rgba(16, 25, 43, .7); color: #fff; backdrop-filter: blur(4px); }
.case__pair a:last-child span { background: var(--brand); }
.case__body { padding: 20px 22px 22px; }
.case__body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.case__body p { font-size: .92rem; color: var(--ink-2); margin: 0 0 10px; }
.case__price { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; }
@media (max-width: 1023px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .cases { grid-template-columns: 1fr; } }

/* ---------- about / timeline ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 8px; bottom: 8px; width: 2px; background: var(--brand-100); }
.timeline li { display: grid; grid-template-columns: 86px 1fr; gap: 26px; margin: 0 0 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 91px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-500); box-sizing: border-box; }
.timeline__year { font-family: var(--font-head); font-weight: 800; color: var(--brand); text-align: right; line-height: 1.5; white-space: nowrap; }
.timeline__text { color: var(--ink-2); font-size: .98rem; }
.about__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.about__photo { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-md); }
.about__photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 20%; }
.note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-lg); padding: 24px 26px; }
.note h3 { font-size: 1.12rem; }
.note p:last-child { margin-bottom: 0; }
.note--amber { background: var(--accent-soft); border-color: #f5dea0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; font-family: var(--font-head); }
.steps p { font-size: .95rem; color: var(--ink-2); margin: 2px 0 0; }
@media (max-width: 1023px) { .about { grid-template-columns: 1fr; } .about__aside { position: static; } .about__photo { max-width: 420px; } }

/* ---------- reviews ---------- */
.slider { position: relative; }
.slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 6px 16px; margin: -6px -6px 0; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.slider__nav { display: flex; gap: 10px; }
.slider__prev, .slider__next { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.slider__prev:hover, .slider__next:hover { background: var(--brand-50); border-color: var(--brand); }
.slider__prev svg, .slider__next svg { width: 20px; height: 20px; }
.review { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.review__stars { color: var(--accent); display: flex; gap: 2px; margin-bottom: 14px; }
.review__stars svg { width: 18px; height: 18px; }
.review__text { font-size: .98rem; color: var(--ink-2); flex: 1; margin-bottom: 18px; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-100); color: var(--brand); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; flex: none; }
.review__author strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.review__author span { font-size: .82rem; color: var(--ink-3); }
@media (max-width: 1023px) { .slider__item { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 639px) { .slider__item { flex-basis: 88%; } }

/* ---------- videos ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #0b1f44; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: .85; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); display: grid; place-items: center; transition: transform .2s, background .2s; }
.yt__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.yt:hover .yt__play { transform: scale(1.08); background: var(--brand-500); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: 1.05rem; margin: 14px 0 4px; }
.video-card p { font-size: .92rem; color: var(--ink-3); margin: 0; }

/* ---------- prices ---------- */
.price-table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--brand-50); font-weight: 700; }
.price-table td:last-child { text-align: right; font-family: var(--font-head); font-weight: 800; color: var(--brand); white-space: nowrap; }
.price-table td small { display: block; color: var(--ink-3); font-weight: 400; font-family: var(--font-body); }
.price-note { font-size: .9rem; color: var(--ink-3); margin-top: 12px; }
.price-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.price-tile span { display: block; font-size: .92rem; color: var(--ink-3); margin-bottom: 8px; }
.price-tile strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.price-tile small { display: block; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 767px) { .price-tiles { grid-template-columns: 1fr; } .price-table th, .price-table td { padding: 14px 16px; } }

/* ---------- guarantee ---------- */
.guarantee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guarantee-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: 30px; }
.guarantee-card svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.guarantee-card h3 { color: #fff; font-size: 1.3rem; }
.guarantee-card p { color: #b9c7e0; margin: 0; }
@media (max-width: 767px) { .guarantee-cards { grid-template-columns: 1fr; } }

/* ---------- contact block ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.contact-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none !important; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.contact-option:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.contact-option strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.contact-option small { color: var(--ink-3); }
.contact-option__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.contact-option__icon svg { width: 22px; height: 22px; }
.contact-option__icon--phone { background: var(--brand); }
.contact-option__icon--tg { background: #2aabee; }
.contact-option__icon--viber { background: #7360f2; }
.contact-option__icon--wa { background: #25d366; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.hours li:last-child { border-bottom: 0; }
.hours strong { font-family: var(--font-head); }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-100); border: 1px solid var(--line); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .9rem; }
.address-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.address-card h3 { font-size: 1.1rem; }
@media (max-width: 1023px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .contact-options { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d5e2f8; margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; }
@media (max-width: 767px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); }
.page-hero__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero__in--single { grid-template-columns: minmax(0, 860px); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 640px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.breadcrumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--ink-3); }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-4); }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--brand); }
@media (max-width: 1023px) { .page-hero__in { grid-template-columns: 1fr; } .page-hero__media { max-width: 480px; } }

/* ---------- prose (long articles) ---------- */
.prose { max-width: 780px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.04rem; }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--brand-500); }
.prose table { font-size: .95rem; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 8px; }
.prose .note { margin: 1.8em 0; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.15rem; color: var(--ink-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.sidebar__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.sidebar__card h3 { font-size: 1rem; margin-bottom: 12px; }
.sidebar__card ul { list-style: none; padding: 0; margin: 0; }
.sidebar__card li { margin: 0; border-top: 1px solid var(--line); }
.sidebar__card li:first-child { border-top: 0; }
.sidebar__card li a { display: block; padding: 9px 0; font-size: .93rem; color: var(--ink-2); }
.sidebar__card li a:hover, .sidebar__card li a[aria-current="page"] { color: var(--brand); text-decoration: none; }
.sidebar__card li a[aria-current="page"] { font-weight: 600; }
.sidebar__doctor { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sidebar__doctor img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.sidebar__doctor strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.sidebar__doctor span { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 1023px) { .article-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; transition: border-color .15s; }
.faq details[open] { border-color: var(--brand-200); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23124390' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__body { padding: 0 0 20px; color: var(--ink-2); }
.faq__body p:last-child, .faq__body ul:last-child { margin-bottom: 0; }

/* ---------- galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: var(--r-md); overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); opacity: .92; }
.gallery--certs a { background: #fff; }
.gallery--certs img { object-fit: contain; background: var(--brand-50); }
.gallery--portrait img { aspect-ratio: 3 / 4; }
.gallery figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 1023px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* case study (implantology page) */
.casestudy { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px); margin-bottom: 28px; }
.casestudy__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.casestudy__head h3 { margin: 0; }
.casestudy__meta { font-size: .9rem; color: var(--ink-3); margin-bottom: 14px; }
.casestudy__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.casestudy__steps figure a { display: block; border-radius: var(--r-md); overflow: hidden; background: #000; }
.casestudy__steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.casestudy__steps a:hover img { transform: scale(1.03); }
.casestudy__steps figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }
.casestudy__steps figcaption b { display: inline-block; font-family: var(--font-head); color: var(--brand); margin-right: 4px; }
@media (max-width: 1023px) { .casestudy__steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) { .casestudy__steps { grid-template-columns: repeat(2, 1fr); } }

/* comparison table */
.compare { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare table { font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--brand-50); }
.compare thead th:nth-child(2) { color: var(--brand); }
.compare tbody th { font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.compare td:nth-child(2) { font-weight: 600; color: var(--brand); background: rgba(18, 67, 144, .03); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) { .compare { overflow-x: auto; } .compare table { min-width: 560px; } }

/* feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.features li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 0; }
.features svg { width: 24px; height: 24px; flex: none; color: var(--ok); margin-top: 2px; }
.features strong { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.features span { font-size: .93rem; color: var(--ink-2); }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; } }

/* check list */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .6em; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%231f9d6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks--warn li::before { background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23d64545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* quote */
.quote { border-left: 4px solid var(--brand); background: #fff; border-radius: 0 var(--r-md) var(--r-md) 0; padding: 22px 26px; margin: 1.6em 0; }
.quote p { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 10px; }
.quote cite { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .92rem; }

/* related links */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.related a:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related strong { font-family: var(--font-head); font-size: 1rem; }
.related span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 1023px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .related { grid-template-columns: 1fr; } }

/* ---------- modal ---------- */
.modal[hidden], .lightbox[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 31, 68, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.modal__box { position: relative; width: 100%; max-width: 560px; background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; max-height: calc(100vh - 32px); overflow: auto; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.modal__close:hover { background: var(--brand-50); color: var(--ink); }
.modal__close svg { width: 22px; height: 22px; }
.modal__box h2 { font-size: 1.5rem; padding-right: 36px; }
.modal__lead { color: var(--ink-2); font-size: .98rem; }
.modal__hours { font-size: .88rem; color: var(--ink-3); margin: 0; }
.modal .contact-options { margin: 18px 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 12, 28, .92); opacity: 0; transition: opacity .2s; }
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__fig { position: relative; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: scale(.97); transition: opacity .2s, transform .2s; }
.lightbox.is-open .lightbox__fig { opacity: 1; transform: none; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox__fig figcaption { color: #c9d4e8; font-size: .92rem; margin-top: 12px; text-align: center; max-width: 720px; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: background .15s; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { right: 16px; top: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox__close svg, .lightbox__prev svg, .lightbox__next svg { width: 24px; height: 24px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
.lightbox__count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: #8fa3c7; font-size: .85rem; font-family: var(--font-head); font-weight: 600; }
@media (max-width: 639px) { .lightbox__prev, .lightbox__next { width: 40px; height: 40px; top: auto; bottom: 40px; margin: 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c7e0; padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .95rem; }
.site-footer a { color: #d9e2f2; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { margin: 18px 0; max-width: 340px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .muted { color: #8395b8; }
.site-footer__phone { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff !important; }
.site-footer__msg { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer__msg a { font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; transition: background .15s; }
.social a:hover { background: var(--brand-500); }
.social svg { width: 20px; height: 20px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8395b8; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn, .service, .case__pair img, .yt img { transition: none; } }
