/* ДК ПАР — design tokens from UI reference */
:root {
  --bg: #0f0e0c;
  --bg-elevated: #1c1714;
  --bg-card: #241e1a;
  --text: #f5f0ea;
  --text-muted: #a89f94;
  --accent: #d9a758;
  --accent-hover: #e8bc6e;
  --accent-ink: #1a140e;
  --border: rgba(217, 167, 88, 0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: Manrope, system-ui, sans-serif;
  --max: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--tight {
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* intentional: sticky chrome over hero photo (UI-референс), не glass-карточки */
  background: rgba(15, 14, 12, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(15, 14, 12, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent-hover);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header-phone {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: rgba(217, 167, 88, 0.12);
  color: var(--text);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 14, 12, 0.88) 0%, rgba(15, 14, 12, 0.55) 48%, rgba(15, 14, 12, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 14, 12, 0.85) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 14, 12, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 32rem;
}

/* Model page hero */
.model-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--bg-elevated);
}

.model-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.model-hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
}

.model-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cards grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.model-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.model-card:hover {
  border-color: rgba(217, 167, 88, 0.45);
}

.model-card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.model-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
}

.model-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.price-list strong {
  color: var(--text);
  font-weight: 600;
}

.model-card__link {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.model-card__link:hover {
  color: var(--accent-hover);
}

/* Tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tier {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tier--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(217, 167, 88, 0.1), var(--bg-card) 40%);
}

.tier__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
}

.tier__price {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Options */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.option-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.option-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.option-card__price {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.option-card__unit {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.process__item {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--accent);
}

.process__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
}

.process__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.process__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.trust-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.25s;
}

.trust-card:hover {
  border-color: rgba(217, 167, 88, 0.5);
  color: var(--text);
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(217, 167, 88, 0.1);
  color: var(--accent);
}

.trust-card:hover .trust-card__icon {
  border-color: rgba(217, 167, 88, 0.45);
  background: rgba(217, 167, 88, 0.16);
}

.trust-card__svg {
  display: block;
}

.trust-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.trust-card span:not(.trust-card__icon) {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Lead form */
.lead {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.lead h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
}

.lead p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.lead__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.form textarea {
  min-height: 90px;
  resize: vertical;
}

.form__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form__ok {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(217, 167, 88, 0.15);
  color: var(--accent);
  font-size: 0.9rem;
}

.form__ok.is-visible {
  display: block;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.gallery__main,
.gallery__side {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.gallery__main {
  aspect-ratio: 4 / 3;
}

.gallery__side {
  display: grid;
  gap: 1rem;
}

.gallery__side a,
.gallery__side figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
}

.prices-table th,
.prices-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prices-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.prices-table td:last-child {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: #0a0908;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 960px) {
  .models-grid,
  .tiers,
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead,
  .model-hero__grid,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem 1.75rem;
    background: rgba(15, 14, 12, 0.97);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .header-phone {
    display: none;
  }

  .site-header.is-open .header-phone {
    display: block;
    margin-top: 0.5rem;
  }
}

.tier__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn--small {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--accent-hover);
}

/* Modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
}

.modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal__callout {
  margin: 0.85rem 1.35rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(217, 167, 88, 0.08);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.modal__tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem 0;
}

.modal__tab {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.modal__tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.modal__body {
  padding: 1rem 1.35rem 1.75rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.spec-tier-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chip-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-btn span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.chip-btn.is-active {
  border-color: var(--accent);
  background: rgba(217, 167, 88, 0.14);
  color: var(--accent);
}

.chip-btn.is-active span {
  color: var(--accent);
}

.spec-from {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.spec-block {
  margin-bottom: 1.35rem;
}

.spec-block h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.spec-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-block li {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-block strong {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-block span {
  color: var(--text);
  font-size: 0.95rem;
}

.spec-acc {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.spec-acc summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  list-style: none;
}

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

.spec-table-wrap {
  overflow-x: auto;
  padding: 0 0.5rem 0.75rem;
}

.spec-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.spec-table th,
.spec-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  text-align: left;
}

.spec-table thead th {
  color: var(--accent);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--bg-card);
}

.spec-table tbody th {
  color: var(--text-muted);
  font-weight: 500;
  width: 18%;
}

.spec-table tr.is-same td {
  color: var(--text-muted);
}

.spec-table tr.is-diff td {
  color: var(--text);
}

.spec-table tr.is-diff td:nth-child(n + 2) {
  box-shadow: inset 0 -1px 0 rgba(217, 167, 88, 0.15);
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.calc__controls {
  display: grid;
  gap: 1.25rem;
}

.calc-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.calc-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.calc-tiers .chip-btn {
  width: 100%;
  align-items: stretch;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  text-align: left;
  min-height: 4.75rem;
}

.calc-tiers .chip-btn span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.calc-tiers .chip-btn.is-active span {
  color: var(--accent);
}

@media (max-width: 720px) {
  .calc-tiers {
    grid-template-columns: 1fr;
  }

  .calc-tiers .chip-btn {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
  }

  .calc-tiers .chip-btn span {
    font-size: 0.95rem;
  }
}

.calc-group {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.calc-group h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.calc-group h3 span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.calc-row strong {
  display: block;
  font-size: 0.92rem;
}

.calc-row span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.calc-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem;
}

.calc-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.calc-stepper input {
  width: 3rem;
  text-align: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.calc-switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.calc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3a342f;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-switch span::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s;
}

.calc-switch input:checked + span {
  background: var(--accent);
}

.calc-switch input:checked + span::before {
  transform: translateX(20px);
  background: var(--accent-ink);
}

.calc-radio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 0.9rem;
}

.calc-radio:last-child {
  border-bottom: 0;
}

.calc-radio em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.calc__summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.calc__summary h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.calc__total {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.calc__breakdown {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.calc__breakdown strong {
  color: var(--text);
}

.calc__opt-line {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.calc__note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc__summary .btn + .btn {
  margin-top: 0.65rem;
}

@media (min-width: 900px) {
  .modal {
    align-items: center;
    padding: 2rem;
  }

  .modal__sheet {
    border-radius: var(--radius);
    max-height: min(88vh, 860px);
  }
}

@media (max-width: 960px) {
  .calc {
    grid-template-columns: 1fr;
  }

  .calc__summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .models-grid,
  .tiers,
  .options-grid,
  .process,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-end;
    min-height: 92vh;
  }

  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(15, 14, 12, 0.35) 0%, rgba(15, 14, 12, 0.92) 70%);
  }
}
