/* content-producer.ru — тёмная тема, тёплый графит + песочный акцент */

/* ---------- шрифты (свои копии, без внешних CDN) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-400-cyrillic.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: 400; font-display: swap; src: url(../fonts/cormorant-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-500-cyrillic.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: 500; font-display: swap; src: url(../fonts/cormorant-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-500i-cyrillic.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: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-500i-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- переменные ---------- */
:root {
  --bg: #161513;
  --bg-2: #1b1917;
  --surface: #211f1c;
  --surface-2: #2a2723;
  --line: rgba(239, 233, 224, 0.12);
  --line-2: rgba(239, 233, 224, 0.26);
  --text: #efe9e0;
  --muted: #a8a196;
  --accent: #e0c9a6;
  --accent-hi: #f0dfc2;
  --accent-ink: #1a1612;
  --wine: #6b2a30;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
.spark { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* ---------- типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.7; }
.h1, .h2, .h3 { font-family: var(--serif); letter-spacing: -0.015em; }
.h1 { font-size: clamp(2.3rem, 0.9rem + 5vw, 5.1rem); line-height: 1; margin-bottom: 28px; }.h2 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); line-height: 1.04; margin-bottom: 24px; }
.h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.15; margin-bottom: 12px; }
em { font-style: italic; color: var(--accent); }
.nw { white-space: nowrap; }
@media (max-width: 420px) { .nw { white-space: normal; } }
.lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--muted); max-width: 56ch; }

.section { padding-block: clamp(72px, 10vw, 140px); scroll-margin-top: 20px; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: -4px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.btn .ico { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:hover .ico { transform: translate(2px, -2px); }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
/* размытие — на псевдоэлементе: фильтр на самой шапке сделал бы её «рамкой» для position:fixed у мобильного меню */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: rgba(22, 21, 19, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.site-header.is-stuck, .menu-open .site-header { border-bottom-color: var(--line); }
.site-header.is-stuck::before, .menu-open .site-header::before { opacity: 1; }
.bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; position: relative; z-index: 2; }
.brand-name { font: 500 24px/1 var(--serif); letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.25s; position: relative; }
.nav a:hover { color: var(--text); }
.nav-phone { display: none !important; }
.phone-link {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: border-color 0.3s, color 0.3s; position: relative; z-index: 2;
}
.phone-link:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1180px) { .phone-link span { display: none; } .phone-link { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
    background: rgba(22, 21, 19, 0.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav a { font: 500 clamp(2rem, 9vw, 3rem)/1.25 var(--serif); color: var(--text); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s; }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: 0.05s; }
  .menu-open .nav a:nth-child(3) { transition-delay: 0.1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: 0.15s; }
  .menu-open .nav a:nth-child(5) { transition-delay: 0.2s; }
  .menu-open .nav a:nth-child(6) { transition-delay: 0.25s; }
  .nav a.nav-phone { display: inline-flex !important; align-items: center; gap: 12px; margin-top: 22px; font: 600 18px/1 var(--sans); color: var(--accent); }
  .phone-link { margin-left: 0; }
}

/* ---------- главный экран ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 72px)) 0 clamp(56px, 7vw, 104px);
  background:
    radial-gradient(60% 50% at 88% 8%, rgba(224, 201, 166, 0.13), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(107, 42, 48, 0.28), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 46ch; margin-bottom: 36px; }

.collage { position: relative; aspect-ratio: 10 / 11; width: 100%; max-width: 560px; margin-left: auto; }
.c { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 5px rgba(22, 21, 19, 0.92), 0 34px 60px -28px #000; background: var(--surface); }
.c img { width: 100%; height: 100%; object-fit: cover; }
.c-main { left: 12%; top: 0; width: 60%; aspect-ratio: 3 / 4; z-index: 1; }
.c-top { right: 0; top: 12%; width: 36%; aspect-ratio: 3 / 4; z-index: 2; animation: float 9s ease-in-out infinite; }
.c-bottom { left: 0; bottom: 2%; width: 38%; aspect-ratio: 3 / 4; z-index: 2; animation: float 11s ease-in-out -4s infinite; }
.badge {
  position: absolute; z-index: 3; display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px;
  background: rgba(22, 21, 19, 0.66); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.badge b { font: 500 30px/1 var(--serif); color: var(--accent); }
.badge span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.b-top { left: -2%; top: 10%; }
.b-bottom { right: 2%; bottom: 7%; animation: float 10s ease-in-out -2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { margin: 8px auto 0; max-width: 520px; }
}

/* ---------- цифры ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.num { font: 400 clamp(3rem, 2rem + 4vw, 5.2rem)/1 var(--serif); color: var(--text); }
.num span { color: var(--accent); }
.stat-label { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); max-width: 22ch; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- бегущая строка ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track > * { margin-right: 36px; }
.marquee span { font: italic 500 clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem)/1 var(--serif); color: var(--muted); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- обо мне ---------- */
.about-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-tag {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(22, 21, 19, 0.66); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.about-copy > p { color: var(--muted); max-width: 60ch; }
.quote { margin: 36px 0 40px; padding: 8px 0 8px clamp(20px, 3vw, 36px); border-left: 1px solid var(--accent); }
.quote blockquote { margin: 0; position: relative; }
.quote blockquote p { font: italic 500 clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem)/1.4 var(--serif); color: var(--text); margin-bottom: 0.7em; }
.quote figcaption { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.quote figcaption::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; text-align: right; font: 500 clamp(1.15rem, 1rem + 0.5vw, 1.4rem)/1.2 var(--serif); }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; max-width: 520px; }
  .about-photo img { aspect-ratio: 1 / 1; object-position: 50% 25%; }
}
@media (max-width: 520px) { .facts div { flex-direction: column; gap: 4px; } .facts dd { text-align: left; } }

/* ---------- услуги ---------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.service { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.4s, transform 0.5s var(--ease); }
.service:hover { border-color: var(--line-2); transform: translateY(-4px); }
.service-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.service:hover .service-media img { transform: scale(1.04); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 21, 19, 0.5), transparent 45%); }
.service-n { position: absolute; z-index: 1; left: 22px; top: 14px; font: 400 56px/1 var(--serif); color: var(--accent-hi); }
.service-body { padding: clamp(24px, 3vw, 40px); }
.service-body > p { color: var(--muted); }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
@media (max-width: 899px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- работы ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 22px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--muted); transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tab span { font-size: 11px; font-weight: 700; opacity: 0.7; }
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab-note { margin: 22px 0 28px; font: italic 500 clamp(1.2rem, 1rem + 0.6vw, 1.5rem)/1.3 var(--serif); color: var(--muted); }
.panel { animation: fade 0.6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.masonry { column-count: 4; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: var(--surface); }
.shot-btn { position: relative; display: block; width: 100%; cursor: zoom-in; overflow: hidden; }
.shot-btn img { width: 100%; height: auto; transition: transform 0.9s var(--ease), filter 0.5s; }
.shot-btn::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(22, 21, 19, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efe9e0' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transform: scale(0.8); transition: opacity 0.35s, transform 0.35s var(--ease);
}
@media (hover: hover) {
  .shot-btn:hover img { transform: scale(1.045); filter: brightness(1.06); }
  .shot-btn:hover::after { opacity: 1; transform: none; }
}
.works-foot { margin: 36px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1099px) { .masonry { column-count: 3; } }
@media (max-width: 699px) { .masonry { column-count: 2; column-gap: 10px; } .shot { margin-bottom: 10px; border-radius: 12px; } }

/* ---------- преимущества ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.why-card { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(239, 233, 224, 0.035), transparent); transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s; }
.why-card:hover { border-color: rgba(224, 201, 166, 0.5); transform: translateY(-4px); background: linear-gradient(180deg, rgba(224, 201, 166, 0.07), transparent); }
.why-n { display: block; margin-bottom: 36px; font: italic 500 22px/1 var(--serif); color: var(--accent); }
.why-card p { margin: 0; color: var(--muted); }
@media (max-width: 999px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .why-n { margin-bottom: 20px; } }

/* ---------- процесс ---------- */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.4vw, 36px); counter-reset: step; }
.step { position: relative; padding-top: 34px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(224, 201, 166, 0.14); }
.step-n { display: block; margin-bottom: 14px; font: 400 clamp(2.6rem, 2rem + 1.6vw, 3.4rem)/1 var(--serif); color: var(--accent); }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1099px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 34px; border-top: 0; border-left: 1px solid var(--line-2); }
  .step::before { left: -5px; top: 6px; }
  .step:last-child { padding-bottom: 0; }
}

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-side .lead { margin-bottom: 28px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font: 500 clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem)/1.25 var(--serif); transition: color 0.25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary .ico { width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.qa[open] summary .ico { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.qa-body { padding: 0 60px 28px 0; animation: fade 0.45s var(--ease); }
.qa-body p { margin: 0; color: var(--muted); }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } .qa-body { padding-right: 0; } }

/* ---------- контакты ---------- */
.contact { padding-top: 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.contact-card { position: relative; overflow: hidden; border-radius: 36px; border: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(0.9); }
.contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 21, 19, 0.96) 25%, rgba(22, 21, 19, 0.62) 65%, rgba(22, 21, 19, 0.35)); }
.contact-inner { padding: clamp(36px, 7vw, 104px) clamp(24px, 6vw, 88px); max-width: 760px; }
.big-phone { display: inline-block; margin: 8px 0 32px; font: 500 clamp(1.9rem, 0.3rem + 7.4vw, 5rem)/1.05 var(--serif); letter-spacing: -0.01em; white-space: nowrap; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease), color 0.3s; }
.big-phone:hover { color: var(--accent-hi); background-size: 100% 1px; }
.contact-name { margin: 32px 0 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 699px) { .contact-card { border-radius: 26px; } .contact-card::before { background: rgba(22, 21, 19, 0.82); } }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer p { margin: 0; }
.footer a { transition: color 0.25s; }
.footer a:hover { color: var(--accent); }
.to-top { margin-left: auto; font-weight: 600; }

/* ---------- просмотр фото ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 64px 12px 16px; background: rgba(12, 11, 10, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade 0.3s; touch-action: pan-y; }
.lb-top { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lb-count { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(22, 21, 19, 0.6); transition: background 0.25s, border-color 0.25s, color 0.25s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lb-stage { min-width: 0; height: 100%; display: grid; place-items: center; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity 0.25s; user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loading { opacity: 0.25; }
@media (max-width: 699px) {
  .lightbox { grid-template-columns: 1fr; padding: 60px 0 12px; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; z-index: 2; width: 44px; height: 44px; }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lb-stage img { max-height: calc(100dvh - 140px); border-radius: 0; }
}

/* ---------- страница 404 ---------- */
.nf { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 80px; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
