/* ================= tokens ================= */
:root {
  --ink: #16130f;        /* графіт */
  --ink-2: #221e19;
  --paper: #f7f4ef;      /* свіжа штукатурка */
  --sand: #ece5da;
  --gold: #c9a46a;       /* латунь / акцент */
  --gold-2: #b48c4f;
  --text: #2a2620;
  --muted: #776f63;
  --muted-light: #a99f90;
  --line: rgba(22, 19, 15, .12);
  --line-light: rgba(247, 244, 239, .16);
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); }
em { font-family: inherit; font-style: normal; font-weight: 700; color: var(--gold); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* ================= reveal animation ================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================= top bar ================= */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(22, 19, 15, .72); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-light); color: var(--paper);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; white-space: nowrap; }
.logo em { color: var(--gold); font-size: 17px; font-style: normal; font-weight: 700; margin-left: 2px; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 7px 9px / 12px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 7px 14px / 16px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 7px 19px / 16px 3px no-repeat,
    #2c2721;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted-light); transition: color .2s; }
.nav a:hover { color: var(--paper); }
.topbar__phone {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  padding: 9px 16px; border: 1px solid var(--line-light); border-radius: 999px; transition: .2s;
}
.topbar__phone:hover { border-color: var(--gold); color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6fcf7f; box-shadow: 0 0 0 4px rgba(111, 207, 127, .18); }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px; letter-spacing: .01em;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d8b67e; }
.btn--line { border-color: rgba(247, 244, 239, .35); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); }
.btn--line-light { border-color: var(--line-light); color: var(--paper); }
.btn--line-light:hover { border-color: var(--gold); color: var(--gold); }

/* ================= hero ================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--paper);
  background: var(--ink); overflow: hidden; padding: 120px 0 72px;
}
.hero__bg {
  position: absolute; inset: 0;
  /* фактура штукатурки, згенерована SVG-фільтром + бокове світло */
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(201, 164, 106, .22), transparent 55%),
    linear-gradient(100deg, rgba(22, 19, 15, .96) 25%, rgba(22, 19, 15, .55) 70%, rgba(22, 19, 15, .35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='5' seed='7'/%3E%3CfeDiffuseLighting lighting-color='%23efe6d6' surfaceScale='3.2'%3E%3CfeDistantLight azimuth='135' elevation='38'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") center / 600px;
}
.hero__bg::after { /* лінії рівня, як маяки */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(201, 164, 106, .12) calc(25% - 1px) 25%);
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.hero__in { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--paper); font-size: clamp(40px, 7.2vw, 92px); font-weight: 800; max-width: 14ch; }
.hero h1 em { color: var(--gold); font-style: normal; font-weight: 800; font-size: inherit; }
.lead { max-width: 560px; margin: 28px 0 36px; font-size: clamp(17px, 1.6vw, 19px); color: #cfc6b8; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 72px 0 0;
  border-top: 1px solid var(--line-light); max-width: 900px;
}
.stats div { padding: 22px 20px 0 0; }
.stats dt { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--paper); letter-spacing: -.02em; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--muted-light); }

/* ================= section scaffolding ================= */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--sand { background: var(--sand); }
.head { max-width: 640px; margin-bottom: 56px; }
.head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
.head p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.head--light h2 { color: var(--paper); }
.head--light p { color: var(--muted-light); margin-bottom: 32px; }
.kicker {
  display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2);
}
.kicker--light { color: var(--gold); }

/* ================= services ================= */
.services {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  position: relative; padding: 36px 32px 40px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.service:hover { background: #fff; }
.service__n { font-size: 14px; font-weight: 800; color: var(--gold); letter-spacing: .06em; font-style: normal; }
.service h3 { font-size: 23px; font-weight: 700; margin: 40px 0 12px; }
.service p { margin: 0; color: var(--muted); font-size: 16px; }
.service::after {
  content: ""; position: absolute; left: 32px; right: 32px; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service:hover::after { transform: scaleX(1); }

/* ================= why & benefits ================= */
.prices-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.benefits-list { display: flex; flex-direction: column; gap: 14px; }
.benefit-item {
  padding: 20px 22px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  transition: border-color .2s;
}
.benefit-item:hover { border-color: rgba(201, 164, 106, .4); }
.benefit-head {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.benefit-desc {
  margin: 0;
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.5;
}

/* ================= estimate / calculation ================= */
.estimate-box {
  background: linear-gradient(160deg, #221e19, #171410);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  color: var(--paper);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .5);
}
.estimate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px 0 36px;
}
.estimate-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s;
}
.estimate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 164, 106, .4);
}
.estimate-card__num {
  font-family: inherit;
  font-style: normal;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.estimate-card h3 {
  color: var(--paper);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.estimate-card p {
  color: var(--muted-light);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.estimate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}
.estimate-cta__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.estimate-cta__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 700;
}
.estimate-cta__phone {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -.02em;
  transition: color .2s;
}
.estimate-cta__phone:hover {
  color: var(--gold);
}
.estimate-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ================= why + steps ================= */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.why__item h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.why__item h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.why__item p { margin: 0; color: var(--muted); font-size: 16px; }

.steps {
  list-style: none; padding: 0; margin: 96px 0 0; counter-reset: s;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.steps--flush { margin-top: 0; }
.steps li {
  counter-increment: s; padding: 32px 28px; border-radius: var(--r);
  background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(22, 19, 15, .35);
}
.steps li::before {
  content: "0" counter(s); display: block; margin-bottom: 20px;
  font-family: inherit; font-style: normal; font-size: 30px; font-weight: 800; line-height: 1; color: var(--gold); letter-spacing: -.02em;
}
.steps b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* ================= gallery ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: #221e19;
  aspect-ratio: 4 / 3;
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px;
  color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(22, 19, 15, .82));
  letter-spacing: -.01em;
}

/* ================= FAQ ================= */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-size: 19px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 400; color: var(--gold-2); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 60ch; }

/* ================= contact ================= */
.contact { background: var(--ink-2); color: var(--paper); padding: clamp(72px, 10vw, 128px) 0; }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact h2 { color: var(--paper); font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; }
.contact__lead { color: var(--muted-light); font-size: 18px; margin: 20px 0 0; max-width: 46ch; }
.card-contact {
  font-style: normal; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background: linear-gradient(160deg, #2b2620, #1b1814); border: 1px solid var(--line-light);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.card-contact__who { color: var(--muted-light); font-size: 15px; }
.card-contact__phone {
  margin: 10px 0 6px; text-decoration: none; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(28px, 3.6vw, 42px); color: var(--gold); white-space: nowrap;
}
.card-contact__meta { color: var(--muted-light); font-size: 15px; }
.card-contact__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.olx { margin-top: 26px; color: var(--muted-light); font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-light); }
.olx:hover { color: var(--paper); }

/* ================= footer ================= */
.footer { background: var(--ink); color: #7d7466; font-size: 14px; padding: 28px 0; border-top: 1px solid var(--line-light); }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================= responsive ================= */
@media (max-width: 1000px) {
  .nav { display: none; }
  .topbar__phone { margin-left: auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prices-grid, .faq-grid, .contact__in { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-cta { flex-direction: column; align-items: stretch; }
  .head { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__in { height: 58px; gap: 8px; justify-content: space-between; }
  .logo { gap: 8px; font-size: 14px; }
  .logo__mark { width: 26px; height: 26px; }
  .logo__text { font-size: 14px; }
  .logo em { font-size: 17px; }
  .topbar__phone {
    display: inline-flex;
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
    flex-shrink: 0;
  }
  .topbar__phone .dot { width: 6px; height: 6px; }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .08em;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .eyebrow::before { width: 20px; }
  .hero { padding: 104px 0 56px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; margin-top: 48px; }
  .stats dt { font-size: 22px; }
  .stats div { padding-top: 18px; }
  .services, .why, .steps { grid-template-columns: 1fr; }
  .service { padding: 28px 22px 32px; }
  .service h3 { margin-top: 20px; }
  .estimate-box { padding: 28px 20px; }
  .estimate-cta__btns .btn { flex: 1 1 100%; }
  .steps { margin-top: 64px; }
  .steps--flush { margin-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery figcaption { font-size: 12px; padding: 24px 10px 10px; }
  .faq summary { font-size: 17px; }
  .card-contact__btns .btn { flex: 1 1 auto; }
  .footer { padding-bottom: 28px; }
}
