:root {
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --paper: #fafafa;
  --yellow: #f2c200;
  --yellow-ink: #1a1a1a;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; }

h1 { margin: 0 0 16px; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; }

h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }

h3 { margin: 0 0 8px; font-size: 20px; }

p { margin: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 3px solid var(--ink);
}

.logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav { display: flex; gap: 22px; }

.nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover { color: #8a6d00; }

.nav-toggle, .nav-burger { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 64px;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 180px;
  height: 8px;
  margin-top: 16px;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 0 / 100% 4px no-repeat,
    linear-gradient(#dedede, #dedede) 0 6px / 72% 3px no-repeat;
}

.lede { max-width: 36ch; color: var(--muted); margin-bottom: 28px; }

.button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover { background: #ffd84a; }

.hero-photo {
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ececec;
  padding: 28px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.quote {
  padding: 88px 28px;
  background: #111;
  color: #fff;
  text-align: center;
}

.quote p {
  max-width: 28em;
  margin: 0 auto 18px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
}

.quote-end { color: #f3e7a2; }

.about, .services, .prices, .reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.name { margin: 8px 0 16px; font-weight: 700; }

dl { margin: 24px 0 0; }

dl div { margin-top: 16px; }

dt { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

dd { margin: 4px 0 0; }

.section-head { max-width: 40em; margin-bottom: 32px; }

.section-head p { margin-top: 8px; color: var(--muted); }

.cards, .price-list, .review-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards { grid-template-columns: repeat(3, 1fr); }

.cards li, .price-list li, .review-list li {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.price-list { grid-template-columns: repeat(3, 1fr); }

.sum { margin: 8px 0; font-size: 32px; font-weight: 700; }

.review-list { grid-template-columns: 1fr 1fr; }

blockquote { margin: 0; }

blockquote p { color: #222; }

.who { margin-top: 16px; font-weight: 700; }

.who span { display: block; font-weight: 500; color: var(--muted); }

.contacts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 64px 28px;
  background: #111;
  color: #fff;
}

.contacts p { margin-top: 10px; color: #d7d7d7; max-width: 42em; }

.contact-list { margin: 0; padding: 0; list-style: none; }

.contact-list a {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.contact-list a:hover { color: var(--yellow); }

@media (max-width: 860px) {
  .nav-burger {
    display: block;
    width: 42px;
    height: 42px;
    cursor: pointer;
  }

  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }

  .nav-burger span::before,
  .nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-burger span::before { top: -7px; }
  .nav-burger span::after { top: 7px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 3px solid var(--ink);
  }

  .nav a { padding: 14px 28px; border-top: 1px solid var(--line); }

  .nav-toggle:checked ~ .nav { display: flex; }

  .hero, .about, .contacts, .cards, .price-list, .review-list {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 40px; }
  .hero-photo { order: -1; width: min(280px, 70vw); }
}
