/* Paints & Ladders — calm, modern stylesheet (single accent, no rainbow) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --sand: #ece7df;
  --ink: #1d2422;
  --ink-soft: #4b5552;
  --muted: #7a827f;
  --line: #e1dbd2;
  --deep: #23332f;      /* deep slate green */
  --accent: #a8623b;    /* single warm accent */
  --accent-dark: #8c4f2e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,36,34,.05), 0 10px 30px -12px rgba(29,36,34,.18);
  --wrap: 1800px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 14px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--sand); color: var(--deep); }

/* Header */
.topbar { background: var(--deep); color: #d9dfdc; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #f1d9c9; }
.topbar .contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,241,.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--deep);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: var(--accent); font-style: italic; }
.brand-sub { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-dark); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 2px; }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav .btn::after { display: none !important; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .topbar .social { display: none; }
}

/* Hero */
.hero { padding: 80px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media .main { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1.1; max-height: 680px; width: 100%; }
.hero-media .main img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-media .badge {
  position: absolute; left: -28px; bottom: 36px; background: var(--surface); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 270px;
}
.hero-media .badge strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--accent); line-height: 1; }
.hero-media .badge span { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 880px) {
  .hero { padding: 48px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media .badge { left: 16px; }
}

/* Page header */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin: 0; }

/* Sections */
section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 44px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } section { padding: 64px 0; } }

/* Feature cards (former slider) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card h3 { font-size: 1.1rem; padding: 18px 20px 20px; margin: 0; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; line-height: 1.45; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist.single { grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }

/* Content + sidebar layout */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--ink-soft); padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
aside.side { position: sticky; top: 104px; display: grid; gap: 20px; }
.side .panel { padding: 28px; }
.side h3 { font-size: 1.3rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-lines li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-lines li:last-child { border-bottom: 0; }
.contact-lines a { text-decoration: none; color: var(--ink); font-weight: 500; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 980px) { .with-aside { grid-template-columns: 1fr; } aside.side { position: static; } }

/* Testimonials */
.quotes { columns: 2 340px; column-gap: 24px; }
.quote {
  break-inside: avoid; background: var(--surface); border-radius: var(--radius); padding: 30px 30px 26px;
  box-shadow: var(--shadow); margin: 0 0 24px; position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--accent);
  opacity: .35; position: absolute; top: 10px; right: 22px;
}
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.quote figcaption { font-weight: 600; font-size: .92rem; color: var(--ink); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.quote.featured { background: var(--deep); }
.quote.featured blockquote { color: #fff; font-size: 1.3rem; }
.quote.featured figcaption { color: #fff; }
.quote.featured figcaption span { color: #b8c3bf; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery button {
  all: unset; cursor: zoom-in; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1;
  background: var(--sand); display: block;
}
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .tag {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.gallery .tag.after { background: var(--accent); color: #fff; }

.lightbox {
  position: fixed; inset: 0; background: rgba(18,22,21,.92); display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1000px, 100%); max-height: 86vh; border-radius: 10px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
label .req { color: var(--accent); font-weight: 500; font-size: .8rem; margin-left: 4px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.consent { background: var(--bg); border-radius: 10px; padding: 16px 18px; font-size: .9rem; color: var(--ink-soft); }
.consent p { font-size: .9rem; }
.consent label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .panel { padding: 26px; } }

/* CTA band */
.cta { background: var(--deep); color: #fff; padding: 80px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #c3cdc9; max-width: 60ch; margin: 0; }

/* Footer */
.site-footer { background: #171e1c; color: #aab4b0; padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: #e6ebe9; text-decoration: none; }
.site-footer a:hover { color: #f1d9c9; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-mark { background: var(--accent); }
.site-footer p { color: #aab4b0; }
.footer-bottom { border-top: 1px solid #2a3330; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.3rem; }
  .topbar .contacts { gap: 4px 16px; }
}

/* Brand logo (yellow + white artwork: needs a dark background) */
.site-header { background: var(--deep); border-bottom: 1px solid #1a2724; backdrop-filter: none; }
.topbar { background: #1a2623; }
.brand .logo { height: 54px; width: auto; display: block; }
.site-header .wrap { height: 84px; }
.nav a { color: #e8ecea; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.menu-toggle { color: #fff; }
.site-footer .brand .logo { height: 64px; margin-bottom: 6px; }
@media (max-width: 880px) {
  .nav { top: 84px; background: var(--deep); border-bottom-color: #1a2724; }
}
@media (max-width: 480px) {
  .brand .logo { height: 44px; }
}
