:root {
  --ink: #20231f;
  --muted: #6d716c;
  --paper: #f5f1e9;
  --paper-strong: #fffdf8;
  --graphite: #2f332f;
  --olive: #6d7655;
  --clay: #b67a50;
  --steel: #c4c9c4;
  --line: rgba(32, 35, 31, 0.14);
  --shadow: 0 24px 80px rgba(32, 35, 31, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px 16px 12px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(245, 241, 233, 0.88);
  box-shadow: 0 18px 54px rgba(32, 35, 31, 0.16);
  backdrop-filter: blur(22px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 44px rgba(32, 35, 31, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: var(--graphite);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.phone-link:hover {
  color: var(--clay);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.phone-link {
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  background: var(--graphite);
  box-shadow: 0 16px 32px rgba(32, 35, 31, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--clay);
  box-shadow: 0 18px 40px rgba(182, 122, 80, 0.28);
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(32, 35, 31, 0.14);
}

.button-light {
  color: var(--ink);
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(32, 35, 31, 0.08);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  isolation: isolate;
  background: var(--graphite);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 20, 18, 0.72) 0%, rgba(18, 20, 18, 0.52) 43%, rgba(18, 20, 18, 0.16) 100%),
    linear-gradient(180deg, rgba(245, 241, 233, 0) 65%, var(--paper) 100%);
}

.hero-inner {
  min-height: 840px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 1fr);
  align-items: end;
  gap: 36px;
  padding: 150px 0 92px;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contacts h2,
.request-card h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 86px);
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

.hero-panel {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.quick-request {
  position: relative;
  z-index: 2;
  margin-top: -48px;
}

.request-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.request-copy {
  padding-right: 10px;
}

.request-copy p:last-child,
.section-head p,
.section-copy p,
.contacts p,
.service-card p,
.steps p,
.review-top p,
.review-text,
.faq-list p {
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(182, 122, 80, 0.12);
}

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

.section {
  padding: 112px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.compact {
  max-width: 620px;
}

.section h2,
.contacts h2,
.request-card h2 {
  font-size: clamp(32px, 4.8vw, 56px);
}

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

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
}

.service-card h3,
.steps h3,
.work-card h3 {
  margin: 0;
  line-height: 1.14;
  font-size: 22px;
}

.service-card p {
  margin: 16px 0 0;
}

.service-number {
  margin-bottom: auto;
  color: var(--clay);
  font-weight: 900;
}

.works {
  background: #e9e3d8;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 14px;
}

.work-card {
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(32, 35, 31, 0.1), rgba(32, 35, 31, 0.76)), url("../assets/design-collage.png");
  background-size: 290% 100%;
}

.work-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.work-product {
  background-position: 0% center;
}

.work-interior {
  background-position: 45% center;
}

.work-brand {
  background-position: 100% center;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 120px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
  background: var(--olive);
}

.steps p {
  grid-column: 2;
  margin: -8px 0 0;
}

.reviews {
  padding-top: 0;
}

.reviews-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.reviews-head .section-head {
  margin-bottom: 0;
}

.reviews-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.slider-button {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--graphite);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-button:hover {
  transform: translateY(-2px);
  background: var(--clay);
}

.reviews-slider {
  overflow: hidden;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 28px) / 3);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  scroll-snap-align: start;
}

.review-card::after {
  content: "“";
  margin-top: auto;
  color: rgba(182, 122, 80, 0.28);
  font-family: Georgia, serif;
  font-size: 86px;
  line-height: 0.75;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.review-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  border-radius: 8px;
  background: var(--olive);
}

.review-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.review-top p,
.review-text {
  margin: 0;
}

.review-text {
  font-size: 17px;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 35, 31, 0.22);
  cursor: pointer;
}

.review-dot.is-active {
  width: 30px;
  background: var(--clay);
}

.faq {
  padding-top: 0;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

summary {
  padding: 22px 24px;
  font-weight: 850;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
}

.contacts {
  padding: 86px 0;
  color: #fff;
  background: var(--graphite);
}

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.contacts p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-phone {
  grid-column: 1 / -1;
  font-size: clamp(34px, 8vw, 86px);
  font-weight: 900;
  line-height: 1;
}

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

  .main-nav {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-actions {
    display: none;
  }

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

  .hero-inner,
  .split,
  .contacts-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .request-card,
  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .reviews-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .section-copy {
    position: static;
  }
}

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

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    max-width: 130px;
    white-space: normal;
    line-height: 1.05;
  }

  .hero,
  .hero-inner {
    min-height: 780px;
  }

  .hero-inner {
    padding: 112px 0 58px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel span {
    min-height: 52px;
  }

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

  .quick-request {
    margin-top: 0;
    padding-top: 18px;
  }

  .request-card,
  .service-card,
  .steps article {
    padding: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .work-card {
    min-height: 310px;
  }

  .steps article {
    grid-template-columns: 44px 1fr;
  }

  .steps p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .reviews-head {
    align-items: start;
    flex-direction: column;
  }

  .reviews-track {
    grid-auto-columns: 88%;
  }

  .review-card {
    min-height: 360px;
  }
}
