/* ============================================================
   KK STUDIO — design system v4 · "Light Editorial"
   Палитра: кремовый / чёрный / золото / тёплый коричневый.
   Серифная крупная типографика, воздух, мягкие скругления,
   кинематографичные изображения. Многостраничный сайт.
   ============================================================ */

:root {
  --bg: #f4eee2;
  --bg-2: #ebe2d1;
  --bg-deep: #141009;
  --paper: #fbf8f0;
  --cream: #efe6d5;
  --ink: #18140e;
  --ink-2: #5a5245;
  --muted: #968b78;
  --line: rgba(24, 20, 14, 0.12);
  --line-2: rgba(24, 20, 14, 0.22);

  --gold: #b78f4c;
  --gold-2: #cda964;
  --brown: #6e5740;

  --maxw: 1280px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* единая шкала отступов (ритм ~8px) — для консистентности вёрстки */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 18px;
  --space-md: 28px;
  --space-lg: 44px;
  --space-xl: 72px;
  --space-2xl: clamp(80px, 11vw, 150px);
  --gutter: 36px;

  /* для совместимости со стилями CRM */
  --surface: var(--paper);
  --accent: var(--gold);
  --faint: var(--muted);
  --blue: var(--brown);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500; line-height: 1.02; letter-spacing: 0.01em; color: var(--ink);
}
::selection { background: var(--gold); color: #fff; }

/* доступный фокус с клавиатуры (не мешает мыши) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.btn-solid:focus-visible, .roundbtn:focus-visible, .burger:focus-visible { outline-offset: 4px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
body[data-page="home"] .hdr:not(.scrolled) :focus-visible { outline-color: #fff; }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
.section { padding: var(--space-2xl) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.muted { color: var(--muted); }
.serif { font-family: "Cormorant Garamond", Georgia, serif; }

.display { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.98; }

.tlink { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink); position: relative; padding-bottom: 6px; }
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--line-2); transition: background 0.3s var(--ease); }
.tlink svg { width: 26px; height: 10px; transition: transform 0.3s var(--ease); }
.tlink:hover { color: var(--gold); }
.tlink:hover::after { background: var(--gold); }
.tlink:hover svg { transform: translateX(6px); }

.btn-solid { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 16px 30px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.btn-solid:hover { background: var(--brown); transform: translateY(-2px); }
.btn-solid svg { width: 18px; height: 14px; }

.roundbtn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: all 0.3s var(--ease); }
.roundbtn:hover { background: var(--ink); color: var(--bg); transform: rotate(90deg); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 24px 0; transition: padding 0.3s var(--ease), background 0.3s var(--ease); }
.hdr.scrolled { padding: 12px 0; background: rgba(244, 239, 230, 0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { display: flex; }
.logo-mark svg { width: 34px; height: 34px; display: block; color: var(--ink); }
.logo-word { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.logo-word .g { color: var(--gold); }
.logo-img { height: 90px; width: auto; display: block; transition: height 0.3s var(--ease); }
.hdr.scrolled .logo-img { height: 70px; }
/* Лого скрыт на самом верху (на баннере), появляется в шапке при скролле */
.hdr .logo { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease); }
.hdr.scrolled .logo { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
/* Главная: над тёмным баннером (до скролла) навигация светлая */
body[data-page="home"] .hdr:not(.scrolled) .nav a { color: var(--cream); }
body[data-page="home"] .hdr:not(.scrolled) .nav a:hover,
body[data-page="home"] .hdr:not(.scrolled) .nav a.active { color: #fff; }
body[data-page="home"] .hdr:not(.scrolled) .lang button { color: rgba(255, 255, 255, 0.6); }
body[data-page="home"] .hdr:not(.scrolled) .lang button.active { color: #fff; }
body[data-page="home"] .hdr:not(.scrolled) .lang .sep { color: rgba(255, 255, 255, 0.4); }
body[data-page="home"] .hdr:not(.scrolled) .roundbtn { color: var(--cream); border-color: rgba(255, 255, 255, 0.45); }
body[data-page="home"] .hdr:not(.scrolled) .roundbtn:hover { background: #fff; color: var(--ink); }
body[data-page="home"] .hdr:not(.scrolled) .burger { color: var(--cream); border-color: rgba(255, 255, 255, 0.45); }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-2); transition: color 0.2s; position: relative; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.lang button { color: var(--muted); text-transform: uppercase; transition: color 0.2s; }
.lang button.active { color: var(--ink); }
.lang .sep { color: var(--line-2); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.mobile-menu { display: none; margin-top: 16px; padding: 8px 0 4px; border-top: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 0; font-family: "Cormorant Garamond", serif; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- page intro (inner pages) ---------- */
.page-intro { padding-top: clamp(156px, 18vw, 220px); padding-bottom: clamp(30px, 5vw, 60px); }
.page-intro .eyebrow { margin-bottom: 26px; }
.page-intro h1 { font-size: clamp(48px, 11vw, 150px); text-transform: uppercase; letter-spacing: 0.01em; }
.page-intro p { margin-top: 26px; max-width: 540px; font-size: 18px; color: var(--ink-2); }

/* ---------- hero banner (home) — полноэкранный кинокадр ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 clamp(54px, 8vh, 100px); overflow: hidden; }
.hero .hero-media { position: absolute; inset: 0; z-index: 0; border-radius: 0; background: var(--bg-deep); }
.hero .hero-media .frame { filter: blur(22px) brightness(0.6) saturate(1.05); transform: scale(1.14); transition: filter 1.7s var(--ease), transform 7s var(--ease), opacity 1.2s var(--ease); }
.hero.in .hero-media .frame { filter: blur(0) brightness(0.82) saturate(1.06); transform: scale(1.04); }
.hero.in .hero-media .frame.show { animation: heroKB 26s ease-in-out 1.9s infinite alternate; }
@keyframes heroKB { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.6%, -1.8%, 0); } }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(20,16,9,0.36) 0%, rgba(20,16,9,0.05) 30%, rgba(20,16,9,0.52) 100%); }
.hero-frameui { position: absolute; inset: clamp(16px, 2.4vw, 30px); z-index: 2; pointer-events: none; }
.hero-frameui .vf { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,0.85); opacity: 0; transition: opacity 0.9s var(--ease) 0.7s; }
.hero.in .hero-frameui .vf { opacity: 0.9; }
.hero-frameui .vf.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frameui .vf.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frameui .vf.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-frameui .vf.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero-rec { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 0.22em; color: #fff; opacity: 0; transition: opacity 0.9s var(--ease) 0.85s; }
.hero.in .hero-rec { opacity: 0.92; }
.hero-rec i { width: 9px; height: 9px; border-radius: 50%; background: #e2574c; animation: recblink 1.4s steps(1, end) infinite; }
.hero-rec .tc { color: var(--gold-2); font-variant-numeric: tabular-nums; }
@keyframes recblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.18; } }
.hero-inner { position: relative; z-index: 3; color: var(--cream); }
.hero-eyebrow { margin-bottom: 26px; color: var(--gold-2); opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease) 0.25s, transform 0.8s var(--ease) 0.25s; }
.hero-eyebrow::before { background: var(--gold-2); }
.hero.in .hero-eyebrow { opacity: 1; transform: none; }
.hero-title { font-size: clamp(48px, 9vw, 150px); text-transform: uppercase; line-height: 0.92; color: #fff; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .ln-i { display: block; transform: translateY(115%); transition: transform 1s var(--ease); }
.hero-title .ln:nth-child(2) .ln-i { transition-delay: 0.12s; }
.hero.in .hero-title .ln-i { transform: none; }
.hero-title .it { font-style: italic; text-transform: none; color: var(--gold-2); }
.hero-lead { margin-top: 28px; max-width: 460px; color: #e7ddca; font-size: clamp(16px, 1.4vw, 18px); opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease) 0.5s, transform 0.8s var(--ease) 0.5s; }
.hero.in .hero-lead { opacity: 1; transform: none; }
.hero .hero-cta { margin-top: 36px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease) 0.62s, transform 0.8s var(--ease) 0.62s; }
.hero.in .hero-cta { opacity: 1; transform: none; }
.hero .hero-meta { margin-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: #cfc4ad; }
.hero .hero-meta::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); margin-right: 12px; vertical-align: middle; }
.hero-scroll { position: absolute; right: clamp(20px, 5vw, 60px); bottom: clamp(20px, 4vh, 40px); z-index: 3; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: #d8cdb6; display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity 1s var(--ease) 0.95s; }
.hero.in .hero-scroll { opacity: 1; }
.hero-scroll::after { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,0.55); transform-origin: left; animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleX(0.4); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- shot (image frame + story player) ---------- */
.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.shot .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.shot .ph svg { width: 42px; height: 42px; opacity: 0.5; }
.shot .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); will-change: opacity, transform; }
.shot .frame.show { opacity: 1; }
.shot.playing .frame.show { animation: kenburns 2.6s var(--ease) forwards; }
.shot.story { cursor: pointer; }
.shot .play-badge { position: absolute; left: 18px; bottom: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(251, 249, 244, 0.86); backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); transition: opacity 0.4s; }
.shot .play-badge svg { width: 13px; height: 13px; color: var(--gold); }
.shot.playing .play-badge { opacity: 0; }
.shot .dots { position: absolute; right: 18px; bottom: 20px; z-index: 4; display: flex; gap: 7px; opacity: 0; transition: opacity 0.4s; }
.shot.playing .dots { opacity: 1; }
.shot .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(251,249,244,0.5); transition: background 0.3s, transform 0.3s; }
.shot .dots i.on { background: var(--gold); transform: scale(1.25); }

/* ---------- featured (home works teaser) ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.feature.flip .feature-txt { order: 2; }
.feature .shot { aspect-ratio: 4 / 3; }
.feature .eyebrow { margin-bottom: 24px; }
.feature h2 { font-size: clamp(34px, 5.4vw, 68px); text-transform: uppercase; }
.feature p { margin-top: 22px; max-width: 440px; color: var(--ink-2); font-size: 16px; }
.feature .tlink { margin-top: 34px; }
.feature-deco { position: relative; }
.feature-deco::before { content: ""; position: absolute; right: -4%; top: -18%; width: 320px; height: 320px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }

/* ---------- works gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 48px); }
.gitem:nth-child(even) { margin-top: clamp(0px, 7vw, 80px); }
.gitem .shot { aspect-ratio: 5 / 4; }
.gitem .cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 20px; }
.gitem .cap .ix { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 18px; }
.gitem .cap .cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.gitem .cap h3 { font-size: clamp(24px, 3vw, 36px); text-transform: uppercase; margin-top: 4px; }
.gitem .cap .arrow { color: var(--muted); }
.gitem .cap .arrow svg { width: 24px; height: 24px; }
/* видео-работы (вертикальные 9:16) */
.shot.vid { cursor: pointer; }
.gitem .shot.vid { aspect-ratio: 9 / 16; }
.shot.vid .play-badge { transition: opacity 0.35s var(--ease); }
.shot.vid.on .play-badge { opacity: 0; pointer-events: none; }
.gitem .shot.vid.on .frame { filter: none; }

/* ---------- services ---------- */
.slist { border-top: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: 80px 1.1fr 1.3fr auto; gap: 36px; align-items: center; padding: clamp(28px, 3.6vw, 48px) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease); }
.srow .ix { font-family: "Cormorant Garamond", serif; font-size: 26px; color: var(--gold); }
.srow h3 { font-size: clamp(26px, 3.4vw, 44px); text-transform: uppercase; }
.srow .d { color: var(--ink-2); font-size: 16px; max-width: 440px; }
.srow .go { color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
.srow .go svg { width: 30px; height: 14px; }
.srow:hover { padding-left: 14px; }
.srow:hover h3 { color: var(--brown); }
.srow:hover .go { color: var(--gold); transform: translateX(8px); }

/* ---------- process (5 steps connected) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: var(--line-2); }
.pstep { text-align: center; position: relative; }
.pstep .circle { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; margin: 0 auto 24px; font-family: "Cormorant Garamond", serif; font-size: 20px; color: var(--ink); position: relative; z-index: 1; transition: all 0.3s var(--ease); }
.pstep:hover .circle { background: var(--gold); color: #fff; border-color: var(--gold); }
.pstep h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px; }
.pstep p { font-size: 14px; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about .shot { aspect-ratio: 4 / 5; }
.about h2 { font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; }
.about .eyebrow { margin-bottom: 26px; }
.about p { margin-top: 22px; color: var(--ink-2); font-size: 17px; }
.about .points { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about .points li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.about .points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 8vw, 110px); }
.contact-side h1, .contact-side h2 { font-size: clamp(38px, 6vw, 88px); text-transform: uppercase; }
.contact-side .eyebrow { margin-bottom: 26px; }
.contact-side .lead { margin-top: 26px; color: var(--ink-2); font-size: 18px; max-width: 400px; }
.contact-links { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; width: fit-content; transition: color 0.2s; }
.contact-links a svg { width: 18px; height: 18px; color: var(--gold); }
.contact-links a:hover { color: var(--gold); }
.form { display: flex; flex-direction: column; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.field input, .field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-2); color: var(--ink); padding: 9px 0; font-size: 16px; transition: border-color 0.25s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 90px; resize: vertical; }
.form-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.alert { padding: 14px 0; font-size: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.alert.ok { color: var(--brown); }
.alert.err { color: #9a3b2e; }
.form .btn-solid { margin-top: 12px; align-self: flex-start; }

/* ---------- footer ---------- */
.ftr { padding: clamp(60px, 8vw, 110px) 0 44px; border-top: 1px solid var(--line); margin-top: 40px; }
.ftr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ftr .big { font-family: "Cormorant Garamond", serif; font-size: clamp(44px, 9vw, 130px); font-weight: 500; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.01em; }
.ftr .big .g { color: var(--gold); }
.ftr-links { display: flex; gap: 40px; flex-wrap: wrap; }
.ftr-col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 16px; }
.ftr-col a { display: block; color: var(--ink-2); padding: 5px 0; transition: color 0.2s; }
.ftr-col a:hover { color: var(--gold); }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(40px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* dark section (base, to avoid flash before anim.css) */
.section.dark { background: var(--bg-deep); color: var(--cream); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--cream); }

/* ---------- CRM / admin (light) ---------- */
.admin-body { min-height: 100vh; background: var(--bg); }
.admin-top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(244, 239, 230, 0.86); backdrop-filter: blur(18px); }
.admin-top .container { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.login-card h1 { font-size: 34px; text-transform: uppercase; }
.login-card .sub { color: var(--muted); font-size: 14px; margin: 8px 0 28px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 12px 0 40px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.kpi .v { font-family: "Cormorant Garamond", serif; font-size: 46px; font-weight: 600; }
.kpi .k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.tabs { display: inline-flex; gap: 26px; margin-bottom: 28px; }
.tabs button { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding-bottom: 7px; }
.tabs button.active { color: var(--ink); border-bottom: 2px solid var(--gold); }
.table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 15px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td .cell-msg { max-width: 340px; color: var(--ink-2); }
.status-select { border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); padding: 7px 12px; font-size: 13px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.btn-solid.btn-full { width: 100%; justify-content: center; }

/* CRM-кнопки и бренд (классы из crm.js — раньше не были описаны) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 13px 24px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--brown); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-full { width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand .mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--bg); font-family: "Cormorant Garamond", serif; font-size: 18px; font-weight: 600; }
.brand span:last-child { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); }

/* ---------- home offer cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.offer-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); background: var(--paper); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.offer-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.offer-card .oc-ix { font-family: "Cormorant Garamond", serif; font-size: 20px; color: var(--gold); }
.offer-card h3 { font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; margin: 14px 0 12px; }
.offer-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- pricing teaser (home) ---------- */
.price-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 4vw, 56px); background: var(--bg-2); }

/* ---------- pricing page ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 28px); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 2.6vw, 40px); background: var(--paper); }
.price-card.featured { border-color: var(--gold); box-shadow: 0 18px 50px -28px rgba(24, 20, 14, 0.45); }
.price-card .pc-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.price-card .pc-name { font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.price-card .pc-price { font-family: "Cormorant Garamond", serif; font-size: clamp(44px, 5vw, 58px); font-weight: 600; line-height: 1; margin-top: 10px; }
.price-card .pc-unit { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.price-card .pc-per { color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 4px; }
.price-card .pc-blurb { color: var(--ink-2); font-size: 14px; margin-top: 16px; }
.price-card .pc-feats { list-style: none; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.price-card .pc-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); }
.price-card .pc-feats svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }
.price-card .btn-solid { margin-top: auto; justify-content: center; }
.price-card .btn-solid.pc-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.price-card .btn-solid.pc-ghost:hover { background: var(--ink); color: var(--bg); }
.pricing-note { margin-top: 28px; font-size: 13px; text-align: center; }

/* ---------- pricing add-ons ---------- */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.addon { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: clamp(22px, 2.4vw, 30px); background: var(--paper); }
.addon-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.addon-h h4 { font-size: 17px; }
.addon-price { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 20px; white-space: nowrap; }
.addon p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.custom-text { max-width: 620px; margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }
.section.dark .btn-solid { background: var(--cream); color: var(--ink); }
.section.dark .btn-solid:hover { background: #fff; color: var(--ink); }

/* ---------- animations ---------- */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.08); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-txt { order: 0; }
  .feature .shot, .about .shot { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .steps::before { display: none; }
  .srow { grid-template-columns: 50px 1fr; }
  .srow .d, .srow .go { grid-column: 2; }
  .pricing-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav, .hdr-right .lang { display: none; }
  .burger { display: grid; }
  .logo-img { height: 72px; }
  .gallery { grid-template-columns: 1fr; gap: 40px; }
  .gitem:nth-child(even) { margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .offer-grid, .addons { grid-template-columns: 1fr; }
  .price-teaser { flex-direction: column; align-items: flex-start; }
}
