/* ==========================================================================
   ЯВІР — будівельна компанія, Київ
   Палітра: приглушений жовтий (амбра) + білий і теплий сірий
   ========================================================================== */

:root {
  /* Акцент — приглушений жовтий */
  --gold-50:  #fdf9ec;
  --gold-100: #faf0d0;
  --gold-200: #f3e0a3;
  --gold-300: #ebcd6f;
  --gold-400: #e0b93c;
  --gold-500: #c9a22c;
  --gold-600: #a5811f;
  --gold-700: #7d6217;

  /* Сірі */
  --gray-0:   #ffffff;
  --gray-25:  #fbfaf7;
  --gray-50:  #f6f5f1;
  --gray-100: #eceae3;
  --gray-200: #dedbd2;
  --gray-300: #c2beb2;
  --gray-400: #99958a;
  --gray-500: #726e64;
  --gray-600: #524f47;
  --gray-700: #3a3833;
  --gray-800: #2a2823;
  --gray-900: #1d1c18;

  --text:      var(--gray-800);
  --text-soft: var(--gray-500);
  --line:      var(--gray-200);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(29, 28, 24, .06);
  --shadow:    0 10px 30px rgba(29, 28, 24, .08);
  --shadow-lg: 0 24px 60px rgba(29, 28, 24, .14);

  --container: 1180px;
  --header-h: 76px;

  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--gray-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--gray-900);
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding: clamp(56px, 7vw, 104px) 0; }

.section--gray { background: var(--gray-50); }
.section--dark { background: var(--gray-900); color: var(--gray-200); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Типографіка секцій ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold-400); }

/* Збільшений варіант напису — коли він працює як заголовок секції */
.eyebrow--lg {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: .07em;
  gap: 14px;
  margin-bottom: 0;
}
.eyebrow--lg::before { width: 44px; height: 3px; }

/* По центру — риска з обох боків, щоб напис не був перекошений */
.section-head.is-center .eyebrow--lg::after {
  content: "";
  width: 44px; height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin: 0; }
.section--dark .section-head p { color: var(--gray-300); }

.lead { font-size: 1.12rem; color: var(--text-soft); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold-400);
  color: var(--gray-900);
  box-shadow: 0 8px 22px rgba(224, 185, 60, .38);
}
.btn--primary:hover { background: var(--gold-300); box-shadow: 0 12px 30px rgba(224, 185, 60, .5); transform: translateY(-2px); }

.btn--dark { background: var(--gray-900); color: #fff; }
.btn--dark:hover { background: var(--gray-700); transform: translateY(-2px); }

.btn--ghost { border-color: var(--gray-300); color: var(--gray-800); background: transparent; }
.btn--ghost:hover { border-color: var(--gold-400); background: var(--gold-50); }

.section--dark .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.section--dark .btn--ghost:hover { border-color: var(--gold-400); background: rgba(224, 185, 60, .12); }

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(29,28,24,.06);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--gold-400), var(--gold-600));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(165, 129, 31, .32);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 900; font-size: 1.16rem; letter-spacing: -.02em; color: var(--gray-900); }
.logo__name span { color: var(--gold-600); }
.logo__sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-400); font-weight: 600; }

.nav { margin-left: auto; flex-shrink: 0; }
.nav__list { display: flex; gap: 22px; }
.nav__link {
  font-size: .93rem;
  font-weight: 600;
  color: var(--gray-600);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--gold-400);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav__link:hover { color: var(--gray-900); }
.nav__link:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__cta .btn { flex-shrink: 0; padding: 13px 22px; font-size: .93rem; }
.header__cta .btn__short { display: none; }
.header__phone {
  font-weight: 800;
  font-size: 1rem;
  color: var(--gray-900);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.header__phone svg { width: 17px; height: 17px; color: var(--gold-600); }
.header__phone:hover { color: var(--gold-700); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобільне меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px 20px 26px;
  display: none;
  z-index: 99;
}
.mobile-menu.is-open { display: block; animation: slideDown .25s ease; }
.mobile-menu a { display: block; padding: 13px 0; font-weight: 600; border-bottom: 1px solid var(--gray-100); }
.mobile-menu .btn { margin-top: 18px; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 480px at 88% -10%, var(--gold-100), transparent 62%),
    radial-gradient(700px 420px at -5% 20%, var(--gray-50), transparent 60%),
    var(--gray-0);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px; top: -140px;
  width: 520px; height: 520px;
  border: 44px solid var(--gold-50);
  border-radius: 50%;
  opacity: .8;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  /* без цього довга кнопка розпирає колонку ширше за екран на мобільному */
  min-width: 0;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  background: #fff;
  border: 1px solid var(--gold-200);
  color: var(--gray-700);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero__badge b { color: var(--gray-900); }
.dot-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(224, 185, 60, .7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
  margin-left: 4px;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 12px rgba(224, 185, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 185, 60, 0); }
}

.hero h1 { margin-bottom: 20px; }
.hero h1 mark {
  background: linear-gradient(180deg, transparent 62%, var(--gold-200) 62%);
  color: inherit;
  padding: 0 4px;
}
.hero__text { font-size: 1.13rem; color: var(--text-soft); max-width: 560px; margin-bottom: 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 34px; }
.hero__note { font-size: .86rem; color: var(--gray-400); }

.hero__usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 580px; }
.usp { display: flex; gap: 12px; align-items: flex-start; }
.usp svg { width: 22px; height: 22px; color: var(--gold-600); flex-shrink: 0; margin-top: 3px; }
.usp b { display: block; font-size: .96rem; color: var(--gray-900); }
.usp span { font-size: .83rem; color: var(--text-soft); line-height: 1.45; }

/* Форма в hero */
.hero-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-form::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
}
.hero-form h3 { margin-bottom: 6px; font-size: 1.32rem; }
.hero-form__sub { font-size: .92rem; color: var(--text-soft); margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .96rem;
  color: var(--text);
  background: var(--gray-25);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-400);
  background: #fff;
  box-shadow: 0 0 0 4px var(--gold-50);
}
.field.has-error input,
.field.has-error select { border-color: #e05555; background: #fff5f5; }
.field__error { display: none; font-size: .78rem; color: #d63b3b; margin-top: 5px; font-weight: 600; }
.field.has-error .field__error { display: block; }

.form-policy { font-size: .76rem; color: var(--gray-400); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.form-policy a { color: var(--gray-600); text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 22px 6px;
}
.form-success.is-visible { display: block; animation: slideDown .3s ease; }
.form-success__icon {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold-100);
  display: grid; place-items: center;
  color: var(--gold-700);
}
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h4 { font-size: 1.2rem; margin-bottom: 6px; color: var(--gray-900); }
.form-success p { font-size: .92rem; color: var(--text-soft); margin: 0; }

/* ---------- Смуга довіри ---------- */
.trust {
  background: var(--gray-900);
  color: #fff;
  padding: clamp(34px, 4vw, 52px) 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { text-align: center; padding: 6px 10px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: none; }
.stat__num {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold-400);
  letter-spacing: -.03em;
}
.stat__label { font-size: .88rem; color: var(--gray-300); margin-top: 8px; }

/* ---------- Послуги ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.service:hover::after { transform: scaleX(1); }

.service__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--gold-50);
  color: var(--gold-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: background .25s ease, color .25s ease;
}
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--gold-400); color: var(--gray-900); }
.service h3 { margin-bottom: 8px; }
.service p { font-size: .95rem; color: var(--text-soft); margin-bottom: 16px; }
.service__list { margin-bottom: 20px; }
.service__list li {
  font-size: .89rem;
  color: var(--gray-600);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}
.service__price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-200);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.service__price span { font-size: .8rem; color: var(--gray-400); }
.service__price b { font-size: 1.16rem; color: var(--gray-900); }

/* ---------- Переваги / Чому ми ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.why-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.why-card:hover { border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.why-card__num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--gray-900);
  color: var(--gold-400);
  font-weight: 900;
  font-size: 1.05rem;
  display: grid; place-items: center;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-card p { font-size: .93rem; color: var(--text-soft); margin: 0; }

/* ---------- Процес ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.step:hover { background: rgba(224,185,60,.08); border-color: rgba(224,185,60,.4); transform: translateY(-4px); }
.step__num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,.14);
  margin-bottom: 12px;
  letter-spacing: -.04em;
}
.step:hover .step__num { color: var(--gold-400); }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--gray-400); margin: 0; }
.step__time {
  display: inline-block;
  margin-top: 14px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold-400);
  background: rgba(224,185,60,.12);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: .04em;
}

/* ---------- Портфоліо ---------- */
.works__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.chip {
  padding: 9px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--gold-300); color: var(--gray-900); }
.chip.is-active { background: var(--gray-900); border-color: var(--gray-900); color: #fff; }

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .28s ease, box-shadow .28s ease;
}
.work.is-hidden { display: none; }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.work__media svg { width: 100%; height: 100%; transition: transform .5s ease; }
.work:hover .work__media svg { transform: scale(1.05); }
.work__tag {
  position: absolute;
  left: 14px; top: 14px;
  background: rgba(255,255,255,.94);
  color: var(--gray-800);
  font-size: .74rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
}
.work__body { padding: 22px 24px 24px; }
.work__body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.work__body p { font-size: .89rem; color: var(--text-soft); margin-bottom: 14px; }
.work__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  font-size: .82rem;
  color: var(--gray-500);
}
.work__meta b { color: var(--gray-900); font-weight: 700; }

/* ---------- Калькулятор ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.calc__form { padding: clamp(28px, 3.4vw, 44px); }
.calc__form h3 { margin-bottom: 6px; }
.calc__form > p { font-size: .93rem; color: var(--text-soft); margin-bottom: 24px; }

.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.opt-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt {
  position: relative;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: block;
  text-align: center;
  padding: 11px 6px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-25);
  cursor: pointer;
  transition: all .18s ease;
}
.opt span:hover { border-color: var(--gold-300); }
.opt input:checked + span {
  background: var(--gold-400);
  border-color: var(--gold-500);
  color: var(--gray-900);
  box-shadow: 0 4px 12px rgba(224,185,60,.3);
}

.range-wrap { display: flex; align-items: center; gap: 14px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--gray-200);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(29,28,24,.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(29,28,24,.25);
  cursor: pointer;
  border-color: #fff;
}
.range-val {
  min-width: 86px;
  text-align: center;
  font-weight: 800;
  font-size: .95rem;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
}

.calc__result {
  background: var(--gray-900);
  color: #fff;
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.calc__result::before {
  content: "";
  position: absolute;
  right: -90px; bottom: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,185,60,.22), transparent 68%);
}
.calc__result h4 { color: var(--gray-300); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.calc__total {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--gold-400);
  margin-bottom: 4px;
}
.calc__total-sub { font-size: .9rem; color: var(--gray-400); margin-bottom: 24px; }
.calc__lines { position: relative; z-index: 1; margin-bottom: 22px; }
.calc__line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: .92rem;
  color: var(--gray-300);
}
.calc__line b { color: #fff; font-weight: 700; white-space: nowrap; }
.calc__hint {
  position: relative; z-index: 1;
  margin-top: auto;
  font-size: .8rem;
  color: var(--gray-400);
  line-height: 1.55;
  padding-top: 18px;
}
.calc__result .btn { position: relative; z-index: 1; }

/* ---------- Гарантії ---------- */
.guarantee__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guarantee-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.guarantee-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.guarantee-card__icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gold-50);
  color: var(--gold-700);
  display: grid; place-items: center;
}
.guarantee-card__icon svg { width: 27px; height: 27px; }
.guarantee-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.guarantee-card p { font-size: .89rem; color: var(--text-soft); margin: 0; }

.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.review::before {
  content: "”";
  position: absolute;
  right: 22px; top: 4px;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--gold-100);
  font-family: Georgia, serif;
}
.review__stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--gold-500); }
.review__stars svg { width: 17px; height: 17px; }
.review__text { font-size: .95rem; color: var(--gray-600); margin-bottom: 20px; position: relative; z-index: 1; }
.review__author { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--gray-100); }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
.review__author b { display: block; font-size: .95rem; color: var(--gray-900); }
.review__author span { font-size: .81rem; color: var(--gray-400); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq__item.is-open { border-color: var(--gold-300); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  background: none;
  border: none;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: left;
  cursor: pointer;
}
.faq__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-50);
  display: grid; place-items: center;
  position: relative;
  transition: background .25s ease, transform .25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gray-700);
  border-radius: 2px;
  transition: opacity .2s ease, background .2s ease;
}
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after  { width: 2px; height: 12px; }
.faq__item.is-open .faq__icon { background: var(--gold-400); transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { opacity: 0; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}
.faq__a-inner { padding: 0 24px 22px; font-size: .96rem; color: var(--text-soft); }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 320px at 15% 0%, rgba(224,185,60,.16), transparent 65%),
    var(--gray-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4.6vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
/* Блок на темному тлі: перебиваємо світлі елементи, які за замовчуванням темні */
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta .eyebrow { color: var(--gold-400); }
.cta .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.cta .btn--ghost:hover { border-color: var(--gold-400); background: rgba(224, 185, 60, .12); }
.cta p { color: var(--gray-300); margin: 0; max-width: 620px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta__phone {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 1.25rem; font-weight: 900; color: #fff; letter-spacing: -.01em;
}
.cta__phone svg { width: 20px; height: 20px; color: var(--gold-400); }

/* ---------- Контакти ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-list { margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--gold-50);
  color: var(--gold-700);
  display: grid; place-items: center;
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: 3px; }
.contact-item a, .contact-item p { font-size: 1.02rem; font-weight: 600; color: var(--gray-900); margin: 0; }
.contact-item a:hover { color: var(--gold-700); }
.contact-item small { display: block; font-size: .85rem; font-weight: 400; color: var(--text-soft); margin-top: 2px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--gray-600);
  transition: all .2s ease;
}
.socials a:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--gray-900); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { font-size: .93rem; color: var(--text-soft); margin-bottom: 22px; }

.map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--gray-100);
  position: relative;
}
.map svg { width: 100%; height: 100%; display: block; }
.map__pin {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -100%);
  color: var(--gold-600);
  filter: drop-shadow(0 6px 10px rgba(29,28,24,.28));
}
.map__pin svg { width: 40px; height: 40px; }
.map__label {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: clamp(44px, 5vw, 68px) 0 26px;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: var(--gray-500); }
.footer__about { margin-top: 16px; max-width: 320px; font-size: .9rem; line-height: 1.6; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--gold-400); }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--gray-500);
}

/* ---------- Плаваюча кнопка дзвінка ---------- */
.float-call {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--gray-900);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(165,129,31,.45);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  pointer-events: none;
  transform: scale(.6);
}
.float-call.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.float-call:hover { transform: scale(1.08); }
.float-call svg { width: 25px; height: 25px; }
.float-call::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  animation: ring 2.2s infinite;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Анімації появи ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */

/* Шапка: скорочуємо напис на кнопці, поки все ще вміщується в один рядок */
@media (max-width: 1400px) {
  .header__cta .btn__full { display: none; }
  .header__cta .btn__short { display: inline; }
}

@media (max-width: 1290px) {
  .header__phone { display: none; }
  .nav__list { gap: 18px; }
  .header .logo__sub { display: none; }
  .header .logo__name { font-size: 1.24rem; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero-form { max-width: 560px; }
  .services__grid,
  .works__grid,
  .reviews__grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .guarantee__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header__phone { display: none; }
  .header__cta .btn { display: none; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .stat:nth-child(2n) { border-right: none; }
  .calc { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta__actions { min-width: 0; }
  .why__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  /* Довгі українські написи мають переноситись, а не вилазити за екран */
  .btn { white-space: normal; text-align: center; }
  .hero__badge { font-size: .8rem; }
  h1, h2, h3 { overflow-wrap: break-word; }

  /* iOS Safari зумить сторінку, якщо шрифт у полі менший за 16px */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* Кнопка дзвінка не має ховатись під домашню смугу iPhone */
  .float-call { bottom: max(16px, env(safe-area-inset-bottom)); }
  section { padding: 46px 0; }
  .hero__usp { grid-template-columns: 1fr; gap: 14px; }
  .services__grid,
  .works__grid,
  .reviews__grid,
  .steps,
  .guarantee__grid,
  .footer__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .calc__row { grid-template-columns: 1fr; }
  .opt-group { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; }
  .float-call { right: 16px; bottom: 16px; }
}