/* PapaDent — site styles */
/* Theme tokens. Default = «Небесний» (sky); alternatives via html[data-theme] (preview: ?style=ocean|mint|classic) */
:root {
  --ink: #0f1c2e;
  --ink-soft: #3a4a60;
  --muted: #5d6d82;
  --teal: #2a78e4;
  --teal-dark: #1b5fc2;
  --teal-soft: #eaf2fe;
  --sun: #2a78e4;
  --accent-hover: #1b5fc2;
  --on-accent: #ffffff;
  --accent-shadow: rgba(42, 120, 228, .45);
  --accent-strong: #b88300;
  --sun-soft: #fff4d1;
  --highlight: #ffd25a;
  --note-text: #5e4700;
  --cream: #f3f7fe;
  --lavender: #e6eefb;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e2e9f3;
  --on-dark: #e4ecf8;
  --on-dark-muted: #a7b7ce;
  --header-bg: rgba(255, 255, 255, .92);
  --focus-ring: rgba(42, 120, 228, .2);
  --overlay: rgba(10, 20, 40, .6);
  --danger: #b43c3c;
  --ok: #2f7d5b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -22px rgba(15, 28, 46, .3);
  --shadow-sm: 0 6px 18px -12px rgba(15, 28, 46, .22);
  --wrap: 1200px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Onest", system-ui, sans-serif;
  --head-weight: 700;
  --font-mark: "Cutive", Georgia, serif;
}
html[data-theme="ocean"] {
  --highlight: #ff8a65;
  --ink: #0d2b36;
  --ink-soft: #3b5561;
  --muted: #62777f;
  --teal: #1f6f86;
  --teal-dark: #145668;
  --teal-soft: #e4f1f3;
  --sun: #ff8a65;
  --accent-hover: #ff9b7a;
  --on-accent: #ffffff;
  --accent-shadow: rgba(240, 110, 70, .55);
  --accent-strong: #d4582f;
  --sun-soft: #fff0ea;
  --note-text: #7f3a20;
  --cream: #f2f7f7;
  --lavender: #e3eef0;
  --bg: #fbfdfd;
  --line: #e1eaec;
  --on-dark: #e1eef1;
  --on-dark-muted: #a5bdc4;
  --header-bg: rgba(251, 253, 253, .9);
  --focus-ring: rgba(31, 111, 134, .18);
  --overlay: rgba(8, 28, 36, .6);
}

html[data-theme="mint"] {
  --highlight: #f4a940;
  --ink: #10302b; --ink-soft: #3f5a55; --muted: #687d78;
  --teal: #1d8a74; --teal-dark: #146b5a; --teal-soft: #e2f4ef;
  --sun: #f4a940; --accent-hover: #f7b95e; --on-accent: #10302b; --accent-shadow: rgba(214, 140, 30, .55);
  --accent-strong: #a8660a; --sun-soft: #fdf1dd; --note-text: #6b4a12;
  --cream: #f6f4ec; --lavender: #e4efe9; --bg: #fcfcf8; --line: #e4e8e0;
  --on-dark: #e2efeb; --on-dark-muted: #a3c0b8; --header-bg: rgba(252, 252, 248, .9);
  --focus-ring: rgba(29, 138, 116, .18); --overlay: rgba(10, 32, 28, .6);
  --font: "Manrope", system-ui, sans-serif; --font-head: "Manrope", system-ui, sans-serif; --head-weight: 800;
}
html[data-theme="classic"] {
  --highlight: #efbd62;
  --ink: #232857; --ink-soft: #4b5078; --muted: #6d7290;
  --teal: #3f7596; --teal-dark: #2c5a76; --teal-soft: #e3eef4;
  --sun: #efbd62; --accent-hover: #f5c978; --on-accent: #232857; --accent-shadow: rgba(209, 150, 40, .9);
  --accent-strong: #b77c12; --sun-soft: #fbf0d9; --note-text: #6b5220;
  --cream: #f7f2e2; --lavender: #e4e8f2; --bg: #fcfbf7; --line: #e6e4dc;
  --on-dark: #e9ebf7; --on-dark-muted: #c3c7e0; --header-bg: rgba(252, 251, 247, .94);
  --focus-ring: rgba(63, 117, 150, .15); --overlay: rgba(20, 23, 52, .55);
  --font: "Manrope", system-ui, sans-serif; --font-head: "Nunito", "Manrope", sans-serif; --head-weight: 800;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: var(--head-weight); letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: var(--head-weight); letter-spacing: -.02em; }
h3 { font-size: 21px; font-weight: var(--head-weight); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--cream); }
.section--sky { background: var(--teal-soft); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 18px; }
.section--ink .section__head p { color: var(--on-dark-muted); }
.eyebrow { display: inline-block; font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow--light { color: rgba(255, 255, 255, .72); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sun); color: var(--on-accent); box-shadow: 0 10px 22px -12px var(--accent-shadow); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__phone { white-space: nowrap; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.topbar__info a { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark); }
.topbar__info a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 16px; height: 16px; opacity: .8; }
.social { display: flex; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background .2s; }
.social a:hover { background: rgba(255,255,255,.14); }
.social svg { width: 18px; height: 18px; opacity: 1; }

.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* shadow is always on; .is-stuck kept as a hook */
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { width: auto; height: 54px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font: 400 30px/1 var(--font-mark); letter-spacing: -.01em; white-space: nowrap; }
/* width of the tagline follows the wordmark; site.js fits the font size exactly */
.logo__sub { font: 600 11px/1.2 var(--font); color: var(--muted); margin-top: 5px; width: 0; min-width: 100%; white-space: nowrap; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 11px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.nav a:hover, .nav .active > a { background: var(--teal-soft); color: var(--teal-dark); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 290px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 600; white-space: normal; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.phone-link { font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; font: 700 13px/1.2 var(--font); text-decoration: none; color: var(--muted); text-transform: uppercase; }
.lang .is-current { background: var(--teal); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--teal-soft); color: var(--ink); cursor: pointer; }
.burger svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1040px) {
  .burger { display: grid; }
  .header .wrap { min-height: 70px; }
  .logo img { height: 46px; }
  .nav { position: fixed; inset: 0; margin: 0; background: var(--bg); padding: 90px 20px 30px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; z-index: 60; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { font-size: 19px; padding: 12px 14px; white-space: normal; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; background: none; }
  .nav .sub a { font-size: 16px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; }
  .nav .has-sub > a::after { display: none; }
  .nav__close { position: absolute; top: 14px; right: 20px; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .topbar__hours { display: none !important; }
}
.nav__extra { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 1041px) { .nav__close, .nav__extra { display: none !important; } }
@media (max-width: 560px) {
  .topbar__addr { display: none !important; }
  .topbar .wrap { justify-content: center; }
  .topbar .social a { width: 30px; }
  .logo__sub { display: none; }
  .logo__mark { font-size: 24px; }
}
body.nav-open { overflow: hidden; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: radial-gradient(900px 480px at 88% 20%, var(--teal-soft), transparent 70%), radial-gradient(600px 400px at 0% 100%, var(--sun-soft), transparent 70%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero__media { position: relative; }
.hero__photo { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; background: var(--lavender); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: -22px; bottom: 34px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow); max-width: 280px; }
.hero__badge img { width: 54px; height: auto; }
.hero__badge b { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.15; }
.hero__badge small { color: var(--muted); font-size: 13.5px; line-height: 1.3; display: block; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--ink-soft); font-weight: 600; font-size: 15.5px; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__badge { left: 12px; bottom: 12px; }
}

/* Page hero */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); background: radial-gradient(800px 420px at 95% 0%, var(--teal-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.page-hero--media .wrap { grid-template-columns: 1.15fr .85fr; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 14px; }
.page-hero .lead { max-width: 720px; margin-bottom: 24px; }
.page-hero__img { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; background: var(--lavender); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .page-hero--media .wrap { grid-template-columns: 1fr; } .page-hero__img { max-width: 440px; aspect-ratio: 4 / 3; } }

.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b9bccc; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-dark); text-decoration: underline; }

/* Cards / grids */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service-card__img { aspect-ratio: 16 / 10; background: var(--lavender); overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 8px; font-size: 20px; }
.service-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.service-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.service-card__price { color: var(--teal-dark); font-size: 15px; }
.arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); flex: none; transition: background .2s, color .2s; }
.service-card:hover .arrow { background: var(--sun); color: var(--ink); }
.arrow svg { width: 18px; height: 18px; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sun-soft); color: var(--accent-strong); }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
.section--ink .feature__icon { background: rgba(255,255,255,.1); color: var(--highlight); }
.section--ink .feature p { color: var(--on-dark-muted); }

/* Split block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.photo-stack { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.photo-stack img { border-radius: 22px; width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }
.photo-stack img:first-child { grid-row: span 2; aspect-ratio: 3 / 4.2; }
.photo-stack img:not(:first-child) { aspect-ratio: 1; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5a76' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.stat b { display: block; font: var(--head-weight) 36px/1.1 var(--font-head); color: var(--teal); }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cases gallery */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.case { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.case a { display: block; }
.case img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--lavender); }
.case--square img { aspect-ratio: 1; }
.case figcaption { padding: 14px 18px 18px; font-weight: 700; line-height: 1.35; }
.case figcaption small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review__stars { color: #e7a92e; letter-spacing: 3px; font-size: 18px; line-height: 1; }
.review blockquote { margin: 0; font-size: 16.5px; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.review figcaption small { display: block; font-weight: 500; color: var(--muted); }
.review figcaption small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.review figcaption small a:hover { color: var(--teal-dark); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender); color: var(--ink); font-weight: 800; flex: none; }

/* Prices */
.price-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.price-nav a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.price-nav a:hover { border-color: var(--teal); color: var(--teal-dark); }
.price-block { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 8px 26px 18px; margin-bottom: 22px; }
.price-block h2 { font-size: 24px; margin: 20px 0 6px; }
.price-block h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin: 18px 0 2px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 12px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 800; padding-left: 16px; color: var(--ink); }
.note { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--note-text); font-size: 15px; }

/* Content typography */
.content { max-width: 800px; }
.content h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .4em; }
.content li::marker { color: var(--teal); }
.content img { border-radius: 18px; }
.content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--highlight); background: #fff; border-radius: 0 16px 16px 0; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.content > :first-child { margin-top: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.layout__aside { position: sticky; top: 100px; display: grid; gap: 20px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .layout__aside { position: static; } }
.aside-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 26px; }
.aside-card h3 { color: #fff; }
.aside-card p { color: var(--on-dark-muted); font-size: 15.5px; }
.aside-card .phone-big { display: block; font: var(--head-weight) 24px/1.2 var(--font-head); color: #fff; text-decoration: none; margin: 4px 0 16px; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.aside-list a:hover, .aside-list .active a { color: var(--teal-dark); }

/* Blog */
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.post-card__img { aspect-ratio: 1.3; background: var(--lavender); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-soft), var(--cream)); }
.post-card__img--empty img { width: 42%; height: auto; object-fit: contain; opacity: .9; }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 18.5px; margin: 0; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-meta { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .active a, .pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-cover { border-radius: 26px; overflow: hidden; margin-bottom: 32px; max-height: 520px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta-band { background: var(--teal); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
@media (max-width: 880px) { .cta-band { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; gap: 14px; position: relative; z-index: 1; }
.form label { font-weight: 600; font-size: 14.5px; display: grid; gap: 6px; }
.input, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 16px/1.4 var(--font); }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--focus-ring); }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.form__consent { font-size: 13px; opacity: .8; margin: 0; }
.form__msg { display: none; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.form__msg.is-ok { display: block; background: #e3f4ec; color: var(--ok); }
.form__msg.is-err { display: block; background: #fbe7e7; color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; }
.cta-band .form label { color: #fff; }
.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.form-card label { color: var(--ink) !important; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .feature__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark); }
.contact-list .feature__icon svg { width: 22px; height: 22px; }
.contact-list b { display: block; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--lavender); border: 1px solid var(--line); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messengers a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px; }
.messengers a:hover { border-color: var(--teal); }
.messengers svg { width: 18px; height: 18px; }

/* Promo */
.promo { display: flex; gap: 20px; align-items: flex-start; }
.promo__value { flex: none; min-width: 96px; height: 96px; padding: 0 10px; border-radius: 24px; background: var(--highlight); color: var(--ink); display: grid; place-items: center; font: var(--head-weight) 30px/1 var(--font-head); }
.promo__value--teal { background: var(--teal-soft); color: var(--teal-dark); font-size: 22px; text-align: center; }
.promo h3 { margin-bottom: 6px; }
.promo > div { min-width: 0; }
.promo--compact { flex-direction: column; gap: 14px; padding: 20px; }
.promo--compact .promo__value { height: 60px; min-width: 84px; border-radius: 16px; font-size: 24px; }
.promo--compact h3 { font-size: 17px; margin: 0; }
.promo p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > :not(summary) { margin-top: 0; }
.faq details p:last-child { padding-bottom: 8px; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 26px; font-size: 15.5px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo__sub { color: var(--on-dark-muted); }
.footer .logo img { background: #fff; border-radius: 16px; padding: 6px; height: 62px; }
.footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #9ea3c4; }
.footer .hours td:last-child { color: #fff; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(252, 251, 247, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .callbar .btn { min-height: 46px; padding: 8px 12px; }
  body { padding-bottom: 70px; }
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: var(--overlay); }
.modal.is-open { display: grid; }
.modal__box { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 30px 26px 26px; position: relative; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--teal-soft); cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink); }
.modal h2 { font-size: 26px; margin-bottom: 8px; padding-right: 30px; }
.modal p.lead { font-size: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 14, 30, .92); display: none; place-items: center; padding: 20px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: calc(100vh - 80px); width: auto; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }

/* Misc */
.center { text-align: center; }
.mt-l { margin-top: 40px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.video-frame { border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-width: 340px; box-shadow: var(--shadow); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.team-photo { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.pie { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.pie__chart { width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(var(--teal) 0 35%, var(--sun) 35% 53%, #8fb3c9 53% 69%, #c9a36a 69% 85%, var(--ink-soft) 85% 95%, #e07b67 95% 100%); }
.pie__legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pie__legend li { display: flex; gap: 10px; align-items: baseline; }
.pie__legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; transform: translateY(1px); }
.pie__legend b { min-width: 44px; }
@media (max-width: 620px) { .pie { grid-template-columns: 1fr; justify-items: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
