:root {
  --ink: #201915;
  --muted: #766b63;
  --paper: #f4eee5;
  --card: #fffaf1;
  --wood: #9a5b31;
  --dark: #17110d;
  --sage: #697461;
  --line: rgba(32, 25, 21, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(244, 238, 229, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.top-cta { padding: 12px 18px; background: var(--dark); color: white; border-radius: 999px; font-weight: 700; }

.hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(30px, 6vw, 88px) clamp(18px, 4vw, 56px);
}

.eyebrow { margin: 0 0 14px; color: var(--wood); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
h1, h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: .96; }
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.055em; }
h2 { font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -.04em; }
.lead { font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: var(--muted); max-width: 660px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { border: 1px solid var(--dark); border-radius: 999px; padding: 15px 22px; font-weight: 800; cursor: pointer; font-size: 15px; }
.primary { background: var(--dark); color: white; }
.ghost { background: transparent; color: var(--dark); }
.hero-visual { position: relative; border-radius: 36px; overflow: hidden; min-height: 580px; box-shadow: 0 30px 80px rgba(45, 29, 18, .22); }
.hero-visual img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.badge { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 18px; border-radius: 20px; background: rgba(255, 250, 241, .88); backdrop-filter: blur(12px); font-weight: 800; }

.intro { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro div { padding: clamp(24px, 4vw, 48px); border-right: 1px solid var(--line); }
.intro div:last-child { border-right: 0; }
.intro span { color: var(--sage); font-weight: 900; }
.intro h2 { font-size: clamp(24px, 3vw, 36px); margin: 18px 0 12px; }
.intro p, .section-head p, .material-copy p, .contacts p { color: var(--muted); line-height: 1.65; }

.section { padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 56px); }
.section-head { max-width: 820px; margin-bottom: 34px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 16px; }
figure { margin: 0; position: relative; overflow: hidden; border-radius: 28px; background: var(--card); }
figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
figure:hover img { transform: scale(1.04); }
figcaption { position: absolute; left: 14px; bottom: 14px; padding: 10px 13px; border-radius: 999px; background: rgba(23, 17, 13, .76); color: white; font-size: 13px; font-weight: 800; }
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

.materials { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 56px); background: var(--dark); color: white; }
.materials .eyebrow { color: #d49b68; }
.material-copy p { color: rgba(255,255,255,.68); font-size: 18px; }
.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.material-grid div { min-height: 180px; display: flex; align-items: end; padding: 22px; border-radius: 28px; background: linear-gradient(135deg, rgba(154,91,49,.95), rgba(105,116,97,.82)); font-size: 24px; font-family: Georgia, 'Times New Roman', serif; }

.quiz-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; }
label { display: grid; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 800; }
select, input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; background: white; color: var(--ink); font: inherit; }
.quiz-card .btn { border: 0; align-self: end; min-height: 52px; }

.contacts { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 56px); }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-links a { padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); font-weight: 900; }
.contact-links a:hover { background: var(--dark); color: white; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .materials, .contacts { grid-template-columns: 1fr; }
  .hero-visual, .hero-visual img { min-height: 420px; }
  .intro { grid-template-columns: 1fr; }
  .intro div { border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .quiz-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .top-cta { display: none; }
  h1 { font-size: 42px; }
  .gallery, .material-grid, .contact-links { grid-template-columns: 1fr; }
  .wide, .tall { grid-column: auto; grid-row: auto; }
  .hero-visual, .hero-visual img { min-height: 360px; border-radius: 24px; }
  footer { flex-direction: column; }
}
