@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat.woff") format("woff");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --stone: #f1efeb;
  --line: #ddd8d0;
  --ink: #2f2d2a;
  --ink-soft: #5c5852;
  --taupe: #9a8c7a;
  --taupe-dark: #6f6255;
  --night: #2b2a28;
  --sand: #d3cec5;
  --wrap: 1140px;
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--taupe); text-underline-offset: 3px; }
a:hover { color: var(--taupe-dark); }
:focus-visible { outline: 3px solid var(--taupe); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 19ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 22ch; }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; }
.site-head .brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 1rem; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--head); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border-radius: 999px;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--taupe-dark); border-color: var(--taupe-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-nav .btn { min-height: 44px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero .lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-figure { margin: 56px 0 0; }
.hero-figure img { width: 100%; border-radius: 6px; }
figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-stone { background: var(--stone); }
.section-intro { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-intro p { color: var(--ink-soft); max-width: 60ch; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service { border-top: 1px solid var(--line); padding: 32px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.service p { color: var(--ink-soft); max-width: 52ch; }
.facts { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 1rem; }
.facts dt { font-weight: 600; color: var(--taupe-dark); }
.facts dd { margin: 0; }

/* projects */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project-text { display: flex; flex-direction: column; gap: 14px; }
.project-text p { color: var(--ink-soft); }
.tag { font-size: 1rem; font-weight: 600; color: var(--taupe-dark); }
.gallery { display: grid; gap: 12px; margin: 0; }
.gallery img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; background: var(--paper); }
.gallery figure { margin: 0; }
.g-pool { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-pool .big { grid-column: span 2; }
.g-pool .big img { object-fit: contain; background: #fff; aspect-ratio: 992 / 747; max-height: 520px; }
.g-pool figure:not(.big) img { aspect-ratio: 1141 / 420; }
.g-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-plans .big { grid-column: span 2; }
.g-plans img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.g-plans figure:not(.big) img { aspect-ratio: 4 / 3; padding: 8px; }
.g-basilica { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.g-basilica .tall { grid-row: span 2; }
.g-basilica .tall img { height: 100%; }
.g-basilica .axo img { object-fit: contain; background: #f4f3f6; }
.g-reno { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-reno .wide { grid-column: span 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-reno > figure img { aspect-ratio: 246 / 264; }
.g-reno .wide img { aspect-ratio: 366 / 267; }
.gallery figcaption { font-size: 0.9rem; margin-top: 6px; }

/* method */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 16px; right: calc((100% - 96px) / 4 - 16px); top: 13px; height: 6px;
  background: var(--taupe); border-radius: 3px;
}
.step { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--taupe); color: #fff;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  margin-bottom: 10px;
}
.step p { color: var(--ink-soft); font-size: 1.05rem; }
.formats { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; }
.formats dt { font-weight: 600; }
.formats dd { margin: 0; color: var(--ink-soft); }

/* audience */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.col h3 { margin-bottom: 14px; }
.col ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.col li { margin-bottom: 6px; }
.col li::marker { color: var(--taupe); }
.col p { color: var(--ink-soft); }
.col p + p { margin-top: 10px; }

/* contact */
.contact { background: var(--night); color: #f3f1ed; }
.contact h2 { color: #fff; }
.contact a { color: #fff; text-decoration-color: var(--sand); }
.contact a:hover { color: var(--sand); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info p { color: #d9d5ce; max-width: 42ch; }
.contact-info .mail { font-family: var(--head); font-weight: 600; font-size: 1.25rem; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label { font-size: 1rem; font-weight: 600; color: #f3f1ed; }
.field .opt { font-weight: 400; color: #bdb7ae; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 6px;
  padding: 11px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(211, 206, 197, 0.45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: span 2; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot p { font-size: 0.95rem; color: #bdb7ae; max-width: 44ch; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.form-note { grid-column: span 2; font-size: 1rem; color: var(--sand); min-height: 1em; }

/* footer */
.site-foot { background: var(--night); color: #bdb7ae; border-top: 1px solid #44413d; padding: 36px 0 44px; font-size: 1rem; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-foot img { height: 34px; width: auto; }
.site-foot a { color: #f3f1ed; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* simple pages */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { margin-bottom: 28px; }
.page h2 { font-size: 1.4rem; margin: 40px 0 12px; max-width: none; }
.page p, .page ul { color: var(--ink-soft); margin: 0 0 12px; }
.todo { background: #fbf3d9; color: #5a4a12; padding: 0 4px; border-radius: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .project, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cols-3 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 1.0625rem; }
  .site-head .wrap { min-height: 68px; gap: 12px; flex-wrap: nowrap; }
  .site-head .brand img { height: 28px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { min-height: 40px; padding: 0 14px; font-size: 0.85rem; }
  .hero { padding-top: 44px; }
  .hero-figure { margin-top: 36px; }
  .section { padding: 64px 0; }
  .services, .form { grid-template-columns: minmax(0, 1fr); }
  .field.full, .form-foot, .form-note { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .g-reno { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .formats { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .formats dd { margin-bottom: 10px; }
}
