:root {
  --red: #ff1515;
  --red-dark: #e60000;
  --ink: #20242a;
  --muted: #7d8794;
  --line: #eceff3;
  --soft: #f6f7f9;
  --card: #ffffff;
  --shadow: 0 18px 46px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.header--scrolled { border-color: var(--line); box-shadow: 0 8px 28px rgba(16,24,40,.06); }
.header__inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { width: 286px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; max-height: 74px; object-fit: contain; }
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  color: #575e68;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover, .footer__nav a:hover { color: var(--red); }
.header__right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.phone-link .icon { width: 15px; height: 15px; color: #171717; fill: #171717; stroke-width: 0; }
.socials { display: flex; align-items: center; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.socials img { width: 100%; height: 100%; object-fit: contain; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.burger span { display: block; height: 2px; margin: 5px 0; background: #111; transition: .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel, .menu-overlay { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: .22s ease;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 24px rgba(255,21,21,.16); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--ink); border-color: var(--red); }
.btn--white span { color: var(--red); }
.btn--white:hover { color: var(--red); transform: translateY(-1px); }
.btn,
.quiz-next {
  position: relative;
}
.btn__text {
  transition: opacity .18s ease;
}
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin .7s linear infinite;
  flex: 0 0 auto;
}
.btn.is-loading,
.quiz-next.is-loading {
  pointer-events: none;
}
.btn.is-loading .btn__text,
.quiz-next.is-loading .btn__text {
  opacity: .85;
}
.btn.is-loading .btn__spinner,
.quiz-next.is-loading .btn__spinner {
  display: inline-block;
}
@keyframes button-spin {
  to { transform: rotate(360deg); }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  height: 80vh;
  background:
    radial-gradient(circle at 13% 52%, rgba(255,21,21,.055), transparent 26%),
    linear-gradient(90deg, #fff 0%, #fff 50%, rgba(255,255,255,.92) 60%, rgba(255,255,255,.35) 76%, rgba(255,255,255,0) 88%),
    url("../images/hero-new.webp") right center / auto 100% no-repeat;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 560px;
  height: 100%;
}
.hero__copy {
  position: relative;
  max-width: 730px;
  padding: 18px 0 96px;
  z-index: 1;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
h1 .h1-line {
  display: block;
}
h1 .hero-price {
  display: block;
  margin-top: 8px;
  color: var(--red);
  font-size: .72em;
  white-space: nowrap;
}
.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #4a525b;
  font-size: 19px;
  font-weight: 700;
}
.hero__tagline span { color: var(--red); font-weight: 400; }
h2 {
  margin-bottom: 9px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 40px;
  padding: 0;
  list-style: none;
  color: #3c444d;
  font-size: 17px;
  font-weight: 800;
}
.hero-list li { display: flex; align-items: center; gap: 12px; }
.hero-list .icon {
  width: 26px;
  height: 26px;
  color: var(--red);
  flex: 0 0 26px;
  stroke-width: 2.1;
}
.hero__actions { display: flex; gap: 20px; align-items: center; }
.hero__actions .btn {
  min-height: 52px;
  min-width: 214px;
  padding: 0 34px;
  font-size: 16px;
}
.hero-mail {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
  margin-top: 28px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(16,24,40,.06);
}
.hero-mail__icon { width: 34px; height: 34px; color: var(--red); flex: 0 0 auto; }
.hero-mail__body { flex: 1; min-width: 0; }
.hero-mail__text { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hero-mail__link { color: var(--ink); font-size: 22px; font-weight: 700; text-decoration: none; }
.hero-mail__link:hover { color: var(--red); }
.hero-mail__copy {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hero-mail__copy:hover, .hero-mail__copy.is-copied { background: var(--red); color: #fff; }
@media (max-width: 1023px) { .hero-mail { display: none; } }

.section { padding: 86px 0; }
.section-panel { margin: 0 38px; padding: 54px 0; background: var(--soft); }
.section-head {
  margin-bottom: 36px;
  padding-left: 36px;
  padding-right: 36px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 34px;
  padding: 0 36px;
}
.product-card {
  position: relative;
  min-height: 312px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16,24,40,.04);
  cursor: pointer;
  transition: .22s ease;
}
.product-card:hover {
  border-color: rgba(255,21,21,.32);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1.48 / 1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 20px;
}
.product-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}
.product-card p {
  margin: 0;
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}
.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.product-card a {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}
.catalog-gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.projects.section-panel {
  margin-left: 0;
  margin-right: 0;
  padding: 72px 0;
}
.projects h2 {
  margin-left: 36px;
  margin-bottom: 42px;
}
.geography { overflow: hidden; }
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0 36px;
  list-style: none;
}
.city-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #59636e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.presence-map { margin: 0; padding: 0 36px; }
.presence-map img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.presence-map figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.presence-map figcaption span { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255,21,21,.1); }
.project-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-big {
  display: grid;
  grid-template-columns: 1.35fr .82fr;
  gap: 46px;
  width: min(1240px, 100%);
  padding: 44px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.project-card-big h3 {
  margin-bottom: 8px;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.project-meta { display: flex; gap: 22px; margin-bottom: 18px; color: #8a929b; font-size: 15px; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta .icon { width: 15px; color: #9ea6af; }
.project-photo {
  width: 100%;
  height: 430px;
  border-radius: 6px;
  object-fit: cover;
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.thumbs img {
  height: 108px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid transparent;
  cursor: pointer;
}
.thumbs img.active { border-color: var(--red); }
.project-side { padding-top: 54px; }
.project-side h4 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 900;
}
.project-side ul { margin: 0 0 28px; padding-left: 20px; color: #5f6872; font-size: 16px; line-height: 1.55; }
.project-side li::marker { color: var(--red); }
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.project-stats b { display: block; font-size: 19px; white-space: nowrap; }
.project-stats small { display: block; margin-top: 5px; color: #9aa1aa; font-size: 12px; }
.note {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 28px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8b949e;
  font-size: 13px;
}
.note .icon { color: var(--red); flex: 0 0 auto; }
.round-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  box-shadow: 0 12px 28px rgba(16,24,40,.08);
  cursor: pointer;
}
.round-arrow .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.round-arrow--left .icon { transform: rotate(180deg); }
.round-arrow--left { left: 34px; }
.round-arrow--right { right: 34px; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #d8dde3; }
.dots .active { background: var(--red); }

.adv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 0 36px;
}
.adv-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.adv-card img { width: 100%; height: 152px; object-fit: cover; filter: saturate(.82); }
.adv-card h3 {
  margin: 34px 22px 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.adv-card--large h3 { margin-top: 28px; }
.adv-card p { margin: 14px 22px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.adv-card--large { grid-row: span 2; min-height: 610px; }
.adv-card--large img { height: 380px; }
.num {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16,24,40,.08);
}
.badge-icon {
  position: absolute;
  left: 24px;
  top: 132px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 8px 18px rgba(16,24,40,.09);
}

.related .section-head { margin-left: 0; }
.related.section-panel {
  margin-left: 0;
  margin-right: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px;
  padding: 0 36px;
}
.related-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 34px 34px 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.related-card > img {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 34px;
}
.related-card > span {
  position: absolute;
  top: 48px;
  left: 48px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  color: var(--red);
  box-shadow: 0 10px 22px rgba(16,24,40,.1);
}
.related-card h3 {
  margin-bottom: 20px;
  font-size: 29px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
}
.related-card p { margin-bottom: 34px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.related-card .btn {
  min-height: 52px;
  min-width: 214px;
  padding: 0 34px;
  font-size: 16px;
}

.quiz__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: 86px;
}
.quiz__copy p { max-width: 500px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.check-list {
  display: grid;
  gap: 11px;
  margin: 36px 0 30px;
  padding: 0;
  list-style: none;
  color: #4f5863;
  font-size: 15px;
}
.check-list li { display: flex; align-items: center; gap: 9px; }
.check-list li::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--red);
}
.quiz__cta { display: flex; align-items: center; gap: 22px; }
.quiz__cta small { color: #9aa1aa; font-size: 12px; }
.quiz-form {
  --quiz-progress: 20%;
  position: relative;
  min-height: 280px;
  padding: 32px 32px 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.quiz-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: var(--quiz-progress);
  max-width: calc(100% - 56px);
  height: 3px;
  background: var(--red);
  transition: width .25s ease;
}
.quiz-form__top { display: grid; gap: 7px; margin-bottom: 24px; }
.quiz-form__top span { color: #9aa1aa; font-size: 11px; font-weight: 700; }
.quiz-form__top b { font-size: 17px; }
.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #5e6772;
  font-size: 13px;
  cursor: pointer;
}
.quiz-option input { accent-color: var(--red); }
.quiz-option:has(input:checked) { border-color: var(--red); color: var(--red); }
.quiz-final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz-actions {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.quiz-back,
.quiz-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 126px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.quiz-back:hover,
.quiz-next:hover {
  border-color: var(--red);
  color: var(--red);
}
.quiz-back[hidden] { visibility: hidden; display: block; }
.quiz-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.quiz-summary div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.quiz-summary dt {
  color: #8b94a1;
  font-size: 13px;
}
.quiz-summary dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}
.quiz-next--submit {
  min-width: 220px;
  min-height: 54px;
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(255,21,21,.14);
}
.quiz-next--submit:hover {
  color: #fff;
}

.contact-band.section-panel { background: var(--soft); }
.contact-card {
  display: flex;
  justify-content: center;
  padding: 18px 0 42px;
  background: var(--soft);
}
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(860px, 100%);
}
.lead-form h2, .lead-form p, .lead-form button, .lead-form .consent { grid-column: 1 / -1; }
.lead-form h2, .contact-info h2 { margin-bottom: 8px; font-size: 32px; }
.lead-form h2,
.lead-form p { text-align: center; }
.lead-form p { margin-bottom: 18px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.input-field {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 15px;
}
textarea.input-field { min-height: 42px; padding-top: 12px; resize: vertical; }
.input-field:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,21,21,.08); }
.lead-form .btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 320px;
  min-height: 62px;
  padding: 0 38px;
  font-size: 16px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--red);
}
.consent span { display: block; }
.btn:disabled,
.quiz-next:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover,
.quiz-next:disabled:hover {
  transform: none;
}
.contact-info { padding-top: 2px; }
.contact-info a, .contact-info p {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  color: #6b7480;
  font-size: 14px;
}
.contact-info .icon { width: 16px; height: 16px; color: var(--red); flex: 0 0 auto; }
.socials--bottom { margin-top: 0; }
.socials--bottom a { width: 31px; height: 31px; }

.footer { padding: 28px 0 30px; background: #fff; border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 172px 300px minmax(520px, 1fr);
  align-items: center;
  gap: 22px 24px;
}
.brand--footer { width: 172px; }
.brand--footer img { max-height: none; }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  justify-content: center;
  gap: 9px 36px;
  color: #7f8791;
  font-size: 13px;
  white-space: nowrap;
}
.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: #6b7480;
  font-size: 12px;
}
.footer-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, max-content));
  gap: 10px 18px;
}
.footer-contact-list a,
.footer-contact-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}
.footer-contact-list .icon {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex: 0 0 auto;
}
.footer-contacts .socials--bottom {
  display: flex;
  flex: 0 0 auto;
}
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
  color: #8a929b;
  font-size: 12px;
  line-height: 1.4;
}

.modal {
  max-width: 420px;
  border: 0;
  border-radius: 12px;
  padding: 34px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .22s ease, transform .22s ease;
  will-change: opacity, transform;
}
.modal.is-opened { opacity: 1; transform: translateY(0) scale(1); }
.modal--quiz {
  width: min(900px, calc(100vw - 48px));
  max-width: none;
  padding: 42px;
}
.modal--quiz .quiz-form {
  min-height: 330px;
  padding: 36px 36px 104px;
}
.modal--callback {
  width: min(720px, calc(100vw - 48px));
  max-width: none;
  padding: 44px;
}
.modal--success {
  width: min(500px, calc(100vw - 24px));
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.modal--gallery {
  width: min(1080px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 42px;
  overflow-y: auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.gallery-thumb {
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--line);
  transition: .22s ease;
}
.gallery-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}
.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(10,10,12,.92);
  touch-action: pan-y;
}
.gallery-viewer img {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-viewer__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.gallery-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.gallery-viewer__nav--prev { left: 18px; }
.gallery-viewer__nav--next { right: 18px; }
.gallery-viewer__nav:hover, .gallery-viewer__close:hover { background: rgba(255,255,255,.24); }
.success-modal {
  padding: 34px 34px 30px;
  text-align: center;
}
.success-modal__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 2px auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a23 0%, #ff4b39 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(255, 42, 35, .28);
}
.success-modal h2 {
  margin-bottom: 10px;
}
.success-modal p {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.6;
}
.success-modal .btn {
  width: 100%;
}
.callback-form {
  width: 100%;
}
.callback-form h2,
.callback-form p,
.callback-form button,
.callback-form .consent {
  grid-column: 1 / -1;
}
.modal::backdrop {
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .22s ease;
}
.modal.is-opened::backdrop { opacity: 1; }
.modal.is-closing { opacity: 0; transform: translateY(18px) scale(.96); }
.modal.is-closing::backdrop { opacity: 0; }
.modal h2 { font-size: 26px; }
.modal p { color: var(--muted); }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  cursor: pointer;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

@media (max-width: 1199px) {
  .container { width: min(100% - 36px, 1120px); }
  .nav, .header__right { display: none; }
  .burger { display: block; margin-left: auto; }
  .mobile-panel {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    width: min(360px, 88vw);
    height: 100vh;
    padding: 74px 24px 24px;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,.12);
  }
  .mobile-panel__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f2f4;
    color: #20242a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-panel.is-open { transform: translateX(0); }
  .mobile-panel a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: rgba(0,0,0,.22);
    transition: opacity .2s ease;
  }
  .menu-overlay.is-open { opacity: 1; pointer-events: auto; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .modal--gallery { padding: 28px; }
  .presence-map, .city-list { padding: 0; }
  .project-card-big, .adv-grid, .related-grid, .quiz__grid { grid-template-columns: 1fr; }
  .adv-grid { padding: 0; }
  .adv-card--large { grid-row: auto; min-height: 360px; }
  .adv-card--large img { height: 190px; }
  .contact-card { padding: 18px 0 30px; }
  .modal--quiz { padding: 34px; }
  .nav { gap: 18px; font-size: 13px; }
  .footer__inner { grid-template-columns: 180px 1fr; gap: 22px 36px; }
  .footer__nav { justify-content: flex-end; gap: 9px 28px; }
  .footer-contacts { grid-column: 1 / -1; justify-content: center; }
  .footer-contact-list { grid-template-columns: repeat(2, max-content); }
}

@media (max-width: 767px) {
  .header__inner { height: 74px; }
  .brand { width: 126px; }
  .hero {
    min-height: 620px;
    height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.9) 58%, rgba(255,255,255,.4) 100%),
      url("../images/hero-new.webp") center bottom / auto 54% no-repeat;
  }
  .hero__grid { grid-template-columns: 1fr; min-height: 620px; height: auto; }
  .hero__copy { padding: 44px 0; }
  h1 { font-size: 32px; }
  h1 .h1-line,
  h1 .hero-price { white-space: normal; }
  h2 { font-size: 24px; }
  .hero__actions, .quiz__cta { align-items: stretch; flex-direction: column; }
  .section { padding: 46px 0; }
  .section-panel { margin: 0; padding: 38px 0; }
  .city-list { gap: 6px; }
  .city-list li { padding: 7px 9px; font-size: 11px; }
  .catalog-grid, .related-grid, .quiz-options, .quiz-final, .lead-form { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-viewer__nav { width: 42px; height: 42px; font-size: 24px; }
  .section-head { padding-left: 0; padding-right: 0; }
  .projects h2, .related .section-head { margin-left: 0; }
  .related-grid { gap: 16px; padding: 0; }
  .related-card {
    min-height: 0;
    padding: 16px;
    border-radius: 7px;
  }
  .related-card > img {
    height: 220px;
    margin-bottom: 20px;
  }
  .related-card > span {
    top: 28px;
    left: 28px;
    width: 38px;
    height: 38px;
  }
  .related-card h3 { font-size: 22px; }
  .related-card p { margin-bottom: 20px; font-size: 14px; }
  .project-card-big { padding: 18px; }
  .project-photo { height: 220px; }
  .project-side { padding-top: 0; }
  .project-shell {
    padding: 0 0 56px;
  }
  .round-arrow {
    display: grid;
    width: 36px;
    height: 36px;
    top: auto;
    bottom: 0;
    transform: none;
    z-index: 3;
    cursor: pointer;
  }
  .round-arrow .icon {
    width: 20px;
    height: 20px;
  }
  .round-arrow--left { left: 0; }
  .round-arrow--right { right: 0; }
  .dots { margin-top: 24px; }
  .contact-card { padding: 8px 0 22px; }
  .lead-form { gap: 14px; }
  .lead-form h2 { font-size: 26px; }
  .lead-form p { font-size: 14px; }
  .lead-form .btn { width: 100%; min-width: 0; }
  .modal--quiz { width: min(100vw - 24px, 1180px); padding: 24px; }
  .modal--success { width: min(100vw - 24px, 500px); }
  .success-modal { padding: 28px 20px 24px; }
  .success-modal__icon { width: 60px; height: 60px; font-size: 28px; }
  .modal__close {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
  }
  .brand--footer { width: 148px; }
  .footer__nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-auto-flow: row;
    justify-content: start;
    gap: 10px 28px;
  }
  .footer-contacts {
    width: 100%;
    display: grid;
    justify-items: start;
    gap: 14px;
  }
  .footer-contact-list {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-contact-list a,
  .footer-contact-list span {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
  }
  .footer-contact-list .icon { flex: 0 0 auto; }
  .footer-contacts .socials--bottom { justify-content: flex-start; }
  .footer-legal { text-align: center; }
}

/* LPTracker: плавающая кнопка звонка в цветах сайта */
iframe.lpt-widget-btn__main { border-radius: 50%; box-shadow: 0 12px 24px rgba(255,21,21,.28); }
.lpt-bubbles .lpt-bubbles-circle { border-color: rgba(255,21,21,.45) !important; }
.lpt-bubbles .lpt-bubbles-circle-fill { background-color: rgba(255,21,21,.3) !important; box-shadow: none !important; }
iframe.lpt-sidebar-frame { box-shadow: -16px 0 40px rgba(16,24,40,.12); }
