:root {
  --bg: #0D0D0D;
  --ink: #F5F1E8;
  --muted: #A9A399;
  --accent: #D4A017;
  --line: #2A2A2A;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4.6vw, 56px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

section {
  padding: clamp(72px, 9vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.section-note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 24px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background-color 0.25s ease-out, color 0.25s ease-out;
}

.btn-solid {
  background: var(--accent);
  color: var(--bg);
}

.btn-solid:hover {
  background: transparent;
  color: var(--accent);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 36px;
  font-size: 16px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  transition: height 0.3s ease-out;
}

.site-header.is-compact .header-inner {
  height: 58px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

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

.header-cta {
  min-height: 44px;
  padding: 10px 22px;
}

.site-nav .nav-cta {
  display: none;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

.burger svg line {
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  transform-origin: 12px 12px;
}

body.nav-open .burger-line-1 {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .burger-line-2 {
  opacity: 0;
}

body.nav-open .burger-line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  border-top: none;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 96px) 0;
  overflow: hidden;
}

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

.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.86) 45%, rgba(13, 13, 13, 0.58) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.62) 0%, rgba(13, 13, 13, 0.42) 40%, rgba(13, 13, 13, 0.88) 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 14.5vw, 210px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero-poster {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 100px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 8px;
}

.hero-poster .dot {
  color: var(--accent);
}

.hero-offer {
  margin-top: clamp(36px, 5vw, 72px);
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--accent);
}

.hero-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- manifest ---------- */

.manifest-text {
  max-width: 760px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
}

/* ---------- services / price ---------- */

.price {
  width: 100%;
  max-width: 860px;
  border-collapse: collapse;
}

.price tr {
  display: flex;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.price tr:first-child {
  border-top: 1px solid var(--line);
}

.price th {
  flex: 1;
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}

.price th::after {
  content: "";
  flex: 1;
  min-width: 48px;
  margin: 0 16px;
  border-bottom: 1px dotted rgba(245, 241, 232, 0.35);
  transform: translateY(-5px);
}

.price td {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- calculator ---------- */

.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  max-width: 1080px;
}

.calc-group {
  border: 1px solid var(--line);
  padding: clamp(20px, 2.5vw, 32px);
}

.calc-group legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px;
  margin-left: -12px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 6px 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-box {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--muted);
  position: relative;
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}

.choice:hover .choice-box {
  border-color: var(--accent);
}

.choice input:checked + .choice-box {
  background: var(--accent);
  border-color: var(--accent);
}

.choice input:checked + .choice-box::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.choice input:focus-visible + .choice-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.choice-label {
  flex: 1;
}

.choice-label a {
  color: var(--ink);
}

.choice-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.choice input:checked ~ .choice-price {
  color: var(--accent);
}

.calc-total {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: clamp(20px, 2.5vw, 32px);
}

.calc-combo {
  width: 100%;
  color: var(--muted);
  font-size: 14px;
}

.calc-sum {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-right: auto;
}

.calc-sum span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.calc-sum output {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- masters ---------- */

.masters-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.master {
  --master-pad: clamp(24px, 2.5vw, 36px);
  padding: var(--master-pad);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.master:first-child {
  border-left: none;
}

.master-photo {
  position: relative;
  margin: calc(var(--master-pad) * -1) calc(var(--master-pad) * -1) 8px;
  overflow: hidden;
}

.master-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.master-mono {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}

.master h3 {
  font-size: 22px;
}

.master-spec {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.master blockquote {
  color: var(--muted);
  font-size: 15px;
  margin-top: auto;
  padding-top: 12px;
}

/* ---------- works ---------- */

.works-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work img {
    transition: transform 0.5s ease-out, filter 0.3s ease-out;
  }

  .work:hover img {
    transform: scale(1.04);
    filter: contrast(1.15);
  }
}

/* ---------- loyalty ---------- */

.loyalty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.loyalty-item {
  padding: clamp(28px, 3.5vw, 48px);
}

.loyalty-item + .loyalty-item {
  border-left: 1px solid var(--line);
}

.loyalty-item h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin-bottom: 16px;
}

.loyalty-item p {
  color: var(--muted);
  max-width: 44ch;
}

.loyalty-scale {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 380px;
}

.loyalty-step {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
}

.loyalty-step.is-free {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- numbers ---------- */

.numbers {
  position: relative;
  overflow: hidden;
}

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

.numbers-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.numbers-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.88) 0%, rgba(13, 13, 13, 0.93) 100%);
}

.numbers > .container {
  position: relative;
  z-index: 1;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 48px);
}

.number-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6vw, 92px);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.number {
  text-align: center;
}

.number dd {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- reviews ---------- */

.reviews-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.review {
  border: 1px solid var(--line);
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review blockquote {
  font-size: 16px;
  line-height: 1.7;
}

.review-author {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-heading {
  margin: 0;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 21px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease-out;
}

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

.faq-icon {
  flex: none;
  color: var(--accent);
  transition: transform 0.3s ease-out;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel p {
  max-width: 68ch;
  color: var(--muted);
  padding-bottom: 24px;
}

/* ---------- final cta ---------- */

.final-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.final-info h2 {
  margin-bottom: 32px;
}

.final-contacts {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.final-contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.final-contacts svg {
  flex: none;
  color: var(--accent);
}

.final-contacts strong {
  font-weight: 600;
}

.book-form {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="tel"] {
  min-height: 52px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.2s ease-out;
}

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

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field-error {
  font-size: 14px;
  color: var(--accent);
}

.field.is-invalid input[type="text"],
.field.is-invalid input[type="tel"] {
  border-color: var(--accent);
}

.field-consent .choice {
  min-height: 44px;
  align-items: flex-start;
  padding-top: 0;
}

.field-consent .choice-box {
  margin-top: 3px;
}

.field-consent .choice-label {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 5vw, 72px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px 64px;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
}

.footer-tag {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.footer-nav,
.footer-social {
  display: grid;
  gap: 4px;
}

.footer-nav a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--accent);
}

.footer-address {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 14px;
}

.footer-legal {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

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

  .hero-brand,
  .hero-poster,
  .hero-offer {
    animation: hero-in 0.7s ease-out backwards;
  }

  .hero-poster {
    animation-delay: 0.12s;
  }

  .hero-offer {
    animation-delay: 0.24s;
  }

  @keyframes hero-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- 768 ---------- */

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--bg);
    display: none;
    padding: 120px clamp(20px, 4vw, 48px) 48px;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    min-height: 56px;
    font-size: 26px;
    padding: 0;
    color: var(--ink);
  }

  .site-nav .nav-cta {
    display: inline-flex;
    margin-top: 32px;
    min-height: 56px;
    font-size: 16px;
    padding: 14px 36px;
    color: var(--bg);
  }

  .logo {
    position: relative;
    z-index: 46;
  }

  .burger {
    display: inline-flex;
    position: relative;
    z-index: 46;
  }

  .header-cta {
    margin-left: auto;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
  }

  .masters-grid {
    grid-template-columns: 1fr 1fr;
  }

  .master:nth-child(odd) {
    border-left: none;
  }

  .master:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .final-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 640 / mobile ---------- */

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }

  .burger {
    margin-left: auto;
  }

  .price,
  .price tbody {
    display: block;
    border: none;
  }

  .price tbody {
    display: grid;
    gap: 12px;
  }

  .price tr {
    display: block;
    border: 1px solid var(--line);
    padding: 18px 20px;
  }

  .price tr:first-child {
    border-top: 1px solid var(--line);
  }

  .price th {
    display: block;
    font-size: 17px;
  }

  .price th::after {
    display: none;
  }

  .price td {
    display: block;
    margin-top: 6px;
    font-size: 20px;
  }

  .calc-form {
    grid-template-columns: 1fr;
  }

  .calc-total {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .calc-sum {
    margin-right: 0;
    justify-content: space-between;
  }

  .masters-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 12px;
  }

  .master {
    border: 1px solid var(--line);
  }

  .master-photo img {
    aspect-ratio: 4 / 3;
  }

  .master:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .loyalty-grid {
    grid-template-columns: 1fr;
  }

  .loyalty-item + .loyalty-item {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .book-form .btn {
    width: 100%;
  }
}

.footer-social-off {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  color: var(--muted);
}

.footer-demo { margin-top: 8px; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted, #8a8a8a); }
