.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  animation: header-slide-down 0.65s var(--ease-out-expo) both;
  transition:
    background 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    backdrop-filter 0.4s var(--ease-out-expo);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(100% - 2rem, calc(var(--max-w) + 4rem));
  margin-inline: auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  animation: fade-in 0.55s var(--ease-out-expo) 0.45s both;
}

.logo__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo__sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo__rule {
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav a:nth-child(1) { animation: fade-in 0.45s var(--ease-out-expo) 0.5s  both; }
.nav a:nth-child(2) { animation: fade-in 0.45s var(--ease-out-expo) 0.58s both; }
.nav a:nth-child(3) { animation: fade-in 0.45s var(--ease-out-expo) 0.66s both; }
.nav a:nth-child(4) { animation: fade-in 0.45s var(--ease-out-expo) 0.74s both; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:active {
  transform: scale(0.95) !important;
  transition-duration: 0.08s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fade-in 0.45s var(--ease-out-expo) 0.7s both;
}

.burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: fade-in 0.45s var(--ease-out-expo) 0.45s both;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(5, 5, 5, 0.96);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 99;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateX(22px);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
}

.mobile-nav.is-open a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.22s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.29s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 0.36s; }

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.45);
  animation: hero-zoom-out 5s var(--ease-out-expo) both;
  will-change: transform;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.75) 55%, var(--bg-deep) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Hero content animates in via keyframes — independent of IntersectionObserver */
.hero__eyebrow  { animation: fade-up 0.7s var(--ease-out-expo) 0.35s both; }
.hero__title    { animation: fade-up 0.7s var(--ease-out-expo) 0.5s  both; }
.hero__lead     { animation: fade-up 0.7s var(--ease-out-expo) 0.65s both; }
.hero__actions  { animation: fade-up 0.7s var(--ease-out-expo) 0.8s  both; }
.hero__meta     { animation: fade-up 0.7s var(--ease-out-expo) 0.8s  both; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero__eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
  max-width: 14ch;
}

.hero__title span {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
}

.hero__lead {
  color: var(--text-muted);
  max-width: 40ch;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.hero__meta-item strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5.5vw, 1.75rem);
  display: block;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero__meta-item span {
  font-size: clamp(0.6rem, 2.6vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  padding-block: 0.85rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 3rem;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  transition:
    transform 0.45s var(--ease-out-expo),
    border-color 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.stat-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  /* Делаем любую иконку белой — чёрное на чёрном сливалось */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.stat-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.stat-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tabs-section {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.tabs__tab {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.tabs__tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--bg-deep);
}

.tabs__panel {
  display: none;
  padding: var(--space-lg);
  animation: tab-in 0.5s var(--ease-out-expo);
}

.tabs__panel.is-active {
  display: block;
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .tab-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.tab-grid__visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

.tab-grid__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 0.8s var(--ease-out-expo);
}

.tab-grid__visual:hover img {
  transform: scale(1.04);
}

.tab-grid__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tab-grid__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.showcase {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 720px) {
  .showcase {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 180px;
  }

  .showcase__item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
  }

  .showcase__item:nth-child(2) {
    grid-column: span 5;
  }

  .showcase__item:nth-child(3) {
    grid-column: span 5;
  }
}

.showcase__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 160px;
}

.showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.55);
  transition:
    filter 0.6s ease,
    transform 0.8s var(--ease-out-expo);
}

.showcase__item:hover img {
  filter: grayscale(0.2) contrast(1.05) brightness(0.65);
  transform: scale(1.03);
}

.showcase__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.showcase__caption h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase__caption p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.process {
  counter-reset: step;
}

.process__item {
  display: grid;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--border);
  grid-template-columns: auto 1fr;
  align-items: start;
}

.process__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
}

.process__item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.process__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lead-form-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-deep));
  box-shadow: var(--shadow-soft);
}

.lead-form__intro {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 62ch;
}

.lead-form__intro a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-form__grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .lead-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form__grid .field--full {
    grid-column: 1 / -1;
  }
}

.field textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 120px;
  resize: vertical;
  width: 100%;
  color: #ffffff;
  caret-color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  transition:
    border-color 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
}

.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.field textarea::-webkit-input-placeholder {
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  outline: none;
}

.check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
  align-items: center;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.08s ease;
}

.check-pill:active {
  transform: scale(0.96);
}

/* Нативный чекбокс скрыт (на iOS он не отрисовывался) — стилизуем сам pill */
.check-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Выбранная «таблетка» — белая с тёмным текстом, без галочек и кружков */
.check-pill:has(input:checked) {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--bg-deep);
}

.lead-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.lead-form__actions .btn {
  width: 100%;
}

@media (min-width: 520px) {
  .lead-form__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .lead-form__actions .btn {
    width: auto;
  }
}

.lead-form__fine {
  margin: var(--space-sm) 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 58ch;
}

.calc {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-deep));
}

.calc__grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 800px) {
  .calc__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field__legend {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.35rem;
}

.field__hint {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 0.2rem;
}

.tab-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: var(--space-md);
}

.tab-actions .btn {
  width: 100%;
}

@media (min-width: 520px) {
  .tab-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .tab-actions .btn {
    width: auto;
  }
}

.process-aside {
  margin-top: var(--space-lg);
}

.process-aside__photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  max-height: 420px;
  box-shadow: var(--shadow-soft);
}

.process-aside__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05) brightness(0.92);
  transition:
    transform 0.85s var(--ease-out-expo),
    filter 0.5s ease;
}

.process-aside__photo:hover img {
  transform: scale(1.03);
  filter: grayscale(0.15) contrast(1.05) brightness(0.95);
}

.process-aside__caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.catalog-modal[open],
.demo-modal[open] {
  animation: modal-enter 0.4s var(--ease-out-expo) both;
}

.catalog-modal {
  width: min(100% - 2rem, 640px);
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.catalog-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.catalog-modal__inner {
  position: relative;
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 2.75rem);
  max-height: min(88vh, 900px);
  overflow-y: auto;
}

.catalog-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.catalog-modal__close:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.catalog-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin: 0 0 var(--space-md);
  padding-right: 3rem;
  letter-spacing: -0.02em;
}

.catalog-modal__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 var(--space-sm);
}

.modal-list {
  margin: var(--space-md) 0;
  padding: 0;
  list-style: none;
}

.modal-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.85;
}

.modal-note {
  margin-top: var(--space-md) !important;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
}

.field input,
.field select {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: #ffffff;
  caret-color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  transition:
    border-color 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
}

.field input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.field input::-webkit-input-placeholder {
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.field input:focus,
.field select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  outline: none;
}

.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

.field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field select option,
.field select optgroup {
  background: var(--bg-card);
  color: var(--text);
}

.calc__result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc__result strong {
  color: var(--text);
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.calc__disclaimer {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}


.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer__brand .logo {
  margin-bottom: var(--space-sm);
}

.footer__brand .logo__title {
  font-size: clamp(1.05rem, 1.9vw, 1.43rem);
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32ch;
  margin: 0;
}

.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 var(--space-sm);
}

.footer__col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.demo-modal {
  width: min(100% - 2rem, 520px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.demo-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.demo-modal__inner {
  position: relative;
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 2.75rem);
}

.demo-modal__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 var(--space-sm);
}

.demo-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
  padding-right: 3rem;
}

.demo-modal__text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 var(--space-lg);
}

.demo-modal__text strong {
  color: var(--text);
}

.demo-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-modal__actions .btn {
  width: 100%;
}

@media (min-width: 520px) {
  .demo-modal__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .demo-modal__actions .btn {
    width: auto;
  }
}
