:root {
  --paper: #f8f7f4;
  --surface: #ffffff;
  --surface-muted: #efede8;
  --text: #161513;
  --muted: #69645d;
  --line: #d9d3ca;
  --dark: #171615;
  --accent: #6d2632;
  --radius: 8px;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 0;
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: blur(10px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.brand-text {
  font-size: 15px;
  font-weight: 700;
}

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

.nav a {
  padding: 8px 0;
  transition: color 160ms ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button-primary {
  background: var(--dark);
  color: var(--surface);
}

.button-primary:hover {
  background: #2b2926;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #bfb7ad;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: var(--text);
}

.menu-button span + span {
  margin-top: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 9vw, 116px) 0 72px;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.45;
}

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

.service-line {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.44fr minmax(0, 0.56fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-label,
.modal-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.section-copy {
  color: var(--muted);
  font-size: 18px;
}

.facts-list {
  display: grid;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.facts-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.facts-list div + div {
  border-top: 1px solid var(--line);
}

.facts-list strong {
  color: var(--text);
  font-size: 16px;
}

.facts-list span {
  color: var(--muted);
  font-size: 15px;
}

.service-card {
  display: grid;
  gap: 14px;
  width: 100%;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.service-card:hover {
  border-color: #bfb7ad;
}

.service-card-title {
  max-width: 620px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.08;
}

.service-card-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.service-card-action {
  align-self: end;
  color: var(--accent);
  font-weight: 700;
}

.comparison-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.comparison-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comparison-item img {
  width: 100%;
  height: clamp(480px, 54vw, 620px);
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  object-position: top center;
}

.comparison-item div {
  padding: 18px;
}

.comparison-item p {
  color: var(--muted);
}

.process-section {
  border-top: 1px solid var(--line);
  background: var(--dark);
  color: var(--surface);
}

.process-section .section-grid {
  border-top: 0;
}

.process-section .section-label {
  color: #cbbfb2;
}

.process-section h2 {
  color: var(--surface);
}

.process-list {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.process-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px;
}

.process-list article + article {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list span {
  color: #cbbfb2;
  font-size: 14px;
  font-weight: 700;
}

.process-list p {
  color: rgba(255, 255, 255, 0.72);
}

.work-list,
.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-list article,
.review-list blockquote {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.work-list p,
.review-list p {
  color: var(--muted);
}

.review-list blockquote {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.review-list p {
  font-size: 18px;
  line-height: 1.45;
}

cite {
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.48fr minmax(0, 0.52fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.contact-copy p:not(.section-label) {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a,
.footer-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  outline: none;
}

input,
input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 124px;
  padding: 12px;
  resize: vertical;
}

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

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

.site-footer {
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: clamp(28px, 5vw, 72px);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  max-width: 360px;
  margin-top: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  align-content: start;
}

.service-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transform: translate(-50%, -50%);
  overflow: auto;
}

.service-modal::backdrop {
  background: rgba(22, 21, 19, 0.46);
}

.service-modal[open] {
  display: block;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.modal-lead {
  max-width: 640px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 28px;
  margin-top: 28px;
}

.modal-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.modal-columns p {
  color: var(--muted);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

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

  .nav a {
    padding: 12px 0;
  }

  .menu-button {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .hero,
  .section-grid,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-media img {
    aspect-ratio: 1.7;
  }

  .work-list,
  .review-list,
  .comparison-block,
  .footer-links {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-card,
  .lead-form,
  .work-list article,
  .review-list blockquote,
  .service-modal {
    padding: 18px;
  }

  .process-list article {
    grid-template-columns: 1fr;
  }
}
