/* ============================================================
   БРИСТОЛЬ — тёплая ТЁМНАЯ система
   Вечерний кофейно-ореховый фон · Lora + Manrope
   Округлые кнопки · кремовый текст · тёплое золото
   (та же свежая подача, что и в светлой версии, но в темноте)
   ============================================================ */

:root {
  /* Тёплые тёмные поверхности */
  --cream:    #1E1710;   /* основной фон (тёплый эспрессо) */
  --cream-2:  #15100a;   /* чередующаяся секция */
  --sand:     #241c14;   /* тёплый акцентный фон / иконки */
  --paper:    #2C2319;   /* карточки (приподнятая поверхность) */
  --footer-bg:#15100A;   /* футер — самый тёмный */

  /* Текст — кремовый */
  --ink:      #F1E8D7;
  --ink-2:    #E4D8C2;
  --ink-soft: #BCAF98;
  --ink-mute: #8A7E6A;

  /* Латунь / тёплое золото — акцент (ярче для тёмного фона) */
  --brass:        #C99A4E;   /* фон кнопок */
  --brass-deep:   #E0B871;   /* акцентный ТЕКСТ на тёмном (ярче!) */
  --brass-bright: #ECC988;

  --moss: #8A9468;

  --line:        rgba(241,232,215,.12);
  --line-strong: rgba(241,232,215,.22);
  --card-border: 1px solid rgba(241,232,215,.09);

  --maxw: 1600px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 100px;

  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-md: 0 24px 54px -26px rgba(0,0,0,.72);
  --shadow-lg: 0 44px 96px -42px rgba(0,0,0,.8);

  --ease: cubic-bezier(.22,.7,.26,1);

  --font-serif: "Cormorant Garamond", "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: #1E1710; }

/* ---------- Типографика ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brass); }
.eyebrow.center::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brass); }
.eyebrow.plain::before { display: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.display { font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; line-height: 1.04; }
.h2 { font-size: clamp(30px, 4vw, 54px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }
.serif-em { font-style: italic; color: var(--brass-deep); }

/* ---------- Контейнеры / секции ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(54px, 7.5vw, 104px); }
.section--cream { background: var(--cream); }
.section--cream2 { background: var(--cream-2); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }

.section-head { max-width: 60ch; }
.section-head .h2 { margin-top: 14px; }
.section-head.center { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- Кнопки (округлые) ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--primary { background: var(--brass); color: #20180C; box-shadow: 0 16px 34px -16px rgba(201,154,78,.6); }
.btn--primary:hover { background: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 22px 42px -16px rgba(201,154,78,.8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); transform: translateY(-2px); }
.btn--light { background: var(--paper); color: var(--ink); border: var(--card-border); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 19px 38px; font-size: 16px; }
.btn--block { width: 100%; }

.alink {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; color: var(--brass-deep);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.alink svg { transition: transform .3s var(--ease); }
.alink:hover { gap: 14px; color: var(--brass-bright); }
.alink:hover svg { transform: translateX(3px); }

/* ---------- Изображения ---------- */
.img { position: relative; overflow: hidden; background: var(--sand); border-radius: var(--radius-lg); }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img--zoom img { transition: transform 1s var(--ease); }
.img--zoom:hover img { transform: scale(1.05); }
.img__cap {
  position: absolute; left: 14px; bottom: 14px;
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; letter-spacing: .03em;
  color: #fff; background: rgba(10,8,5,.6); backdrop-filter: blur(5px);
  padding: 6px 11px; border-radius: var(--radius-pill); z-index: 2;
  opacity: 0; transform: translateY(5px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.img:hover .img__cap { opacity: 1; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
html.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-anim [data-parallax] { transform: none !important; }
html.no-anim .img--zoom img { transition: none !important; }

/* ============================================================
   ХЕДЕР (тёмный)
   ============================================================ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.header.scrolled { background: rgba(20,15,10,.86); backdrop-filter: blur(16px) saturate(1.1); box-shadow: 0 1px 0 var(--line), 0 14px 34px -22px rgba(0,0,0,.7); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 16px; border-radius: var(--radius-pill);
  transition: color .3s var(--ease), background .3s var(--ease); white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(241,232,215,.08); }
.nav a.active { color: var(--brass-bright); background: rgba(201,154,78,.16); }

.header__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header__phone { font-weight: 700; font-size: 15px; white-space: nowrap; transition: color .3s var(--ease); }
.header__phone:hover { color: var(--brass-bright); }
.socials { display: flex; gap: 8px; align-items: center; }
.soc { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--sand); color: var(--ink-soft); transition: all .3s var(--ease); }
.soc:hover { color: #20180C; background: var(--brass); border-color: var(--brass); transform: translateY(-2px); }
.soc svg { width: 18px; height: 18px; display: block; flex-shrink: 0; margin: 0; }

.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--paper); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(16,11,7,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 100px var(--gutter) 44px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-family: var(--font-serif); font-weight: 600; font-size: 34px; color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__foot { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.mobile-menu__foot .header__phone { font-size: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer-bg); color: #C9BDA8; padding-block: clamp(54px, 7vw, 90px); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 48px; }
.footer__brand img { height: 62px; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; font-size: 15px; color: #A99D88; }
.footer__col h4 { font-family: var(--font-sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-bright); margin: 0 0 18px; }
.footer__col a, .footer__col p { display: block; margin: 0 0 12px; font-size: 15px; color: #C9BDA8; }
.footer__col a { transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--brass-bright); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(201,189,168,.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #877C69; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
  .nav, .header__actions .socials, .header__actions .header__phone { display: none; }
  .burger { display: block; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer__top { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}
