/* Monolith Pro — бетонні роботи. Мінімалізм, бетонно-сірий + теракотовий акцент. */

:root {
  --ink: #2b2b2b;
  --gray: #6e6e6e;
  --gray-light: #a8a8a4;
  --bg: #f5f4f2;
  --bg-card: #ffffff;
  --line: #e2e0db;
  --accent: #c4623a;
  --accent-dark: #a84f2d;
  --ochre: #d9a441;
  --radius: 10px;
  --container: 1180px;
  --shadow: 0 8px 30px rgba(43, 43, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--gray); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--dark {
  background: var(--ink);
  color: #f1f0ee;
}
.section--dark p { color: #c9c7c3; }
.section--card {
  background: var(--bg-card);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: inherit;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: #000; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

/* Header — fixed (not sticky) so it stays put through the mobile browser's
   address-bar show/hide animation instead of jumping mid-scroll. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 244, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
body {
  padding-top: 64px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.main-nav a:hover { color: var(--accent); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: .7em; margin-left: 4px; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 500;
}
.dropdown-panel a:hover { background: var(--bg); color: var(--accent); }

.mobile-nav__group-label {
  padding: 12px 20px 4px;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-light);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.header-phone .sub { display: block; font-size: .72rem; color: var(--gray); font-weight: 500; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.mobile-nav .btn { margin: 14px 20px; }

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-call a { flex: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.72) 60%, rgba(20,18,16,.88) 100%);
  z-index: -1;
}
.hero__content { max-width: 680px; padding: 96px 0; }
.hero p { color: #e7e5e1; font-size: 1.08rem; max-width: 560px; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero__phone { font-weight: 700; font-size: 1.1rem; }
.hero__phone .sub { display: block; font-size: .78rem; font-weight: 500; color: #cfccc7; }

/* Home hero — badge, two-line title, stats overlay */
.hero--home { min-height: 680px; }
.hero--home::before {
  background: linear-gradient(90deg, rgba(15,13,12,.86) 0%, rgba(15,13,12,.58) 52%, rgba(15,13,12,.3) 100%);
}
.hero-home__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 96px 0;
}
.hero-home__text { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e7e5e1;
  margin-bottom: 18px;
}
.hero-badge__line { width: 28px; height: 2px; background: var(--accent); flex: none; }
.hero-title { margin-bottom: 18px; }
.hero-title__l1, .hero-title__l2 { display: block; font-weight: 800; line-height: 1.08; }
.hero-title__l1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hero-title__l2 { color: var(--accent); font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero-home__lead { color: #cfccc7; font-size: 1.08rem; max-width: 540px; }
.hero-home__note { color: #a9a6a1; font-size: .8rem; margin: 14px 0 0; }

.hero-stats {
  background: rgba(20,18,16,.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-stats__title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.hero-stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hero-stats__item strong {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.hero-stats__item strong.is-accent { color: var(--accent); }
.hero-stats__item span { display: block; font-size: .78rem; color: #d8d5d0; line-height: 1.3; }

.hero--page { min-height: 380px; }
.hero--page .hero__content { padding: 72px 0; }
.breadcrumbs { font-size: .82rem; color: #d8d5d0; margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--accent); }
.price-tag {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 12px 20px;
  border-radius: 14px;
  margin-top: 18px;
  font-size: .95rem;
  max-width: 100%;
}
.price-tag b { font-size: 1.3rem; color: var(--ochre); }

/* Category grid (homepage) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(43,43,43,.14); }
.cat-card__img { aspect-ratio: 4/3; overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card__price { margin-top: auto; padding-top: 12px; font-size: .85rem; color: var(--gray); }
.cat-card__price b { color: var(--ink); font-size: 1.05rem; }

/* Steps (як ми працюємо / process) */
.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.step {
  text-align: left;
}
.step__num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.section--dark .step__num { background: var(--accent); }

/* Stages strip (сторінка підкатегорії — Етапи виконання робіт) */
.stages {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.stages__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.stages__photo img { width: 100%; height: 100%; object-fit: cover; }
.stages__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stage-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.stage-item:last-child { border-bottom: none; }
.stage-item__num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.stage-item p { margin: 0; color: var(--ink); font-weight: 600; align-self: center; }

/* Trust numbers */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-grid strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ochre);
  font-weight: 800;
}
.trust-grid span { font-size: .9rem; color: #c9c7c3; }

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.price-table th { background: var(--ink); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 700; }
.price-table tr:last-child td { border-bottom: none; }

.price-group { margin-bottom: 28px; }
.price-group:last-child { margin-bottom: 0; }
.price-group__title { font-size: 1.05rem; margin-bottom: 12px; color: var(--ink); }

/* Price-on-request block (used instead of the price table when pricing is individual) */
.price-request {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.price-request p {
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 22px;
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.included-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  background: var(--bg-card);
  padding: 14px 16px;
  border-radius: 8px;
}
.included-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-item__icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item__a p { margin: 0; padding: 0 22px 20px; color: var(--gray); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.testimonial__stars { color: var(--ochre); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial__name { font-weight: 700; margin-top: 14px; color: var(--ink); }
.testimonial__role { font-size: .82rem; color: var(--gray); }

/* Forms */
.form-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid--calc { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field--full { grid-column: 1 / -1; }
.calc-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fbf1e9;
  border: 1px solid #f0d9c4;
  font-weight: 700;
  display: none;
}
.calc-result.is-visible { display: block; }
.form-note { font-size: .78rem; color: var(--gray-light); margin-top: 10px; }
.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 8px;
  background: #eaf5ec;
  border: 1px solid #c9e6cd;
  color: #2c6b37;
  font-weight: 700;
  margin-top: 16px;
}
.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d8d6d2;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-logo { height: 58px; width: auto; display: block; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { display: block; margin-bottom: 8px; font-size: .9rem; color: #b9b7b3; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  color: #918f8b;
}

/* Section heading helper */
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { max-width: 560px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* JSON-LD noscript-safe */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* Responsive */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .hero-home__grid { grid-template-columns: 1fr; padding: 64px 0; gap: 32px; }
}

@media (max-width: 720px) {
  .sticky-call { display: flex; }
  body { padding-bottom: 66px; }
  .hero { min-height: 520px; }
  .hero__content { padding: 64px 0; }
  .hero--home .hero__actions { flex-direction: column; align-items: stretch; }
  .hero--home .hero__actions .btn { width: 100%; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid--calc { grid-template-columns: 1fr; }
  .included-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .form-card { padding: 22px; }
  .price-table th, .price-table td { padding: 12px 14px; font-size: .88rem; }
}

@media (max-width: 420px) {
  .cat-grid, .steps-row, .trust-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
