@import url("fonts-local.css");

:root {
  --bg: #fbf7ee;
  --paper: #ffffff;
  --soft: #f4eee2;
  --soft-2: #faf5ec;
  --ink: #25211d;
  --muted: #6f665b;
  --line: #e8decf;
  --blue: #a98652;
  --blue-dark: #4a4036;
  --teal: #9A4C39;
  --teal-soft: #f6e9e4;
  --sand: #ead8bd;
  --emc-accent: #7c6a55;
  --gold: #AE8B66;
  --onyx: #5f5b66;
  --shadow: 0 18px 45px rgba(62, 46, 26, 0.10);
  --radius: 8px;
  --azimut-glow: rgba(139, 57, 31, 0.20);
  --azimut-glow-strong: rgba(139, 57, 31, 0.34);
  --azimut-card-shadow: 0 18px 45px rgba(74, 58, 35, 0.11);
  --azimut-card-shadow-hover: 0 28px 75px rgba(80, 60, 34, 0.18);
  --azimut-transition: 320ms cubic-bezier(.2,.8,.2,1);
  --azimut-gold-gradient: linear-gradient(145deg, #c6a27a 0%, #AE8B66 54%, #876845 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 132px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: -18vh 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(185, 144, 89, 0.10) 18% 30%, transparent 30% 58%, rgba(185, 144, 89, 0.08) 58% 70%, transparent 70% 100%),
    linear-gradient(180deg, #fffaf1 0%, #f7efe1 48%, #fbf7ee 100%);
  background-size: 100% 118vh, 100% 100%;
  background-attachment: fixed;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #584021;
  color: #fff;
  box-shadow: 0 12px 28px rgba(74, 58, 35, 0.22);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  text-align: left;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: #977959;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: break-word;
}

h1 {
  font-family: "Montserrat", Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  color: #584021;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 21px;
}

h2,
h3,
strong,
b {
  font-weight: 300;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 100%;
}

.narrow {
  width: min(840px, calc(100% - 40px));
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(174, 139, 102, 0.12);
  box-shadow:
    0 18px 42px rgba(74, 58, 35, 0.08),
    0 6px 18px rgba(174, 139, 102, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 -1px 0 rgba(174, 139, 102, 0.10) inset;
  overflow: visible;
  backdrop-filter: blur(18px);
  transform: none !important;
  isolation: isolate;
  transition: opacity var(--azimut-transition), visibility var(--azimut-transition);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 8px;
  right: clamp(12px, 8vw, 120px);
  width: min(18vw, 200px);
  height: min(58%, 72px);
  max-height: 20%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background: url("../assets/generated/header-sand-scatter.svg") right center / contain no-repeat;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(151, 121, 89, 0.16), rgba(151, 121, 89, 0.05), transparent);
}

body.ai-chatbot-open .site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

main,
footer,
section {
  max-width: 100%;
}

.header-inner {
  position: relative;
  z-index: 2;
  min-height: 132px;
  display: grid;
  width: min(1540px, calc(100% - 80px));
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) auto;
  grid-template-rows: 56px 76px;
  column-gap: 44px;
  row-gap: 0;
  align-items: stretch;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  font-weight: 300;
  color: var(--blue-dark);
  line-height: 1.15;
}

.brand img {
  display: block;
}

.brand img:not(.brand-logo-wide):not(.brand-logo-main) {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-logo-main {
  width: min(340px, 24vw);
  max-width: 100%;
  height: auto;
  max-height: 104px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
  filter: contrast(1.04) saturate(0.96);
}

.brand-logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(74, 58, 35, 0.12);
}

.brand-logo-wide {
  width: min(100%, 200px);
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.main-nav {
  position: relative;
  z-index: 3;
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 1.7vw, 30px);
  color: #5a4a36;
  font-weight: 300;
  font-size: 15px;
}

.nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.nav-item.has-dropdown:hover,
.nav-item.has-dropdown:focus-within,
.nav-item.dropdown-open {
  z-index: 40;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 54px;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--azimut-transition), border-color var(--azimut-transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(185, 144, 89, 0.72), transparent);
  opacity: 0;
  transform: scaleX(0.42);
  transition: opacity var(--azimut-transition), transform var(--azimut-transition);
}

.nav-link:hover,
.nav-link.active,
.nav-item.dropdown-open > .nav-link,
.nav-item:focus-within > .nav-link {
  color: var(--teal);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-item.dropdown-open > .nav-link::after,
.nav-item:focus-within > .nav-link::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-arrow {
  display: inline-block;
  color: var(--teal);
  font-size: 12px;
  line-height: 1;
  transition: transform var(--azimut-transition);
}

.nav-item.dropdown-open .nav-arrow,
.nav-item:hover .nav-arrow,
.nav-item:focus-within .nav-arrow {
  transform: rotate(180deg);
}

.mobile-nav-accordion {
  display: none;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 1000;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid rgba(213, 185, 139, 0.92);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 244, 222, 0.92), transparent 34%),
    radial-gradient(circle at 92% 86%, rgba(230, 203, 159, 0.58), transparent 32%),
    linear-gradient(135deg, #fffaf1 0%, #f2e3ca 56%, #f8f0e1 100%);
  box-shadow: 0 26px 68px rgba(113, 83, 47, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 300ms cubic-bezier(.2,.8,.2,1), transform 300ms cubic-bezier(.2,.8,.2,1), visibility 300ms;
  visibility: hidden;
  overflow: visible;
}

.nav-item:nth-last-child(-n + 2) .nav-dropdown {
  right: 0;
  left: auto;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 18px;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -24px;
  width: 160px;
  height: 120px;
  opacity: 0.24;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 38% 62%, transparent 0 50%, rgba(185, 144, 89, 0.38) 51% 52%, transparent 53%),
    radial-gradient(ellipse at 60% 42%, rgba(185, 144, 89, 0.24) 0 8%, transparent 9%),
    radial-gradient(ellipse at 78% 58%, rgba(185, 144, 89, 0.26) 0 7%, transparent 8%);
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.dropdown-open > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown-link {
  position: relative;
  display: block;
  padding: 10px 12px 10px 28px;
  border-radius: 10px;
  color: #5a4a36;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.25;
  white-space: normal;
  z-index: 1;
  transition: transform var(--azimut-transition), background var(--azimut-transition), color var(--azimut-transition);
}

.nav-dropdown-link::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azimut-gold-gradient);
  transform: translateY(-50%) scale(0.7);
  opacity: 0.55;
  transition: opacity var(--azimut-transition), transform var(--azimut-transition);
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  background: rgba(255, 250, 241, 0.88);
  color: var(--blue-dark);
  transform: translateX(5px);
}

.nav-dropdown-link:hover::before,
.nav-dropdown-link:focus-visible::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.header-actions {
  display: contents;
}

.header-utility {
  display: flex;
  grid-column: 2 / 4;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 34px);
  min-height: 56px;
  border-bottom: 1px solid rgba(174, 139, 102, 0.16);
  color: #977959;
}

.header-utility-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f3f37;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--azimut-transition), transform var(--azimut-transition);
}

.header-utility-link::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.58;
}

.header-utility-link:hover,
.header-utility-link:focus-visible {
  color: #584021;
  transform: translateY(-1px);
}

.header-actions > .button {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 8px;
}

.round-badge,
.badge-list span,
.service-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 300;
  white-space: nowrap;
}

.site-header .nav-link,
.site-header .nav-dropdown-link,
.site-header .round-badge,
.site-header .phone-link,
.site-header .button,
.site-header .header-utility-link {
  font-size: 15px;
}

.header-actions .round-badge {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #977959;
}

.phone-link {
  color: var(--blue-dark);
  font-weight: 300;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 300;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  overflow-wrap: break-word;
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(185, 144, 89, 0.34);
  outline-offset: 3px;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #AE8B66;
  color: #fff;
  box-shadow: 0 12px 24px rgba(113, 83, 47, 0.18);
}

.button-primary:hover {
  background: #987553;
}

/* Только кнопки отправки форм заявок — изумрудно-зелёные */
.contact-form button[type="submit"].button-primary,
.appointment-dialog .contact-form button[type="submit"].button-primary {
  background: #0f766e;
  border-color: #0d9488;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.28);
}

.contact-form button[type="submit"].button-primary:hover:not(:disabled),
.appointment-dialog .contact-form button[type="submit"].button-primary:hover:not(:disabled) {
  background: #0d9488;
  border-color: #14b8a6;
}

.button-secondary {
  background: var(--paper);
  color: var(--blue-dark);
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: rgba(113, 83, 47, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-dark);
}

/* Hero: один спокойный фон, без лишних слоёв и анимаций */
.home-hero-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 249, 238, 0.94) 0%, rgba(255, 249, 238, 0.72) 46%, rgba(255, 249, 238, 0.22) 100%),
    url("../assets/generated/blog-hero-bg-wide.jpg") center / cover;
}

.home-hero-shell > .hero,
.home-hero-shell > .hero-banners-section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 64px;
  background:
    linear-gradient(90deg, rgba(255, 249, 238, 0.96) 0%, rgba(255, 249, 238, 0.78) 44%, rgba(255, 249, 238, 0.18) 100%),
    url("../assets/generated/blog-hero-bg-wide.jpg") center / cover;
}

/* Legacy wave/depth layers disabled (kept selectors harmless) */
.home-wave-stage::before,
.home-wave-bg,
.home-wave-bg::before,
.home-wave-bg::after,
.home-wave-overlay,
.home-depth-bg--wave::before,
.home-depth-bg--wave::after {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}

.home-depth-bg {
  --home-bg-y: 0px;
  --home-bg-drift: 0px;
  --home-depth-soft: 0px;
  --home-depth-visual: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff6e9;
}

.home-extended-bg {
  --home-bg-y: 0px;
  --home-bg-drift: 0px;
  --home-depth-soft: 0px;
  --home-depth-visual: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff6e9;
}

.home-depth-bg::before,
.home-extended-bg::before {
  content: "";
  position: absolute;
  inset: -10vh 0 -16vh;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 249, 238, 0.96) 0%, rgba(255, 249, 238, 0.78) 42%, rgba(255, 249, 238, 0.14) 100%),
    url("../assets/generated/home-flow-bg-tall.webp") center calc(0% + var(--home-bg-y)) / cover no-repeat;
  transform: translate3d(0, var(--home-bg-drift), 0) scale(1.04);
  transform-origin: center top;
  will-change: transform, background-position;
}

.home-extended-bg::before {
  inset: -18vh 0 -18vh;
  background:
    linear-gradient(90deg, rgba(255, 249, 238, 0.92) 0%, rgba(255, 249, 238, 0.72) 44%, rgba(255, 249, 238, 0.24) 100%),
    url("../assets/generated/home-flow-bg-tall.webp") center calc(14% + var(--home-bg-y)) / cover no-repeat;
}

.home-depth-bg::after,
.home-extended-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 16%, rgba(255, 255, 255, 0.48), transparent 32%),
    linear-gradient(180deg, transparent 0 78%, rgba(251, 247, 238, 0.92) 100%);
}

.home-extended-bg::after {
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.98) 0%, rgba(251, 247, 238, 0.40) 11%, transparent 30%, rgba(251, 247, 238, 0.76) 100%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.42), transparent 30%),
    radial-gradient(circle at 86% 62%, rgba(174, 139, 102, 0.12), transparent 34%);
}

.home-depth-bg > .hero,
.home-depth-bg > .section,
.home-extended-bg > .section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.home-depth-bg .hero-banners-section,
.home-extended-bg .premium-accordion-section,
.home-extended-bg .you-alone-section,
.home-extended-bg .order-panel-section {
  background: transparent;
}

.home-depth-bg .hero-grid-premium,
.home-extended-bg .split-layout,
.home-extended-bg .premium-accordion,
.home-extended-bg .order-panel {
  transform: translate3d(0, var(--home-depth-soft), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

.home-depth-bg .hero-visual {
  transform: translate3d(0, var(--home-depth-visual), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .home-depth-bg::before {
    background-position: center top;
    transform: none;
  }

  .home-depth-bg .hero-grid-premium,
  .home-depth-bg .hero-visual,
  .home-extended-bg .split-layout,
  .home-extended-bg .premium-accordion,
  .home-extended-bg .order-panel {
    transform: none;
    transition: none;
  }
}

/* Убран анимированный блик hero::after — лишний GPU-слой */
.hero::after {
  content: none;
  display: none;
}

.hero-grid,
.split-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: #6f5f4a;
}

.support-text {
  font-weight: 300;
  color: var(--blue-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  transform: translateY(-34px);
}

.compass-card {
  position: relative;
  --needle-angle: -90deg;
  width: min(520px, 88vw);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 28px 45px rgba(113, 83, 47, 0.12));
  overflow: visible;
  cursor: pointer;
}

.compass-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: contrast(1.14) saturate(1.08) drop-shadow(0 18px 28px rgba(82, 62, 35, 0.14));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.route-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  height: 6px;
  border-radius: 999px 3px 3px 999px;
  background: linear-gradient(90deg, transparent 0 12px, rgba(255, 250, 241, 0.66) 13px, #c29a66 42%, #5f452a 100%);
  transform: rotate(var(--needle-angle));
  transform-origin: left center;
  transition: transform 0.72s cubic-bezier(.22,.8,.24,1);
  box-shadow: 0 12px 24px rgba(112, 78, 42, 0.30);
  z-index: 4;
  opacity: 0.98;
}

.route-line::before {
  content: none;
}

.route-line::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 19px solid #5f452a;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 12px rgba(113, 83, 47, 0.18));
}

.compass-card.is-following .route-line,
.compass-card.is-orientation .route-line,
.compass-card.is-routing .route-line {
  box-shadow: 0 12px 26px rgba(174, 139, 102, 0.34);
}

.compass-invite,
.compass-status {
  display: none;
}

.section {
  padding: 82px 0;
}

.section-soft {
  background: var(--soft);
}

.specialists-section {
  background:
    linear-gradient(90deg, rgba(95, 91, 102, 0.78), rgba(124, 106, 85, 0.64)),
    url("../assets/images/onyx-warm-bg.jpg") center / cover;
  color: #fff;
}

.you-alone-section {
  background: transparent;
  color: var(--ink);
}

.specialists-section h2,
.specialists-section p,
.specialists-section .eyebrow {
  color: #fff;
}

.you-alone-section h2 {
  color: #977959;
}

.you-alone-section p,
.you-alone-section li {
  color: var(--muted);
}

.you-alone-section .eyebrow {
  color: var(--teal);
}

.specialists-section .button-secondary {
  background: #fff;
  color: var(--emc-accent);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.specialists-section {
  padding: 58px 0;
}

.specialists-section .split-layout {
  gap: 30px;
  align-items: center;
}

.specialists-section .card-grid {
  gap: 12px;
}

.specialists-section .doctor-card {
  min-height: 340px;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.08);
  box-shadow: 0 22px 54px rgba(24, 22, 20, 0.20);
}

.specialists-section .doctor-card::before {
  content: "";
  position: absolute;
  /* shorter gradient — only for compact name + role at the bottom */
  inset: 58% 0 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent, rgba(31, 27, 24, 0.32) 28%, rgba(31, 27, 24, 0.78) 100%);
  pointer-events: none;
}

.specialists-section .doctor-card::after {
  inset: auto 20px 16px;
  z-index: 2;
  opacity: 0.36;
  transform: scaleX(1);
}

.specialists-section .doctor-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: inherit;
  aspect-ratio: auto;
}

.specialists-section .doctor-photo {
  filter: saturate(0.92) contrast(1.04);
}

/* На фото — только подпись: Фамилия Имя + направление (без био/стажа) */
.specialists-section .doctor-card .doctor-card__caption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 2px 2px;
}

.specialists-section .doctor-card .doctor-card__name,
.specialists-section .doctor-card .doctor-role-line {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fffaf1;
}

.specialists-section .doctor-card .doctor-card__name {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 500;
  line-height: 1.15;
}

.specialists-section .doctor-card .doctor-role-line {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(255, 250, 241, 0.9);
}

.specialists-section .doctor-card .doctor-badge,
.specialists-section .doctor-card .eyebrow,
.specialists-section .doctor-card .doctor-exp,
.specialists-section .doctor-card .doctor-focus,
.specialists-section .doctor-card .doctor-card__extra,
.specialists-section .doctor-card .doctor-details,
.specialists-section .doctor-card .doctor-note,
.specialists-section .doctor-card .doctor-card__hint,
.specialists-section .doctor-card .doctor-card__actions,
.specialists-section .doctor-card .button {
  display: none !important;
}

.specialists-section .doctor-card--clickable {
  cursor: pointer;
}

/* No "Подробнее" badge on photo cards — click opens profile */
.specialists-section .doctor-card--clickable::after {
  content: none !important;
  display: none !important;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.conditions-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.82), rgba(255, 255, 255, 0.92)),
    url("../assets/images/onyx-warm-bg.jpg") center / cover;
  background-attachment: scroll;
}

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

.condition-card {
  min-height: 0;
  padding: 25px 24px 23px;
  border: 1px solid rgba(232, 222, 207, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--azimut-card-shadow);
}

.condition-icon {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(185, 144, 89, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 20%, rgba(174, 139, 102, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 232, 0.58));
  color: #765f42;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 14px 34px rgba(113, 83, 47, 0.08);
  overflow: visible;
}

.condition-icon--iconly {
  box-sizing: border-box;
  padding: 13px;
  object-fit: contain;
}

.condition-icon path,
.condition-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.condition-icon .icon-fill {
  fill: rgba(174, 139, 102, 0.12);
  stroke: none;
}

.condition-icon .accent-line,
.condition-icon .accent-dot {
  stroke: var(--gold);
}

.condition-icon .accent-dot {
  fill: #fffaf1;
  stroke-width: 1.45;
}

.condition-card h3 {
  font-size: 20px;
}

.accordion-media-slot {
  min-height: 138px;
  margin: 16px 0 4px;
  border: 1px solid rgba(185, 144, 89, 0.22);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.82), rgba(236, 222, 198, 0.72)),
    radial-gradient(circle at 24% 30%, rgba(185, 144, 89, 0.24), transparent 32%),
    radial-gradient(circle at 82% 68%, rgba(185, 144, 89, 0.20), transparent 34%);
}

.accordion-media-slot picture,
.accordion-media-slot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

/* Акцент на анонимности — только бордовый цвет, без подложки */
.anon-emphasis {
  color: #9A4C39;
  font-weight: 650;
  letter-spacing: 0.01em;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.compass-hint {
  margin: 10px 0 14px;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.compass-hint strong {
  color: var(--ink);
  font-weight: 600;
}

/* License page */
.license-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.license-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(74, 58, 35, 0.06);
}

.license-card--primary {
  background: linear-gradient(165deg, #fffbf5, #f7efe3);
}

.license-meta {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.license-meta div {
  display: grid;
  gap: 2px;
}

.license-meta dt {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.license-meta dd {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.license-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.12rem !important;
  font-weight: 650;
  color: #9a4c39 !important;
  word-break: break-all;
}

.license-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(74, 120, 80, 0.12);
  color: #2f5d3a;
  font-weight: 600;
  font-size: 0.92rem;
}

.license-qr-figure {
  margin: 16px 0 0;
  text-align: center;
}

.license-qr-figure img {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
}

.license-qr-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
}

.license-services li {
  margin-bottom: 10px;
}

@media (max-width: 860px) {
  .license-layout {
    grid-template-columns: 1fr;
  }
}

/* Legal documents library */
.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
}

.docs-toc a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  background: var(--soft);
  border-color: var(--gold);
  outline: none;
}

.docs-section {
  scroll-margin-top: 150px;
}

.docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.docs-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(74, 58, 35, 0.04);
}

.docs-list__meta {
  display: grid;
  gap: 4px;
  min-width: min(100%, 280px);
  flex: 1;
}

.docs-list__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.docs-list__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.docs-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(174, 139, 102, 0.14);
  color: #6b5338;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.docs-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--soft-2);
  color: var(--muted);
  font-size: 0.9rem;
}

.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.help-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card,
.info-card,
.feature-card,
.article-card,
.doctor-card,
.service-card,
.review-card,
.info-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(21, 70, 95, 0.06);
}

.mini-card {
  min-height: 92px;
  padding: 18px;
  font-weight: 300;
  color: var(--blue-dark);
}

.info-card,
.feature-card,
.article-card,
.doctor-card,
.service-card,
.service-group-card,
.price-card,
.price-mini-card,
.review-card,
.info-panel {
  padding: 24px;
}

.feature-card {
  min-height: 260px;
}

.feature-card a,
.info-card a,
.article-card a {
  color: var(--teal);
  font-weight: 300;
}

.mini-card,
.info-card,
.feature-card,
.article-card,
.doctor-card,
.service-card,
.service-group-card,
.price-card,
.price-mini-card,
.review-card,
.photo-frame,
.contact-form,
.info-panel {
  position: relative;
  overflow: hidden;
  transition: transform var(--azimut-transition), box-shadow var(--azimut-transition), border-color var(--azimut-transition), background var(--azimut-transition);
}

.mini-card::after,
.info-card::after,
.feature-card::after,
.article-card::after,
.doctor-card::after,
.service-group-card::after,
.price-card::after,
.price-mini-card::after,
.review-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(185, 144, 89, 0.6), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity var(--azimut-transition), transform var(--azimut-transition);
}

.mini-card:hover,
.info-card:hover,
.feature-card:hover,
.article-card:hover,
.doctor-card:hover,
.service-group-card:hover,
.price-card:hover,
.price-mini-card:hover,
.review-card:hover,
.photo-frame:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: rgba(185, 144, 89, 0.55);
  box-shadow: var(--azimut-card-shadow-hover);
}

.mini-card:hover::after,
.info-card:hover::after,
.feature-card:hover::after,
.article-card:hover::after,
.doctor-card:hover::after,
.service-group-card:hover::after,
.price-card:hover::after,
.price-mini-card:hover::after,
.review-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 300;
}

.benefits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 172px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 300;
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.reviews-list {
  display: grid;
  gap: 16px;
}

.review-card p {
  color: #5a4a36;
}

.review-card strong {
  color: var(--blue-dark);
}

.article-card,
.doctor-card,
.service-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
}

.doctor-photo-frame {
  position: relative;
  width: calc(100% + 48px);
  height: auto;
  min-height: 260px;
  aspect-ratio: 4 / 5;
  margin: -24px -24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--soft);
}

.doctor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--soft);
  transition: transform 180ms ease, opacity 90ms linear, filter var(--azimut-transition);
  will-change: transform, opacity;
}

.doctor-photo-smile {
  opacity: 0;
  transform: scale(1.012);
}

.doctor-card img,
.article-card img,
.review-card img,
.info-card img:not(.condition-icon):not(.page-icon),
.feature-card img:not(.condition-icon):not(.page-icon) {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.doctor-card.doctor-smile-loaded:hover .doctor-photo-frame .doctor-photo-primary {
  opacity: 0;
}

.doctor-card.doctor-smile-loaded:hover .doctor-photo-frame .doctor-photo-smile {
  opacity: 1;
  transform: scale(1.075);
  filter: saturate(1.07) brightness(1.03);
}

.doctor-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 144, 89, 0.14);
  color: var(--gold-deep, #8b6a32);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doctor-role-line {
  margin: 0 0 6px;
  color: var(--muted, #6b6560);
  font-size: 14px;
}

.doctor-exp {
  margin: 0 0 10px;
}

.doctor-focus {
  margin: 0 0 14px;
  line-height: 1.55;
}

.doctor-card--clickable {
  cursor: pointer;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.doctor-card--clickable:hover,
.doctor-card--clickable:focus-within {
  transform: translateY(-6px);
  border-color: rgba(185, 144, 89, 0.55);
  box-shadow: var(--azimut-card-shadow-hover, 0 22px 48px rgba(24, 22, 20, 0.14));
}

.doctor-card--clickable:focus-visible {
  outline: 2px solid rgba(185, 144, 89, 0.7);
  outline-offset: 3px;
}

.doctor-card__hint {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-deep, #8b6a32);
}

.doctor-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.doctor-card__actions .button {
  flex: 1 1 auto;
  min-width: 120px;
}

.doctor-card--detailed {
  min-height: 0;
}

.doctor-card--detailed .doctor-photo-frame {
  aspect-ratio: 4 / 5;
  min-height: 240px;
}

/* Doctor profile modal */
.doctor-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.doctor-profile-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.doctor-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 34, 0.48);
  backdrop-filter: blur(10px);
}

.doctor-profile-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(860px, calc(100dvh - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(227, 231, 235, 0.95);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 42%);
  box-shadow: 0 34px 90px rgba(21, 31, 45, 0.28);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.28s ease;
}

.doctor-profile-modal.is-open .doctor-profile-dialog {
  transform: translateY(0) scale(1);
}

.doctor-profile-dialog .modal-close {
  z-index: 3;
  background: rgba(255, 253, 248, 0.92);
}

.doctor-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: end;
  padding: 28px 28px 20px;
  background:
    radial-gradient(ellipse 80% 70% at 10% 0%, rgba(185, 144, 89, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.9), transparent);
  border-bottom: 1px solid rgba(185, 144, 89, 0.18);
}

.doctor-profile-photo {
  width: 160px;
  height: 200px;
  border-radius: 18px;
  background-size: cover;
  background-position: center 18%;
  background-color: var(--soft, #f3ebe0);
  box-shadow: 0 16px 36px rgba(31, 47, 58, 0.18);
}

.doctor-profile-hero .doctor-badge {
  margin-bottom: 10px;
}

.doctor-profile-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  color: var(--blue-dark, #1f2f3a);
}

.doctor-profile-role {
  margin: 0 0 6px;
  color: var(--muted, #6b6560);
  font-size: 15px;
}

.doctor-profile-exp {
  margin: 0;
  font-weight: 600;
  color: var(--gold-deep, #8b6a32);
}

.doctor-profile-body {
  padding: 20px 28px 28px;
  display: grid;
  gap: 14px;
}

.doctor-profile-focus {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(185, 144, 89, 0.1);
  color: var(--blue-dark, #1f2f3a);
  line-height: 1.55;
  font-size: 15px;
}

.doctor-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.doctor-profile-actions .button {
  flex: 1 1 auto;
}

@media (max-width: 640px) {
  .doctor-profile-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 48px 18px 18px;
  }

  .doctor-profile-photo {
    width: min(180px, 56vw);
    height: min(220px, 68vw);
  }

  .doctor-profile-body {
    padding: 16px 18px 22px;
  }

  .doctor-profile-hero .doctor-badge {
    justify-content: center;
  }
}

.doctor-details {
  margin: 0 0 12px;
  border: 1px solid rgba(185, 144, 89, 0.22);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.55);
  overflow: hidden;
}

.doctor-details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark, #1f2f3a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.doctor-details summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-deep, #8b6a32);
  line-height: 1;
}

.doctor-details[open] summary::after {
  content: "−";
}

.doctor-details summary:hover {
  background: rgba(185, 144, 89, 0.08);
}

.doctor-meta-list,
.doctor-chip-list {
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}

.doctor-meta-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(31, 47, 58, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.doctor-meta-list--plain li {
  grid-template-columns: auto 1fr;
}

.doctor-meta-year {
  color: var(--gold-deep, #8b6a32);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.doctor-meta-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-dark, #1f2f3a);
}

.doctor-meta-list span {
  display: block;
  color: var(--muted, #6b6560);
}

.doctor-meta-list em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: rgba(31, 47, 58, 0.55);
}

.doctor-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-chip-list li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 47, 58, 0.06);
  color: var(--blue-dark, #1f2f3a);
  font-size: 12px;
  line-height: 1.3;
}

.doctor-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(154, 76, 57, 0.08);
  color: #6e3a30;
  font-size: 12px;
  line-height: 1.45;
}

.doctor-card--detailed .button {
  margin-top: 4px;
  align-self: flex-start;
}

.doctors-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}

/* detailed doctors grid: text under photo — keep compact caption + extra only when detailed */
.doctor-card--minimal:not(.doctor-card--detailed) .doctor-card__extra,
.doctor-card--minimal:not(.doctor-card--detailed) .doctor-badge {
  display: none;
}

.doctor-card--detailed .doctor-card__caption {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.doctor-card--detailed .doctor-card__name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.article-card:hover .article-image,
.photo-frame:hover img,
.photo-stack:hover img {
  transform: scale(1.06);
  filter: saturate(1.06) brightness(1.02);
}

.article-image {
  width: calc(100% + 48px);
  height: 172px;
  margin: -24px -24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--soft);
  transition: transform var(--azimut-transition), filter var(--azimut-transition);
}

.article-card .meta,
.service-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 300;
}

.article-card a {
  margin-top: auto;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.page-hero {
  padding: 86px 0 62px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(255, 255, 255, 0.94)),
    url("../assets/images/onyx-warm-bg.jpg") center / cover;
}

.page-hero.clarity-section::before,
.page-hero.clarity-section::after {
  display: none;
}

.blog-hero,
.tests-hero,
.inner-hero-bg {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 249, 238, 0.96) 0%, rgba(255, 249, 238, 0.78) 44%, rgba(255, 249, 238, 0.18) 100%),
    url("../assets/generated/blog-hero-bg-wide.jpg") center / cover no-repeat;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs a,
.tabs button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 300;
}

.tabs a:hover,
.tabs button:hover,
.tabs .active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.article-layout .article-meta {
  margin-bottom: 26px;
  color: var(--teal);
  font-weight: 300;
}

.article-layout p {
  font-size: 18px;
}

.article-test-cta {
  margin: 36px 0 8px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--paper) 0%, var(--teal-soft) 100%);
}

.article-test-cta__lead {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.article-test-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-block {
  margin-top: 34px;
}

.faq-item {
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.ordered {
  display: grid;
  gap: 12px;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(113, 83, 47, 0.96), rgba(174, 139, 102, 0.92)),
    var(--blue);
}

.cta-band h2,
.cta-band .eyebrow,
.cta-band p {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.hero-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(219, 232, 232, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--azimut-card-shadow);
  backdrop-filter: blur(14px);
}

.hero-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-weight: 300;
}

.hero-form input,
.hero-form textarea,
.hero-form select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf1;
}

.wide-field {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-weight: 300;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf1;
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.checkbox {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px 14px !important;
  column-gap: 14px !important;
  align-items: start;
  color: var(--muted) !important;
  font-size: 14px;
  font-weight: 300 !important;
}

.contact-form label.checkbox,
.hero-form label.checkbox {
  gap: 7px 14px !important;
  column-gap: 14px !important;
}

.checkbox input {
  min-height: 18px;
  margin-top: 3px;
  justify-self: start;
}

/* Submit locked until all lead fields are filled */
.contact-form button[type="submit"]:disabled,
.contact-form input[type="submit"]:disabled,
.contact-form button[type="submit"].is-disabled,
.appointment-dialog .contact-form button[type="submit"]:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
  box-shadow: none;
  transform: none;
}

/* Banner CTA → appointment modal */
.banner-slide {
  position: relative;
}

.banner-slide--bookable {
  cursor: pointer;
}

.banner-cta {
  display: none;
  appearance: none;
  margin: 12px auto 4px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(174, 139, 102, 0.65);
  background: rgba(255, 251, 245, 0.96);
  color: #5c4a36;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 74, 54, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.banner-cta:hover,
.banner-cta:focus-visible {
  background: #fff;
  border-color: #9a4c39;
  color: #9a4c39;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* Mobile: сдвиг от центра — влево 17% (15%+2%), вверх 4% */
    left: calc(50% - 17%);
    bottom: calc(14px + 4%);
    transform: translateX(-50%);
    z-index: 5;
    min-width: 148px;
    margin: 0;
  }

  .banner-cta:hover,
  .banner-cta:focus-visible {
    transform: translateX(-50%) translateY(-1px);
  }

  .banner-slide {
    padding-bottom: 0;
  }

  .banner-slide picture,
  .banner-slide img {
    display: block;
    width: 100%;
  }
}

.contact-logo {
  width: min(160px, 48vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal);
  font-weight: 300;
}

.contact-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  object-fit: cover;
}

.contact-details {
  align-self: stretch;
}

.contact-details dl {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.contact-details dl div {
  display: grid;
  gap: 4px;
}

.contact-details dt {
  color: var(--teal);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  color: var(--muted);
}

.contact-details a {
  color: var(--blue-dark);
}

.photo-frame,
.photo-stack img {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition:
    opacity 760ms cubic-bezier(.2,.8,.2,1),
    transform 760ms cubic-bezier(.2,.8,.2,1),
    filter 760ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

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

.photo-frame img,
.photo-stack img {
  width: 100%;
  height: min(420px, 56vw);
  object-fit: cover;
  transition: transform var(--azimut-transition), filter var(--azimut-transition);
}

.photo-stack {
  display: grid;
  gap: 18px;
}

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(113, 83, 47, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(113, 83, 47, 0.08) 1px, transparent 1px),
    var(--soft);
  background-size: 34px 34px;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 300;
}

.yandex-map {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 10px 26px rgba(21, 70, 95, 0.06);
}

.yandex-map iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
}

.price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.notice {
  padding: 14px 16px;
  border: 1px solid rgba(185, 144, 89, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 246, 229, 0.82);
  color: #6c412a;
  font-weight: 300;
}

.route-summary {
  max-width: 880px;
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper);
  color: #31505e;
  font-weight: 300;
  box-shadow: var(--azimut-card-shadow);
}

.service-groups {
  display: grid;
  gap: 22px;
}

.service-group-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--azimut-card-shadow);
}

.service-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 251, 251, 0.72);
}

.service-row span {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 300;
}

.service-row p {
  margin: 6px 0 0;
}

.price-mini-grid,
.price-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.price-mini-card,
.price-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(204, 219, 186, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(204, 219, 186, 0.42));
  box-shadow: var(--azimut-card-shadow);
}

.price-mini-card {
  padding: 20px;
}

.service-price-accordion {
  display: grid;
  gap: 14px;
}

.service-price-item {
  border: 1px solid rgba(213, 185, 139, 0.76);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 10%, rgba(185, 144, 89, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--azimut-card-shadow);
  overflow: hidden;
}

.service-price-item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 20px 58px 20px 22px;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
}

.service-price-item summary::-webkit-details-marker {
  display: none;
}

.service-price-item summary::after {
  content: "⌄";
  position: absolute;
  right: 22px;
  top: 50%;
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--azimut-transition);
}

.service-price-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.service-price-item summary span {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 300;
  line-height: 1.2;
}

.service-price-item summary small {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 246, 229, 0.92);
  color: #6c412a;
  white-space: nowrap;
}

.service-price-item > .notice {
  margin: 0 22px 16px;
}

.service-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 22px 22px;
}

.service-price-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(232, 222, 207, 0.92);
  border-radius: 14px;
  background: rgba(255, 250, 241, 0.72);
}

.service-price-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.service-price-card p {
  color: var(--muted);
  font-size: 14px;
}

.service-price-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

/* Список услуг внутри аккордеона (prices + services) — строки, не карточки */
.service-price-list {
  display: grid;
  gap: 0;
  margin: 0 0 8px;
  padding: 0 10px 12px;
  border-top: 1px solid rgba(213, 185, 139, 0.35);
}

.service-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(232, 222, 207, 0.85);
  background: transparent;
  transition: background 0.2s ease;
}

.service-price-row:last-child {
  border-bottom: 0;
}

.service-price-row:hover {
  background: rgba(255, 250, 241, 0.72);
}

.service-price-row-main {
  min-width: 0;
}

.service-price-row-title {
  display: block;
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.service-price-row-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service-price-row-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.service-price-row-price {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(204, 219, 186, 0.66);
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.price-mini-card span {
  color: var(--muted);
  font-weight: 300;
}

.price-mini-card strong,
.price-card strong,
.service-price-card strong {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(204, 219, 186, 0.66);
  color: var(--blue-dark);
  font-size: 24px;
}

.price-card {
  padding: 24px;
  align-content: space-between;
}

.price-section {
  margin-bottom: 44px;
}

.price-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 180px;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row.heading {
  background: var(--blue);
  color: #fff;
  font-weight: 300;
}

.price-row strong {
  color: var(--blue-dark);
}

.hero-grid-premium {
  display: block;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(185, 144, 89, 0.30);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 230, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(185, 144, 89, 0.16), transparent 36%);
  box-shadow: 0 28px 80px rgba(74, 58, 35, 0.10);
}

.home-wave-stage .hero-grid-premium {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 246, 230, 0.50)),
    radial-gradient(circle at 100% 0%, rgba(185, 144, 89, 0.18), transparent 38%);
  backdrop-filter: blur(6px);
}

.hero-headline-row {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(300px, 380px);
  gap: clamp(44px, 6vw, 82px);
  align-items: start;
  justify-content: space-between;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 10px;
}

.hero-copy h1 {
  max-width: 690px;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 400;
}

.hero-copy .lead {
  max-width: 650px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: auto;
  align-self: start;
  transform: none;
  justify-items: center;
}

.home-wave-stage .hero-visual {
  isolation: isolate;
}

.home-wave-stage .hero-visual::before,
.home-wave-stage .hero-visual::after {
  content: none;
}

.home-wave-stage .hero-visual .compass-card,
.home-wave-stage .hero-proof-list {
  position: relative;
  z-index: 2;
}

.hero-banners-section {
  position: relative;
  padding: clamp(22px, 3vw, 44px) 0 clamp(54px, 7vw, 84px);
  overflow: hidden;
  background: transparent;
}

.hero-banners-over-video {
  background: transparent;
}

.hero-banners-section::before {
  display: none;
}

.banner-carousel {
  position: relative;
  width: 100%;
  margin: 0;
}

.banner-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 2688 / 589;
  min-height: clamp(154px, 19vw, 272px);
  max-height: min(40vh, 322px);
  overflow: hidden;
  background: transparent;
}

.banner-edge-control {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 22%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7e5f3f;
  cursor: pointer;
}

.banner-edge-control::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(185, 144, 89, 0.34);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.70);
  box-shadow: 0 14px 32px rgba(74, 58, 35, 0.14);
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transition: opacity var(--azimut-transition), transform var(--azimut-transition), background var(--azimut-transition);
}

.banner-edge-control::after {
  position: absolute;
  top: 50%;
  font-size: 28px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-54%);
  transition: opacity var(--azimut-transition), transform var(--azimut-transition);
}

.banner-edge-control:hover::before,
.banner-edge-control:focus-visible::before,
.banner-edge-control:hover::after,
.banner-edge-control:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.banner-edge-control--prev {
  left: 0;
}

.banner-edge-control--next {
  right: 0;
}

.banner-edge-control--prev::before {
  left: 18px;
}

.banner-edge-control--next::before {
  right: 18px;
}

.banner-edge-control--prev::after {
  content: "‹";
  left: 33px;
}

.banner-edge-control--next::after {
  content: "›";
  right: 33px;
}

.banner-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 22px 42px rgba(74, 58, 35, 0.12));
}

.banner-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
  background: transparent;
}

.banner-carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 0 0 1px rgba(174, 139, 102, 0.18);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.banner-carousel-dot.is-active {
  background: #d5b98b;
  transform: scale(1.15);
}

.team-banner-section {
  padding: clamp(18px, 2.8vw, 36px) 0 clamp(54px, 7vw, 86px);
  background: transparent;
}

.team-banner-link {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(74, 58, 35, 0.16);
  transform: translateZ(0);
  transition: transform var(--azimut-transition), box-shadow var(--azimut-transition);
}

.team-banner-link:hover,
.team-banner-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 34px 92px rgba(74, 58, 35, 0.22);
}

.team-banner-link picture,
.team-banner-link img {
  display: block;
  width: 100%;
}

.team-banner-link img {
  height: auto;
  object-fit: cover;
}

@keyframes heroLightSweep {
  0%, 42% {
    transform: translateX(-74%);
  }
  58%, 100% {
    transform: translateX(74%);
  }
}

@keyframes homeWaveDrift {
  from {
    transform: translate3d(-1.4%, -0.8%, 0) scale(1.04);
  }
  to {
    transform: translate3d(1.2%, 0.8%, 0) scale(1.07);
  }
}

@keyframes homeWaveSweep {
  from {
    transform: translate3d(-5%, -1%, 0) rotate(-1deg);
  }
  to {
    transform: translate3d(5%, 1%, 0) rotate(1deg);
  }
}

@keyframes homeWaveBands {
  from {
    transform: translate3d(-4%, -1.5%, 0) rotate(-1deg) scale(1);
  }
  to {
    transform: translate3d(4%, 1.5%, 0) rotate(1.4deg) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-wave-stage::before,
  .home-wave-bg,
  .home-wave-bg::before,
  .home-wave-bg::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  .banner-carousel-viewport {
    width: min(420px, calc(100vw - 28px));
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: none;
  }

  .banner-slide img {
    object-fit: cover;
    border-radius: 22px;
    filter: drop-shadow(0 18px 34px rgba(74, 58, 35, 0.12));
  }
}

.hero-visual .compass-card {
  width: min(350px, 100%);
  margin: 0 auto;
}

.hero-visual .compass-card::before {
  content: none;
}

.hero-visual .compass-image {
  filter: drop-shadow(0 20px 34px rgba(82, 62, 35, 0.20)) contrast(1.18) saturate(1.10);
}

.hero-proof-list {
  display: grid;
  gap: 10px;
  width: min(300px, 100%);
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
}

.hero-proof-list li {
  position: relative;
  padding-left: 22px;
  color: #404957;
  font-weight: 300;
}

.hero-proof-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--azimut-gold-gradient);
  transform: translateY(-50%);
}

.software-hero {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(236, 244, 244, 0.88)),
    url("../assets/generated/blog-hero-bg-wide.jpg") center / cover;
}

.software-highlight {
  border-left: 4px solid var(--teal);
}

.software-features .info-card h3 {
  color: var(--blue-dark);
}

.software-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 12px;
}

.software-download-card {
  appearance: none;
  border: 1px solid rgba(174, 139, 102, 0.28);
  border-radius: 18px;
  background: linear-gradient(160deg, #fffdf8, #f6f0e6);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.software-download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(74, 58, 35, 0.12);
  border-color: rgba(174, 139, 102, 0.5);
}

.software-download-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: var(--azimut-gold-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.software-download-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.software-download-card span:last-child {
  color: var(--text-muted, #6e6e73);
  font-size: 13px;
}

.software-download-note {
  min-height: 1.4em;
  color: var(--teal);
  font-size: 14px;
  text-align: center;
}

.accent-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--azimut-gold-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 300;
}

.premium-accordion-section .section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.accordion-stack {
  display: grid;
  gap: 12px;
}

.premium-accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(21, 31, 45, 0.07);
  overflow: hidden;
}

.premium-accordion summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 18px 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: 21px;
  font-weight: 300;
  list-style: none;
}

.premium-accordion summary::-webkit-details-marker {
  display: none;
}

.premium-accordion summary::after {
  content: "⌄";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  font-weight: 300;
  transition: transform var(--azimut-transition), background-color var(--azimut-transition);
}

.premium-accordion[open] summary::after {
  background: var(--soft-2);
  transform: rotate(180deg);
}

.accordion-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(185, 144, 89, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 74% 20%, rgba(174, 139, 102, 0.16), transparent 38%),
    rgba(255, 250, 241, 0.84);
  color: #765f42;
  font-size: 14px;
  font-weight: 300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 28px rgba(113, 83, 47, 0.08);
}

.luxury-route-icon svg {
  width: 28px;
  height: 28px;
}

.luxury-route-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.luxury-route-icon .icon-fill {
  fill: rgba(174, 139, 102, 0.13);
  stroke: none;
}

.luxury-route-icon .accent-line {
  stroke: var(--gold);
}

.accordion-content {
  padding: 0 22px 22px 78px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 22px;
  margin-top: 18px;
}

.accordion-columns h3,
.price-note-card h3 {
  font-size: 17px;
}

.price-note-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafb;
}

.price-note-card p {
  margin-bottom: 8px;
  color: #394554;
  font-weight: 300;
}

.premium-notice {
  max-width: 820px;
  margin: 20px 0 0;
}

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--azimut-transition);
}

.appointment-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.appointment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 34, 0.34);
  backdrop-filter: blur(8px);
}

.appointment-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(720px, calc(100dvh - 44px));
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(227, 231, 235, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(21, 31, 45, 0.22);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--azimut-transition);
}

.appointment-modal.is-open .appointment-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.appointment-dialog .contact-form {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.appointment-dialog .contact-form button {
  width: 100%;
}

/* amoCRM-style lead form (modal) */
.appointment-dialog--amo {
  width: min(420px, 100%);
  gap: 14px;
  padding: 28px 22px 22px;
}

.appointment-dialog--amo .appointment-dialog__head h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.appointment-dialog--amo .appointment-dialog__head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, #6b6560);
}

.amo-lead-form {
  display: grid;
  gap: 12px;
}

.amo-lead-form__field {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #f3f4f6;
  color: #1f2937;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.amo-lead-form__field::placeholder {
  color: #9aa3af;
}

.amo-lead-form__field:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: #0f766e;
  background: #fff;
}

.amo-lead-form__note {
  min-height: 88px;
  resize: vertical;
}

.amo-lead-form__submit {
  appearance: none;
  width: 100%;
  min-height: 50px;
  margin: 4px 0 0;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.amo-lead-form__submit:hover:not(:disabled) {
  background: #0d9488;
}

.amo-lead-form__submit:disabled,
.amo-lead-form__submit.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
}

.amo-lead-form__badge {
  justify-self: end;
  margin: 4px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #5c6570;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.amo-lead-form__legal {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8a8074;
  text-align: left;
}

.amo-lead-form .form-status {
  margin: 0;
}

/* Temporary callback stub while amoCRM forms are offline (003-backcall-tmp) */
.callback-form-stub {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 0 0;
}

.callback-form-stub__phone,
.callback-form-stub__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text, #2c2926);
}

.callback-form-stub__phone a {
  white-space: nowrap;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callback-form-stub__note {
  color: var(--muted, #6b6560);
}

.appointment-dialog--amo .callback-form-stub {
  padding-top: 2px;
}

.call-dialog {
  max-width: 520px;
}

.call-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.header-actions .button,
.header-appointment {
  min-height: 40px;
  padding: 8px 17px;
  border-radius: 8px;
  white-space: nowrap;
}

.order-panel-section {
  background: #fff;
}

.order-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 248, 0.96));
  box-shadow: 0 20px 54px rgba(21, 31, 45, 0.08);
}

.order-panel h2 {
  margin-bottom: 10px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.payment-accordion-section .contact-form {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.payment-request-content {
  padding-right: 22px;
}

.tests-toolbar {
  display: grid;
  gap: 14px;
}

.tests-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.tests-filter-dropdown {
  position: relative;
  flex: 1 1 160px;
  min-width: 0;
}

.tests-filter-dropdown--wide {
  flex: 1.4 1 200px;
}

.tests-filter-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color var(--azimut-transition), box-shadow var(--azimut-transition);
}

.tests-filter-trigger:hover,
.tests-filter-trigger:focus-visible,
.tests-filter-dropdown.is-open .tests-filter-trigger {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(174, 139, 102, 0.12);
}

.tests-filter-name {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tests-filter-value {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tests-filter-chevron {
  color: var(--teal);
  font-size: 14px;
  transition: transform var(--azimut-transition);
}

.tests-filter-dropdown.is-open .tests-filter-chevron {
  transform: rotate(180deg);
}

.tests-filter-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: min(320px, 60vh);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(21, 31, 45, 0.12);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 280ms;
}

.tests-filter-panel[hidden] {
  display: none !important;
}

.tests-filter-dropdown.is-open .tests-filter-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.tests-filter-panel--scroll {
  max-height: min(360px, 65vh);
}

.tests-filter-panel button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}

.tests-filter-panel button:hover,
.tests-filter-panel button:focus-visible,
.tests-filter-panel button.active {
  background: var(--teal-soft);
  color: var(--teal);
  outline: none;
}

.tests-search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.tests-search input::placeholder {
  color: var(--muted);
}

.tests-search input:focus-visible {
  outline: 2px solid rgba(174, 139, 102, 0.35);
  outline-offset: 2px;
  border-color: var(--teal);
}

.tests-filter-block {
  display: grid;
  gap: 10px;
}

.tests-filter-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tests-filter-tabs--compact button {
  font-size: 14px;
}

.tests-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tests-topic-chips button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(185, 144, 89, 0.45);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal);
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  transition: background var(--azimut-transition), border-color var(--azimut-transition);
}

.tests-topic-chips button:hover,
.tests-topic-chips button:focus-visible,
.tests-topic-chips button.active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}

.tests-toolbar-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.tests-count {
  margin: 0;
  color: #5a7a8a;
  font-size: 14px;
  font-weight: 300;
}

.tests-reset {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
}

.tests-reset:hover,
.tests-reset:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.tests-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(185, 144, 89, 0.1);
  color: var(--blue-dark);
  font-weight: 300;
}

.screening-test-card[hidden] {
  display: none;
}

.screening-tests {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.test-grid-card {
  border: 1px solid rgba(219, 232, 232, 0.95);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 250, 0.92));
  box-shadow: 0 10px 28px rgba(21, 31, 45, 0.06);
  overflow: hidden;
  transition: transform var(--azimut-transition), box-shadow var(--azimut-transition), border-color var(--azimut-transition);
}

.test-grid-card:hover,
.test-grid-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(174, 139, 102, 0.35);
  box-shadow: 0 16px 36px rgba(21, 31, 45, 0.1);
}

.test-grid-card__open {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 100%;
  padding: 14px 12px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.test-grid-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
  padding: 10px;
  border: 1px solid rgba(185, 144, 89, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 20%, rgba(174, 139, 102, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 232, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(113, 83, 47, 0.08);
}

.test-grid-card__icon img,
.test-modal__header .test-grid-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  color: #765f42;
}

.test-grid-card__direction {
  display: inline-flex;
  color: var(--teal);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.test-grid-card__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.test-grid-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
}

.test-modal {
  position: fixed;
  inset: 0;
  /* Above fixed site-header (900) so questions never sit under the header */
  z-index: 1400;
  display: grid;
  place-items: start center;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
  overflow: hidden;
}

.test-modal[hidden] {
  display: none;
}

body.test-modal-open {
  overflow: hidden;
}

body.test-modal-open .site-header {
  /* Keep header dimmed behind modal, never over questions */
  z-index: 900;
  pointer-events: none;
}

.test-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 31, 45, 0.5);
}

.test-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92dvh, calc(100dvh - 24px));
  margin-block: auto;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(21, 31, 45, 0.2);
  scroll-padding-top: 56px;
  scroll-margin-top: 0;
}

.test-modal__close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin: -6px -6px 0 0;
  border: 0;
  border-radius: 999px;
  background: rgba(247, 250, 250, 0.98);
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 31, 45, 0.08);
}

.test-modal__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.test-modal__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.test-modal__lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

.test-modal__meta {
  margin: 6px 0 0;
  color: #8a7358;
  font-size: 13px;
  font-weight: 300;
}

.test-modal__intro {
  display: grid;
  gap: 16px;
}

.test-modal__timer-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(185, 144, 89, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(244, 230, 205, 0.92));
  box-shadow: 0 8px 18px rgba(21, 31, 45, 0.06);
}

.test-hourglass {
  --test-progress: 0;
  width: 66px;
  height: 90px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(109, 84, 55, 0.18));
}

.test-hourglass__cap {
  fill: linear-gradient(180deg, #c9a67d, #9f7a52);
  fill: #b8946c;
}

.test-hourglass__frame {
  stroke-linejoin: round;
}

.test-hourglass__sand-top {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 - var(--test-progress)));
  transition: transform 0.95s linear;
}

.test-hourglass__sand-top-surface {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 - var(--test-progress)));
  transition: transform 0.95s linear;
}

.test-hourglass__sand-bottom {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(var(--test-progress));
  transition: transform 0.95s linear;
}

.test-hourglass__sand-bottom-surface {
  opacity: calc(0.25 + var(--test-progress) * 0.75);
  transform: translateY(calc((1 - var(--test-progress)) * 18px));
  transition: transform 0.95s linear, opacity 0.95s linear;
}

.test-hourglass__stream-wrap {
  opacity: calc(1 - var(--test-progress));
  transition: opacity 0.6s ease;
}

.test-hourglass__sand-stream {
  stroke-dasharray: 4 6;
  animation: hourglassStreamFlow 1.1s linear infinite;
}

.test-hourglass__sand-grain--1 {
  animation: hourglassGrainFall 1.4s ease-in infinite;
}

.test-hourglass__sand-grain--2 {
  animation: hourglassGrainFall 1.4s ease-in 0.35s infinite;
}

.test-hourglass__sand-grain--3 {
  animation: hourglassGrainFall 1.4s ease-in 0.7s infinite;
}

.test-timer-count {
  font-size: 22px;
  font-weight: 400;
  color: #6d5437;
  font-variant-numeric: tabular-nums;
}

.test-timer-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@keyframes hourglassStreamFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}

@keyframes hourglassGrainFall {
  0% { opacity: 0; transform: translateY(-2px); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(14px); }
}

.test-modal__dialog h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 28px);
}

.test-direction {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.test-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--azimut-gold-gradient);
  color: #fff;
  font-weight: 300;
  box-shadow: 0 14px 28px rgba(139, 57, 31, 0.20);
}

.test-form {
  display: grid;
  gap: 14px;
  padding: 0 clamp(20px, 3vw, 28px) clamp(22px, 3vw, 30px);
}

.test-question {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(219, 232, 232, 0.9);
  border-radius: 14px;
  background: rgba(247, 250, 250, 0.86);
  scroll-margin-top: 72px;
}

.test-question legend {
  max-width: 100%;
  padding: 0 8px;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.35;
  white-space: normal;
}

.test-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.test-options label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(185, 144, 89, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.test-options input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--gold);
}

.test-result {
  display: none;
  min-height: 54px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(185, 144, 89, 0.12);
  color: var(--blue-dark);
  font-weight: 300;
}

.test-result.is-visible {
  display: block;
}

.test-specialist-invite {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(185, 144, 89, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(245, 236, 220, 0.9));
  box-shadow: 0 10px 28px rgba(31, 47, 58, 0.08);
}

.test-specialist-invite.is-visible {
  display: block;
  animation: testInviteIn 420ms ease both;
}

@keyframes testInviteIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.test-specialist-invite__inner {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.test-specialist-invite__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center 18%;
  background-color: rgba(185, 144, 89, 0.15);
  box-shadow: 0 0 0 2px rgba(185, 144, 89, 0.45);
}

.test-specialist-invite__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep, #8b6a32);
}

.test-specialist-invite__title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--blue-dark, #1f2f3a);
}

.test-specialist-invite__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #6b6560);
}

.test-specialist-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-specialist-invite__actions .button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
}

.you-alone-section .button-primary {
  margin-top: 18px;
}

.mini-card,
.info-card,
.feature-card,
.article-card,
.doctor-card,
.service-card,
.service-group-card,
.price-card,
.price-mini-card,
.service-price-item,
.service-price-card,
.review-card,
.photo-frame,
.contact-form,
.info-panel,
.condition-card,
.premium-accordion,
.screening-test-card,
.order-panel,
.price-note-card,
.notice,
.map-placeholder {
  border-color: transparent;
}

h2,
h3,
.brand,
.button,
.nav-link,
.nav-dropdown-link,
.round-badge,
.badge-list span,
.service-tag,
.eyebrow,
.accent-chip,
.price-card strong,
.price-mini-card strong,
.premium-accordion summary,
.accordion-icon,
strong {
  font-weight: 300;
}

h1 {
  font-weight: 400;
  color: #584021;
}

.site-footer {
  position: relative;
  padding: 58px 0 46px;
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.98) 0%, rgba(255, 250, 242, 0.86) 16%, rgba(246, 236, 220, 0.66) 44%, rgba(246, 236, 220, 0.66) 100%),
    url("../assets/images/onyx-warm-bg.jpg") center / cover;
  color: #51483f;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 247, 238, 0), rgba(251, 247, 238, 0.70) 58%, rgba(251, 247, 238, 0.98));
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(170px, 0.78fr) minmax(320px, 1.48fr) minmax(190px, 0.92fr) minmax(190px, 0.92fr);
  align-items: start;
  gap: 28px;
  min-height: 0;
  padding: 34px 20px 30px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.footer-brand-panel,
.footer-info,
.footer-column {
  min-width: 0;
  padding: 0 22px;
}

.footer-brand-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3px 18px 0;
  margin: 0;
  border-left: none;
}

.footer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(156px, 100%);
  gap: 0;
  text-align: center;
  transform: translateX(-35%);
}

@media (max-width: 560px) {
  .footer-brand-stack {
    transform: none;
    margin-inline: auto;
  }
}

.footer-logo-watermark {
  width: 100%;
  max-width: 136px;
  height: auto;
  margin: 0;
  opacity: 0.72;
  object-fit: contain;
  filter: saturate(0.92);
}

.footer-brand-line {
  width: 44px;
  height: 1px;
  margin: 22px auto 14px;
  background: rgba(174, 139, 102, 0.56);
}

.footer-brand-stack p {
  margin: 0;
  color: #AE8B66;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-info,
.footer-column {
  border-left: 1px solid rgba(174, 139, 102, 0.28);
}

.footer-info-head h3 {
  margin: 0 0 10px;
}

.footer-tagline {
  margin: 0 0 24px;
  color: #8a7358;
  font-size: 15px;
  line-height: 1.5;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.footer-contact-link {
  display: inline-block;
  margin: 0;
  color: #584021;
  font-size: 16px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #AE8B66;
}

.footer-legal p {
  margin: 0 0 12px;
  color: #7c6a55;
  font-size: 13px;
  line-height: 1.55;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

.footer-info p,
.footer-column a {
  color: #5e5a55;
  font-size: 15px;
  line-height: 1.55;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.site-footer h3 {
  margin: 0 0 22px;
  color: #977959;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.35;
}

.site-footer h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 10px;
  background: rgba(174, 139, 102, 0.62);
}

.site-footer p {
  margin-bottom: 14px;
}

.footer-column a {
  display: block;
  margin: 0 0 12px;
  transition: color 0.2s ease;
}

.footer-column a:last-child {
  margin-bottom: 0;
}

.site-footer a:hover {
  color: #AE8B66;
}

.footer-note {
  font-size: 13px;
  color: #7c6a55 !important;
}

.legal-attribution {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(174, 139, 102, 0.18);
  color: #7c6a55;
  font-size: 13px;
}

.legal-attribution summary {
  width: fit-content;
  cursor: pointer;
  color: #977959;
}

.legal-attribution p,
.legal-attribution a {
  font-size: 13px;
}
