/* УкрСтеля — static site styles */
:root {
  /* Surfaces */
  --bg: #efeeea;            /* page background */
  --bg-2: #e7e4dd;          /* recessed: icon circles, CTA base */
  --card: #f7f6f3;          /* raised: FAQ cards, inputs, calculator */
  /* Navy — text & brand */
  --navy-900: #101f30;      /* ink: card titles, questions, footer bg */
  --navy-700: #25466d;      /* display headings, section labels, borders */
  --navy-600: #2a527f;      /* body text */
  --text-muted: #5b6b7d;    /* nav, placeholders, secondary UI */
  --line: rgba(37,70,109,.18); /* hairlines & input underlines */
  /* Gold — accent */
  --gold: #b87d1b;          /* buttons, icons, large accent words */
  --gold-dark: #8f5f12;     /* button hover (white text 5.5:1) */
  --gold-text: #8a5c12;     /* small gold text on light bg (AA 5:1) */
  --gold-light: #cba35d;    /* gold text on dark backgrounds only */
  --error: #b3402a;         /* form validation (AA on page and card bg) */
  /* On dark */
  --white-soft: #efeeea;
  --on-dark-muted: #c4c0b1;
  --container: 1170px;
  /* Spacing scale — one vertical rhythm for the whole site */
  --space-section: 128px;   /* between sections */
  --space-title: 72px;      /* section title → content */
  --space-group: 72px;      /* between groups inside a section */
  --space-grid: 30px;       /* gutters in card grids */
  --gutter: 15px;           /* page side padding */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 106px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy-900);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 30px);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 36px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 15.4px; }
.btn--gold { background: var(--gold); color: var(--white-soft); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--navy { background: var(--navy-900); color: var(--white-soft); }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white-soft); }
.btn--block { width: 100%; }

/* ---------- Icons (masked so they take the gold color) ---------- */
.icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--gold);
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
  flex-shrink: 0;
}
.icon--brigade { --src: url("../icons/brigade.svg"); }
.icon--calendar { --src: url("../icons/calendar.svg"); }
.icon--fast { --src: url("../icons/fast.svg"); }
.icon--guarantee { --src: url("../icons/guarantee.svg"); }
.icon--mail { --src: url("../icons/mail.svg"); }
.icon--phone { --src: url("../icons/phone.svg"); }
.icon--step-contract { --src: url("../icons/step-contract.svg"); }
.icon--step-install { --src: url("../icons/step-install.svg"); }
.icon--step-measure { --src: url("../icons/step-measure.svg"); }
.icon--step-payment { --src: url("../icons/step-payment.svg"); }
.icon--step-request { --src: url("../icons/step-request.svg"); }
.icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  height: 106px;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: .3px;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-left: auto;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s;
}
.nav a:hover { color: var(--gold-text); }
.header__cta { min-height: 49px; padding: 0 28px; }
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Section title with lines ---------- */
.section { padding: var(--space-section) 0; }
/* Two light sections in a row share one gap instead of doubling it */
.section + .section { padding-top: 0; }
.hero + .section { padding-top: var(--space-section); }
.section-title {
  display: flex;
  align-items: center;
  gap: 54px;
  margin-bottom: var(--space-title);
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--navy-700);
}
.section-title h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.67;
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 692px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* The original site shows this photo mirrored horizontally.
   The layer is taller than the hero so it can drift for the parallax effect
   (JS sets --hero-shift), and on desktop it is widened to the right so the
   building's edge stays clear of the buttons. */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: 0;
  left: 0;
  right: 0;
  background: url("../img/hero-bg.jpg") 46.25% 44.14% / cover no-repeat;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scaleX(-1);
  will-change: transform;
}
/* Desktop: the photo is sized to the hero height (never upscaled: 1280×960 →
   ~923×692), pinned to the bottom-right and faded into the page on its left
   edge so it floats clear of the buttons. The top of the photo sits under the
   solid top of the overlay, so the parallax drift never shows an edge.
   Note the layer is mirrored: "left" / "to left" below mean right on screen. */
@media (min-width: 992px) {
  .hero { --hero-img-h: 692px; height: var(--hero-img-h); min-height: 0; }
  .hero::before {
    background-size: auto var(--hero-img-h);
    background-position: left bottom;
    -webkit-mask-image: linear-gradient(to left, transparent calc(100% - var(--hero-img-h) * 4 / 3), #000 calc(100% - var(--hero-img-h) * 4 / 3 + 320px));
    mask-image: linear-gradient(to left, transparent calc(100% - var(--hero-img-h) * 4 / 3), #000 calc(100% - var(--hero-img-h) * 4 / 3 + 320px));
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255,255,255,.5) 0%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 60px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .6px;
  color: var(--navy-700);
}
.hero__subtitle {
  margin-top: 27px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy-700);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 53px;
}

/* ---------- Services carousel ---------- */
.carousel { position: relative; padding: 0 30px; margin: 0 -30px; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: 30px;
  transition: transform .5s ease;
}
.service-card { flex: 0 0 calc((100% - 90px) / 4); }
.service-card img {
  width: 100%;
  height: 238px;
  object-fit: cover;
}
.service-card h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .22px;
  color: var(--navy-900);
  padding-right: 15px;
}
.carousel__arrow {
  position: absolute;
  top: 129px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--navy-900);
  opacity: .8;
  z-index: 2;
}
.carousel__arrow:hover { opacity: 1; }
.carousel__arrow svg { width: 30px; height: 30px; fill: currentColor; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--prev svg { transform: scaleX(-1); }
.carousel__arrow--next { right: 0; }

/* ---------- Advantages ---------- */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.advantage {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 120px;
  padding: 25px 30px;
  border: 1px solid var(--navy-700);
}
.advantage h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .2px;
  color: var(--navy-900);
}
.advantage p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--navy-600);
}
.advantage p.small { font-size: 13px; }

/* ---------- Ceiling types ---------- */
.types__grid {
  display: grid;
  grid-template-columns: 453fr 248fr 350fr;
  gap: 0 60px;
  row-gap: 48px;
}
.types__col { display: flex; flex-direction: column; gap: 48px; }
.type-card { text-align: center; }
.type-card img { width: 100%; height: 166px; object-fit: cover; }
.type-card--big { flex: 1; display: flex; flex-direction: column; }
.type-card--big .media { flex: 1; min-height: 440px; }
.type-card--big img { height: 100%; position: absolute; inset: 0; }
.type-card h3 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .24px;
  color: var(--navy-900);
}
.price {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .24px;
  color: var(--gold-text);
}
.price sup, .area sup { font-size: .56em; vertical-align: super; line-height: 0; }
.price sup { font-size: 14px; vertical-align: baseline; }

/* ---------- Portfolio ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px var(--space-grid);
}
.project { display: flex; flex-direction: column; }
.project img { width: 100%; height: 341px; object-fit: cover; }
.project h3 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .24px;
  color: var(--navy-900);
}
.project h3 .area {
  font-size: 20px;
  color: var(--navy-700);
  margin-left: 8px;
}
.project h3 .area sup { font-size: 10px; }
.project ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy-600);
}
.project ul b { color: var(--navy-700); font-weight: 700; }
.project__price {
  margin-top: auto;
  padding-top: 19px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gold-text);
}
.project__price b { color: var(--navy-600); }
.project__line {
  height: 1px;
  margin-top: 16px;
  background: rgba(203,163,93,.22);
}

/* ---------- Steps ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
.step { display: flex; gap: 15px; align-items: flex-start; }
.step h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy-900);
}
.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy-600);
}

/* ---------- CTA ---------- */
.cta__box {
  position: relative;
  min-height: 386px;
  padding: 96px 60px;
  border: 1px solid #fff;
  background: var(--bg-2);
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-115deg, rgba(255,255,255,.56) 0%, #fff 100%);
}
.cta__box > * { position: relative; }
.cta h2 {
  font-size: 50px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--navy-700);
}
.cta h2 span { color: var(--gold); }
.cta p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy-600);
}
.cta .btn { margin-top: 44px; }

/* ---------- About ---------- */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: var(--space-group);
}
.stat { display: flex; align-items: center; gap: 15px; }
.stat__num {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.stat__label {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--navy-900);
}
.about__body {
  display: grid;
  grid-template-columns: 570px 1fr;
  gap: 90px;
  align-items: start;
}
.about__img { width: 100%; height: 613px; object-fit: cover; }
.about__text {
  max-width: 444px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy-600);
}
.about__lead {
  margin-bottom: 28px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .2px;
  color: var(--navy-700);
}
.about__text p + p { margin-top: 27px; }
.about__text .btn { margin-top: 48px; }

/* ---------- Reviews ---------- */
.reviews .carousel { max-width: 1230px; }
.review {
  flex: 0 0 100%;
  text-align: center;
  padding: 8px 60px 0;
}
.review img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}
.review h3 {
  margin-top: 20px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .36px;
  color: var(--navy-700);
}
.review__role {
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gold-text);
}
.review blockquote {
  max-width: 715px;
  margin: 24px auto 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy-600);
}
.reviews .carousel__arrow { top: 136px; }
.reviews .carousel__track { gap: 0; }
.dots {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.dots button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0;
  position: relative;
}
.dots button::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--navy-900);
  opacity: .25;
  transition: opacity .2s;
}
.dots button.is-active::after { opacity: 1; }

/* ---------- FAQ ---------- */
.faq__list {
  counter-reset: faq;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.faq__item {
  counter-increment: faq;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,31,48,.03);
  transition: background-color .35s, border-color .35s, box-shadow .35s, transform .35s;
}
/* gold accent bar that grows on hover / open */
.faq__item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.faq__item:hover {
  border-color: rgba(184,125,27,.25);
  box-shadow: 0 14px 34px -18px rgba(16,31,48,.25);
  transform: translateY(-2px);
}
.faq__item:hover::before { transform: scaleY(.4); }
.faq__item.is-open {
  background: #fff;
  border-color: rgba(184,125,27,.3);
  box-shadow: 0 22px 44px -24px rgba(16,31,48,.3);
  transform: none;
}
.faq__item.is-open::before { transform: scaleY(1); }
.faq__q {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 26px 30px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2px;
  color: var(--navy-900);
  transition: color .25s;
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--navy-700); }
.faq__q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq__q::before {
  content: counter(faq, decimal-leading-zero);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
/* round plus / minus toggle */
.faq__q::after {
  content: "";
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(37,70,109,.25);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--navy-700);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background-color .3s, border-color .3s, color .3s;
}
.faq__q:hover::after { border-color: var(--gold); color: var(--gold); }
.faq__item.is-open .faq__q::after {
  transform: rotate(135deg);
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p {
  padding: 0 90px 30px 98px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy-600);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .4s;
}
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .1s; }
.faq__a a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.faq__a a:hover { color: var(--navy-700); }

/* ---------- Contacts ---------- */
.contacts__title {
  max-width: 740px;
  margin: 0 auto var(--space-group);
  text-align: center;
  font-size: 50px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--navy-700);
}
.contacts__title span { color: var(--gold); }
.contacts__body {
  display: grid;
  grid-template-columns: 1fr 570px;
  gap: 30px;
  align-items: center;
}
.contact-list { display: flex; flex-direction: column; gap: 43px; }
.contact-item { display: flex; gap: 10px; }
.contact-item .icon { width: 22px; height: 22px; margin-top: 2px; }
.contact-item__body {
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy-600);
}
.contact-item__body b { display: block; margin-bottom: 10px; }
.contact-item__body a { color: var(--gold-text); }
.contact-item__body a:hover { text-decoration: underline; }
.lead-form {
  padding: 60px 100px;
  border: 1px solid var(--navy-700);
}
.lead-form h3 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .36px;
  color: var(--navy-700);
  margin-bottom: 38px;
}
.lead-form h3 + .lead-form__note { margin-top: -26px; }
.lead-form__note {
  margin-bottom: 38px;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: var(--gold-text);
}
.lead-form .line-input {
  display: block;
  width: 100%;
  height: 51px;
  margin-bottom: 23px;
  padding: 0 15px;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: 14px;
  color: var(--navy-900);
  outline: none;
  transition: border-color .2s;
}
.lead-form .line-input:focus { border-bottom-color: var(--gold); }
.lead-form .line-input::placeholder, .popup-form .box-input::placeholder { color: var(--text-muted); }
.lead-form .btn { margin-top: 33px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--white-soft); }
.footer__main {
  display: grid;
  grid-template-columns: 410px 205px 308px 1fr;
  padding-top: 96px;
  padding-bottom: 80px;
}
.footer__logo {
  font-size: 41px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .32px;
}
.footer__tagline { margin-top: 27px; font-size: 18px; line-height: 1.67; }
.footer h4 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .24px;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__nav { display: flex; flex-direction: column; gap: 11px; }
.footer__nav a { font-size: 15px; }
.footer a:hover { color: var(--gold); }
.footer__contacts { font-size: 18px; line-height: 2; }
.footer__contacts a { display: block; }
.footer__hours { font-size: 18px; line-height: 1.5; }
.footer__bottom { border-top: 1px solid rgba(239,238,234,.08); }
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  font-size: 14px;
  line-height: 1.7;
}
.footer__bottom a { color: #fff; padding-left: 17px; }
.footer__copy { color: var(--on-dark-muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 15px;
  background: rgba(16,31,48,.6);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 770px;
  background: var(--bg);
  padding: 80px 90px 64px;
  transform: translateY(20px);
  transition: transform .3s;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: var(--navy-900);
}
.modal__title {
  text-align: center;
  font-size: 50px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 56px;
}
.popup-form label,
.popup-form .label {
  display: block;
  margin-bottom: 23px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy-600);
}
.popup-form .box-input {
  display: block;
  width: 100%;
  height: 51px;
  margin-bottom: 34px;
  padding: 0 15px;
  border: 1px solid transparent;
  background: var(--card);
  font: inherit;
  font-size: 14px;
  color: var(--navy-900);
  outline: none;
}
.popup-form textarea.box-input { height: 150px; padding: 15px; resize: vertical; }
.popup-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  cursor: pointer;
}
.popup-form .check input { margin: 0; accent-color: var(--gold); }
.popup-form .btn--gold { margin-top: 60px; }
.popup-form__call { display: flex; justify-content: center; margin-top: 55px; }
.popup-form__call .btn { border: 0; }

.thanks .modal__dialog {
  max-width: 400px;
  margin-top: 20vh;
  padding: 40px 30px 30px;
  text-align: center;
}
.thanks h3 { font-size: 20px; font-weight: 700; color: var(--navy-700); }
.thanks p { margin-top: 8px; font-size: 15px; color: var(--navy-600); }
.thanks .btn { margin-top: 24px; min-width: 120px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: var(--space-section) 0 56px; text-align: center; }
.page-hero h1 {
  font-size: 60px;
  line-height: 1.37;
  font-weight: 800;
  color: var(--navy-700);
}
.page-hero p { font-size: 18px; line-height: 1.5; color: var(--navy-600); }
.page-hero h1 + p { margin-top: 20px; }
.page-hero .accent {
  margin-top: 27px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-text);
}
.calc-section { padding: 16px 0 var(--space-section); }
/* Form validation: message sits under the field, in place of part of its bottom gap */
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
}
.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.popup-form .field-error { margin: -26px 0 26px; }
.lead-form .field-error { margin: -15px 0 15px; }
.popup-form [data-required-group] + .field-error { margin: -20px 0 0; }
.popup-form .box-input.is-invalid { border-color: var(--error); background: #fff; }
.lead-form .line-input.is-invalid { border-bottom-color: var(--error); }

/* Calculator — same card, field and button language as FAQ and the order form */
.calc { max-width: 760px; margin: 0 auto; }
.calc__tabs {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.calc__tab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 0 22px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--navy-700);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.calc__tab:hover { border-color: rgba(184,125,27,.35); }
.calc__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.calc__tab.is-active { background: #fff; border-color: rgba(184,125,27,.3); box-shadow: inset 0 -2px 0 var(--gold); color: var(--navy-900); }
.calc__remove {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.calc__remove:hover { background: var(--gold); color: #fff; }
.calc__add { min-height: 49px; padding: 0 22px; white-space: nowrap; }

/* Room card: white with a soft shadow */
.calc__room {
  position: relative;
  padding: 44px 48px 36px;
  background: #fff;
  border: 1px solid rgba(184,125,27,.3);
  box-shadow: 0 22px 44px -24px rgba(16,31,48,.3);
}
.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 24px;
  margin-bottom: 24px;
}
.calc__grid--one { grid-template-columns: 1fr; }
.calc__field { display: flex; flex-direction: column; gap: 10px; }
.calc__field span { font-size: 15px; font-weight: 500; color: var(--navy-600); }

/* Fields: same as the popup form inputs */
.calc .box-input {
  display: block;
  width: 100%;
  height: 51px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--card);
  font: inherit;
  font-size: 15px;
  color: var(--navy-900);
  outline: none;
  transition: border-color .3s, background-color .3s;
}
.calc .box-input:focus { background: #fff; border-color: var(--gold); }
.calc select.box-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2325466d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 18px) 50%;
  background-size: 12px 8px;
  background-repeat: no-repeat;
}

.calc__room-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  color: var(--navy-600);
}
.calc__room-total strong { font-size: 24px; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }

/* Grand total uses the dark footer palette so it reads as the final answer */
.calc__grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding: 28px 48px;
  background: var(--navy-900);
  color: var(--white-soft);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .3px;
}
.calc__grand strong { font-size: 30px; font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }

.calc-section .order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
}
.calc__order { min-width: 380px; min-height: 68px; font-size: 16px; letter-spacing: .5px; }
.calc__order-note { font-size: 15px; color: var(--text-muted); }

/* Calculation attached to the order form */
.popup-form__calc {
  margin: 8px 0 12px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
}
.popup-form__calc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.popup-form__calc-head h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); }
.popup-form__calc-head strong { font-size: 20px; color: var(--gold-text); white-space: nowrap; }
.popup-form__calc ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-600);
}
.popup-form__calc li + li { margin-top: 8px; }
.popup-form .popup-form__calc .check { margin-bottom: 0; font-size: 15px; }

.legal { padding: var(--space-section) 0; }

/* 404 */
.not-found { padding: var(--space-section) 0; text-align: center; }
.not-found__code {
  font-size: 160px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--bg-2);
  -webkit-text-stroke: 1px rgba(184,125,27,.45);
}
.not-found h1 {
  margin-top: 8px;
  font-size: 50px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-700);
}
.not-found__text {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-600);
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.not-found__call { margin-top: 32px; font-size: 16px; color: var(--text-muted); }
.not-found__call a { color: var(--gold-text); font-weight: 600; }
.not-found__call a:hover { text-decoration: underline; }
.legal__inner { max-width: 870px; margin: 0 auto; color: var(--navy-600); font-size: 18px; line-height: 1.5; }
.legal h1 { font-size: 40px; line-height: 1.25; font-weight: 800; color: var(--navy-700); margin-bottom: 16px; }
.legal h2 { font-size: 24px; font-weight: 700; color: var(--navy-900); margin: 36px 0 12px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 24px; }
.legal .muted { color: var(--gold-text); }

/* ---------- Interactions ---------- */
:root { --ease: cubic-bezier(.2,.7,.2,1); }

/* Buttons: soft, classic color transitions (same timing everywhere) */
.btn { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--navy:hover { background: var(--navy-700); }
.btn--outline:hover { background: var(--navy-900); color: var(--white-soft); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Nav: gold underline grows from the left */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.header { transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(16,31,48,.3); }

/* Photos: slow zoom inside a fixed frame */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
}
.media img { transition: transform .9s var(--ease), filter .6s; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16,31,48,.28));
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.service-card:hover .media img,
.type-card:hover .media img,
.project:hover .media img,
.about__media:hover img { transform: scale(1.06); }
.service-card:hover .media::after,
.type-card:hover .media::after,
.project:hover .media::after { opacity: 1; }
.service-card h3, .type-card h3, .project h3 { transition: color .3s; }
.service-card:hover h3, .type-card:hover h3, .project:hover h3 { color: var(--gold-text); }
.service-card, .type-card { cursor: default; }

/* Portfolio zoom trigger */
.media--zoom {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}
.media--zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.media__zoom {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239,238,234,.92);
  color: var(--navy-900);
  opacity: 0;
  transform: translateY(10px) scale(.85);
  transition: opacity .4s, transform .4s var(--ease), background-color .3s, color .3s;
}
.media__zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.project:hover .media__zoom,
.media--zoom:focus-visible .media__zoom { opacity: 1; transform: none; }
.media--zoom:hover .media__zoom { background: var(--gold); color: #fff; }
.project__line { transition: background-color .4s; }
.project:hover .project__line { background: var(--gold); }

/* Cards: lift, gold border, soft shadow */
.advantage, .lead-form { transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.advantage:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -24px rgba(16,31,48,.35);
}
.lead-form:hover { box-shadow: 0 30px 60px -36px rgba(16,31,48,.35); }

/* Icons: one shared hover — circle turns gold and rises a little, icon turns white */
.icon-box, .stat__num { transition: background-color .35s ease, transform .35s var(--ease); }
.icon-box .icon, .contact-item .icon { transition: background-color .35s ease, transform .35s var(--ease); }
.advantage:hover .icon-box,
.step:hover .icon-box,
.stat:hover .stat__num { background: var(--gold-dark); transform: translateY(-3px); }
.advantage:hover .icon, .step:hover .icon { background-color: #fff; }
.contact-item:hover .icon { transform: translateY(-3px); }
.review img { transition: box-shadow .4s ease; }
.review:hover img { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold); }
.carousel__arrow { transition: opacity .3s, transform .3s var(--ease), color .3s; }
.carousel__arrow:hover { color: var(--gold); }
.carousel__arrow--next:hover { transform: translateX(3px); }
.carousel__arrow--prev:hover { transform: translateX(-3px); }
.footer__nav a { transition: color .25s, transform .25s var(--ease); display: inline-block; width: fit-content; }
.footer__nav a:hover { transform: translateX(4px); }
.lead-form .line-input, .popup-form .box-input { transition: border-color .3s, background-color .3s; }
.popup-form .box-input:focus { background: #fff; border-color: var(--gold); }

/* Scroll reveal (enabled by JS) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 30px;
  background: rgba(16,31,48,.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  --lb-w: min(1100px, calc(100vw - 220px));
  --lb-h: min(760px, calc(100vh - 150px));
  margin: 0;
  width: var(--lb-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(.96);
  transition: transform .45s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: none; }
/* Fixed frame: every photo is fitted inside the same box */
.lightbox__img {
  width: 100%;
  height: var(--lb-h);
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  transition: opacity .25s;
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  margin-top: 18px;
  color: var(--white-soft);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .3px;
}
.lightbox__counter { color: var(--gold-light); font-size: 14px; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(239,238,234,.25);
  border-radius: 50%;
  background: transparent;
  color: var(--white-soft);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); border-color: var(--gold); }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 30px;
  line-height: 1;
}
.lightbox__close:hover { transform: rotate(90deg); }

@media (hover: none) {
  .media__zoom { opacity: 1; transform: none; width: 40px; height: 40px; right: 12px; bottom: 12px; }
}
@media (max-width: 767px) {
  .lightbox { padding: 70px 12px 30px; gap: 0; }
  .lightbox__nav { position: absolute; bottom: 24px; width: 46px; height: 46px; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
  .lightbox__figure { --lb-w: 100%; --lb-h: calc(100vh - 230px); }
  .lightbox__close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .nav { gap: 8px 22px; }
  .about__body { grid-template-columns: 1fr 1fr; gap: 50px; }
  .contacts__body { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 50px 40px; }
  .footer__main { grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 30px; }
}

@media (max-width: 991px) {
  :root { --space-section: 96px; --space-title: 56px; --space-group: 56px; --space-grid: 24px; --gutter: 32px; }
  .header { height: 80px; }
  html { scroll-padding-top: 80px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(16,31,48,.08);
    display: none;
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 12px 0; font-size: 16px; width: 100%; }
  .nav .btn { display: inline-flex; margin-top: 12px; width: auto; padding: 0 28px; color: var(--white-soft); }
  .nav .btn:hover { color: var(--white-soft); }
  .hero { min-height: 600px; }
  .hero h1 { font-size: 46px; }
  .service-card { flex-basis: calc((100% - 30px) / 2); }
  /* Tablet: cards become vertical and centered so rows stay complete */
  .advantages__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .advantage { flex-direction: column; text-align: center; gap: 18px; padding: 32px 16px; }
  .steps__grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .step { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .step h3 { font-size: 18px; }
  .types__grid { grid-template-columns: 1fr 1fr; gap: 48px var(--space-grid); }
  .types__col { display: contents; }
  .type-card--big { grid-column: 1 / -1; }
  .type-card--big .media { min-height: 380px; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .about__stats { gap: 16px; }
  .stat { flex-direction: column; text-align: center; gap: 16px; }
  .stat__label { font-size: 16px; }
  .about__body, .contacts__body { grid-template-columns: 1fr; }
  .about__img { height: 500px; }
  .about__text { max-width: none; }
  .cta h2, .contacts__title, .modal__title { font-size: 40px; }
  .page-hero h1 { font-size: 46px; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 48px var(--space-grid); padding-top: 80px; padding-bottom: 64px; }
}

@media (max-width: 767px) {
  :root { --space-section: 72px; --space-title: 40px; --space-group: 40px; --space-grid: 20px; --gutter: 20px; }
  .section-title { gap: 20px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 36px; }
  .hero__subtitle { font-size: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .carousel { padding: 0; margin: 0; }
  .carousel__arrow { top: 104px; background: rgba(239,238,234,.85); }
  .service-card { flex-basis: 100%; }
  .service-card img { height: 238px; }
  .advantages__grid, .steps__grid, .portfolio__grid, .types__grid, .about__stats { grid-template-columns: 1fr; }
  .advantage, .step, .stat { flex-direction: row; text-align: left; align-items: center; }
  .advantage { padding: 22px 20px; gap: 16px; min-height: 0; }
  .steps__grid { gap: 24px; }
  .step h3 { font-size: 20px; line-height: 1.4; }
  .about__stats { gap: 16px; }
  .stat__label { font-size: 17px; }
  .type-card img { height: 240px; }
  .type-card--big .media { min-height: 240px; }
  .cta__box { padding: 50px 24px; min-height: 0; }
  .cta h2, .contacts__title, .modal__title { font-size: 30px; }
  .review { padding: 8px 24px 0; }
  .review h3 { font-size: 28px; }
  .reviews .carousel__arrow { top: 20px; }
  .faq__list { gap: 12px; }
  .faq__q { grid-template-columns: 30px 1fr 34px; gap: 12px; padding: 20px 18px; font-size: 18px; }
  .faq__q::before { font-size: 13px; }
  .faq__q::after { width: 34px; height: 34px; }
  .faq__a p { padding: 0 18px 22px 60px; font-size: 16px; }
  .about__img { height: 420px; }
  .lead-form { padding: 40px 20px; }
  .lead-form h3 { font-size: 28px; }
  .about__lead { font-size: 24px; }
  .footer__main { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
  .footer__bottom .container { flex-direction: column-reverse; justify-content: center; gap: 6px; padding-top: 20px; padding-bottom: 20px; }
  .footer__bottom a { padding-left: 0; }
  .modal__dialog { padding: 64px 22px 40px; }
  .calc__tabs { flex-direction: column-reverse; align-items: stretch; }
  .calc__room { padding: 28px 20px; }
  .calc__grid { grid-template-columns: 1fr; gap: 20px; }
  .calc__room-total, .calc__grand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .calc__grand { padding: 24px 20px; }
  .calc__order { min-width: 0; width: 100%; }
  .calc__order-note { text-align: center; }
  .popup-form__calc { padding: 20px 18px; }
  .popup-form__calc-head { flex-direction: column; gap: 4px; }
  .page-hero { padding: var(--space-section) 0 32px; }
  .page-hero h1 { font-size: 36px; }

  .legal h1 { font-size: 30px; }
  .not-found__code { font-size: 110px; }
  .not-found h1 { font-size: 32px; }
  .not-found__text { font-size: 16px; }
  .not-found__actions { flex-direction: column; align-items: stretch; }
}
