:root {
  --black: #000000;
  --dark: #1c1e22;
  --dark-card: #2b2e33;
  --dark-icon: #353940;
  --accent-1: #2f63bd;
  --accent-2: #1a4287;
  --accent-shadow: #112d5e;
  --gold: #7ea6ea;
  --gold-1: #ffe5b6;
  --gold-2: #e3ba7f;
  --gold-text: #664d2d;
  --gold-shadow: #cfaf79;
  --beige: #e6ecf5;
  --beige-soft: rgba(255, 255, 255, 0.7);
  --price: #2f63bd;
  --lime: #ffffff;
  --light: #f8f8f8;
  --line: #ebebeb;
  --text: #000000;
  --text-2: #333333;
  --text-muted: rgba(0, 0, 0, 0.6);
  --white: #ffffff;
  --radius: 10px;
  --container: 1170px;
  --font-head: "Jost", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
a, button, input, label { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
html { scroll-behavior: smooth; }
section[id], #cta-form { scroll-margin-top: 60px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.2; font-family: var(--font-head); }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

.muted { color: var(--text-muted); }
.small { font-size: 0.85em; }
.accent { color: var(--accent-1); }

section { padding: 60px 0; }
.heading {
  font-size: clamp(28px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
}
.heading .accent { white-space: nowrap; }
.section-sub { text-align: center; max-width: 620px; margin: -16px auto 36px; color: var(--text-muted); font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}
.btn--accent {
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 100%);
  color: var(--white);
  box-shadow: 0 4px 0 var(--accent-shadow);
}
.btn--accent:hover { filter: brightness(1.06); }
.btn--accent:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-shadow); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 100%);
  color: var(--gold-text);
  border-radius: 60px;
  box-shadow: 0 4px 0 var(--gold-shadow), inset 0 -4px 4px rgba(255, 255, 255, 0.14);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 22px;
}
.btn--gold:hover { filter: brightness(1.04); }
.btn--gold:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-shadow); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Header: top row */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 101;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 81px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { height: 44px; width: auto; flex-shrink: 0; }
.logo__text {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.logo__accent { color: var(--gold); }
.topbar__slogan { font-size: 14px; line-height: 1.4; max-width: 250px; margin: 0 auto 0 0; }
.topbar__contacts { text-align: right; }
.messengers { display: flex; gap: 8px; }
.messenger {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.messenger:hover { transform: scale(1.08); filter: brightness(1.05); }
.messenger--tg { background: none; }
.messenger--max { background: linear-gradient(45deg, #00c4ff 0%, #1e53ff 50%, #7b08fc 100%); }
.menubar .messengers { display: none; }
.topbar__note { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 14px; }
.topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-1); }
.topbar__phone { display: block; color: var(--lime); font-size: 22px; font-weight: 600; white-space: nowrap; }

/* Header: sticky menu row */
.menubar {
  position: sticky;
  top: 0;
  z-index: 100;
  margin-top: 81px;
  margin-bottom: -128px;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.menubar.is-scrolled { background: var(--dark); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
.menubar__inner { display: flex; align-items: center; height: 47px; }
.menubar .logo--mobile, .menubar__phone, .burger { display: none; }
.nav { display: flex; justify-content: space-between; width: 100%; }
.nav a { font-family: var(--font-head); color: var(--white); font-size: 16px; font-weight: 400; }
.nav a:hover { color: var(--gold); }

.burger {
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  margin-left: 14px;
}
.burger span { display: block; width: 100%; height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.2s ease; }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav, .nav a, .burger span { transition: none !important; }
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(12, 16, 24, 0.66) 0%, rgba(12, 16, 24, 0.34) 45%, rgba(12, 16, 24, 0.04) 100%),
    url("../assets/hero.webp") center / cover no-repeat;
  color: var(--white);
  padding: 222px 0 120px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 370px);
  gap: 60px;
  justify-content: space-between;
  align-items: start;
}
.badge {
  position: relative;
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  font-weight: 400;
  padding: 13px 16px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.hero__title { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; line-height: 1.17; margin-bottom: 8px; }
.hero__subtitle { font-size: clamp(20px, 2.2vw, 28px); font-weight: 400; line-height: 1.4; margin: 0; }
.hero__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 56px;
  max-width: 620px;
}
.hero__features li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.15;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 10px 12px 10px 72px;
}
.check {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 5px;
  background: var(--dark-icon);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}

.hero__form-card {
  background: rgba(14, 18, 26, 0.55);
  border: 1px solid rgba(126, 166, 234, 0.3);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(4px);
}
.hero__form-card h3 { font-family: var(--font-body); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.hero__form-card .form-sub { color: rgba(255, 255, 255, 0.8); font-size: 18px; font-weight: 400; line-height: 1.2; margin: 0; }

.lead-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.lead-form input[type="text"],
.lead-form input[type="tel"] {
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 18px;
  width: 100%;
  color: rgba(0, 0, 0, 0.8);
}
.lead-form input:focus { outline: none; border-color: var(--accent-1); }
.consent { display: flex; gap: 8px; font-size: 14px; font-weight: 400; line-height: 1.1; align-items: flex-start; }
.consent input { margin-top: 1px; flex-shrink: 0; }
.consent a { text-decoration: underline; }
.form-status { min-height: 18px; font-size: 14px; margin: 0; }
.form-status.success { color: #a9d39c; }
.form-status.error { color: #ffb3a7; }

/* Calculator + tariffs */
.calc-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 30px;
  align-items: start;
}
.calc-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  background: var(--beige);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-bottom: 14px;
}
.calc-panel__label { font-size: 18px; line-height: 1.25; max-width: 170px; color: rgba(0, 0, 0, 0.75); }
.calc-panel__value {
  background: var(--white);
  border-radius: 5px;
  padding: 10px 20px;
  min-width: 130px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.calc-panel__value b { color: var(--black); font-weight: 400; }
.calc-panel input[type="range"] {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: var(--accent-2);
  cursor: pointer;
}
.calc-panel__hint {
  background: var(--beige-soft);
  border-radius: 5px;
  padding: 12px 15px;
  max-width: 230px;
  font-size: 15px;
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

.tariff-card { text-align: center; display: flex; flex-direction: column; align-self: stretch; }
.tariff-card h3 { font-family: var(--font-head); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.tariff-price { font-size: 18px; margin: 0 0 12px; }
.tariff-price .calc-price { color: var(--price); font-size: 30px; font-weight: 700; }
.tariff-card__media { position: relative; margin-top: 22px; }
.tariff-card__media img { width: 100%; height: 225px; object-fit: cover; border-radius: var(--radius); }
.tariff-card__term {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: #f1f1f1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 9px 15px;
  font-size: 16px;
  white-space: nowrap;
}
.tariff-card__body { text-align: left; padding: 18px 4px 0; flex: 1; display: flex; flex-direction: column; }
.tariff-card__for { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.tariff-card__body .muted { font-size: 16px; line-height: 1.35; margin-bottom: 18px; }
.tariff-card .btn { margin-top: auto; }

/* No-problem block */
.advantages { background: var(--light); }
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.advantage {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--dark-card);
  color: var(--white);
  border-radius: 5px;
  padding: 26px 24px;
  min-height: 190px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.advantage__icon { flex-shrink: 0; color: var(--gold); }
.advantage h3 { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.advantage p { color: rgba(255, 255, 255, 0.85); font-size: 15px; line-height: 1.45; margin: 0; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 45px;
}
.portfolio-card { display: flex; flex-direction: column; gap: 22px; }
.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ecf1;
}
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  scroll-snap-align: start;
}
.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.gallery__btn:hover { background: var(--white); }
.gallery__btn:disabled { opacity: 0; pointer-events: none; }
.gallery__btn--prev { left: 14px; }
.gallery__btn--next { right: 14px; }
.gallery__counter {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(14, 18, 26, 0.65);
  color: var(--white);
  font-size: 13px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .gallery__btn { width: 38px; height: 38px; }
}
.portfolio-card__info h4 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.1; margin-bottom: 8px; }
.portfolio-card__address { color: var(--text-2); font-size: 18px; font-weight: 400; margin: 0 0 20px; }
.portfolio-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-bottom: 26px;
}
.portfolio-card__stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  color: var(--text-2);
}
.stat-label { font-size: 19px; font-weight: 700; }
.stat-value { font-size: 18px; font-weight: 400; text-align: right; }
.portfolio-card .btn { padding: 20px 30px; min-width: 300px; }

/* Precalc CTA */
.precalc { padding: 0 0 60px; }
.precalc__box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 30px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 44px 50px;
}
.precalc__box h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin-bottom: 8px; }
.precalc__box p { font-size: 18px; color: var(--text-2); margin: 0; }
.precalc__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.precalc__label { font-size: 15px; color: var(--text-muted); margin: 0; }
.precalc__phone { font-family: var(--font-head); font-size: 26px; font-weight: 600; }

/* Process */
.process {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/portfolio/portfolio-2.webp") center / cover no-repeat;
  color: var(--white);
}
.process .heading { color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 36px; }
.process-step {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.process-step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
}
.process-step h3 { font-size: 22px; font-weight: 600; }
.process-step p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.process-cta { text-align: center; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.benefit {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px 26px;
  border-left: 4px solid var(--gold);
}
.benefit h3 { font-size: 21px; font-weight: 600; }
.benefit p { color: var(--text-2); margin: 0; }

/* Testimonials */
.testimonials { background: var(--light); }
/* Карусель отзывов: 3 карточки на ПК, 2 на планшете, 1 с краем следующей на телефоне */
.reviews__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px 6px 26px;
  margin: 0 -6px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track .testimonial { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.reviews__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.reviews__nav.is-static .reviews__btn { display: none; }
.reviews__btn {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.reviews__btn:hover { color: var(--accent-2); border-color: var(--accent-2); }
.reviews__btn:disabled { opacity: 0.35; pointer-events: none; }
.reviews__all { padding: 11px 22px; }
.testimonial {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.testimonial__text { flex: 1; }
.testimonial__source {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
}
a.testimonial__source { color: var(--accent-2); }
a.testimonial__source:hover { text-decoration: underline; }
.reviews__summary-link { color: var(--accent-2); }
.reviews__summary-link:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .reviews__track .testimonial { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .reviews__track { gap: 14px; }
  .reviews__track .testimonial { flex-basis: 86%; padding: 24px; }
  .reviews__nav { gap: 10px; }
  .reviews__btn { width: 42px; height: 42px; }
  .reviews__all { padding: 10px 16px; font-size: 15px; }
}
.testimonial__stars { color: #f5b301; font-size: 20px; letter-spacing: 3px; line-height: 1; margin-bottom: 14px; }
.testimonial__stars-off { color: #d9dde3; }
.testimonial__text { font-size: 17px; line-height: 1.5; }
.testimonial__author { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin: 0; }
.testimonial__author span { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--text-muted); }

/* FAQ */
.accordion { max-width: 900px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer;
  padding: 22px 4px;
  font-family: var(--font-head);
  font-size: 20px; font-weight: 600; text-align: left;
  color: var(--text);
}
.accordion-item__icon {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light);
  color: var(--accent-2); font-size: 22px; font-weight: 400;
  transition: transform 0.2s ease;
}
.accordion-item.is-open .accordion-item__icon { transform: rotate(45deg); }
.accordion-item__body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-item__body p { padding: 0 4px 22px; color: var(--text-2); font-size: 17px; }

/* Footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.75); padding-top: 50px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer h4 { color: var(--white); font-size: 18px; }
.footer a:hover { color: var(--gold); }
.footer__phone { color: var(--lime); font-size: 20px; font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; padding-bottom: 18px; }
.footer__bottom p { margin: 0; }
.footer .muted { color: rgba(255, 255, 255, 0.55); }

/* Contact widget */
.contact-widget { position: fixed; bottom: 22px; right: 22px; z-index: 200; }

.contact-widget__toggle {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 100%);
  color: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 66, 135, 0.35);
  transition: transform 0.15s ease;
}
.contact-widget__toggle:hover { transform: scale(1.05); }

.contact-widget__panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 44px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 24px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.contact-widget.is-open .contact-widget__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-widget__close {
  position: absolute; top: 16px; right: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #f1f1f1; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.contact-widget__close:hover { color: var(--text); }

.contact-widget__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-bottom: 8px; padding-right: 24px; }
.contact-widget__text { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }

.contact-widget__link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ececec;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-widget__link:last-child { margin-bottom: 0; }
.contact-widget__link:hover { border-color: var(--accent-2); background: #f1f5fb; }
.contact-widget__icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: #f1f1f1;
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
}
.contact-widget__label { display: block; font-size: 12px; color: var(--text-muted); }
.contact-widget__value { display: block; font-size: 14px; font-weight: 600; color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
  .calc-panel { grid-template-columns: auto auto 1fr; }
  .calc-panel__hint { grid-column: 1 / -1; max-width: none; }
  .topbar__slogan { display: none; }
  .topbar__inner { justify-content: space-between; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__form-card { max-width: 480px; }
  .advantages-grid, .benefits-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { gap: 36px 24px; }
  .portfolio-card__stats { grid-template-columns: 1fr; }
  .precalc__box { grid-template-columns: 1fr; padding: 34px 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar { display: none; }
  .menubar { margin-top: 0; margin-bottom: -56px; background: rgba(0, 0, 0, 0.75); }
  .menubar__inner { height: 56px; }
  .menubar .logo--mobile { display: inline-flex; margin-right: auto; }
  .menubar .logo--mobile { gap: 6px; }
  .menubar .logo--mobile .logo__text { font-size: 19px; }
  .menubar .logo--mobile .logo__mark { height: 28px; }
  .menubar__phone { display: flex; color: var(--lime); }
  .menubar .messengers { display: flex; gap: 6px; margin-right: 12px; }
  .menubar .messenger { width: 32px; height: 32px; }
  .burger { display: flex; }
  .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--dark);
    padding: 16px 20px 20px;
    gap: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav a { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav.is-open a { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(2) { transition-delay: 0.03s; }
  .nav.is-open a:nth-child(3) { transition-delay: 0.06s; }
  .nav.is-open a:nth-child(4) { transition-delay: 0.09s; }
  .nav.is-open a:nth-child(5) { transition-delay: 0.12s; }
  .nav.is-open a:nth-child(6) { transition-delay: 0.15s; }
  .nav.is-open a:nth-child(7) { transition-delay: 0.18s; }
  .hero { padding: 96px 0 64px; }
}

@media (max-width: 720px) {
  section { padding: 44px 0; }
  .heading { margin-bottom: 24px; }
  .section-sub { margin-top: -8px; font-size: 16px; }
  .hero__features { grid-template-columns: 1fr; margin-top: 32px; }
  .hero__features li { min-height: 62px; }
  .check { width: 44px; height: 44px; }
  .hero__form-card { padding: 22px; }
  .badge { font-size: 15px; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-panel { grid-template-columns: 1fr auto; gap: 14px 16px; padding: 20px; }
  .calc-panel__label { max-width: none; }
  .calc-panel input[type="range"] { grid-column: 1 / -1; }
  .tariff-card { max-width: 420px; margin: 0 auto; width: 100%; }
  .advantages-grid, .benefits-grid, .process-grid,
  .portfolio-grid, .footer__inner { grid-template-columns: 1fr; }
  .advantage { min-height: 0; }
  .portfolio-card .btn { width: 100%; min-width: 0; }
  .stat-label { font-size: 16px; }
  .stat-value { font-size: 16px; }
  .accordion-item__head { font-size: 17px; }
}

/* Legal pages */
.legal-page { background: var(--light); }
.legal-header { background: var(--dark); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.legal-header__inner { gap: 16px; }
.legal-back {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  color: rgba(255, 255, 255, 0.85); font-size: 15px; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.legal-back:hover { color: var(--gold); border-color: var(--gold); }
.legal-back__short { display: none; }
@media (max-width: 560px) {
  .legal-back { padding: 7px 12px; font-size: 14px; }
  .legal-back__full { display: none; }
  .legal-back__short { display: inline; }
  .legal-header .logo { gap: 6px; min-width: 0; }
  .legal-header .logo__text { font-size: 19px; }
  .legal-header .logo__mark { height: 28px; }
}
@media (max-width: 400px) {
  .legal-header .logo__text { font-size: 16px; }
  .legal-header .logo__mark { height: 23px; }
  .legal-back { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 340px) {
  .legal-header .logo__text { font-size: 14.5px; }
  .legal-header .logo__mark { height: 20px; }
  .legal-header .logo { gap: 4px; }
}
.legal {
  max-width: 860px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 48px;
  margin: 40px auto 60px;
  color: var(--text-2);
}
.legal h1 { font-size: clamp(26px, 3.4vw, 38px); color: var(--text); }
.legal h2 { font-size: 21px; font-weight: 600; color: var(--text); margin: 28px 0 10px; }
.legal p, .legal li { font-size: 16px; font-weight: 400; line-height: 1.6; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--accent-2); text-decoration: underline; }
.legal__date { color: var(--text-muted); }
.legal__todo { background: #fff1c2; padding: 0 4px; border-radius: 3px; }
@media (max-width: 720px) { .legal { padding: 28px 20px; margin: 20px auto 40px; } }

/* Page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: ease; }
.legal { animation: legal-in 0.45s ease both; }
@keyframes legal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .legal { animation: none; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 300;
  display: flex; align-items: center; gap: 18px;
  max-width: 560px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px; line-height: 1.4;
  animation: cookie-in 0.35s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px; gap: 12px; }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 400px) {
  .menubar .logo--mobile .logo__text { font-size: 17px; }
  .menubar .messengers { gap: 5px; margin-right: 8px; }
  .menubar .messenger { width: 30px; height: 30px; }
  .burger { margin-left: 10px; }
}

@media (max-width: 720px) {
  .footer__bottom { padding-bottom: 96px; }
}

.precalc__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--outline-accent { background: var(--white); color: var(--accent-2); border: 2px solid var(--accent-2); padding: 13px 26px; }
.btn--outline-accent:hover { background: #f1f5fb; }

.tariff-rate { margin: -8px 0 12px; color: var(--muted, #6b7280); font-size: 15px; }
.badge__icon { flex: none; color: var(--gold); margin-right: 6px; vertical-align: -3px; }
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(12, 16, 24, 0.6) 0%, rgba(12, 16, 24, 0.45) 100%),
      url("../assets/hero-mobile.webp") center / cover no-repeat;
  }
}

/* Шапка на ПК: шире основного контейнера, элементам больше воздуха */
.topbar__inner.container,
.menubar__inner.container { max-width: 1480px; padding: 0 40px; }
.topbar__inner { gap: 36px; }
.topbar .messengers { gap: 12px; }
.topbar__slogan { max-width: 280px; }
@media (max-width: 900px) {
  .topbar__inner.container,
  .menubar__inner.container { padding: 0 20px; }
}

/* О руководителе */
.about { background: var(--white); }
.about__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 52px; align-items: center; max-width: 960px; }
.about__photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(17, 45, 94, 0.15); }
.about__label { color: var(--accent-1); font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 6px; }
.about__name { font-size: clamp(28px, 3vw, 38px); margin: 0 0 16px; }
.about__text p { font-size: 18px; line-height: 1.5; }
.about__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--vk { display: inline-flex; align-items: center; gap: 8px; background: #0077ff; color: #fff; box-shadow: 0 4px 0 #005bc4; }
.btn--vk:hover { filter: brightness(1.06); }
.section-sub a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .about__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about__photo { max-width: 230px; margin: 0 auto; }
  .about__text p { font-size: 16px; }
  .about__buttons { justify-content: center; }
  .about__buttons .btn { width: 100%; justify-content: center; }
}

/* Портфолио: вертикальные карточки 3:4 — 4 в ряд на широких экранах */
@media (min-width: 1101px) {
  .portfolio .container { max-width: 1480px; padding: 0 40px; }
  .portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
  .portfolio-card { gap: 16px; }
  .portfolio-card h4 { font-size: 22px; }
  .portfolio-card .btn { width: 100%; min-width: 0; padding-left: 12px; padding-right: 12px; }
}

/* Название: «24» */
.logo__num { color: var(--gold); margin-left: 1px; }

/* Шапка: два телефона */
.topbar__contacts .topbar__phone { font-size: 19px; line-height: 1.25; }

/* Предрасчёт: два телефона */
.precalc__phone { display: block; }

@media (max-width: 420px) {
  .menubar .logo--mobile .logo__text { font-size: 16.5px; letter-spacing: 0; }
  .menubar .logo--mobile .logo__mark { height: 24px; }
}
@media (max-width: 374px) {
  .menubar .logo--mobile .logo__text { font-size: 15px; }
  .menubar .logo--mobile .logo__mark { height: 21px; }
  .menubar .logo--mobile { gap: 4px; }
}

/* Карточки портфолио: кнопки на одной линии, даже если заголовок в две строки */
.portfolio-card__info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.portfolio-card__info .btn { margin-top: auto; }
@media (min-width: 1101px) {
  .portfolio-card__address { font-size: 16px; }
}

/* Пиксель Метрики для браузеров без JavaScript */
.ym-pixel { position: absolute; left: -9999px; }
.form-status a { color: inherit; text-decoration: underline; }
