/* ==========================================================
   Гранит Память — стили лендинга
   Палитра: #C2A67D (акцент), #B08E63 (hover), #202020 (графит),
            #1A1A1A (текст), #666 (доп), #FFF / #F8F7F4 (фоны)
   Типографика: Playfair Display (заголовки), Inter (текст)
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #b08e63; }
button { font: inherit; cursor: pointer; }

:root {
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --graphite: #202020;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #c2a67d;
  --accent-hover: #b08e63;
  --accent-soft: #eee1cd;
  --border: #ebe6dd;
  --shadow: 0 10px 40px rgba(32, 32, 32, .08);
  --radius: 8px;
  --radius-lg: 16px;
  --container-w: 1240px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== Кнопки ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--secondary:hover { background: var(--accent); color: #fff; }
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn--link {
  padding: 6px 8px; background: transparent; color: var(--muted); border: 0;
}
.btn--link:hover { color: var(--accent-hover); }
.btn__arrow { font-size: 18px; }
.btn__play {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.15); display: inline-flex;
  align-items: center; justify-content: center; font-size: 10px;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
}
.brand__tagline {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .2s;
}
.site-nav a:hover::after { width: 100%; }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header__phone {
  display: flex; flex-direction: column; line-height: 1.2; text-align: right;
}
.site-header__phone a { font-weight: 600; font-size: 15px; color: var(--text); }
.site-header__phone span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.site-header__burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.site-header__burger span {
  width: 22px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 720px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 20, 20, .55) 0%, rgba(20, 20, 20, .85) 100%),
              url('/img/hero.svg') center/cover no-repeat, #1a1a1a;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding: 80px 20px 100px;
  align-items: start;
  min-height: 720px;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-block;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 26px;
}
.hero__accent { color: var(--accent); }
.hero__lead {
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 36px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__cards {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 60px;
}
.hero__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 0 10px 10px 0;
  transition: transform .3s, background .3s;
}
.hero__card:hover { background: rgba(0, 0, 0, .65); transform: translateX(4px); }
.hero__card-thumb {
  flex: 0 0 110px; width: 110px; height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.hero__card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hero__card:hover .hero__card-thumb img { transform: scale(1.06); }
.hero__card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero__card-title { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.hero__card-desc { font-size: 14px; color: rgba(255, 255, 255, .75); line-height: 1.45; }

@media (max-width: 720px) {
  .hero__card-thumb { flex-basis: 84px; width: 84px; height: 84px; }
}

.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.hero__scroll svg { animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ===================== Stats ===================== */
.stats { padding: 80px 0; background: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stats__item { text-align: left; }
.stats__icon {
  width: 56px; height: 56px;
  color: var(--accent);
  margin-bottom: 20px;
}
.stats__icon svg { width: 100%; height: 100%; }
.stats__value {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stats__value--sm { font-size: 30px; }
.stats__label { font-weight: 600; color: var(--text); font-size: 15px; margin-bottom: 12px; }
.stats__desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ===================== Sections common ===================== */
.section-head { margin-bottom: 40px; }
.section-head__eyebrow {
  display: inline-block;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}
.section-head__title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}
.section-head--light .section-head__eyebrow,
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__eyebrow { color: var(--accent); }

/* ===================== Portfolio ===================== */
.portfolio { padding: 80px 0; background: var(--bg-soft); }
.portfolio__tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.portfolio__tab {
  padding: 10px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500; font-size: 14px;
  transition: all .2s;
}
.portfolio__tab:hover { color: var(--accent); border-color: var(--accent); }
.portfolio__tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.portfolio__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #eee;
  grid-column: span 2;
  grid-row: span 1;
  transition: transform .2s;
}
.portfolio__card--big { grid-column: span 3; grid-row: span 2; }
.portfolio__card:hover { transform: translateY(-4px); }
.portfolio__card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.portfolio__card:hover img { transform: scale(1.05); }
.portfolio__card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff;
}
.portfolio__card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; margin: 0 0 4px; font-weight: 600;
}
.portfolio__price { color: var(--accent); font-weight: 600; font-size: 14px; }
.portfolio__card-cta {
  position: absolute;
  top: 14px; right: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #1a1a1a;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .3s, background-color .3s, color .3s;
  z-index: 2;
}
.portfolio__card:hover .portfolio__card-cta { opacity: 1; transform: translateY(0); }
.portfolio__card-cta:hover { background: var(--accent); color: #fff; }

/* Плашка "Выбранный образец" в модалке */
.modal__sample-info {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
}
.modal__sample-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__sample-info strong { font-size: 15px; color: var(--text); }
.portfolio__empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius-lg);
}
.portfolio__footer { margin-top: 32px; }

/* ===================== How ===================== */
.how {
  position: relative;
  padding: 100px 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.how__bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,20,.85), rgba(20,20,20,.95)),
              url('/img/how.svg') center/cover no-repeat, #1a1a1a;
}
.how__steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.how__step {
  padding: 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  transition: transform .2s, border-color .2s;
}
.how__step:hover { transform: translateY(-4px); border-color: var(--accent); }
.how__num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600;
  border-radius: 8px;
  margin-bottom: 16px;
}
.how__step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin: 0 0 10px;
  color: #fff;
}
.how__step p { color: rgba(255,255,255,.7); margin: 0; font-size: 14px; }

/* ===================== Reviews ===================== */
.reviews { padding: 80px 0; background: #fff; }
.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.reviews__slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.review-card {
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.review-card--empty { text-align: center; color: var(--muted); }
.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.review-card__author { font-weight: 600; }
.review-card__date { font-size: 12.5px; color: var(--muted); }
.review-card__rating { margin-left: auto; color: #ddd; font-size: 16px; letter-spacing: 2px; }
.review-card__rating .is-on { color: var(--accent); }
.review-card__text { color: var(--text); margin: 0; font-size: 14.5px; }

.reviews__form {
  padding: 32px;
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius-lg);
}
.reviews__form h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 4px; }
.reviews__form > p { color: rgba(255,255,255,.7); margin: 0 0 20px; font-size: 14px; }

/* ===================== Forms ===================== */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__field { display: block; }
.form__label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { resize: vertical; min-height: 80px; }
.form__note { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }
.form__status { font-size: 13px; margin: 4px 0 0; min-height: 18px; }
.form__status.is-error { color: #c53030; }
.form__status.is-ok { color: #2f855a; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.form--dark input, .form--dark textarea {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.15);
}
.form--dark input::placeholder,
.form--dark textarea::placeholder { color: rgba(255,255,255,.4); }
.form--dark input:focus, .form--dark textarea:focus { border-color: var(--accent); }
.form--dark .form__note { color: rgba(255,255,255,.5); }

/* rating input (звёзды) — вертикально в форме */
.rating-input { display: inline-flex; direction: rtl; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label {
  cursor: pointer;
  font-size: 22px;
  color: rgba(255,255,255,.25);
  transition: color .15s;
}
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--accent); }

/* ===================== Contacts ===================== */
.contacts { padding: 80px 0; background: var(--bg-soft); }
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: stretch;
}
.contacts__list {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-direction: column; gap: 20px;
}
/* Контакты: строка + бейдж-иконка (пуленепробиваемый вариант) */
.contacts__list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 20px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-badge {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #eee1cd;
  color: #c2a67d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s, color .3s, transform .3s;
}
.contact-badge svg { width: 24px; height: 24px; display: block; }
.contact-row:hover .contact-badge { background-color: #c2a67d; color: #ffffff; transform: scale(1.06); }
.contacts__list a { font-weight: 600; color: var(--text); }
.contacts__list span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.contacts__map {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ===================== CTA ===================== */
.cta { padding: 80px 0; background: #fff; }
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
}
.cta__content { padding: 60px; display: flex; flex-direction: column; justify-content: center; gap: 20px; align-items: flex-start; }
.cta__content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
  color: #fff;
  line-height: 1.2;
}
.cta__content p { color: rgba(255,255,255,.7); margin: 0; }
.cta__image {
  background: linear-gradient(135deg, rgba(0,0,0,.4), rgba(0,0,0,.6)),
              url('/img/cta.svg') center/cover no-repeat, var(--accent-hover);
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,.72);
  padding: 60px 0 20px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.brand--light { color: #fff; }
.brand--light .brand__title { color: #fff; }
.brand--light .brand__tagline { color: rgba(255,255,255,.5); }
.site-footer__desc { color: rgba(255,255,255,.55); font-size: 13.5px; margin-top: 16px; }
.site-footer__col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px; color: #fff; margin: 0 0 14px;
}
.site-footer__col p, .site-footer__col a {
  margin: 6px 0; display: block; font-size: 14px; color: rgba(255,255,255,.72);
}
.site-footer__col a:hover { color: var(--accent); }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
}
.site-footer__social a svg { width: 18px; height: 18px; display: block; }
.site-footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-footer__legal {
  margin-top: 40px; padding: 24px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer__legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px 30px;
}
.site-footer__legal-item { display: flex; flex-direction: column; gap: 4px; }
.site-footer__legal-item--wide { grid-column: span 2; }
.site-footer__legal-item--full { grid-column: 1 / -1; max-width: 640px; }
.site-footer__legal-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.site-footer__legal-value {
  font-size: 13.5px; color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.site-footer__legal-value--pre {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  border-left: 2px solid var(--accent);
}

.site-footer__bottom {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

@media (max-width: 720px) {
  .site-footer__legal-item--wide { grid-column: span 1; }
}

/* ===================== Modal ===================== */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 15, 15, .6);
  backdrop-filter: blur(4px);
}
.modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.modal__close {
  position: absolute; right: 12px; top: 12px;
  background: transparent; border: 0;
  width: 36px; height: 36px; font-size: 22px; color: var(--muted); border-radius: 50%;
}
.modal__close:hover { background: var(--bg-soft); color: var(--text); }
.modal__title {
  font-family: 'Playfair Display', serif; font-size: 24px;
  margin: 0 0 6px; color: var(--text);
}
.modal__lead { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

/* ===================== 404 ===================== */
.error-page { padding: 100px 0 140px; text-align: center; }
.error-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 96px; margin: 0 0 16px; color: var(--accent);
}
.error-page p { color: var(--muted); margin: 0 0 30px; font-size: 17px; }

/* ===================== Media queries ===================== */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__burger { display: inline-flex; margin-left: auto; }
  .site-header__right { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 20px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .hero__inner { grid-template-columns: 1fr; padding: 60px 20px 80px; min-height: 620px; }
  .hero__cards { flex-direction: row; padding-top: 0; }
  .hero__card { flex: 1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .portfolio__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .portfolio__card { grid-column: span 2; }
  .portfolio__card--big { grid-column: span 2; grid-row: span 2; }
  .how__steps { grid-template-columns: repeat(3, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__image { min-height: 220px; }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header__inner { min-height: 60px; }
  .brand__title { font-size: 15px; }
  .brand__tagline { font-size: 9.5px; }
  .hero { min-height: 620px; }
  .hero__title { font-size: clamp(28px, 8vw, 40px); }
  .hero__lead { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }
  .hero__cards { flex-direction: column; }
  .stats { padding: 50px 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats__value { font-size: 40px; }
  .portfolio { padding: 50px 0; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .portfolio__card, .portfolio__card--big { grid-column: span 1; grid-row: span 1; }
  .how { padding: 60px 0; }
  .how__steps { grid-template-columns: 1fr; gap: 16px; }
  .reviews, .contacts, .cta { padding: 50px 0; }
  .reviews__form { padding: 24px; }
  .cta__content { padding: 30px 24px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .modal__panel { padding: 24px; }
}

/* Утилиты */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
body.no-scroll { overflow: hidden; }

/* ==========================================================
   ЭФФЕКТЫ И АНИМАЦИИ
   ========================================================== */

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* --- Header shrink + shadow при скролле --- */
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .98);
}
.site-header.is-scrolled .site-header__inner { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.site-header.is-scrolled .brand__mark svg { width: 28px; height: 28px; transition: all .3s; }
.site-header .site-header__inner { transition: min-height .3s, padding .3s; }
.site-header .brand__mark svg { transition: all .3s; }

/* --- Scrollspy: активный пункт меню --- */
.site-nav a.is-active { color: var(--accent); }
.site-nav a.is-active::after { width: 100%; }

/* --- Плавная подсветка полей формы --- */
.form__field { position: relative; transition: transform .2s; }
.form__field.is-focused { transform: translateY(-2px); }

/* --- Модалки: fade + scale --- */
.modal {
  opacity: 0;
  transition: opacity .25s cubic-bezier(.2,.7,.2,1);
}
.modal.is-open { display: block; }
.modal.is-visible { opacity: 1; }
.modal__panel {
  transform: translate(-50%, -46%) scale(.96);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.modal.is-visible .modal__panel { transform: translate(-50%, -50%) scale(1); }
.modal__backdrop { transition: backdrop-filter .3s; }

/* --- Кнопки: ripple + магнитный сдвиг --- */
.btn { position: relative; overflow: hidden; will-change: transform; transition: background .2s, color .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0);
  animation: rippleOut .6s ease-out;
  pointer-events: none;
}
.btn--secondary .btn__ripple, .btn--ghost .btn__ripple { background: rgba(194, 166, 125, .3); }
@keyframes rippleOut {
  to { transform: scale(2.4); opacity: 0; }
}
.btn__arrow { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- Портфолио: 3D tilt + glow --- */
.portfolio__card {
  transform-style: preserve-3d;
  transition: box-shadow .3s, transform .1s ease-out;
  will-change: transform;
}
.portfolio__card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(194,166,125,.28), transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.portfolio__card:hover { box-shadow: 0 20px 45px rgba(20, 20, 20, .25); }
.portfolio__card:hover::after { opacity: 1; }
.portfolio__card img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* --- Hero: анимированный градиент + parallax layers --- */
.hero { position: relative; }
.hero__bg { will-change: transform; }
.hero__bg::after {
  content: '';
  position: absolute; inset: -30% -10% -10% -10%;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(194,166,125,.18), transparent 60%),
    radial-gradient(500px 500px at 80% 70%, rgba(194,166,125,.12), transparent 60%);
  animation: heroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  0%   { transform: translate(0, 0) scale(1); opacity: .8; }
  100% { transform: translate(30px, -20px) scale(1.05); opacity: 1; }
}
.hero__content, .hero__card { will-change: transform; }

/* --- Hero title: split-like glow accent --- */
.hero__accent {
  background: linear-gradient(90deg, #d4b988, #c2a67d 40%, #b08e63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  animation: underlineIn 1.2s .8s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }

/* --- Статистика: pulsing иконка --- */
.stats__item {
  position: relative;
  transition: transform .3s;
}
.stats__item:hover { transform: translateY(-4px); }
.stats__icon {
  transition: color .3s, transform .3s;
}
.stats__item:hover .stats__icon { color: var(--accent-hover); transform: scale(1.08) rotate(-3deg); }
.stats__value {
  background: linear-gradient(180deg, #1a1a1a 60%, #4a4a4a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Секции: subtle разделительная линия сверху при появлении --- */
.stats::before, .portfolio::before, .reviews::before, .contacts::before, .cta::before {
  content: '';
  display: block;
  width: 0; height: 1px;
  background: var(--accent);
  margin: 0 auto;
  transition: width 1.4s .3s cubic-bezier(.2,.7,.2,1);
}
.stats.is-revealed::before, .portfolio.is-revealed::before,
.reviews.is-revealed::before, .contacts.is-revealed::before, .cta.is-revealed::before {
  width: 60px;
}

/* --- "Как мы работаем" — линия между шагами и hover --- */
.how__steps { counter-reset: step; position: relative; }
.how__step { position: relative; overflow: hidden; }
.how__step::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(194,166,125,.15), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}
.how__step:hover::before { opacity: 1; }
.how__num {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.how__step:hover .how__num {
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 8px 20px rgba(194, 166, 125, .5);
}

/* --- Слайдер отзывов: горизонтальный скролл + drag --- */
@media (min-width: 720px) {
  .reviews__slider {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
    cursor: grab;
  }
  .reviews__slider::-webkit-scrollbar { display: none; }
  .reviews__slider .review-card {
    flex: 0 0 min(340px, 80%);
    scroll-snap-align: start;
  }
  .reviews__slider.is-dragging { cursor: grabbing; }
  .reviews__slider.is-dragging * { pointer-events: none; }
}
.reviews__nav {
  display: flex; gap: 10px; margin-top: 20px;
}
.reviews__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px; line-height: 1;
  transition: all .2s;
}
.reviews__nav button:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- Отзывы: карточки при hover --- */
.review-card { transition: transform .3s, box-shadow .3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.review-card__avatar { transition: transform .3s; }
.review-card:hover .review-card__avatar { transform: rotate(-8deg) scale(1.05); }

/* --- Контакты: hover эффекты на списке --- */
.contacts__list li {
  transition: transform .3s;
  padding: 6px 0;
}
.contacts__list li:hover { transform: translateX(6px); }
.contacts__icon { transition: transform .3s, background-color .3s; }
.contacts__list li:hover .contacts__icon {
  background: var(--accent); color: #fff; transform: scale(1.1);
}

/* --- Footer соцсети: bounce --- */
.site-footer__social a { transition: all .3s cubic-bezier(.2,.7,.2,1); }
.site-footer__social a:hover { transform: translateY(-4px) scale(1.05); }

/* --- Отключаем эффекты для пользователей с prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

