/* Трошина Дизайн — стили по макету Claude Design.
   Палитра и типографика взяты один в один из макета главной. */

:root {
  --ink: #2c2a27;
  --ink-soft: #56524c;
  --ink-mid: #3f3c37;
  --sand: #f4f1ec;
  --sand-dark: #eae5dc;
  --line: #e2dcd2;
  --line-strong: #c8bfb1;
  --gold: #8a7355;
  --gold-light: #c3ac8b;
  --gold-muted: #b09a7c;
  --cream: #f6f2ea;
  --cream-dim: #d6cfc3;
  --dark-line: #4a463f;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --pad: 48px;
}

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('/static/fonts/cormorant-garamond-cyrillic-300.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('/static/fonts/cormorant-garamond-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('/static/fonts/jost-cyrillic-300.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500;
  font-display: swap; src: url('/static/fonts/jost-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-weight: 300; margin: 0; }

/* ── Верхняя полоса ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 10px var(--pad); background: var(--ink); color: #cfc6b8;
  font-size: 13px; letter-spacing: .06em;
}
.topbar__label { text-transform: uppercase; }
.topbar__right { display: flex; align-items: center; gap: 28px; }
.topbar__link { display: inline-flex; align-items: center; gap: 8px; }
.topbar__link svg { color: var(--gold-light); flex: none; }
.topbar a:hover { color: var(--gold-light); }
.socials { display: flex; align-items: center; gap: 8px; }
.soc {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; min-height: 0; aspect-ratio: 1;
  border: 1px solid var(--dark-line); color: var(--gold-light); border-radius: 50%;
  transition: background .2s, color .2s, border-color .2s;
}
.soc:hover { background: transparent; color: var(--cream); border-color: var(--gold-light); }

/* ── Шапка ── */
.header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px 40px; padding: 22px var(--pad); background: var(--sand);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; line-height: 1; color: var(--ink); }
.brand__logo { height: 68px; width: auto; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.nav a { color: var(--ink-soft); white-space: nowrap; }
/* у кнопки в шапке цвет задаёт .btn--dark, а не общее правило .nav a */
.nav a.btn--dark { color: #fff; }
.nav a.is-active { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.nav-toggle, .nav-burger { display: none; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  padding: 18px 34px; transition: background .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--ink); color: #fff; padding: 13px 24px; letter-spacing: .1em; gap: 10px; }
.btn--dark:hover { background: var(--gold); color: #fff; }
.btn--gold { background: var(--gold-light); color: #fff; }
.btn--gold:hover { background: var(--gold); color: #fff; }
.btn--ghost { border: 1px solid rgba(246,242,234,.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(246,242,234,.08); color: var(--cream); }
.btn--outline {
  align-self: flex-start; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 13px 30px; font-size: 13px; letter-spacing: .14em;
}
.btn--outline:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }

/* ── Герой ── */
.hero {
  position: relative; min-height: 720px; display: flex; align-items: flex-end;
  background: var(--ink); overflow: hidden;
}
.hero__slides, .hero__slide, .hero__img, .hero__veil { position: absolute; inset: 0; }
.hero__slide { animation: om-slide 21s ease-in-out infinite; }
.hero__slide--1 { animation-name: om-slide1; }
.hero__slide--2 { animation-name: om-slide2; }
.hero__slide--3 { animation-name: om-slide3; }
.hero__img {
  background-image: var(--bg-lg); background-size: cover; background-position: center;
  animation: om-kenburns 21s ease-out infinite alternate;
}
.hero__veil { background: linear-gradient(105deg, rgba(28,26,24,.88) 0%, rgba(28,26,24,.62) 46%, rgba(28,26,24,.22) 100%); }
.hero__inner { position: relative; padding: 120px var(--pad) 56px; width: 100%; }
.hero__copy { max-width: 760px; }
.hero__kicker {
  display: block; font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-light); animation: om-rise .9s ease-out both;
}
.hero__title {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); line-height: 1.04;
  margin: 24px 0 0; color: var(--cream); letter-spacing: -.01em;
  animation: om-rise 1s ease-out .12s both;
}
.hero__title em { color: var(--gold-light); font-style: italic; }
.hero__rule {
  height: 1px; background: var(--gold); width: 120px; margin-top: 34px;
  transform-origin: left; animation: om-line 1s ease-out .5s both;
}
.hero__text {
  font-size: 18px; line-height: 1.75; color: var(--cream-dim); max-width: 540px;
  margin: 26px 0 0; text-wrap: pretty; animation: om-rise 1s ease-out .3s both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; animation: om-rise 1s ease-out .44s both; }
.hero__stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; margin-top: 72px;
  padding-top: 28px; border-top: 1px solid rgba(246,242,234,.16); animation: om-fade 1.2s ease-out .7s both;
}
.stat { display: flex; align-items: baseline; gap: 12px; }
.stat__value { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--cream); }
.stat__label { font-size: 11px; letter-spacing: .18em; color: var(--gold-muted); text-transform: uppercase; }
.hero__cue {
  display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--gold-muted);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.hero__cue svg { animation: om-cue 1.8s ease-in-out infinite; }

/* ── Бегущая строка ── */
.marquee {
  background: var(--ink); border-top: 1px solid #423d36; padding: 18px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; gap: 44px; align-items: center; animation: om-marquee 34s linear infinite;
  font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-muted);
}
.marquee__item { display: inline-flex; align-items: center; gap: 44px; }
.marquee__dot { width: 5px; height: 5px; background: var(--gold); display: inline-block; transform: rotate(45deg); }

/* ── Секции ── */
.section { padding: 110px var(--pad); background: var(--sand); }
.section--sand { background: var(--sand-dark); }
.section--top0 { padding-top: 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px;
}
.section__head--center { display: block; text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__lead { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 420px; margin: 0; text-wrap: pretty; }
.section__lead--center { max-width: none; margin: 16px 0 0; }
.section__foot { text-align: center; margin-top: 40px; }
.kicker { font-size: 12px; letter-spacing: .34em; color: var(--gold); text-transform: uppercase; }
.kicker--light { color: #b3a690; }
.h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 18px 0 0; }
.h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 18px 0 0; }
.h2--light { color: var(--cream); }
.link-more {
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
}

.page-head { padding: 72px var(--pad) 48px; background: var(--sand); }
.page-head--tall { padding: 120px var(--pad); }
.page-head__lead { font-size: 17px; line-height: 1.75; color: var(--ink-soft); max-width: 640px; margin: 20px 0 0; text-wrap: pretty; }
.page-head__lead a { border-bottom: 1px solid var(--line-strong); }
.crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }

/* ── Портфолио ── */
.grid-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative; display: block; overflow: hidden; background: var(--ink);
  min-height: 280px; color: inherit;
}
.work--tall { grid-row: span 2; min-height: 560px; }
.work__img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform .6s ease; }
.work:hover .work__img { transform: scale(1.04); }
.work__caption {
  position: absolute; inset: auto 0 0 0; padding: 26px;
  background: linear-gradient(transparent, rgba(44,42,39,.85));
}
.work__title { color: var(--sand); font-family: var(--serif); font-size: 26px; }
.work__meta { color: #cfc6b8; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; }

.project__cover { margin: 0 0 20px; }
.project__cover img { width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { display: block; overflow: hidden; background: var(--sand-dark); aspect-ratio: 3/2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.project__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.project__nav-link { font-size: 15px; }

/* ── Процесс ── */
.grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 16px; transition: transform .35s ease; }
.step__media { position: relative; aspect-ratio: 4/3; background: var(--line); overflow: hidden; border-radius: 4px; }
.step__media img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.88);
  transition: transform .7s ease, filter .45s ease;
}
/* тёплая вуаль проявляется при наведении */
.step__media::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(138,115,85,0) 40%, rgba(44,42,39,.45) 100%);
  transition: opacity .45s ease;
}
.step__num {
  position: absolute; left: 0; top: 0; background: var(--sand); color: var(--gold);
  font-family: var(--serif); font-size: 15px; letter-spacing: .2em; padding: 8px 14px;
  transition: background .35s ease, color .35s ease, padding .35s ease;
}
.step__icon {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,26,24,.6); color: #e9dfcd; border-radius: 50%;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.step__icon svg { width: 20px; height: 20px; }
.step__title {
  font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2;
  transition: color .3s ease;
}
.step__text { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; text-wrap: pretty; }
.step__term {
  position: relative; align-self: flex-start; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-top: auto; padding-bottom: 6px;
}
.step__term::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .45s ease;
}

/* Наведение только там, где есть курсор: на телефоне карточки остаются статичными */
@media (hover: hover) {
  .step:hover { transform: translateY(-6px); }
  .step:hover .step__media img { transform: scale(1.06); filter: saturate(1); }
  .step:hover .step__media::after { opacity: 1; }
  .step:hover .step__num { background: var(--gold); color: #fff; padding: 8px 18px; }
  .step:hover .step__icon {
    background: var(--gold-light); color: #201d1a; transform: scale(1.12);
  }
  .step:hover .step__title { color: var(--gold); }
  .step:hover .step__term::after { width: 100%; }
}

/* ── Услуги ── */
.grid-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--sand); padding: 38px 32px; display: flex; flex-direction: column; gap: 18px; transition: background .2s; }
.service:hover { background: #fffdf9; }
.service__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.service__icon {
  flex: none; width: 44px; height: 44px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.service__icon svg { width: 22px; height: 22px; }
.service__price { display: flex; align-items: baseline; gap: 8px; color: var(--gold); }
.service__amount { font-family: var(--serif); font-size: 34px; }
.service__unit { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.service__items {
  list-style: none; margin: 0; padding: 20px 0 0; display: flex; flex-direction: column; gap: 9px;
  font-size: 14px; line-height: 1.55; color: var(--ink-soft); border-top: 1px solid var(--line); flex: 1;
}
.service__items li { display: flex; gap: 10px; }
.service__items li span:first-child { color: #b3a690; }

/* ── О студии ── */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #e9e3d9; }
.about__media {
  background: #3a3733 var(--bg-lg) center/cover; min-height: 560px; display: flex;
  flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 40px;
}
.about__person { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about__person img {
  width: min(300px, 72%); aspect-ratio: 3/4; object-fit: cover; object-position: center 20%;
  border-radius: 14px; border: 1px solid rgba(246,242,234,.22); box-shadow: 0 24px 60px rgba(20,18,16,.45);
}
.about__badge {
  display: flex; align-items: center; gap: 12px; background: rgba(28,26,24,.62);
  border: 1px solid rgba(195,172,139,.5); color: #e9e3d9; padding: 12px 20px; border-radius: 999px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.about__badge i { width: 5px; height: 5px; background: var(--gold-light); border-radius: 50%; }
.about__copy { padding: 96px var(--pad) 96px 64px; display: flex; flex-direction: column; justify-content: center; }
.about__text { font-size: 17px; line-height: 1.8; color: #cfc6b8; margin: 26px 0 0; max-width: 520px; text-wrap: pretty; }
.about__quote {
  font-family: var(--serif); font-size: 21px; line-height: 1.6; color: #e9e3d9; font-style: italic;
  margin: 24px 0 0; max-width: 520px; padding-left: 20px; border-left: 1px solid var(--gold); text-wrap: pretty;
}
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px;
  padding-top: 32px; border-top: 1px solid var(--dark-line);
}
.about__stat-value { font-family: var(--serif); font-size: 34px; line-height: 1; }
.about__stat-label { font-size: 11px; letter-spacing: .16em; color: #b3a690; text-transform: uppercase; margin-top: 8px; }

/* ── Отзывы ── */
.grid-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.review { background: var(--sand); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line); margin: 0; }
.review__quote { font-family: var(--serif); font-size: 52px; line-height: .6; color: var(--line-strong); }
.review__text { font-size: 16px; line-height: 1.75; color: var(--ink-mid); margin: 0; flex: 1; text-wrap: pretty; }
.review__author {
  display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.review__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sand-dark);
  border: 1px solid #d8cdbb; display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; color: var(--gold);
}

/* ── Контакты и форма ── */
.contacts { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--sand); }
.contacts__info { padding: 96px 56px 96px var(--pad); }
.contacts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: 48px; }
.contacts__grid--top0 { margin-top: 0; }
.contacts__cell { display: flex; flex-direction: column; gap: 10px; }
.contacts__label {
  display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold);
}
.contacts__label svg { width: 16px; height: 16px; }
.contacts__value { font-size: 16px; line-height: 1.6; color: var(--ink-mid); }
.contacts__socials { display: flex; gap: 18px; }
.lead { background: var(--sand-dark); padding: 72px var(--pad); border-left: 1px solid var(--line); }
.lead__title { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.lead__note { font-size: 14px; color: var(--ink-soft); margin: 10px 0 32px; }
.lead__form { display: flex; flex-direction: column; gap: 18px; }
.lead__form input, .lead__form textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 12px 0; font-size: 16px; font-family: var(--sans); color: var(--ink); outline: none; resize: none;
}
.lead__form input:focus, .lead__form textarea:focus { border-bottom-color: var(--gold); }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__form button {
  margin-top: 12px; background: var(--ink); color: #fff; border: 0; padding: 18px 0;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--sans);
  cursor: pointer; transition: background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.lead__form button:hover { background: var(--gold); }
.lead__form button[disabled] { opacity: .7; cursor: default; }
.lead__status { font-size: 14px; color: var(--gold); margin: 0; min-height: 1em; }

/* ── Подвал ── */
.footer { background: var(--ink); color: #a29a8c; font-size: 13px; }
.footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr; gap: 40px;
  padding: 64px var(--pad) 48px; border-bottom: 1px solid var(--dark-line);
}
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__col a { color: #cfc6b8; }
.footer__col a:hover { color: var(--gold-light); }
.footer__head {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.footer__logo { height: 56px; width: auto; }
.footer__about { margin: 4px 0 0; line-height: 1.7; max-width: 320px; color: #a29a8c; }
.footer__socials { display: flex; gap: 8px; margin-top: 10px; }
.footer__address { margin: 4px 0 0; line-height: 1.6; color: #a29a8c; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px;
  padding: 22px var(--pad); color: #8a8275;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__legal a { color: #8a8275; border-bottom: 1px solid transparent; }
.footer__legal a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ── Правовые страницы ── */
.doc { max-width: 760px; font-size: 16px; line-height: 1.8; color: var(--ink-mid); }
.doc h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink);
  margin: 40px 0 14px; line-height: 1.25;
}
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 14px; text-wrap: pretty; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }

/* ── Согласие под формой ── */
.lead__consent { font-size: 12px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.lead__consent a { border-bottom: 1px solid var(--line-strong); }

/* ── Уведомление о cookie ── */
.cookie[hidden] { display: none; }
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(420px, calc(100vw - 32px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--sand); border: 1px solid var(--line); padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(44, 42, 39, .22); font-size: 13px; line-height: 1.55;
}
.cookie p { margin: 0; flex: 1; min-width: 200px; color: var(--ink-mid); }
.cookie a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }
.cookie button {
  background: var(--ink); color: #fff; border: 0; padding: 11px 20px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.cookie button:hover { background: var(--gold); }

/* ── Анимации ── */
@keyframes om-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes om-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes om-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes om-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes om-slide1 { 0%,26% { opacity: 1; } 34%,92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes om-slide2 { 0%,26% { opacity: 0; } 34%,59% { opacity: 1; } 67%,100% { opacity: 0; } }
@keyframes om-slide3 { 0%,59% { opacity: 0; } 67%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes om-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes om-cue { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(9px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
  :root { --pad: 28px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .advantages { background-image: var(--bg-md); background-attachment: scroll; }
  .hero__img { background-image: var(--bg-md); }
  .about__media { background-image: var(--bg-md); }
  .grid-works, .grid-portfolio, .grid-reviews, .gallery { grid-template-columns: repeat(2, 1fr); }
  .work--tall { grid-row: auto; min-height: 320px; }
  .about, .contacts { grid-template-columns: 1fr; }
  .about__copy { padding: 64px var(--pad); }
  .contacts__info { padding: 64px var(--pad); }
  .lead { border-left: 0; border-top: 1px solid var(--line); padding: 56px var(--pad); }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .topbar { font-size: 12px; flex-wrap: nowrap; gap: 10px; padding: 4px var(--pad); }
  .topbar__label { display: none; }
  /* телефон и почта идут парой слева, соцсети прижаты вправо */
  .topbar__right { flex: 1; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; }
  .topbar__right .socials { margin-left: auto; }
  .topbar__link { gap: 7px; }
  .topbar__link--mail .topbar__text { display: none; }
  .topbar a:not(.soc) { min-height: 40px; }
  .socials { gap: 6px; }
  .soc { width: 32px; height: 32px; flex: none; }
  .brand__logo { height: 50px; }
  .footer__logo { height: 46px; }

  .header { position: relative; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer; padding: 10px;
  }
  .nav-burger span { display: block; height: 1px; background: var(--ink); }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 12px 0 4px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero { min-height: 560px; }
  .hero__inner { padding: 72px var(--pad) 40px; }
  .hero__stats { margin-top: 44px; gap: 18px 28px; }
  .hero__cue { display: none; }
  .section, .page-head { padding-left: var(--pad); padding-right: var(--pad); }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .grid-works, .grid-portfolio, .grid-reviews, .grid-services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .page-head { padding: 40px var(--pad) 28px; }
  .h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero__img { background-image: var(--bg-sm); }
  .about__media { background-image: var(--bg-sm); min-height: 420px; }
  .topbar a:not(.soc), .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav a.is-active { padding-bottom: 0; }
  .btn { padding: 16px 26px; }
  .lead__form button { min-height: 52px; }
  .work { min-height: 240px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding: 48px var(--pad) 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-direction: column; gap: 10px; }
  .cookie { left: 0; right: 0; bottom: 0; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; }
  .advantages { padding: 72px var(--pad); background-image: var(--bg-sm); }
  .adv { padding: 30px 22px; }
  .adv__icon { width: 58px; height: 58px; }
  .adv__icon svg { width: 30px; height: 30px; }
}

/* ── Лайтбокс ── */
body.is-locked { overflow: hidden; }
.lb[hidden] { display: none; }   /* иначе display: flex перебивает атрибут hidden */
.lb {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 16, .94); padding: 24px;
  animation: om-fade .2s ease-out;
}
.lb__stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lb__img {
  max-width: min(1600px, 94vw); max-height: 88vh; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb__close, .lb__nav {
  position: absolute; background: rgba(246, 242, 234, .1); color: var(--cream);
  border: 1px solid rgba(246, 242, 234, .25); cursor: pointer; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background .2s, border-color .2s;
}
.lb__close:hover, .lb__nav:hover { background: var(--gold); border-color: var(--gold); }
.lb__close { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 30px; border-radius: 50%; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 34px; border-radius: 50%; }
.lb__nav--prev { left: 20px; }
.lb__nav--next { right: 20px; }
.lb__counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--gold-muted); font-size: 12px; letter-spacing: .2em;
}
.gallery__item { cursor: zoom-in; }
.gallery__item--cover { display: block; cursor: zoom-in; }
.gallery__item--video { position: relative; cursor: pointer; background: #2c2a27; }
.gallery__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(28,26,24,0) 40%, rgba(28,26,24,.35));
  transition: background .3s;
}
.gallery__play svg { width: 64px; height: 64px; transition: transform .3s; }
.gallery__play circle { fill: rgba(28,26,24,.45); stroke: rgba(246,242,234,.85); stroke-width: 1.5; }
.gallery__play path { fill: #f6f2ea; }
.gallery__item--video:hover .gallery__play svg { transform: scale(1.1); }
.gallery__item--video:hover .gallery__play circle { fill: rgba(138,115,85,.85); }
.lb__video { max-width: min(1600px, 94vw); max-height: 88vh; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.project__text { max-width: 760px; margin-top: 22px; font-size: 17px; line-height: 1.8; color: var(--ink-mid); }
.project__text p { margin: 0 0 14px; }
.project__text h2, .project__text h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 24px 0 10px; }
.project__text ul, .project__text ol { padding-left: 20px; margin: 0 0 14px; }
.project__text a { color: var(--gold); border-bottom: 1px solid var(--line-strong); }
.about__text p { margin: 0 0 14px; }
.about__text p:last-child { margin-bottom: 0; }
.about__text a { color: var(--gold-light); border-bottom: 1px solid rgba(195,172,139,.4); }
.doc blockquote, .project__text blockquote { margin: 0 0 14px; padding-left: 18px; border-left: 2px solid var(--gold); font-style: italic; }
.preview-bar {
  position: sticky; top: 0; z-index: 90; background: #8a7355; color: #fff; text-align: center;
  padding: 10px 20px; font-size: 14px;
}
.preview-bar a { color: #fff; text-decoration: underline; margin-left: 10px; }

@media (max-width: 760px) {
  .lb { padding: 0; }
  .lb__img { max-width: 100vw; max-height: 82vh; }
  .lb__nav { width: 48px; height: 48px; font-size: 28px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }
  .lb__close { top: 12px; right: 12px; }
}

/* ── Виджет ВКонтакте ── */
.vk-section { background: var(--sand); }
.vk-widget {
  min-height: 500px; display: flex; justify-content: center; align-items: center;
  background: var(--sand-dark); border: 1px solid var(--line);
}
.vk-widget.is-ready { background: transparent; border-color: transparent; min-height: 0; }
.vk-widget.is-failed { min-height: 0; padding: 32px; }
.vk-widget #vk_groups { max-width: 100%; }
.vk-widget iframe { max-width: 100% !important; }

@media (max-width: 760px) {
  .vk-widget { min-height: 420px; }
}

/* ── Виджет Флампа ── */
.flamp { max-width: 1200px; margin: 40px auto 0; min-height: 120px; }
.flamp:empty { min-height: 0; }
.flamp.is-failed { min-height: 0; }
.flamp iframe { max-width: 100% !important; }

/* ── Плавающая кнопка связи ── */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(44, 42, 39, .35);
  transition: background .2s, transform .2s;
}
.fab:hover { background: var(--ink); transform: translateY(-2px); }
.fab__pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold);
  animation: om-pulse 2.6s ease-out infinite;
}
@keyframes om-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Модальное окно связи ── */
.modal[hidden] { display: none; }   /* иначе display: flex перебивает hidden */
.modal {
  position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 16, .72); padding: 24px; animation: om-fade .2s ease-out;
}
.modal__card {
  position: relative; width: min(440px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--sand); border: 1px solid var(--line); padding: 40px 36px;
  animation: om-rise .25s ease-out;
}
.modal__close {
  position: absolute; top: 10px; right: 12px; width: 44px; height: 44px;
  background: none; border: 0; color: var(--ink-soft); font-size: 30px; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: var(--gold); }
.modal__title { font-family: var(--serif); font-size: 30px; font-weight: 400; padding-right: 32px; }
.modal__note { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 10px 0 26px; }
.modal .lead__form { gap: 16px; }
.modal__or {
  display: flex; align-items: center; gap: 14px; margin: 28px 0 20px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.modal__or::before, .modal__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal__links { display: flex; flex-direction: column; gap: 10px; }
.modal__link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); background: #fffdf9; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.modal__link:hover { border-color: var(--gold); background: var(--sand-dark); color: var(--ink); }
.modal__link svg { flex: none; color: var(--gold); width: 20px; height: 20px; }
.modal__link span { display: flex; flex-direction: column; gap: 2px; }
.modal__link b { font-weight: 400; font-size: 15px; }
.modal__link i { font-style: normal; font-size: 12px; color: var(--ink-soft); }
.modal__link--wa svg { color: #25a366; }
.modal__link--tg svg { color: #2f9fd6; }

@media (max-width: 760px) {
  .fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__card { width: 100%; max-height: 94vh; padding: 32px 20px 28px; }
}

/* ── Преимущества ── */
.advantages {
  position: relative; overflow: hidden; background: #211f1c var(--bg-lg) center/cover fixed;
  color: var(--cream); padding: 120px var(--pad);
}
.advantages__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,22,20,.94) 0%, rgba(24,22,20,.86) 45%, rgba(24,22,20,.95) 100%);
}
.advantages__inner { position: relative; max-width: 1200px; margin: 0 auto; }
.advantages__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.advantages__lead {
  font-size: 17px; line-height: 1.75; color: var(--cream-dim); margin: 18px 0 0; text-wrap: pretty;
}
.grid-adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv {
  position: relative; padding: 44px 34px 40px;
  background: rgba(246, 242, 234, .05);
  border: 1px solid rgba(195, 172, 139, .28);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s, border-color .3s, transform .3s;
}
.adv:hover {
  background: rgba(246, 242, 234, .09); border-color: var(--gold-light); transform: translateY(-6px);
}
.adv__num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--serif); font-size: 40px; line-height: 1; color: rgba(195, 172, 139, .22);
  transition: color .3s;
}
.adv:hover .adv__num { color: rgba(195, 172, 139, .45); }
.adv__icon {
  width: 68px; height: 68px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--gold-light); margin-bottom: 6px;
  background: radial-gradient(circle at 30% 25%, rgba(195, 172, 139, .3), rgba(195, 172, 139, .06));
  border: 1px solid rgba(195, 172, 139, .4);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.adv:hover .adv__icon {
  background: var(--gold-light); color: #201d1a; border-color: var(--gold-light); transform: scale(1.06);
}
.adv__icon svg { width: 36px; height: 36px; }
.adv__title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--cream); }
.adv__text { font-size: 15px; line-height: 1.7; color: var(--cream-dim); margin: 0; text-wrap: pretty; }
.advantages__foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 52px; }

@media (max-width: 980px) { .grid-adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-adv { grid-template-columns: 1fr; gap: 14px; } }

/* Появление блоков при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i, 0) * .08s);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
