:root {
  --ink: #171717;
  --muted: #6e6a63;
  --paper: #fbfaf7;
  --soft: #f1eee8;
  --line: rgba(23, 23, 23, 0.12);
  --gold: #b99055;
  --gold-dark: #8e6a36;
  --charcoal: #20201f;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(28, 24, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(16px, 3vw, 40px);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 155px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
}

.nav a,
.header-phone {
  white-space: nowrap;
  opacity: 0.84;
}

.nav a:hover,
.header-phone:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.86), rgba(12, 12, 12, 0.52) 45%, rgba(12, 12, 12, 0.16)),
    linear-gradient(0deg, rgba(12, 12, 12, 0.6), rgba(12, 12, 12, 0.05) 42%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 380px;
  align-items: center;
  gap: 64px;
  min-height: 100svh;
  padding: 120px 0 72px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #17130d;
}

.btn-primary:hover {
  background: #d1ad73;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-secondary {
  border-color: var(--line);
  background: #fff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.lead-card,
.calculator,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(20, 20, 20, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.lead-card h2 {
  font-size: 28px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.form-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.band {
  background: #171717;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  min-height: 170px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  padding: 34px 24px;
}

.stat:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.stat strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head p:not(.eyebrow),
.quiz-grid > div > p,
.designers-panel p,
.contacts p {
  color: var(--muted);
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card,
.project-card,
.step,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.service-card {
  min-height: 260px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card span,
.step span {
  color: var(--gold-dark);
  font-weight: 900;
}

.service-card p,
.project-card p,
.project-card span,
.step p {
  color: var(--muted);
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.project-card {
  overflow: hidden;
  padding: 18px;
}

.project-feature {
  grid-row: span 2;
}

.project-visual {
  min-height: 260px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
}

.project-feature .project-visual {
  min-height: 470px;
}

.visual-portfolio-1 { background-image: url("assets/portfolio-1.jpg"); }
.visual-portfolio-2 { background-image: url("assets/portfolio-2.jpg"); }
.visual-portfolio-3 { background-image: url("assets/portfolio-3.jpg"); }
.visual-portfolio-4 { background-image: url("assets/portfolio-4.jpg"); }
.visual-portfolio-5 { background-image: url("assets/portfolio-5.jpg"); }
.visual-portfolio-6 { background-image: url("assets/portfolio-6.jpg"); }
.visual-portfolio-7 { background-image: url("assets/portfolio-7.jpg"); }
.visual-portfolio-8 { background-image: url("assets/portfolio-8.jpg"); }
.visual-portfolio-9 { background-image: url("assets/portfolio-9.jpg"); }
.visual-portfolio-10 { background-image: url("assets/portfolio-10.jpg"); }

.quiz-section {
  background: #181818;
  color: #fff;
}

.quiz-grid,
.contact-grid,
.designers-panel,
.process-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.calculator,
.contact-form {
  background: #fff;
  color: var(--ink);
}

.field-group {
  margin-bottom: 18px;
}

.field-group > span,
.range-label > span {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented label {
  position: relative;
  display: grid;
  min-height: 46px;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented label:has(input:checked) {
  border-color: var(--gold);
  background: #f7efe2;
}

input[type="range"] {
  accent-color: var(--gold);
  padding: 0;
}

.calc-result {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--soft);
}

.calc-result span {
  color: var(--muted);
}

.calc-result strong {
  font-size: clamp(24px, 4vw, 38px);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

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

.step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 22px;
}

.step h3,
.step p {
  margin: 0;
}

.designers {
  background: #171717;
  color: #fff;
}

.designers-panel {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(185, 144, 85, 0.18), rgba(255, 255, 255, 0.04)),
    #1f1f1e;
}

.designer-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.designer-points span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  padding: 20px;
  color: var(--ink);
  text-align: left;
}

.faq-item span {
  font-weight: 900;
}

.faq-item p {
  grid-column: 1 / -1;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 0.25s ease, margin 0.25s ease;
}

.faq-item.is-open p {
  max-height: 180px;
  margin-top: 12px;
}

.faq-item.is-open strong {
  transform: rotate(45deg);
}

.contacts {
  background: var(--paper);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.contact-list dt {
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-weight: 800;
}

.footer {
  padding: 34px 0;
  background: #111;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 6px 0 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 360px;
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #171717;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .header-phone {
    justify-self: end;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .quiz-grid,
  .contact-grid,
  .designers-panel,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 26px;
    padding-top: 110px;
  }

  .lead-card {
    max-width: 520px;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 12px;
    padding: 14px 12px;
    grid-template-columns: auto minmax(128px, 1fr) auto;
  }

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

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    justify-self: center;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    opacity: 1;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .lead-card,
  .calculator,
  .contact-form {
    padding: 18px;
  }

  .services-grid,
  .stats-grid,
  .designer-points {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:first-child {
    min-height: 128px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

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

  .project-feature .project-visual,
  .project-visual {
    min-height: 250px;
  }

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

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

@media (max-width: 360px) {
  .site-header {
    gap: 8px;
    padding: 12px 10px;
    grid-template-columns: auto 1fr auto;
  }

  .brand strong {
    display: none;
  }

  .header-phone {
    padding: 0 8px;
    font-size: 12px;
  }
}
