/* ============================================
   Маркет Строй — основные стили
   Палитра взята из логотипа: графит / серебро / тёплый белый
   ============================================ */

:root {
  --graphite:      #22262B;
  --graphite-soft: #2E343B;
  --graphite-line: #3A424A;
  --silver:        #9AA3AC;
  --silver-light:  #C9D0D6;
  --accent:        #4A7C9E;
  --accent-hover:  #3A6480;
  --paper:         #F5F4F1;
  --paper-2:       #ECEAE5;
  --white:         #FFFFFF;
  --text:          #1C2025;
  --text-muted:    #6B7480;

  --radius:   4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(34,38,43,.06);
  --shadow:    0 8px 30px rgba(34,38,43,.10);
  --shadow-lg: 0 20px 60px rgba(34,38,43,.16);
  --max:       1240px;
  --font: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; letter-spacing: -.015em; }

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

.section-title { margin-bottom: 14px; }
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Сетка ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); }
.section--dark  { background: var(--graphite); color: var(--white); }
.section--dark .section-sub { color: var(--silver-light); }
.section--dark .eyebrow { color: var(--silver); }

.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-title--flush { margin-bottom: 0; }
.section-head--center .section-sub { margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--radius);
  transition: .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: var(--graphite-soft); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--outline {
  border: 1.5px solid var(--graphite-line);
  color: var(--graphite);
}
.btn--outline:hover { background: var(--graphite); color: #fff; border-color: var(--graphite); }

.btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn--light:hover { background: #fff; color: var(--graphite); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--graphite); border-color: #fff; }

.btn--ghost { color: var(--accent); padding: 0; }
.btn--ghost:hover { gap: 16px; }
.btn--ghost::after { content: '→'; transition: .25s; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,38,43,.08);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 88px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { height: 52px; width: auto; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; color: var(--graphite); }
.logo__tag  { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

.nav { flex: 1; min-width: 0; }
.nav__list { justify-content: center; }
.nav__item--phone { display: none; }
.nav__list { display: flex; gap: 40px; }
.nav__link {
  font-size: .93rem;
  font-weight: 500;
  color: var(--graphite);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { width: 100%; }

.header__contact { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.header__phone {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px 12px;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  color: #fff;
  border-radius: 100px;
  background: linear-gradient(180deg, #5C93B8 0%, var(--accent) 55%, var(--accent-hover) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.55),
    inset 0 -3px 4px rgba(20,38,52,.28),
    0 1px 1px rgba(34,38,43,.06),
    0 8px 16px -4px rgba(58,100,128,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.header__phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.header__phone:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.6),
    inset 0 -3px 4px rgba(20,38,52,.28),
    0 1px 1px rgba(34,38,43,.06),
    0 11px 20px -4px rgba(58,100,128,.6);
}
.header__phone:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.35),
    inset 0 -1px 2px rgba(20,38,52,.3),
    0 3px 8px -2px rgba(58,100,128,.5);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--graphite);
  transition: .3s;
}
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--graphite);
  background-image: var(--hero-image, url('../images/hero-bg.jpg'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
  padding: 110px 0 96px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,23,27,.84) 0%, rgba(20,23,27,.62) 55%, rgba(20,23,27,.30) 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(74,124,158,.15), transparent 60%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }

.hero__grid { max-width: 700px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--silver-light);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero__eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.hero h1 { margin-bottom: 22px; color: #fff; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--silver-light); }

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--silver-light);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.hero__stat-num {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.hero__stat-label { font-size: .82rem; color: var(--silver); margin-top: 6px; }

/* ---------- Полоса преимуществ ---------- */
.strip {
  background: var(--paper);
  border-bottom: 1px solid rgba(34,38,43,.07);
  padding: 30px 0;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strip__item { display: flex; align-items: flex-start; gap: 13px; }
.strip__icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); }
.strip__title { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.strip__desc { font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

/* ---------- Карточки ---------- */
.card {
  background: var(--white);
  border: 1px solid rgba(34,38,43,.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  display: flex;
  flex-direction: column;
}
a.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--paper-2), #DDDAD3);
  position: relative;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card__media img { transform: scale(1.05); }

.card[id] { scroll-margin-top: 104px; }
.card__body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: 1.14rem; margin-bottom: 10px; }
.card__text { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; flex: 1; }
.card__meta {
  font-size: .8rem; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 7px;
}
.card__meta::after { content: '→'; transition: transform .25s; }
a.card:hover .card__meta::after { transform: translateX(4px); }

.card--minimal {
  background: var(--white);
  border: 1px solid rgba(34,38,43,.09);
  padding: 34px 30px;
}
.card--minimal .card__num {
  font-size: .8rem; font-weight: 700; color: var(--accent);
  letter-spacing: .1em; margin-bottom: 18px; display: block;
}
.card--stat .card__num {
  font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--graphite);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 14px;
}
.card--minimal h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card--minimal p { font-size: .89rem; color: var(--text-muted); }

/* Иконка в круге */
.icon-badge {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(74,124,158,.1);
  color: var(--accent);
  margin-bottom: 22px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- О компании (сплит) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__media {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--paper-2), #D6D2CA);
  overflow: hidden;
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { margin: 28px 0 34px; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 13px;
  font-size: .95rem; line-height: 1.5;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 21px; height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(74,124,158,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A7C9E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Счётчики ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.counter__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.counter__label { font-size: .87rem; color: var(--silver); }
.section--dark .counter__num { color: #fff; }

/* ---------- Услуги (список с раскрытием) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid rgba(34,38,43,.1);
  transition: padding .3s, background .3s;
}
.service-row:first-child { border-top: 1px solid rgba(34,38,43,.1); }
.service-row:hover { padding-left: 18px; background: var(--paper); }
.service-row__num {
  font-size: 1.1rem; font-weight: 700;
  color: var(--silver-light);
  letter-spacing: .04em;
}
.service-row__title { font-size: clamp(1.1rem, 2vw, 1.45rem); margin-bottom: 6px; }
.service-row__desc { font-size: .9rem; color: var(--text-muted); max-width: 620px; }
.service-row__arrow {
  font-size: 1.3rem; color: var(--accent);
  transition: transform .3s;
}
.service-row:hover .service-row__arrow { transform: translateX(7px); }

/* ---------- Галерея работ ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(230px, 22vw, 300px);
  gap: 20px;
}
.work {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper-2), #D6D2CA);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.06); }
.work__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 24px 22px;
  background: linear-gradient(to top, rgba(20,23,27,.9), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: .35s ease;
}
.work:hover .work__overlay { opacity: 1; transform: translateY(0); }
.work__title { font-size: 1.02rem; font-weight: 600; margin-bottom: 3px; }
.work__meta { font-size: .8rem; color: var(--silver-light); }
.work.is-empty .work__overlay { opacity: 1; transform: none; background: none; color: var(--graphite); }
.work.is-empty .work__meta { color: var(--text-muted); }
@media (hover: none) {
  .work__overlay { opacity: 1; transform: none; padding-top: 44px; }
}
.work--wide { grid-column: span 2; }
.work--tall { grid-row: span 2; }

/* ---------- Этапы работы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding-top: 34px;
  border-top: 2px solid rgba(34,38,43,.12);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute; top: 0; left: 0;
  transform: translateY(-50%);
  background: var(--white);
  padding-right: 12px;
  font-size: .82rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
}
.section--paper .step::before { background: var(--paper); }
.step__title { font-size: 1.05rem; margin: 14px 0 8px; }
.step__text { font-size: .88rem; color: var(--text-muted); }

/* ---------- Статьи / блог ---------- */
.article-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(34,38,43,.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--paper-2), #D6D2CA); overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 24px; }
.article-card__date { font-size: .76rem; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.article-card__title { font-size: 1.05rem; line-height: 1.4; }

/* ---------- Отзывы ---------- */
.review {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.review__quote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--silver-light);
  flex: 1;
  margin-bottom: 24px;
}
.review__author { display: flex; align-items: center; gap: 13px; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--graphite-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: var(--silver-light);
  flex-shrink: 0;
}
.review__name { font-size: .93rem; font-weight: 600; color: #fff; }
.review__role { font-size: .79rem; color: var(--silver); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 50% 0%, rgba(74,124,158,.3), transparent 65%);
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { color: var(--silver-light); max-width: 560px; margin: 0 auto 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.contact-item { display: flex; gap: 17px; padding: 22px 0; border-bottom: 1px solid rgba(34,38,43,.09); }
.contact-item__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(74,124,158,.1); color: var(--accent);
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item__label { font-size: .77rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 5px; }
.contact-item__value { font-size: 1.02rem; font-weight: 600; }
.contact-item__value a:hover { color: var(--accent); }
.contact-item__note { font-size: .83rem; color: var(--text-muted); font-weight: 400; margin-top: 4px; }

.map {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  overflow: hidden;
  border: 1px solid rgba(34,38,43,.09);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.contact-actions { margin-top: 30px; }

/* ---------- Подвал ---------- */
.footer { background: #1A1E23; color: var(--silver); padding: 76px 0 0; font-size: .9rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer .logo__mark { height: 60px; }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: var(--silver); }
.footer__about { margin-top: 20px; line-height: 1.7; max-width: 300px; font-size: .87rem; }
.footer__title {
  color: #fff; font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__list { display: grid; gap: 11px; }
.footer__list a:hover { color: #fff; }
.footer__legal {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--silver);
  font-size: .82rem;
  line-height: 1.5;
}
.footer__legal--warn {
  color: #F3C969;
  font-weight: 600;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .82rem;
}
.footer__bottom a:hover { color: #fff; }

/* ---------- Внутренние страницы ---------- */
.page-hero {
  background: var(--graphite);
  color: #fff;
  padding: 68px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 85% 20%, rgba(74,124,158,.24), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: var(--silver-light); max-width: 620px; }

.breadcrumbs {
  display: flex; gap: 9px; align-items: center;
  font-size: .82rem; color: var(--silver);
  margin-bottom: 22px;
}
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { opacity: .5; }

.prose { max-width: 760px; }
.prose h2 { margin: 46px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { margin-bottom: 18px; color: #333A42; }
.prose ul { margin: 0 0 22px; display: grid; gap: 11px; }
.prose ul li {
  padding-left: 26px; position: relative; color: #333A42;
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__date { margin-top: 38px; color: var(--text-muted); font-size: .9rem; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.sidebar-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: sticky;
  top: 108px;
}
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.sidebar-card__phone { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.sidebar-card__phone:hover { color: var(--accent); }
.sidebar-card__note { font-size: .82rem !important; margin: 0 0 18px !important; }
.sidebar-card--flat { position: static; }
.sidebar-card .btn { width: 100%; }
.sidebar-card .btn + .btn { margin-top: 10px; }
.sidebar-card .btn--outline { border-color: rgba(34,38,43,.25); }
.sidebar-card p { font-size: .87rem; color: var(--text-muted); margin-bottom: 20px; }

.layout-with-side { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }

/* ---------- Плавающие кнопки (WhatsApp и звонок) ---------- */
.messenger-buttons {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.messenger-btn {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.messenger-btn svg { width: 28px; height: 28px; }
.messenger-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.messenger-btn--max {
  background: linear-gradient(135deg, #3E7BFA 0%, #7B5CF0 55%, #9B4FE0 100%);
}
.messenger-btn--call { background: var(--accent); }

.site-error {
  background: #B3261E; color: #fff;
  padding: 14px 24px; text-align: center; font-weight: 600;
}

:focus-visible { outline: 3px solid rgba(74,124,158,.55); outline-offset: 3px; border-radius: 2px; }

/* ---------- Плашка о cookie ---------- */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 95;
  max-width: 640px;
  margin: 0 auto;
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-notice p { margin: 0; font-size: .86rem; color: var(--silver); flex: 1; min-width: 220px; }
.cookie-notice a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice__btn { flex-shrink: 0; padding: 10px 22px; }
@media (max-width: 480px) {
  .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-notice__btn { width: 100%; }
}

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Адаптив
   ============================================ */
@media (max-width: 1080px) {
  .grid-4, .strip__grid, .counters, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero { padding: 80px 0 72px; }
  .layout-with-side { grid-template-columns: 1fr; gap: 44px; }
  .sidebar-card { position: static; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work--wide { grid-column: span 2; }
  .work--tall { grid-row: auto; }
  .works-grid { grid-auto-rows: 240px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse { direction: ltr; }
  .split__media { aspect-ratio: 16/11; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cta { padding: 56px 32px; }

  /* Мобильное меню */
  .burger { display: flex; }
  .header__contact .header__phone { display: none; }
  .header__inner { height: 72px; gap: 16px; }

  .nav {
    flex: none;
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid rgba(34,38,43,.1);
    padding: 20px 24px 30px;
    margin-left: 0;
    transform: translateY(-120%);
    transition: transform .35s ease;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(34,38,43,.07); }
  .nav__link { display: block; padding: 16px 0; font-size: 1.02rem; }
  .nav__item--phone { display: block; border-bottom: none; }
  .nav__item--phone .nav__link { font-weight: 700; color: var(--accent); }
  .nav__link::after { display: none; }
  .header__contact { margin-left: 0; }
  .header__phone { padding: 9px 16px 10px; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .strip__grid, .counters, .steps, .works-grid { grid-template-columns: 1fr; }
  .work--wide, .work--tall { grid-column: auto; grid-row: auto; }
  .works-grid { grid-auto-rows: 230px; }
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }
  .hero__actions .btn { width: 100%; }
  .service-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .service-row__num { font-size: .95rem; }
  .service-row__arrow { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .footer { padding-top: 56px; }
  .page-hero { padding: 48px 0 44px; }
  .cta { padding: 44px 24px; }
  .cta__actions .btn { width: 100%; }
  .messenger-buttons { right: 14px; bottom: 14px; }
  .messenger-btn { width: 52px; height: 52px; }
  .hero__eyebrow { font-size: .7rem; padding: 7px 13px; }
}
