:root {
  --sky: #4A90D9;
  --sky-light: #87CEEB;
  --sky-pale: #E8F4F8;
  --grass: #2D6A4F;
  --grass-light: #52B788;
  --sun: #C9A227;
  --sun-light: #FFD166;
  --bronze: #8B7355;
  --water: #0077B6;
  --water-light: #48CAE4;
  --snow: #F8F9FA;
  --text: #1a2332;
  --text-muted: #5a6578;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 35, 50, 0.12);
  --radius: 16px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--snow);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--water); text-decoration: none; }
a:hover { color: var(--sky); }

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, 100%); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,144,217,0.15);
  box-shadow: 0 4px 24px rgba(26,35,50,0.06);
}
@media (max-width: 960px) {
  .site-header {
    backdrop-filter: none;
    background: rgba(255,255,255,0.98);
  }
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand__text strong {
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__text small {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  margin-left: auto; align-items: center;
}
.site-nav__link {
  font-size: .88rem; font-weight: 600; color: var(--text);
  padding: .45rem .2rem; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--sky); border-bottom-color: var(--sun); }
.site-nav__link--cta {
  background: linear-gradient(135deg, var(--sun), var(--bronze));
  color: var(--white) !important; border: none !important;
  padding: .55rem 1rem !important; border-radius: 999px;
}
.header-phone {
  font-weight: 700; color: var(--grass); white-space: nowrap;
  font-size: .9rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 4.5rem;
  height: 40px;
  padding: 0 .85rem;
  border: 2px solid rgba(74, 144, 217, 0.35);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  color: var(--grass);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--grass);
  border-color: var(--grass);
  color: var(--white);
}
.nav-toggle__label { pointer-events: none; }

/* ===== Главная ===== */
.home-focus {
  padding-top: 2.25rem;
  padding-bottom: 1.75rem;
}

.home-focus__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  color: var(--text);
  max-width: 22ch;
  line-height: 1.15;
}

.home-focus__lead {
  max-width: 42rem;
}

.home-focus__links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  align-items: center;
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.home-focus__links a {
  color: var(--water-dark, #0b5a6e);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.home-focus__links a:hover {
  color: var(--sun-dark, #8a6a12);
}

.home-focus__links span {
  color: var(--text-muted);
  font-weight: 500;
}

.home-about.section--about {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: var(--snow);
}
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
  gap: 2rem 3.5rem;
  align-items: center;
}
.home-about__media {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  grid-column: 1;
  order: 1;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: visible;
}
.home-about__media--empty {
  min-height: 0;
}
.home-about__figure {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: grid;
  place-items: center;
  transform: scale(var(--about-scale, 1));
  transform-origin: center center;
  background: transparent;
}
.home-about__media--knockout .home-about__figure,
.home-about__media--knockout .home-about__person,
.home-about__media--knockout .home-about__circle img {
  /* белый фон/поля в PNG сливаются со светлой страницей */
  mix-blend-mode: darken;
}
.home-about__circle {
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  justify-self: center;
}
.home-about__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}
.home-about__person {
  position: absolute;
  left: 0;
  bottom: 0;
  height: min(108%, 420px);
  width: auto;
  max-width: 78%;
  object-fit: contain;
  object-position: left bottom;
  filter: none;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}
.home-about__person--solo {
  position: relative;
  left: auto;
  bottom: auto;
  height: auto;
  width: 100%;
  max-height: none;
  max-width: 100%;
  justify-self: center;
  pointer-events: auto;
  display: block;
}
.home-about__content {
  grid-column: 2;
  order: 2;
  justify-self: stretch;
  max-width: 36rem;
}
.home-about__content .section-title {
  margin-top: 0;
}
.home-about__content .prose {
  margin-bottom: 0;
}
.home-about__content .prose > *:last-child {
  margin-bottom: 0;
}
.home-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}
.home-about__actions .btn {
  text-decoration: none;
}
.calc-card__visual--photo {
  padding: 0;
  background: #e8e4dc;
}
.calc-card__visual--photo::after { display: none; }
.calc-card__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .home-about__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .home-about__media,
  .home-about__content {
    grid-column: 1;
  }
  .home-about__media {
    order: 1;
    min-height: 220px;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
  .home-about__media--empty {
    display: none;
  }
  .home-about__content {
    order: 2;
    max-width: none;
  }
  .home-about__circle {
    width: min(100%, 280px);
  }
  .home-about__person {
    left: 4%;
    height: min(100%, 340px);
  }
}

@media (max-width: 640px) {
  .home-about { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .home-about__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-about__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Page heroes */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, var(--sky-light), var(--sky-pale));
}
.page-hero--grass { background: linear-gradient(135deg, #d8f3dc, var(--sky-pale)); }
.page-hero--water { background: linear-gradient(135deg, var(--water-light), var(--sky-pale)); }
.page-hero--sun { background: linear-gradient(135deg, #fff3cd, var(--sky-pale)); }
.page-hero--compact { padding: 2rem 0 1.5rem; }
.page-hero h1 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--text); }
.page-hero__lead { margin: 0; color: var(--text-muted); max-width: 720px; font-size: 1.05rem; }
.page-hero__back { margin: 0 0 1rem; }
.page-hero__back a { font-weight: 600; color: var(--water); }
.page-hero__lead--accent { color: var(--sun-dark); font-weight: 700; margin-top: .5rem; }
.page-hero--photo {
  position: relative;
  background: var(--hero-photo) center / cover no-repeat;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 30, 45, 0.92) 0%, rgba(15, 30, 45, 0.55) 55%, rgba(15, 30, 45, 0.35) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; }
.page-hero--photo h1 { color: var(--white); }
.page-hero--photo .page-hero__lead { color: rgba(255, 255, 255, 0.92); }
.page-hero--photo .page-hero__lead--accent { color: var(--sun-light); }
.page-hero--photo .page-hero__back a { color: var(--sun-light); }

.back-link {
  display: inline-block; margin-bottom: .75rem;
  font-weight: 600; color: var(--water);
}

.section { padding: 3rem 0; }
.section--muted { background: var(--sky-pale); }
.section--snow { background: linear-gradient(180deg, var(--white), var(--snow)); }
.section--about { background: var(--white); }
.section-title {
  margin: 0 0 1.5rem; font-size: 1.6rem; color: var(--grass);
}

.prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.prose .lead { font-size: 1.15rem; color: var(--text); font-weight: 600; }
.prose p, .prose ul, .prose ol { color: var(--text-muted); margin: 0 0 1rem; }
.prose p:last-child, .prose ul:last-child, .prose ol:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 {
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
  font-weight: 800;
}
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose strong, .prose b { color: var(--text); font-weight: 800; }
.prose em, .prose i { font-style: italic; }
.prose u { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose ul.prose-checklist {
  list-style: none;
  padding-left: 0;
}
.prose ul.prose-checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0.5rem 0;
}
.prose ul.prose-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: var(--grass);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.prose hr {
  border: 0;
  border-top: 1px solid #e3eaf3;
  margin: 1.5rem 0;
}
.prose .prose-ps {
  font-size: 0.95rem;
  opacity: 0.92;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.75rem auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: .2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--sun), var(--bronze));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(201,162,39,.35);
}
.btn--primary:hover { transform: translateY(-1px); color: var(--white); }
.btn--lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn--secondary {
  background: var(--white);
  color: var(--grass);
  border: 2px solid rgba(45, 106, 79, 0.2);
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.06);
}
.btn--secondary:hover { border-color: var(--grass-light); color: var(--grass); }
.btn--text {
  background: transparent;
  color: var(--water);
  border-color: transparent;
  font-weight: 600;
}
.btn--text:hover { color: var(--sky); background: rgba(74, 144, 217, 0.06); }
.btn--ghost {
  background: rgba(255,255,255,.15); color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.page-hero .btn--ghost, .detail-text .btn--ghost, .contacts-card .btn--ghost,
.detail-actions .btn--ghost, .prose .btn--ghost {
  background: var(--white); color: var(--grass); border-color: var(--grass-light);
}
.btn--block { width: 100%; }

/* Nav cards on home */
.nav-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.nav-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  color: var(--text); font-weight: 700;
  border: 1px solid rgba(74,144,217,.12);
}
.nav-card:hover { border-color: var(--sun); transform: translateY(-2px); }
.nav-card__arrow { color: var(--sun); }

.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.trust-card {
  padding: 1.25rem; border-radius: var(--radius); text-align: center;
  color: var(--white); box-shadow: var(--shadow);
}
.trust-card strong { display: block; font-size: 1.6rem; }
.trust-card--sun { background: linear-gradient(135deg, var(--sun-light), var(--sun)); color: var(--text); }
.trust-card--sky { background: linear-gradient(135deg, var(--sky-light), var(--sky)); }
.trust-card--grass { background: linear-gradient(135deg, var(--grass-light), var(--grass)); }
.trust-card--water { background: linear-gradient(135deg, var(--water-light), var(--water)); }

/* Cards grid */
.card-grid {
  display: grid; gap: 1.25rem;
}
.card-grid--directions { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card-grid--objects,
.card-grid--projects,
.card-grid--works,
.card-grid--videos,
.card-grid--why {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid--objects .empty-note {
  grid-column: 1 / -1;
  color: var(--text-muted);
  margin: 0;
  max-width: 40rem;
}
.card--stock .card__meta {
  color: var(--bronze);
  font-weight: 600;
}
.card-grid--triplet {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .card-grid--triplet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .card-grid--triplet { grid-template-columns: 1fr; }
}

.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  color: var(--white); min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .2s, box-shadow .2s;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--card-bg, linear-gradient(135deg, var(--sky), var(--grass)));
  opacity: .92; z-index: 1;
}
.card--has-photo::before {
  background: linear-gradient(to top, rgba(15, 30, 45, .88) 0%, rgba(15, 30, 45, .35) 55%, rgba(15, 30, 45, .15) 100%);
  opacity: 1;
}
.card__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,35,50,.18); color: var(--white); }
.card__body { position: relative; z-index: 2; padding: 1.25rem; }
.card h2, .card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.card p { margin: 0; font-size: .92rem; opacity: .92; }
.card__body .card__meta {
  display: block; margin-top: .65rem; padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.25); font-size: .88rem; font-weight: 700;
}
.card--has-photo .card__body .card__meta { border-top-color: rgba(255,255,255,.35); }
.card:not(.card--has-photo) .card__body .card__meta {
  border-top-color: rgba(0,0,0,.08); color: var(--text-muted); font-weight: 600;
}
.card__more, .card__meta, .card__price { position: relative; z-index: 2; }
.card__more { padding: 0 1.25rem 1rem; font-weight: 700; font-size: .85rem; }
.card__badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  background: rgba(255,255,255,.9); color: var(--grass);
  padding: .35rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.card__price-plaque {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  background: linear-gradient(135deg, #ffe082, #ffb703);
  color: #1a2332; padding: .5rem .95rem; border-radius: 12px;
  font-size: 1rem; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.22);
  border: 2px solid rgba(255,255,255,.85);
}

/* Price banner on project page */
.page-hero--project .price-banner {
  margin-top: 1.25rem;
  max-width: 520px;
}
.price-banner {
  display: flex; flex-wrap: wrap; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 32px rgba(26, 35, 50, .16);
  border: 2px solid rgba(255, 255, 255, .75);
}
.price-banner__block {
  flex: 1 1 160px; padding: 1rem 1.35rem;
}
.price-banner__block--price {
  background: linear-gradient(135deg, #ffd166 0%, #f4a261 55%, #e76f51 100%);
  color: #1a2332;
}
.price-banner__block--area {
  background: #fff; color: var(--grass);
  border-left: 1px solid rgba(0,0,0,.06);
}
.price-banner__label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-bottom: .25rem;
}
.price-banner__block--price .price-banner__value {
  font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.1;
  color: #1a2332;
}
.price-banner__block--area .price-banner__value {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.1;
  color: var(--grass);
}

.section--gallery { padding-top: 0; }
.section--gallery-first { padding-top: .5rem; padding-bottom: .25rem; }
.section--gallery .section-title { margin-bottom: 1rem; color: var(--grass); font-size: 1.35rem; }
.page-hero--project .price-banner,
.page-hero .price-banner { margin-top: 1.25rem; max-width: 520px; }
.card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-70%);
  z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--grass);
  display: grid; place-items: center; font-size: 1.2rem;
}

.card--why {
  color: var(--text); min-height: auto; background: var(--white);
  border: 1px solid rgba(74,144,217,.12);
}
.card--why::before { display: none; }
.card--why .card__body { padding: 1.5rem; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--sky-light), var(--sun-light));
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--sun);
}
.stat-card strong { display: block; font-size: 2rem; color: var(--bronze); line-height: 1; margin-bottom: .35rem; }
.stat-card span { color: var(--text-muted); font-size: .92rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps__item {
  counter-increment: step; position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 1rem;
}
.steps__item::before {
  content: counter(step);
  position: absolute; left: 1.25rem; top: 1.25rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grass-light), var(--grass));
  color: var(--white); display: grid; place-items: center; font-weight: 800;
}
.steps__item h3 { margin: 0 0 .35rem; }
.steps__item p { margin: 0; color: var(--text-muted); }

.text-block { margin-bottom: 2rem; }
.text-block h2 { color: var(--grass); margin-top: 0; }
.center-actions { text-align: center; margin-top: 2rem; }

/* Detail pages */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.detail-visual {
  border-radius: var(--radius); min-height: 360px;
  display: grid; place-items: center; color: var(--white);
  box-shadow: var(--shadow);
}
.detail-visual__frame {
  text-align: center; padding: 2rem;
  background: rgba(255,255,255,.12); border-radius: var(--radius);
  border: 2px dashed rgba(255,255,255,.45);
}
.detail-visual__label { display: block; font-size: .85rem; opacity: .85; margin-bottom: .5rem; }
.detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.detail-media { min-width: 0; }

.section--projects-blocks { padding-top: 0.5rem; }
.section--projects-block-detail { padding-top: 0.5rem; }

/* Сетка блоков: ровно 3 в ряд, одинаковый размер */
.projects-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.projects-blocks-grid .card--block {
  min-height: 0;
  height: 100%;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: var(--white);
}
.projects-blocks-grid .card--block h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 1.05rem;
}
.projects-blocks-grid .card--block .card__meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card--block.card--has-photo::before {
  background: linear-gradient(to top, rgba(15, 30, 45, 0.92) 0%, rgba(15, 30, 45, 0.4) 50%, rgba(15, 30, 45, 0.15) 100%);
  opacity: 1;
}
@media (max-width: 960px) {
  .projects-blocks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .projects-blocks-grid { grid-template-columns: 1fr; }
}

.card-grid--triplet .card {
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.card-grid--triplet .card h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card__symbol {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--grass);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Photo viewer */
.section--gallery .photo-viewer {
  margin-inline: auto;
}

.photo-viewer {
  --photo-max-h: min(58vh, 480px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
  padding: clamp(0.5rem, 2vw, 0.85rem);
}

.photo-viewer__main { position: relative; }

.photo-viewer__stage {
  overflow: hidden;
  background: #eef2f7;
  border-radius: 12px;
  max-height: var(--photo-max-h);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.35rem, 1.5vw, 0.65rem);
  touch-action: none;
  user-select: none;
}

.photo-viewer__stage.is-pannable,
.photo-viewer__main-btn.is-pannable {
  cursor: grab;
}

.photo-viewer__stage.is-dragging,
.photo-viewer__main-btn.is-dragging {
  cursor: grabbing;
}

.photo-viewer__main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(var(--photo-max-h) - 1rem);
  min-height: 140px;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-viewer__main-btn img {
  max-width: 100%;
  max-height: calc(var(--photo-max-h) - 1.25rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform .15s ease;
  will-change: transform;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-viewer__zoom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.55rem 0.35rem 0.35rem;
}

.photo-viewer__hint {
  flex: 1 1 100%;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.photo-viewer__zoom-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--white);
  color: var(--grass);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.photo-viewer__zoom-btn:hover { background: var(--sun-light); }
.photo-viewer__controls {
  display: grid; grid-template-columns: auto 1fr auto; gap: .35rem;
  align-items: center; padding: .65rem .5rem .75rem;
  background: #f8fafc; border-top: 1px solid #eef2f7;
}
.photo-viewer__strip {
  display: flex; gap: .5rem; overflow-x: auto; scroll-behavior: smooth;
  padding: .15rem .25rem; scrollbar-width: thin;
}
.photo-viewer__thumb {
  flex: 0 0 72px; width: 72px; height: 54px; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer;
  background: #fff; opacity: .75; transition: .15s;
}
.photo-viewer__thumb.is-active,
.photo-viewer__thumb:hover { opacity: 1; border-color: var(--sun); }
.photo-viewer__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-viewer__nav {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--grass); font-size: 1.35rem; line-height: 1;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.photo-viewer__nav:hover { background: var(--sun-light); }

/* Gallery legacy grid (unused on detail pages) */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem;
}
.gallery__item {
  border: 0; padding: 0; cursor: pointer; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--sky-pale);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  padding: clamp(0.75rem, 3vw, 1.25rem);
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox[hidden] { display: none !important; }
body.lightbox-open { overflow: hidden; }
.lightbox__stage {
  display: grid; place-items: center; width: 100%; height: 100%;
  min-height: 0; overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: default;
}
.lightbox__stage.is-pannable { cursor: grab; }
.lightbox__stage.is-dragging { cursor: grabbing; }
.lightbox img {
  max-height: min(78vh, 900px);
  max-width: min(96vw, 1200px);
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform .15s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__toolbar {
  display: flex; gap: .5rem; z-index: 2; margin-bottom: .75rem;
}
.lightbox__zoom-btn {
  border: 0; border-radius: 999px; padding: .5rem 1rem;
  background: rgba(255,255,255,.95); color: #1a3d2e;
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.lightbox__zoom-btn:hover { background: var(--sun-light); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--white); font-size: 1.75rem; line-height: 1; cursor: pointer;
}

.video-player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}
.video-player__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.15), rgba(11, 18, 32, 0.45));
  color: #fff;
}
.video-player.is-ready .video-player__play { display: none; }
.video-player__play-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}
.video-player__play-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #1a2332;
}
.video-player__play:hover .video-player__play-icon,
.video-player__play:focus-visible .video-player__play-icon {
  background: var(--sun-light);
}

/* Скрытая семантическая навигация (только для поисковых роботов) */
.seo-semantic {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.seo-semantic ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.seo-semantic a {
  color: inherit;
  text-decoration: none;
}

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; }
.contacts-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.contacts-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contacts-list li { margin-bottom: .75rem; }
.contacts-list strong { display: block; font-size: .8rem; color: var(--text-muted); text-transform: uppercase; }
.contacts-phone { margin: 0 0 1rem; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.contacts-phone a { color: var(--grass); text-decoration: none; }
.contacts-phone a:hover { color: var(--sky); }
.contacts-actions {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
.contacts-actions .btn { text-align: center; justify-content: center; }
.btn--max {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  color: var(--white);
  border: 0;
}
.btn--max:hover { filter: brightness(1.08); color: var(--white); }
.btn--disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
  background: #ccc; color: #666;
}
.map-caption { margin: .75rem 0 0; font-size: .9rem; }
.map-caption a { color: var(--sky); }
.map-wrap iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Forms */
.form { background: var(--white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px;
  border: 1px solid #cfd8e3; font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(74,144,217,.35); border-color: var(--sky);
}
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert--ok { background: #d8f3dc; color: var(--grass); }
.alert--err { background: #ffe5e5; color: #a4133c; }

/* Help */
.help-search input {
  width: 100%; max-width: 520px; margin-top: 1rem;
  padding: .85rem 1rem; border-radius: 999px; border: 1px solid #cfd8e3; font: inherit;
}
.help-item {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1rem; box-shadow: var(--shadow);
}
.help-item h2 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--grass); }
.help-item p { margin: 0; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1b4332, var(--grass));
  color: rgba(255,255,255,.88);
  padding: 2.5rem 0 1rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--sun-light); }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.site-footer__copy {
  margin: 0;
  font-size: .82rem;
  opacity: .75;
}
.site-footer__iks {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.site-footer__iks img {
  display: block;
  border: 0;
  border-radius: 8px;
}
.site-footer__nav-title {
  margin: 0 0 .75rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem .75rem;
}
.footer-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.6rem;
  padding: .45rem .5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}
.footer-nav__link:hover,
.footer-nav__link.is-active {
  background: rgba(255, 209, 102, 0.22);
  border-color: var(--sun-light);
  color: #fff !important;
}
.footer-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .85rem;
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun), var(--bronze));
  color: #fff !important;
  font-weight: 800;
  font-size: .9rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 960px) {
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 5.5rem);
  }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 1rem; transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: .25s; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav__link { padding: .75rem 0; border-bottom: 1px solid #eef2f7; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }
  .header-phone { display: none; }
  .detail-grid, .contacts-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__nav-wrap { order: -1; }
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .footer-nav__link {
    min-height: 3rem;
    font-size: .8rem;
  }
}
@media (max-width: 640px) {
  .detail-grid, .contacts-grid, .trust-grid { grid-template-columns: 1fr; }
  .contacts-actions { grid-template-columns: 1fr; }
  .brand__text strong { font-size: .78rem; letter-spacing: .02em; }
  .brand__text small { font-size: .64rem; }
  .photo-viewer {
    --photo-max-h: min(44vh, 320px);
    padding: 0.45rem;
  }
  .photo-viewer__hint { font-size: 0.72rem; }
  .lightbox { padding: 0.65rem; }
  .lightbox img {
    max-height: min(70vh, 640px);
    max-width: calc(100vw - 1.25rem);
  }
}

/* Construction calculator quiz */
.page-calculator .site-header { box-shadow: 0 2px 16px rgba(26, 35, 50, 0.06); }
.calc {
  padding: 1.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfaf8 0%, var(--snow) 40%, #f3efe8 100%);
  min-height: calc(100vh - var(--header-h));
}
.calc__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.5rem;
  align-items: start;
}
.calc__main {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem 1.25rem;
  border: 1px solid rgba(139, 115, 85, 0.12);
}
.calc__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  color: var(--text);
}
.calc__question {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.calc__progress-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.calc__progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e8e4dc;
  overflow: hidden;
}
.calc__progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bronze), var(--sun));
  transition: width 0.35s ease;
}
.calc__step-label {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.calc__panel[hidden] { display: none !important; }
.calc__options {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.calc__options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calc-card {
  appearance: none;
  border: 2px solid #e6e1d8;
  background: var(--white);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  font: inherit;
  color: inherit;
}
.calc-card:hover {
  border-color: rgba(139, 115, 85, 0.45);
  transform: translateY(-2px);
}
.calc-card.is-selected {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}
.calc--need-answer .calc__panel.is-active .calc-card {
  animation: calcPulse 0.55s ease;
}
@keyframes calcPulse {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35); }
}
.calc-card__visual {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(180deg, #d8c4a0 0%, #8b7355 100%);
  position: relative;
}
.calc-card__visual::after {
  content: '';
  position: absolute;
  inset: 18% 22%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.calc-card__visual--power { background: linear-gradient(160deg, #87CEEB, #4A90D9 55%, #2D6A4F); }
.calc-card__visual--field { background: linear-gradient(160deg, #cfe8c4, #52B788 50%, #8B7355); }
.calc-card__visual--map { background: linear-gradient(160deg, #e8e4dc, #a8b0bc 45%, #5a6578); }
.calc-card__visual--dacha { background: linear-gradient(160deg, #FFD166, #C9A227 50%, #2D6A4F); }
.calc-card__visual--house { background: linear-gradient(160deg, #E8F4F8, #4A90D9 40%, #8B7355); }
.calc-card__visual--bath { background: linear-gradient(160deg, #f0d9b5, #C9A227, #5c4030); }
.calc-card__visual--num1,
.calc-card__visual--num2,
.calc-card__visual--numq {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7f3ec, #e8e0d2);
}
.calc-card__visual--num1::after,
.calc-card__visual--num2::after,
.calc-card__visual--numq::after {
  inset: auto;
  content: '1';
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--bronze);
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.calc-card__visual--num2::after { content: '2'; }
.calc-card__visual--numq::after { content: '?'; }
.calc-card__visual--sketch { background: linear-gradient(160deg, #f5f0e6, #d2c4a8); }
.calc-card__visual--cad { background: linear-gradient(160deg, #f8f9fa, #c5ccd6 60%, #1a2332); }
.calc-card__visual--garage { background: linear-gradient(160deg, #d9dde3, #8B7355 70%); }
.calc-card__visual--balcony { background: linear-gradient(160deg, #E8F4F8, #87CEEB, #8B7355); }
.calc-card__visual--veranda { background: linear-gradient(160deg, #efe6d4, #C9A227, #2D6A4F); }
.calc-card__visual--shed { background: linear-gradient(160deg, #ddd6c8, #6b5b45); }
.calc-card__visual--tea { background: linear-gradient(160deg, #fff6e8, #C9A227 55%, #8B7355); }
.calc-card__visual--coffee { background: linear-gradient(160deg, #efe6dc, #6b4f3a 60%, #1a120c); }
.calc-card__visual--strong { background: linear-gradient(160deg, #f3e7d3, #8B7355, #2a1810); }
.calc-card__check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  border: 2px solid #c9c2b6;
  margin: 0.75rem 0.75rem 0;
  flex-shrink: 0;
  position: relative;
  background: var(--white);
}
.calc-card.is-selected .calc-card__check {
  background: linear-gradient(135deg, var(--sun), var(--bronze));
  border-color: transparent;
}
.calc-card.is-selected .calc-card__check::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.28rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.calc-card__label {
  display: block;
  padding: 0.45rem 0.75rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}
.calc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #efeae2;
}
.calc__nav[hidden] { display: none !important; }
.calc__nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  margin-left: auto;
}
.calc__btn-prev:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.calc__skip {
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0.25rem 0.5rem;
}
.calc__side {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 236, 0.95)),
    repeating-linear-gradient(
      90deg,
      rgba(139, 115, 85, 0.04) 0 1px,
      transparent 1px 12px
    );
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid rgba(139, 115, 85, 0.14);
  box-shadow: var(--shadow);
  min-height: 280px;
}
.calc__side-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--text);
}
.calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.calc__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bronze);
  letter-spacing: -0.02em;
}
.calc__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.calc__manager {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.5rem 0.25rem;
}
.calc__manager-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.14);
}
.calc__manager-card {
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(26, 35, 50, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: 100%;
}
.calc__manager-card strong {
  color: var(--bronze);
  font-size: 0.95rem;
}
.calc__manager-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.calc__sample {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.calc__sample a {
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.calc__sample a:hover {
  color: var(--bronze);
  border-bottom-color: rgba(139, 115, 85, 0.35);
}
.calc-lead__thanks {
  margin: 0 0 0.5rem;
  color: var(--bronze);
  font-size: 1.45rem;
}
.calc-lead__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.calc-gift {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #f7f1e6, #efe6d4);
  border: 1px solid rgba(139, 115, 85, 0.2);
  margin-bottom: 1.15rem;
}
.calc-gift__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 18%, transparent 19%),
    linear-gradient(160deg, #C9A227, #8B7355);
}
.calc-gift__body {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
}
.calc-gift__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #FFD166, #C9A227 45%, #8B7355);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}
.calc-lead__form .field { margin-bottom: 0.85rem; }
.calc-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}
.calc-consent input { margin-top: 0.2rem; accent-color: var(--bronze); }
.calc-lead__alert {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}
.calc-lead__alert--ok {
  background: rgba(45, 106, 79, 0.1);
  color: var(--grass);
}
.calc-lead__alert--err {
  background: rgba(180, 50, 50, 0.08);
  color: #a33;
}
.calc-lead__submit { margin-top: 0.25rem; }
.calc-lead__home {
  margin-top: 0.75rem;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 960px) {
  .calc__container {
    grid-template-columns: 1fr;
  }
  .calc__side {
    position: static;
    order: -1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
  }
  .calc__side-title { grid-column: 1 / -1; margin-bottom: 0; }
  .calc__stats { margin-bottom: 0; }
  .calc__manager { flex-direction: row; padding: 0; gap: 0.65rem; }
  .calc__manager-logo { width: 64px; height: 64px; border-radius: 12px; }
  .calc__sample { display: none; }
  .calc__options,
  .calc__options--2,
  .calc__options--4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .calc { padding: 1rem 0 2rem; }
  .calc__main { padding: 1.1rem 1rem 1rem; }
  .calc__options,
  .calc__options--2,
  .calc__options--4 {
    grid-template-columns: 1fr;
  }
  .calc__nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .calc__nav-right {
    width: 100%;
    align-items: stretch;
    margin-left: 0;
  }
  .calc__btn-next,
  .calc__btn-prev { width: 100%; }
  .calc__side {
    grid-template-columns: 1fr;
  }
  .calc__manager { justify-content: flex-start; }
}
