:root {
  --bg: #f4eee8;
  --white: #ffffff;
  --text: #241f1c;
  --muted: #746b64;
  --blue: #b9976f;
  --cyan: #e9d6bf;
  --mint: #f7e9df;
  --dark: #26201d;
  --champagne: #d8bd91;
  --nude: #ead8ca;
  --line: rgba(38, 32, 29, 0.12);
  --shadow: 0 22px 70px rgba(64, 48, 38, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  position: relative;
  min-height: 100%;
  isolation: isolate;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 34vw 46vw at -8% 8%, rgba(216, 189, 145, 0.22), transparent 68%),
    radial-gradient(ellipse 38vw 26vw at 108% 14%, rgba(255, 255, 255, 0.62), transparent 70%),
    radial-gradient(ellipse 42vw 24vw at 96% 34%, rgba(234, 216, 202, 0.28), transparent 72%),
    radial-gradient(ellipse 36vw 46vw at -12% 52%, rgba(216, 189, 145, 0.16), transparent 70%),
    radial-gradient(ellipse 44vw 28vw at 112% 70%, rgba(255, 255, 255, 0.48), transparent 72%),
    radial-gradient(ellipse 38vw 30vw at 2% 88%, rgba(234, 216, 202, 0.22), transparent 70%),
    linear-gradient(180deg, #fbf8f4 0%, var(--bg) 52%, #faf6f0 100%);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}


body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
body::before {
  left: -18vw;
  top: 28vh;
  width: 52vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(216, 189, 145, 0.18), transparent 68%);
  transform: rotate(-22deg);
}
body::after {
  right: -22vw;
  top: 58vh;
  width: 62vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72), rgba(234, 216, 202, 0.2) 46%, transparent 70%);
  transform: rotate(18deg);
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.page-shell { position: relative; z-index: 1; width: min(1440px, 100%); margin: 0 auto; padding: 22px; overflow: visible; }
#site-header { min-height: 78px; }

.glass-panel {
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 44px), 1396px);
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(360px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 18px 48px rgba(64, 48, 38, 0.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 800; text-decoration: none; letter-spacing: 0.02em; }
.brand-mark { display: none; }
.brand-logo { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; }
.brand-logo-img { display: block; position: static; width: 50px; height: 50px; border-radius: 0; object-fit: contain; background: transparent; box-shadow: none; }
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-name { color: var(--dark); font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 0.95; letter-spacing: 0; text-transform: none; }
.brand-type { color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.header-contacts { display: grid; gap: 2px; min-width: 176px; color: var(--muted); font-size: 12px; line-height: 1.18; }
.header-phone { color: var(--dark); font-size: 14px; font-weight: 900; text-decoration: none; }
.header-address { max-width: 210px; }
.main-nav { display: flex; justify-content: center; gap: 6px; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: #26303d; font-size: 14px; text-decoration: none; }
.main-nav a:hover { background: rgba(185, 151, 111, 0.12); }
.header-action { padding: 12px 18px; border-radius: 12px; background: var(--dark); color: #fff; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--dark); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; border-radius: 999px; }

.hero {
  position: relative;
  height: calc(95svh - 114px);
  margin-top: 18px;
  padding: clamp(14px, 2.8vw, 34px);
  overflow: hidden;
  border-radius: 18px;
  background: #d8c1ad;
  box-shadow: var(--shadow);
  display: grid;
  align-items: end;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(38,32,29,0.78) 0%, rgba(38,32,29,0.46) 42%, rgba(38,32,29,0.05) 78%),
    linear-gradient(0deg, rgba(38,32,29,0.28), transparent 46%);
  pointer-events: none;
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.hero-content { position: relative; z-index: 2; width: min(620px, 100%); align-self: end; padding: clamp(20px, 3.1vw, 36px); border-radius: 18px; color: #fff; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: 0; }
h1 { max-width: 680px; margin-bottom: 16px; font-size: clamp(36px, 4.45vw, 62px); line-height: 1; }
.hero-lead { max-width: 560px; color: rgba(255,255,255,0.82); font-size: clamp(15px, 1.2vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .eyebrow { color: rgba(255,255,255,0.76); }
.hero .btn-soft { border-color: rgba(255,255,255,0.34); background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(12px); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 850; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--dark); color: #fff; box-shadow: 0 14px 30px rgba(64, 48, 38, 0.22); }
.hero .btn-primary { background: #fff; color: var(--dark); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.btn-soft { border-color: rgba(38,32,29,0.12); background: rgba(255,255,255,0.78); color: var(--dark); }
.opening-site-banner {
  width: min(1280px, calc(100% - 32px));
  min-height: 58px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(185,151,111,.28);
  border-radius: 14px;
  background: rgba(234,216,202,.58);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.opening-site-banner > div { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.opening-site-banner strong { flex: 0 0 auto; color: var(--dark); font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1; }
.opening-site-banner span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.opening-site-banner a { flex: 0 0 auto; color: var(--dark); font-size: 13px; font-weight: 800; text-underline-offset: 4px; }
.opening-site-price-badge { position: relative; display: inline-block; margin-left: 10px; padding-left: 10px; color: #98755f; font-size: 10px; font-weight: 800; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.opening-site-price-badge::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 2px; background: #c7a58f; }
.opening-site-price-note { max-width: 760px; margin: -26px 0 28px; padding-left: 14px; border-left: 2px solid #c7a58f; color: var(--muted); font-size: 13px; line-height: 1.55; }
.opening-site-price-note a, .opening-site-price-link { color: #795945; font-weight: 800; text-underline-offset: 3px; }
.service-price.has-opening-price { align-items: flex-start; flex-direction: column; }
.service-price .opening-site-price-badge { display: block; margin: 5px 0 0; }
.service-cta__price-repeat .opening-site-price-badge { margin-left: 12px; }
.opening-site-price-link { align-self: center; font-size: 12px; }
.opening-site-date-hint { display: block; margin-top: 5px; color: #8a6a54; font-size: 11px; font-weight: 650; line-height: 1.35; }
.specialist-photo img, .device-photo img, .visit-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.face-visual { position: absolute; inset: 28px; border-radius: 18px; background: linear-gradient(150deg, rgba(247,233,223,0.88), rgba(255,255,255,0.38), rgba(216,189,145,0.28)); }
.face-oval { position: absolute; left: 50%; top: 50%; width: 210px; height: 280px; border-radius: 48% 48% 44% 44%; background: linear-gradient(160deg, #e9c8b9, #fff3ee 45%, #ead8ca); transform: translate(-50%, -50%); box-shadow: inset -22px -18px 50px rgba(185,151,111,0.14); }
.device-line { position: absolute; right: 16%; width: 140px; height: 16px; border-radius: 999px; background: rgba(18,22,43,0.78); transform-origin: right center; }
.device-line--one { top: 34%; transform: rotate(-18deg); }
.device-line--two { top: 43%; transform: rotate(10deg); background: var(--champagne); }
.spark { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.88); box-shadow: 0 0 34px rgba(216,189,145,0.72); }
.spark--one { left: 16%; top: 18%; }
.spark--two { right: 18%; bottom: 20%; }
.visual-note { position: absolute; z-index: 2; right: clamp(16px, 3vw, 38px); bottom: clamp(16px, 3vw, 38px); padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.86); font-weight: 850; line-height: 1.1; box-shadow: 0 12px 34px rgba(64,48,38,0.12); backdrop-filter: blur(14px); }
.hero-mini-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: clamp(16px, 2.2vw, 26px); }
.mini-card { min-height: 78px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); box-shadow: none; backdrop-filter: blur(14px); }
.mini-card b { display: block; margin-bottom: 8px; color: #fff; font-size: clamp(20px, 2vw, 28px); line-height: 1; letter-spacing: 0; }
.mini-card span { color: rgba(255,255,255,0.74); font-weight: 750; }

.section { position: relative; padding: clamp(54px, 8vw, 110px) 0; }
.section::before { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 999px; background: rgba(255,255,255,0.34); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
#help::before { right: -8%; top: 12%; width: 34%; height: 42%; transform: rotate(-18deg); background: rgba(234,216,202,0.32); }
#services::before { left: -10%; top: 18%; width: 40%; height: 52%; transform: rotate(22deg); background: rgba(216,189,145,0.12); }
.devices-section::before { right: -12%; bottom: 4%; width: 46%; height: 38%; transform: rotate(14deg); background: rgba(255,255,255,0.42); }
.reviews-section::before { left: 8%; top: 2%; width: 28%; height: 24%; transform: rotate(-10deg); background: rgba(234,216,202,0.22); }
.contacts-section::before { right: -6%; top: 10%; width: 32%; height: 56%; transform: rotate(16deg); background: rgba(216,189,145,0.14); }
.section-head { width: min(920px, 100%); margin: 0 auto 28px; text-align: center; }
.section-head h2, .specialist-card h2, .cta-section h2, .contacts-info h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 0.98; }
.section-head--split { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr); gap: 24px; align-items: end; text-align: left; }
.section-head--split p:last-child { color: var(--muted); }
.section-head__action { justify-self: end; align-self: end; }
.section-more { display: flex; justify-content: center; margin-top: 22px; }
.problem-grid, .procedure-grid, .trust-grid, .device-grid, .review-grid { display: grid; gap: 16px; }
.problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.problem-grid article { min-height: 110px; display: grid; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.72); color: var(--dark); font-size: 18px; font-weight: 850; box-shadow: 0 14px 40px rgba(64,48,38,0.06); }
.procedure-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.procedure-card { min-height: 280px; display: grid; align-content: space-between; padding: 22px; border-radius: 16px; background: rgba(255,255,255,0.76); box-shadow: 0 18px 54px rgba(64,48,38,0.09); overflow: hidden; position: relative; }
.procedure-card__media { display: none; position: relative; height: 170px; margin: -22px -22px 18px; overflow: hidden; }
.procedure-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.services-grid .procedure-card { align-content: stretch; }
.services-grid .procedure-card__media { display: block; }
.procedure-card::before { content: ""; position: absolute; right: -40px; top: -48px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(216,189,145,0.46), transparent 70%); }
.procedure-card h3 { font-size: 31px; line-height: 1; }
.procedure-card p { color: var(--muted); }
.procedure-card__tag { width: max-content; padding: 7px 10px; border-radius: 8px; background: rgba(216,189,145,0.2); color: #8a6a43; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.procedure-card .btn { width: max-content; min-height: 40px; padding: 9px 13px; border-radius: 10px; }
.procedure-card__bottom { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.procedure-card__price { color: var(--dark); font-weight: 900; }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-grid article, .device-grid article, .review-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.76); box-shadow: 0 16px 44px rgba(64,48,38,0.07); }
.trust-grid b { color: var(--blue); }
.trust-grid h3, .device-grid h3 { font-size: 28px; line-height: 1; }
.trust-grid p, .device-grid p, .review-grid p, .specialist-card p, .cta-section p, .contacts-info li { color: var(--muted); }
.visit-layout { display: grid; grid-template-columns: minmax(320px, 0.62fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.visit-photo { position: relative; min-height: 360px; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 54px rgba(64,48,38,0.1); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { min-height: 168px; padding: 18px; border-radius: 10px; background: linear-gradient(160deg, #fff, rgba(247,233,223,0.72)); box-shadow: 0 14px 38px rgba(64,48,38,0.07); }
.steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 900; }
.steps p { font-weight: 850; }
.specialist-card { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(22px, 4vw, 42px); border-radius: 18px; }
.specialist-photo { min-height: 520px; margin: 0; border-radius: 18px; position: relative; overflow: hidden; box-shadow: 0 18px 54px rgba(64,48,38,0.1); }
.device-photo { position: relative; height: clamp(300px, 38vw, 520px); margin: 0 0 16px; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 54px rgba(64,48,38,0.1); }
.device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reviews-section { padding-top: 60px; }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-grid article { min-height: 210px; display: grid; align-content: space-between; }
.review-grid p { font-size: 18px; }
.review-grid b { color: var(--dark); }
.cta-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: 18px; }
.contacts-section { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr); gap: 22px; align-items: start; }
.contacts-info { padding: 18px 0; }
.contacts-info ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.contact-form { display: grid; gap: 14px; padding: 24px; border-radius: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--dark); font-weight: 850; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(38,32,29,0.12); border-radius: 10px; background: rgba(255,255,255,0.82); color: var(--text); }
.contact-form textarea { resize: vertical; }
.contact-form select { appearance: none; padding-right: 42px; }
.contact-form small { color: var(--muted); }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(220px, auto) 1fr auto; }
  .header-contacts { display: none; }
}

@media (max-width: 1040px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav, .header-action, .header-contacts { display: none; }
  .main-nav.is-open { position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); display: grid; padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.94); box-shadow: var(--shadow); }
  .menu-toggle { display: block; justify-self: end; }
  .specialist-card, .contacts-section, .section-head--split, .cta-section, .visit-layout, .services-catalog-hero { grid-template-columns: 1fr; }
  .services-catalog-photos { min-height: 300px; order: -1; }
  .section-head__action { justify-self: start; }
  .hero { height: calc(95svh - 100px); align-items: end; }
  .problem-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procedure-grid, .device-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body::before, body::after { display: none; }
  .page-shell { padding: 12px; }
  #site-header { min-height: 64px; }
  .site-header { top: 10px; width: calc(100% - 24px); min-height: 64px; padding: 10px 12px; border-radius: 14px; }
  .brand-logo { position: relative; display: inline-grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; }
  .brand-mark { display: none; }
  .brand-name { font-size: 20px; }
  .brand-type { font-size: 10px; }
  .hero { height: auto; min-height: 660px; border-radius: 14px; }
  .hero-mini-grid, .problem-grid, .procedure-grid, .trust-grid, .device-grid, .review-grid, .steps { grid-template-columns: 1fr; }
  .visual-note { display: none; }
  .section-head { text-align: left; }
}
.service-page-shell { padding-top: 22px; }
.services-catalog-hero { min-height: 430px; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.54fr) auto; gap: 22px; align-items: end; margin-top: 18px; padding: clamp(22px, 4vw, 44px); border-radius: 18px; overflow: hidden; }
.services-catalog-photos { position: relative; min-height: 330px; margin: 0; }
.services-catalog-photos img { position: absolute; display: block; object-fit: cover; box-shadow: 0 18px 48px rgba(64,48,38,0.14); }
.services-catalog-photos__main { inset: 0 52px 36px 0; width: calc(100% - 52px); height: calc(100% - 36px); border-radius: 18px; }
.services-catalog-photos__small { width: 42%; aspect-ratio: 1 / 1; border: 6px solid rgba(255,255,255,0.84); border-radius: 16px; }
.services-catalog-photos__small--top { top: 22px; right: 0; }
.services-catalog-photos__small--bottom { right: 28px; bottom: 0; }
.services-catalog-hero h1 { color: var(--dark); }
.services-catalog-section { padding-top: clamp(44px, 7vw, 86px); }
.service-page { padding-top: 16px; }
.service-hero {
  min-height: calc(88svh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  margin-top: 18px;
  padding: clamp(18px, 3.2vw, 42px);
  border-radius: 18px;
  overflow: hidden;
}
.service-hero__content { display: grid; align-content: center; max-width: 640px; }
.service-back { width: max-content; margin-bottom: 34px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.service-back:hover { color: var(--dark); }
.service-hero h1 { margin-bottom: 18px; color: var(--dark); }
.service-hero__lead { max-width: 580px; color: var(--muted); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.service-price { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.68); color: var(--dark); font-weight: 800; }
.service-hero__media { position: relative; min-height: 520px; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 54px rgba(64,48,38,0.12); }
.service-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr); gap: 22px; align-items: start; }
.service-intro__text { max-width: 780px; }
.service-intro__text h2, .service-cta h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.service-intro__text p:last-child, .service-flow .section-head p:last-child, .service-cta p, .service-contact-list { color: var(--muted); }
.service-summary { display: grid; gap: 14px; padding: 22px; border-radius: 16px; }
.service-summary div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.service-summary div:last-child { padding-bottom: 0; border-bottom: 0; }
.service-summary span { color: var(--muted); font-size: 13px; }
.service-summary b { color: var(--dark); font-size: 18px; }
.service-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-step-grid article { min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.76); box-shadow: 0 16px 44px rgba(64,48,38,0.07); }
.service-step-grid b { color: var(--blue); }
.service-step-grid h3 { margin: 18px 0 10px; font-size: 28px; line-height: 1; }
.service-step-grid p { color: var(--muted); }
.service-cta { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.68fr); gap: 24px; align-items: start; margin-bottom: 22px; padding: clamp(22px, 4vw, 44px); border-radius: 18px; }
.service-contact-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.service-contact-list a { text-decoration: none; }
.service-cta .contact-form { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }

@media (max-width: 1040px) {
  .service-hero, .service-intro, .service-cta { grid-template-columns: 1fr; }
  .service-hero { min-height: auto; }
  .service-hero__media { min-height: 420px; order: -1; }
  .service-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .service-page-shell { padding-top: 12px; }
  .service-hero, .services-catalog-hero { padding: 16px; border-radius: 14px; }
  .services-catalog-photos { min-height: 250px; }
  .services-catalog-photos__main { inset: 0 34px 28px 0; width: calc(100% - 34px); height: calc(100% - 28px); border-radius: 14px; }
  .services-catalog-photos__small { width: 38%; border-width: 4px; border-radius: 12px; }
  .service-hero__media { min-height: 330px; border-radius: 14px; }
  .service-back { margin-bottom: 22px; }
  .service-step-grid { grid-template-columns: 1fr; }
  .service-step-grid article { min-height: 170px; }
  .service-cta { padding: 18px; border-radius: 14px; }
}
.contact-form--compact { gap: 10px; padding: 18px; }
.contact-form--compact label:not(.policy-check) { gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.contact-form--compact input,
.contact-form--compact textarea,
.contact-form--compact select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(38,32,29,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.contact-form--compact textarea { min-height: 86px; resize: vertical; }
.order-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dark) 50%), linear-gradient(135deg, var(--dark) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.policy-check { display: flex !important; grid-template-columns: none; gap: 9px !important; align-items: flex-start; color: var(--muted) !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.35; }
.policy-check input { width: 17px; min-height: 17px; margin-top: 1px; accent-color: var(--dark); flex: 0 0 auto; }
.policy-check a { color: var(--dark); font-weight: 700; }
.form-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.form-status.is-success { color: #477247; }
.form-status.is-error { color: #8a2e25; }
.contact-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-form button:disabled { opacity: 0.65; cursor: wait; }
.order-modal[hidden] { display: none; }
.order-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.order-modal__overlay { position: absolute; inset: 0; background: rgba(38,32,29,0.42); backdrop-filter: blur(8px); }
.order-modal__panel { position: relative; width: min(460px, 100%); padding: 26px; border: 1px solid rgba(255,255,255,0.76); border-radius: 18px; background: rgba(255,255,255,0.94); box-shadow: var(--shadow); }
.order-modal__panel h2 { margin-bottom: 12px; font-size: 36px; line-height: 1; }
.order-modal__panel p { color: var(--muted); }
.order-modal__panel small { display: block; margin: 0 0 18px; color: var(--muted); }
.order-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(38,32,29,0.08); color: var(--dark); font-size: 22px; cursor: pointer; }
.policy-page { margin-top: 18px; padding: clamp(22px, 4vw, 44px); border-radius: 18px; }
.policy-page h2 { margin-top: 28px; font-size: 30px; line-height: 1; }
.policy-page p { max-width: 860px; color: var(--muted); }
@media (max-width: 640px) { .contact-form .form-grid { grid-template-columns: 1fr; } .order-modal__panel h2 { font-size: 30px; } }
@media (max-width: 640px) {
  .opening-site-banner { width: calc(100% - 20px); min-height: 0; padding: 12px 14px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .opening-site-banner > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .opening-site-banner strong { font-size: 20px; }
  .opening-site-banner span, .opening-site-banner a { font-size: 12px; }
  .opening-site-price-note { margin-top: -18px; }
  .procedure-card__price .opening-site-price-badge { display: block; margin: 5px 0 0; }
  .service-cta__price-repeat .opening-site-price-badge { display: block; margin: 5px 0 0; }
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 32px;
  padding: 28px;
  border: 1px solid rgba(111, 82, 61, 0.14);
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.82);
  box-shadow: 0 18px 48px rgba(64, 48, 38, 0.08);
  color: #3b302b;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 1fr) minmax(220px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.site-footer__brand,
.site-footer__contacts,
.site-footer__nav,
.site-footer__bottom {
  display: flex;
  gap: 10px;
}

.site-footer__brand {
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.site-footer__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f9e4c6, #b8895f 64%, #4b372b 100%);
}

.site-footer__brand b,
.site-footer__brand small {
  display: block;
}

.site-footer__brand b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.site-footer__brand small,
.site-footer__contacts span,
.site-footer__bottom {
  color: #746b64;
  font-size: 14px;
}

.site-footer__nav,
.site-footer__contacts {
  flex-direction: column;
}

.site-footer a {
  color: #3b302b;
  text-decoration: none;
}

.site-footer a:hover {
  color: #9d6d45;
}

.site-footer__bottom {
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(111, 82, 61, 0.14);
}

@media (max-width: 760px) {
  .site-footer {
    width: calc(100% - 24px);
    margin: 20px auto 24px;
    padding: 22px;
    border-radius: 18px;
  }

  .site-footer__main,
  .site-footer__bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Root service article pages */
.service-intro--article {
  align-items: stretch;
}

.service-longread {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.service-text-block {
  padding: 26px 28px;
  border: 1px solid rgba(87, 63, 46, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(61, 44, 33, 0.08);
}

.service-text-block h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  color: var(--ink);
}

.service-text-block p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.service-text-block p:last-child {
  margin-bottom: 0;
}

.service-text-block ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.service-text-block li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.service-text-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.service-text-block--note {
  border-color: rgba(171, 124, 82, 0.24);
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(246, 236, 226, 0.82));
}

@media (max-width: 720px) {
  .service-text-block {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* Home page detailed blocks */
.home-help-section .section-head--split {
  align-items: start;
}

.help-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.help-question-grid article {
  min-height: 128px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid rgba(111, 82, 61, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--dark);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  box-shadow: 0 16px 42px rgba(64, 48, 38, 0.06);
}

.problem-grid--soft article {
  min-height: 92px;
  align-items: center;
  color: var(--muted);
  font-size: 17px;
  font-weight: 720;
  background: rgba(255, 255, 255, 0.58);
}

.notice-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.notice-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.notice-card h2 {
  margin-bottom: 0;
}

.notice-card__text {
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.notice-card__text p {
  margin: 0;
}

.details-section {
  display: grid;
  gap: 18px;
}

.details-list {
  display: grid;
  gap: 14px;
}

.info-details {
  border: 1px solid rgba(111, 82, 61, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.info-details summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}

.info-details summary::-webkit-details-marker {
  display: none;
}

.info-details summary b {
  font-size: 20px;
  line-height: 1.25;
}

.info-details summary span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.details-content {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.65;
}

.details-content p {
  margin: 0 0 14px;
}

.two-column-list {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding-left: 20px;
}

.two-column-list li {
  break-inside: avoid;
  margin: 0 0 9px;
}

.recommendation-section {
  padding-top: 28px;
}

.recommendation-card {
  padding: 30px;
  border: 1px solid rgba(111, 82, 61, 0.13);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(247,239,231,0.72));
  box-shadow: 0 18px 48px rgba(64, 48, 38, 0.07);
}

.recommendation-card__intro {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.info-details--inside {
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

@media (max-width: 980px) {
  .help-question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .help-question-grid,
  .problem-grid--soft {
    grid-template-columns: 1fr;
  }

  .help-question-grid article,
  .problem-grid--soft article {
    min-height: auto;
  }

  .notice-card,
  .recommendation-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .info-details summary {
    display: grid;
    padding: 18px;
  }

  .details-content {
    padding: 0 18px 20px;
  }

  .two-column-list {
    columns: 1;
  }
}


/* Consultation component */
.consultation-section {
  align-items: stretch;
}

.consultation-card,
.consultation-form {
  min-width: 0;
}

.consultation-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 18px;
}

.consultation-card h2 {
  margin-bottom: 0;
}

.consultation-card p {
  color: var(--muted);
}

.consultation-card__list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.consultation-card__list a {
  color: var(--dark);
  text-decoration: none;
}

.consultation-form {
  align-content: start;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 18px;
}

.consultation-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 14px;
  border: 1px solid rgba(38,32,29,0.14);
  border-radius: 10px;
  background-color: rgba(255,255,255,0.86);
  color: var(--text);
}

@media (max-width: 640px) {
  .consultation-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Unified service cards */
.procedure-grid {
  align-items: stretch;
}

.procedure-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
}

.procedure-card__media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(150px, 15vw, 190px);
  margin: 0;
  background: rgba(216, 189, 145, 0.18);
}

.procedure-card__media img {
  object-position: center;
}

.procedure-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(132px, auto) auto;
  gap: 14px;
  width: 100%;
  padding: 18px;
}

.procedure-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.procedure-card__title {
  min-width: 0;
  margin: 0;
  font-size: clamp(25px, 2.15vw, 31px);
  line-height: 1;
}

.procedure-card__title-toggle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 3em;
  padding: 0 0 16px;
  border: 0;
  background: transparent;
  color: var(--dark);
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.procedure-card__title-toggle:disabled {
  cursor: default;
}

.procedure-card__title-text {
  display: -webkit-box;
  max-height: 3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.procedure-card__title-toggle.has-overflow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 1.35em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
}

.procedure-card__title-cue {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8a6a43;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}

.procedure-card__title-cue::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.procedure-card__title-toggle.has-overflow .procedure-card__title-cue,
.procedure-card__title-toggle.is-expanded .procedure-card__title-cue {
  opacity: 1;
  transform: translateY(0);
}

.procedure-card__title-toggle.is-expanded {
  min-height: 0;
}

.procedure-card__title-toggle.is-expanded .procedure-card__title-text {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.procedure-card__title-toggle.is-expanded::after {
  display: none;
}

.procedure-card__title-toggle.is-expanded .procedure-card__title-cue::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.procedure-card p {
  display: -webkit-box;
  min-height: 4.5em;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
}

.procedure-card__tag {
  align-self: start;
}

.procedure-card__bottom {
  align-self: end;
  min-height: 42px;
}

.procedure-card.is-title-expanded {
  align-self: start;
}

@media (max-width: 1040px) {
  .procedure-card__content {
    grid-template-rows: auto minmax(124px, auto) auto;
  }
}

@media (max-width: 640px) {
  .procedure-card__media {
    height: 168px;
  }

  .procedure-card__content {
    grid-template-rows: auto minmax(112px, auto) auto;
    gap: 12px;
    padding: 16px;
  }

  .procedure-card__title {
    font-size: 27px;
  }
}
/* Expandable service page hero title */
.service-hero__title {
  min-width: 0;
}

.service-hero__title-toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 22px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.service-hero__title-toggle:disabled {
  cursor: default;
}

.service-hero__title-text {
  display: -webkit-box;
  max-height: 4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.service-hero__title-toggle.has-overflow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1.55em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(250,246,240,0.96));
}

.service-hero__title-cue {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a6a43;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}

.service-hero__title-cue::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.service-hero__title-toggle.has-overflow .service-hero__title-cue,
.service-hero__title-toggle.is-expanded .service-hero__title-cue {
  opacity: 1;
  transform: translateY(0);
}

.service-hero__title-toggle.is-expanded {
  padding-bottom: 24px;
}

.service-hero__title-toggle.is-expanded .service-hero__title-text {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.service-hero__title-toggle.is-expanded::after {
  display: none;
}

.service-hero__title-toggle.is-expanded .service-hero__title-cue::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

@media (max-width: 640px) {
  .service-hero__title-text {
    max-height: 5em;
    -webkit-line-clamp: 5;
  }
}
/* Refined service page layout */
.service-page--refined .service-hero {
  align-items: center;
}

.service-page--refined .service-hero__actions {
  align-items: stretch;
  gap: 12px;
  margin-top: 24px;
}

.service-page--refined .service-price {
  position: relative;
  display: grid;
  align-content: center;
  min-width: min(280px, 100%);
  min-height: 72px;
  padding: 18px 22px 16px;
  border: 1px solid rgba(138, 106, 67, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(234,216,202,0.72));
  color: var(--dark);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 18px 42px rgba(64, 48, 38, 0.12);
}

.service-page--refined .service-price::before {
  content: "Стоимость";
  display: block;
  margin-bottom: 8px;
  color: #8a6a43;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-page--refined .service-hero__actions .btn {
  min-height: 72px;
  padding-inline: 22px;
  border-radius: 16px;
}

.service-page--refined .service-intro {
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(26px, 4vw, 44px);
}

.service-page--refined .service-intro--summary-only {
  display: block;
}

.service-page--refined .service-intro--summary-only .service-summary {
  max-width: 980px;
  margin: 0 auto;
}

.service-page--refined .service-summary--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.service-page--refined .service-summary--compact div {
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(111, 82, 61, 0.13);
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 16px 42px rgba(64,48,38,0.07);
}

.service-page--refined .service-summary--compact span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-page--refined .service-summary--compact b {
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.05;
}

.service-page--refined .service-longread {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1160px;
  padding-top: clamp(28px, 5vw, 62px);
}

.service-page--refined .service-text-block {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 18px;
}

.service-page--refined .service-text-block--main,
.service-page--refined .service-text-block--note {
  grid-column: 1 / -1;
  min-height: 0;
}

.service-page--refined .service-text-block--main {
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(247,233,223,0.66));
}

.service-page--refined .service-text-block--benefit {
  border-color: rgba(138, 106, 67, 0.18);
}

.service-page--refined .service-text-block--risk {
  border-color: rgba(138, 46, 37, 0.18);
  background: rgba(255, 250, 247, 0.78);
}

.service-page--refined .service-text-block--advice {
  border-color: rgba(111, 82, 61, 0.18);
  background: rgba(255,255,255,0.82);
}

.service-page--refined .service-text-block h2 {
  font-size: clamp(27px, 3.2vw, 40px);
}

.service-page--refined .service-cta {
  position: relative;
  overflow: hidden;
}

.service-page--refined .service-cta::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,189,145,0.34), transparent 70%);
  pointer-events: none;
}

.service-page--refined .service-cta > * {
  position: relative;
  z-index: 1;
}

.service-cta__price-repeat {
  display: inline-grid;
  gap: 7px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(138, 106, 67, 0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 34px rgba(64,48,38,0.08);
}

.service-cta__price-repeat span {
  color: #8a6a43;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-cta__price-repeat b {
  color: var(--dark);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
}

@media (max-width: 1040px) {
  .service-page--refined .service-summary--compact,
  .service-page--refined .service-longread {
    grid-template-columns: 1fr;
  }

  .service-page--refined .service-text-block--main,
  .service-page--refined .service-text-block--note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .service-page--refined .service-hero__actions {
    display: grid;
  }

  .service-page--refined .service-price,
  .service-page--refined .service-hero__actions .btn {
    width: 100%;
    min-height: 62px;
  }

  .service-page--refined .service-summary--compact div {
    min-height: auto;
    padding: 18px;
  }

  .service-page--refined .service-text-block {
    min-height: 0;
  }
}
/* Service hero lead and price polish */
.service-page--refined .service-price {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.service-page--refined .service-price::before {
  margin-bottom: 6px;
}

.service-page--refined .service-price::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--champagne);
}

.service-page--refined .service-hero__lead--ready {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.service-page--refined .service-hero__lead-text {
  display: -webkit-box;
  max-height: 5.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.service-page--refined .service-hero__lead.has-overflow:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 1.8em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(250,246,240,0.94));
}

.service-page--refined .service-hero__lead.is-expanded .service-hero__lead-text {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.service-hero__lead-toggle {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a6a43;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.service-page--refined .service-summary--compact {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.service-page--refined .service-summary--compact div {
  min-height: 96px;
}

@media (max-width: 640px) {
  .service-page--refined .service-hero__lead-text {
    max-height: 4.7em;
    -webkit-line-clamp: 3;
  }

  .service-page--refined .service-summary--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page--refined .service-summary--compact div {
    min-height: 86px;
  }
}
/* Service hero category and anchor lead */
.service-page--refined .service-hero .eyebrow span[data-service-field="category"] {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-left: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(138, 106, 67, 0.2);
  border-radius: 999px;
  background: rgba(216, 189, 145, 0.18);
  color: #6f5135;
  letter-spacing: 0.06em;
}

.service-page--refined .service-hero__lead.has-overflow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 1.8em;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(250,246,240,0.94));
}

.service-page--refined .service-hero__lead-toggle {
  text-decoration: none;
}

.service-page--refined .service-summary--compact {
  display: flex;
  justify-content: center;
}

.service-page--refined .service-summary--compact div {
  width: min(320px, 100%);
}
/* Hide duplicate intro summary */
.service-page--refined .service-intro--summary-only {
  display: none;
}
/* Service longread icons */
.service-page--refined .service-text-block {
  position: relative;
  padding-top: clamp(74px, 6vw, 86px);
}

.service-page--refined .service-text-block::before,
.service-page--refined .service-text-block::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service-page--refined .service-text-block::before {
  top: 24px;
  left: clamp(22px, 3vw, 30px);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(138, 106, 67, 0.18);
  border-radius: 50%;
  background: rgba(216, 189, 145, 0.14);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42);
}

.service-page--refined .service-text-block::after {
  top: 35px;
  left: calc(clamp(22px, 3vw, 30px) + 11px);
  width: 20px;
  height: 20px;
  background-color: #8a6a43;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.service-page--refined .service-text-block--main::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M15 3v5h5'/%3E%3Cpath d='M10 13h7'/%3E%3Cpath d='M10 17h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M15 3v5h5'/%3E%3Cpath d='M10 13h7'/%3E%3Cpath d='M10 17h5'/%3E%3C/svg%3E");
}

.service-page--refined .service-text-block--benefit::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.1L19 10l-5.2 1.9L12 17l-1.8-5.1L5 10l5.2-1.9z'/%3E%3Cpath d='M19 15l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 5.1L19 10l-5.2 1.9L12 17l-1.8-5.1L5 10l5.2-1.9z'/%3E%3Cpath d='M19 15l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z'/%3E%3C/svg%3E");
}

.service-page--refined .service-text-block--risk::before {
  border-color: rgba(138, 46, 37, 0.22);
  background: rgba(138, 46, 37, 0.08);
}

.service-page--refined .service-text-block--risk::after {
  background-color: #8a2e25;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8.1-8 9-4.6-.9-8-4-8-9V7z'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8.1-8 9-4.6-.9-8-4-8-9V7z'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.service-page--refined .service-text-block--advice::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5h12v16H6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5h12v16H6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
}

.service-page--refined .service-text-block--note::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}

.service-page--refined .service-text-block:not(.service-text-block--main):not(.service-text-block--benefit):not(.service-text-block--risk):not(.service-text-block--advice):not(.service-text-block--note)::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M8.5 12.5l2.2 2.2 4.8-5.4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M8.5 12.5l2.2 2.2 4.8-5.4'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  .service-page--refined .service-text-block {
    padding-top: 70px;
  }

  .service-page--refined .service-text-block::before {
    top: 20px;
    width: 38px;
    height: 38px;
  }

  .service-page--refined .service-text-block::after {
    top: 30px;
    left: calc(clamp(22px, 3vw, 30px) + 10px);
    width: 18px;
    height: 18px;
  }
}
/* Unified display headings */
.section-head h2,
.specialist-card h2,
.cta-section h2,
.contacts-info h2,
.notice-card h2,
.consultation-card h2,
.recommendation-card h2,
.service-intro__text h2,
.service-cta h2,
.service-text-block h2,
.service-step-grid h3,
.trust-grid h3,
.device-grid h3,
.procedure-card__title,
.info-details summary b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

/* Documents page */
.documents-hero {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 18px;
}

.documents-hero h1 {
  margin-bottom: 0;
  color: var(--dark);
}

.documents-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
}

.documents-section {
  padding-top: clamp(34px, 5vw, 62px);
}

.documents-list {
  display: grid;
  gap: 14px;
}

.document-card {
  overflow: hidden;
  border-radius: 18px;
}

.document-card details {
  padding: 0;
}

.document-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 20px 24px;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}

.document-card summary::-webkit-details-marker {
  display: none;
}

.document-card summary span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1;
}

.document-card summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.document-card details[open] summary::after {
  transform: rotate(225deg);
}

.document-card pre {
  max-height: 62vh;
  margin: 0;
  padding: 0 24px 24px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.documents-loading {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  color: var(--muted);
}

@media (max-width: 640px) {
  .documents-hero {
    padding: 22px;
    border-radius: 14px;
  }

  .document-card summary {
    min-height: 64px;
    padding: 18px;
  }

  .document-card pre {
    max-height: none;
    padding: 0 18px 20px;
    font-size: 13px;
  }
}
/* Cohesive home sections and larger content icons */
main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  left: clamp(22px, 4.5vw, 68px);
  top: calc(95svh - 30px);
  bottom: 220px;
  z-index: -1;
  width: 1px;
  background: linear-gradient(180deg, rgba(185,151,111,0), rgba(185,151,111,0.22) 10%, rgba(185,151,111,0.18) 86%, rgba(185,151,111,0));
}

.section:not(.documents-section),
.consultation-section {
  --section-icon-bg: rgba(216, 189, 145, 0.16);
  --section-icon-color: #8a6a43;
}

.section-head,
.notice-card > div:first-child,
.recommendation-card,
.specialist-card > div:first-child,
.cta-section > div:first-child,
.consultation-card,
.service-flow .section-head,
.service-intro__text {
  position: relative;
}

.section-head::before,
.notice-card > div:first-child::before,
.recommendation-card::before,
.specialist-card > div:first-child::before,
.cta-section > div:first-child::before,
.consultation-card::before,
.service-flow .section-head::before,
.service-intro__text::before {
  content: "";
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border: 1px solid rgba(138, 106, 67, 0.18);
  border-radius: 50%;
  background: var(--section-icon-bg);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.42), 0 18px 46px rgba(64,48,38,0.08);
}

.section-head::after,
.notice-card > div:first-child::after,
.recommendation-card::after,
.specialist-card > div:first-child::after,
.cta-section > div:first-child::after,
.consultation-card::after,
.service-flow .section-head::after,
.service-intro__text::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 32px;
  height: 32px;
  background-color: var(--section-icon-color);
  transform: translateX(-50%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.section-head--split::before,
.notice-card > div:first-child::before,
.specialist-card > div:first-child::before,
.cta-section > div:first-child::before,
.service-flow .section-head--split::before,
.service-intro__text::before {
  margin-right: 0;
  margin-left: 0;
}

.section-head--split::after,
.notice-card > div:first-child::after,
.specialist-card > div:first-child::after,
.cta-section > div:first-child::after,
.service-flow .section-head--split::after,
.service-intro__text::after {
  left: 18px;
  transform: none;
}

.home-help-section .section-head::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11v8'/%3E%3Cpath d='M12 7v12'/%3E%3Cpath d='M17 4v15'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M5 8l4-4 4 4 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11v8'/%3E%3Cpath d='M12 7v12'/%3E%3Cpath d='M17 4v15'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M5 8l4-4 4 4 6-6'/%3E%3C/svg%3E");
}

.help-results-section .section-head::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3C/svg%3E");
}

#services .section-head::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v6H6z'/%3E%3Cpath d='M8 9v12'/%3E%3Cpath d='M16 9v12'/%3E%3Cpath d='M9 14h6'/%3E%3Cpath d='M9 18h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v6H6z'/%3E%3Cpath d='M8 9v12'/%3E%3Cpath d='M16 9v12'/%3E%3Cpath d='M9 14h6'/%3E%3Cpath d='M9 18h6'/%3E%3C/svg%3E");
}

.notice-card > div:first-child::before,
.details-section .section-head::before {
  --section-icon-bg: rgba(138, 46, 37, 0.08);
  --section-icon-color: #8a2e25;
}

.notice-card > div:first-child::after,
.details-section .section-head::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8.1-8 9-4.6-.9-8-4-8-9V7z'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.4 8.1-8 9-4.6-.9-8-4-8-9V7z'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.recommendation-card::after,
.service-flow .section-head::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5h12v16H6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8'/%3E%3Cpath d='M9 3h6v4H9z'/%3E%3Cpath d='M6 5h12v16H6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E");
}

.specialist-card > div:first-child::after,
.service-intro__text::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 0 0-14 0c0 6.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 0 0-14 0c0 6.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.cta-section > div:first-child::after,
.consultation-card::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M9 15l2 2 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M9 15l2 2 4-4'/%3E%3C/svg%3E");
}

.help-question-grid,
.problem-grid,
.procedure-grid,
.details-list,
.specialist-card,
.cta-section,
.consultation-section {
  position: relative;
}

.help-question-grid::before,
.problem-grid::before,
.procedure-grid::before,
.details-list::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 24px;
  background: rgba(255,255,255,0.22);
  pointer-events: none;
}

.service-page--refined .service-text-block {
  padding-top: clamp(88px, 7vw, 104px);
}

.service-page--refined .service-text-block::before {
  width: 58px;
  height: 58px;
  box-shadow: inset 0 0 0 13px rgba(255,255,255,0.42), 0 16px 38px rgba(64,48,38,0.08);
}

.service-page--refined .service-text-block::after {
  top: 38px;
  left: calc(clamp(22px, 3vw, 30px) + 14px);
  width: 30px;
  height: 30px;
}

@media (max-width: 1040px) {
  main::before {
    display: none;
  }

  .section-head::before,
  .notice-card > div:first-child::before,
  .recommendation-card::before,
  .specialist-card > div:first-child::before,
  .cta-section > div:first-child::before,
  .consultation-card::before,
  .service-flow .section-head::before,
  .service-intro__text::before {
    margin-right: 0;
    margin-left: 0;
  }

  .section-head::after,
  .notice-card > div:first-child::after,
  .recommendation-card::after,
  .specialist-card > div:first-child::after,
  .cta-section > div:first-child::after,
  .consultation-card::after,
  .service-flow .section-head::after,
  .service-intro__text::after {
    left: 18px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .section-head::before,
  .notice-card > div:first-child::before,
  .recommendation-card::before,
  .specialist-card > div:first-child::before,
  .cta-section > div:first-child::before,
  .consultation-card::before,
  .service-flow .section-head::before,
  .service-intro__text::before {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .section-head::after,
  .notice-card > div:first-child::after,
  .recommendation-card::after,
  .specialist-card > div:first-child::after,
  .cta-section > div:first-child::after,
  .consultation-card::after,
  .service-flow .section-head::after,
  .service-intro__text::after {
    top: 15px;
    left: 15px;
    width: 28px;
    height: 28px;
  }

  .help-question-grid::before,
  .problem-grid::before,
  .procedure-grid::before,
  .details-list::before {
    inset: -10px;
    border-radius: 18px;
  }

  .service-page--refined .service-text-block {
    padding-top: 82px;
  }

  .service-page--refined .service-text-block::before {
    width: 50px;
    height: 50px;
  }

  .service-page--refined .service-text-block::after {
    top: 33px;
    left: calc(clamp(22px, 3vw, 30px) + 12px);
    width: 26px;
    height: 26px;
  }
}
/* Keep split section icons out of the heading grid */
.section-head--split,
.service-flow .section-head--split {
  padding-left: 92px;
  min-height: 72px;
}

.section-head--split::before,
.service-flow .section-head--split::before {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

.section-head--split::after,
.service-flow .section-head--split::after {
  top: 18px;
  left: 18px;
  transform: none;
}

@media (max-width: 640px) {
  .section-head--split,
  .service-flow .section-head--split {
    padding-left: 74px;
    min-height: 60px;
  }
}
/* Hero contrast polish */
.hero .btn-soft {
  border-color: rgba(255,255,255,0.28);
  background: rgba(38,32,29,0.58);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.08);
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

.hero .btn-soft:hover {
  background: rgba(38,32,29,0.68);
}

.mini-card {
  background: rgba(38,32,29,0.48);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 14px 34px rgba(0,0,0,0.16), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.mini-card b {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

.mini-card span {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
/* Mobile header and smooth menu */
@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "contacts contacts";
    align-items: center;
    gap: 8px 12px;
  }

  .brand {
    grid-area: brand;
  }

  .menu-toggle {
    grid-area: toggle;
    position: relative;
    z-index: 32;
    display: grid;
    place-content: center;
    justify-self: end;
    transition: background .22s ease, box-shadow .22s ease;
  }

  .menu-toggle span {
    transition: transform .24s ease, opacity .18s ease;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #8a6a43;
    box-shadow: 0 14px 34px rgba(64,48,38,0.18);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-contacts {
    grid-area: contacts;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    min-width: 0;
    padding-top: 2px;
    font-size: 11px;
    line-height: 1.18;
  }

  .header-phone {
    font-size: 13px;
    white-space: nowrap;
  }

  .header-address {
    max-width: none;
    min-width: 0;
  }

  .site-header .main-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 10px);
    z-index: 30;
    display: grid;
    justify-items: center;
    gap: 4px;
    max-height: 0;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 18px;
    background:
      radial-gradient(ellipse at 12% 0%, rgba(216,189,145,0.24), transparent 58%),
      radial-gradient(ellipse at 90% 100%, rgba(234,216,202,0.34), transparent 60%),
      rgba(255,255,255,0.94);
    box-shadow: 0 24px 70px rgba(64,48,38,0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    backdrop-filter: blur(20px);
    transition: max-height .44s ease, padding .34s ease, opacity .26s ease, transform .34s ease;
  }

  .site-header .main-nav.is-open {
    max-height: 520px;
    padding: 22px 18px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-header .main-nav a {
    width: min(320px, 100%);
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a:focus-visible {
    background: rgba(216,189,145,0.18);
    color: #8a6a43;
    transform: translateY(-1px);
  }
}

@media (max-width: 640px) {
  #site-header {
    min-height: 116px;
  }

  .site-header {
    min-height: 100px;
    padding: 10px 12px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo,
  .brand-logo-img {
    width: 46px;
    height: 46px;
  }

  .brand-logo {
    flex-basis: 46px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-type {
    font-size: 10px;
  }

  .header-contacts {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-left: 54px;
  }

  .header-phone {
    font-size: 13px;
  }

  .header-address {
    font-size: 11px;
  }

  .site-header .main-nav {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    border-radius: 16px;
  }
}
/* Compact mobile header experiment */
@media (max-width: 640px) {
  #site-header {
    min-height: 86px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto 42px;
    grid-template-areas:
      "brand phone toggle"
      "address address address";
    gap: 4px 8px;
    min-height: 76px;
    padding: 8px 10px 9px;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand-logo,
  .brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    flex-basis: 40px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-name {
    max-width: 118px;
    overflow: hidden;
    font-size: 18px;
    line-height: 0.95;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand-type {
    display: none;
  }

  .header-contacts {
    display: contents;
  }

  .header-phone {
    grid-area: phone;
    align-self: center;
    justify-self: end;
    max-width: 126px;
    overflow: hidden;
    color: var(--dark);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .header-address {
    grid-area: address;
    justify-self: stretch;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .site-header .main-nav {
    top: calc(100% + 7px);
  }
}

@media (max-width: 380px) {
  .brand-name {
    max-width: 96px;
    font-size: 17px;
  }

  .header-phone {
    max-width: 112px;
    font-size: 11.5px;
  }
}
/* Mobile contacts under phone */
@media (max-width: 640px) {
  #site-header {
    min-height: 72px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto) 42px;
    grid-template-areas: "brand contacts toggle";
    min-height: 64px;
    gap: 8px;
    padding: 8px 10px;
  }

  .header-contacts {
    grid-area: contacts;
    display: grid;
    gap: 2px;
    align-self: center;
    justify-self: end;
    min-width: 0;
    max-width: 142px;
    padding: 0;
    text-align: right;
  }

  .header-phone {
    grid-area: auto;
    justify-self: end;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.05;
  }

  .header-address {
    grid-area: auto;
    justify-self: end;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.1;
    text-align: right;
  }
}

@media (max-width: 380px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto) 40px;
    gap: 6px;
  }

  .header-contacts {
    max-width: 124px;
  }

  .header-phone {
    font-size: 11px;
  }

  .header-address {
    font-size: 9.5px;
  }
}
/* Header address link polish */
.header-address {
  text-decoration: none;
}

.header-address:hover,
.header-address:focus-visible {
  color: var(--dark);
  text-decoration: none;
}
/* Mobile hero compact typography */
@media (max-width: 640px) {
  .hero {
    min-height: min(760px, calc(100svh - 92px));
    align-items: end;
    padding: 10px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(38,32,29,0.04) 0%, rgba(38,32,29,0.14) 34%, rgba(38,32,29,0.74) 100%),
      linear-gradient(90deg, rgba(38,32,29,0.18), rgba(38,32,29,0.02) 56%);
  }

  .hero-photo img {
    object-position: 62% center;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    align-self: end;
    margin-top: 30svh;
    padding: 16px;
    border-radius: 14px;
    background: rgba(38,32,29,0.44);
    border-color: rgba(255,255,255,0.24);
    box-shadow: 0 18px 46px rgba(0,0,0,0.18);
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 0.96;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .hero-lead {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions .btn {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.12;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }

  .mini-card {
    min-height: 58px;
    padding: 9px 7px;
    border-radius: 10px;
  }

  .mini-card b {
    margin-bottom: 5px;
    font-size: 20px;
  }

  .mini-card span {
    display: block;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.12;
  }
}

@media (max-width: 380px) {
  .hero-content {
    padding: 14px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-card {
    min-height: 54px;
    padding: 8px 5px;
  }

  .mini-card b {
    font-size: 18px;
  }

  .mini-card span {
    font-size: 9.5px;
  }
}
/* Fit first screen to viewport */
.hero {
  height: calc(100svh - 136px);
  min-height: 560px;
  max-height: calc(100svh - 96px);
}

@media (max-width: 1040px) {
  .hero {
    height: calc(100svh - 124px);
    min-height: 540px;
    max-height: calc(100svh - 88px);
  }
}

@media (max-width: 640px) {
  .hero-photo img {
    object-position: right center;
  }

  .hero {
    height: calc(100svh - 98px);
    min-height: 0;
    max-height: none;
    margin-top: 10px;
    padding: 8px;
  }

  .hero-content {
    max-height: calc(100svh - 132px);
    margin-top: 24svh;
    overflow: hidden;
    padding: 14px;
  }

  .hero h1 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-actions .btn {
    min-height: 38px;
    padding: 8px 9px;
  }

  .hero-mini-grid {
    margin-top: 10px;
  }

  .mini-card {
    min-height: 52px;
    padding: 8px 5px;
  }

  .mini-card b {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .mini-card span {
    font-size: 9.5px;
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .hero-content {
    margin-top: 18svh;
    padding: 12px;
  }

  .hero .eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .hero h1 {
    margin-bottom: 8px;
    font-size: clamp(24px, 7.4vw, 30px);
  }

  .hero-lead {
    font-size: 12px;
    line-height: 1.28;
  }

  .hero-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .hero-actions .btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .hero-mini-grid {
    gap: 5px;
    margin-top: 8px;
  }

  .mini-card {
    min-height: 46px;
    padding: 7px 4px;
  }

  .mini-card b {
    font-size: 16px;
  }

  .mini-card span {
    font-size: 9px;
  }
}
/* fz */
#alert-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 50%;
  background-color: #337ab7;
  color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-family: Arial, sans-serif;
  font-size: 10px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.5s ease, opacity 1.5s ease;
}

#alert-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.alert-content {
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-left: 15%;
}

.alert-content p {
  margin: 0;
}

.alert-content a {
  text-decoration: underline;
  color: #fff !important;
}

.alert-content a:hover {
  color: #dddada !important;
}

#close-btn {
  flex: 0 0 auto;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

#close-btn:hover {
  background-color: #fff;
  color: #337ab7;
}

@media screen and (max-width: 800px) {
  #alert-banner {
    bottom: 100px;
    width: 100%;
  }

  .alert-content {
    width: calc(100% - 28px);
    margin-left: 0;
  }
}
/* end fz */
/* Contacts page */
.contacts-page-shell { padding-top: 22px; }
.contacts-page-hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 18px;
  overflow: hidden;
}
.contacts-page-hero__content { display: grid; align-content: end; max-width: 760px; }
.contacts-page-hero h1 { margin-bottom: 14px; color: var(--dark); }
.contacts-page-hero__lead { max-width: 620px; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); }
.contacts-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.contacts-page-hero__photo { position: relative; min-height: 360px; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 54px rgba(64,48,38,0.1); }
.contacts-page-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contacts-page-section { padding-top: clamp(34px, 5vw, 62px); }
.contacts-page-grid { display: grid; grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.contacts-page-list { display: grid; gap: 14px; }
.contact-detail { display: grid; gap: 8px; min-height: 132px; align-content: center; padding: 22px; border-radius: 16px; }
.contact-detail span { color: var(--muted); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.contact-detail a, .contact-detail b { color: var(--dark); font-size: clamp(20px, 2vw, 30px); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.05; text-decoration: none; }
.contacts-map { min-height: 424px; padding: 18px; border-radius: 18px; overflow: hidden; }
.contacts-map__inner { position: relative; min-height: 100%; display: grid; align-content: end; padding: clamp(22px, 4vw, 38px); border-radius: 14px; background: linear-gradient(145deg, rgba(38,32,29,0.9), rgba(86,70,58,0.72)), url('../img/device-detail.png') center/cover; color: #fff; overflow: hidden; }
.contacts-map__inner::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; pointer-events: none; }
.contacts-map__inner .eyebrow { color: rgba(255,255,255,0.72); }
.contacts-map__inner h3 { position: relative; margin-bottom: 10px; font-size: clamp(34px, 3.5vw, 54px); line-height: 1; }
.contacts-map__inner p:not(.eyebrow) { position: relative; max-width: 520px; color: rgba(255,255,255,0.8); font-size: 17px; }
.contacts-map__inner .btn { position: relative; width: max-content; margin-top: 10px; }
.contacts-map__pin { position: absolute; top: 34px; right: 36px; width: 54px; height: 54px; border-radius: 50% 50% 50% 6px; background: var(--champagne); transform: rotate(-45deg); box-shadow: 0 12px 34px rgba(0,0,0,0.18); }
.contacts-map__pin::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: #fff; }
.contacts-route-section { padding-top: clamp(28px, 5vw, 68px); }
.contacts-route-head { margin: 0 0 22px; }

@media (max-width: 1040px) {
  .contacts-page-hero, .contacts-page-grid { grid-template-columns: 1fr; }
  .contacts-page-hero__photo { order: -1; min-height: 320px; }
}

@media (max-width: 640px) {
  .contacts-page-shell { padding-top: 12px; }
  .contacts-page-hero { padding: 16px; border-radius: 14px; }
  .contacts-page-hero__photo { min-height: 260px; border-radius: 14px; }
  .contact-detail { min-height: 108px; padding: 18px; }
  .contacts-map { min-height: 360px; padding: 12px; border-radius: 14px; }
  .contacts-map__inner { padding: 20px; }
  .contacts-map__pin { top: 24px; right: 26px; width: 44px; height: 44px; }
  .contacts-map__pin::after { inset: 14px; }
}
.contacts-page-hero--single {
  min-height: calc(100svh - 150px);
  align-items: stretch;
}
.contacts-page-hero__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(18px, 2.8vw, 34px);
}
.contacts-page-hero__contacts .contact-detail {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 14px 38px rgba(64,48,38,0.08);
}
.contact-detail--wide { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .contacts-page-hero--single { min-height: auto; }
  .contacts-page-hero__contacts { grid-template-columns: 1fr; }
}


/* About page and certificates */
.about-specialist__action { width: max-content; margin-top: 18px; }
.about-page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: clamp(20px, 4vw, 42px); align-items: stretch; min-height: 540px; margin-top: 22px; padding: clamp(18px, 4vw, 44px); border-radius: 22px; }
.about-page-hero__content { display: grid; align-content: center; max-width: 720px; }
.about-page-hero h1 { margin-bottom: 16px; color: var(--dark); }
.about-page-hero__lead { max-width: 620px; color: var(--muted); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; }
.about-page-hero__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.about-page-hero__meta div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.68); }
.about-page-hero__meta span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.about-page-hero__meta b { display: block; color: var(--dark); font-size: 16px; }
.about-page-hero__photo { position: relative; min-height: 440px; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 54px rgba(64,48,38,0.12); }
.about-page-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-profile-card { padding: clamp(20px, 3vw, 32px); border-radius: 18px; }
.about-profile-card h2 { margin-bottom: 14px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; }
.about-profile-card p { color: var(--muted); }
.about-profile-card__note { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.66); }
.certificates-section { scroll-margin-top: 110px; }
.certificate-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.certificate-filters button { min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,0.72); color: var(--muted); font-weight: 800; cursor: pointer; }
.certificate-filters button.is-active { border-color: rgba(216,189,145,0.8); background: var(--dark); color: #fff; }
.certificates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.certificate-card { overflow: hidden; border-radius: 18px; display: flex; flex-direction: column; }
.certificate-card__image { display: block; width: 100%; aspect-ratio: 3 / 4; border: 0; padding: 12px; background: #fffdf9; cursor: zoom-in; overflow: hidden; }
.certificate-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.certificate-card__image:hover img { transform: scale(1.025); }
.certificate-card__body { flex: 1; padding: 16px; }
.certificate-card__body span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.certificate-card__body h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.15; }
.certificate-card__body p { margin: 0; color: var(--muted); }
.certificate-modal[hidden] { display: none; }
.certificate-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; }
.certificate-modal__overlay { position: absolute; inset: 0; background: rgba(38,32,29,0.52); backdrop-filter: blur(8px); }
.certificate-modal__panel { position: relative; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr); gap: 18px; width: min(1040px, 100%); max-height: 92vh; padding: 18px; border: 1px solid rgba(255,255,255,0.76); border-radius: 18px; background: rgba(255,255,255,0.96); box-shadow: var(--shadow); overflow: auto; }
.certificate-modal__panel figure { margin: 0; min-height: 0; border-radius: 12px; overflow: hidden; background: #fff; }
.certificate-modal__panel img { display: block; width: 100%; max-height: 84vh; object-fit: contain; }
.certificate-modal__panel h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.certificate-modal__panel p:last-child { color: var(--muted); }
.certificate-modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(38,32,29,0.12); color: var(--dark); font-size: 24px; cursor: pointer; }
@media (max-width: 900px) {
  .about-page-hero, .about-profile-grid, .certificate-modal__panel { grid-template-columns: 1fr; }
  .about-page-hero__meta { grid-template-columns: 1fr; }
  .about-page-hero__photo { order: -1; min-height: 320px; }
  .certificates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .about-page-hero { min-height: auto; padding: 16px; border-radius: 14px; }
  .about-page-hero__meta, .certificates-grid { grid-template-columns: 1fr; }
  .about-specialist__action { width: 100%; }
  .certificate-modal__panel { padding: 12px; }
}


/* Contraindications merged home block */
.contraindications-section .section-head {
  max-width: 860px;
}

.contraindications-alert {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: -18px 0 18px;
  padding: 18px 22px;
  border: 1px solid rgba(138, 46, 37, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 233, 223, 0.74)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 44px rgba(64, 48, 38, 0.07);
}

.contraindications-alert__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #8a2e25;
  background: rgba(138, 46, 37, 0.08);
}

.contraindications-alert__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contraindications-intro {
  max-width: 880px;
  margin: 0;
  color: var(--dark);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.contraindication-details {
  position: relative;
}

.contraindication-details summary {
  position: relative;
  min-height: 88px;
  padding-right: 64px;
}

.contraindication-details summary b {
  display: -webkit-box;
  max-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.02;
}

.contraindication-details:not([open]) summary::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 64px;
  bottom: 20px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
  pointer-events: none;
}

.contraindication-details summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .22s ease;
}

.contraindication-details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.contraindication-details .details-content {
  padding-top: 0;
}

@media (max-width: 980px) {
  .contraindications-alert {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-top: -8px;
    padding: 16px;
  }

  .contraindications-alert__icon {
    width: 42px;
    height: 42px;
  }

  .contraindication-details summary {
    min-height: 76px;
    padding-right: 52px;
  }

  .contraindication-details:not([open]) summary::before {
    left: 18px;
    right: 52px;
  }

  .contraindication-details summary::after {
    right: 20px;
  }
}

@media (max-width: 560px) {
  .contraindications-alert {
    grid-template-columns: 1fr;
  }
}


/* Recommendation details without text button */
.recommendation-section .info-details summary {
  position: relative;
  padding-right: 64px;
}

.recommendation-section .info-details summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .22s ease;
}

.recommendation-section .info-details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.recommendation-section .info-details:not([open]) summary::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 64px;
  bottom: 20px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.86));
  pointer-events: none;
}

@media (max-width: 980px) {
  .recommendation-section .info-details summary {
    padding-right: 52px;
  }

  .recommendation-section .info-details summary::after {
    right: 20px;
  }

  .recommendation-section .info-details:not([open]) summary::before {
    left: 18px;
    right: 52px;
  }
}


/* Always visible recommendation list */
.recommendation-list {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(111, 82, 61, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.recommendation-list h3 {
  margin: 0;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.04;
}

.recommendation-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.recommendation-list li::marker {
  color: var(--accent);
}

@media (max-width: 640px) {
  .recommendation-list {
    padding: 18px;
  }
}

/* Home specialist split card */
.specialist-card--home {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.specialist-card__photo {
  position: relative;
  min-height: clamp(340px, 37vw, 540px);
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
}

.specialist-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.specialist-card__content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 46px);
}

.specialist-card__content .eyebrow,
.specialist-card__content h2,
.specialist-card__content p,
.specialist-card__content ul {
  margin-top: 0;
}

.specialist-card__text {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.62;
  max-width: 680px;
}

.specialist-card--home .specialist-list {
  gap: 12px;
  margin: 2px 0 6px;
}

.specialist-card--home .about-specialist__action {
  width: fit-content;
}

@media (max-width: 980px) {
  .specialist-card--home {
    grid-template-columns: 1fr;
  }

  .specialist-card__photo {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .specialist-card__photo {
    min-height: 280px;
  }

  .specialist-card__content {
    padding: 24px 20px 26px;
  }

  .specialist-card--home .about-specialist__action {
    width: 100%;
  }
}
