:root {
  --ink: #0B0B0B;
  --ink-2: #161616;
  --paper: #ECEAE4;
  --paper-2: #DEDBD3;
  --red: #E3262D;
  --red-d: #B81C22;
  --white: #FFFFFF;
  --muted: #8C8A85;
  --line: rgba(255,255,255,.14);
  --line-d: rgba(13,13,13,.16);
  --kaspi: #F14635;
  --f-cond: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-serif: 'EB Garamond', Georgia, serif;
  --gut: clamp(16px, 4vw, 48px);
  --r: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--white); font: 400 16px/1.5 var(--f-body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, .h3 { font-family: var(--f-cond); text-transform: uppercase; line-height: .92; letter-spacing: -.01em; }
h2 { font-size: clamp(56px, 11vw, 150px); font-weight: 700; }
.h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.label { font: 600 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border: 0; border-radius: var(--r); cursor: pointer;
  font: 600 15px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-d); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-kaspi { background: var(--kaspi); color: #fff; margin-top: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gut); padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(rgba(11,11,11,.85), rgba(11,11,11,0));
  transition: background .25s ease;
}
.top.solid { background: rgba(11,11,11,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo { font: 700 26px/1 var(--f-cond); letter-spacing: .02em; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { opacity: .8; } .nav a:hover { opacity: 1; color: var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.9); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.3) 0%, rgba(11,11,11,.4) 35%, rgba(11,11,11,.9) 62%, #0B0B0B 82%); }
.hero .label { color: #fff; } .hero .label::first-letter { color: var(--red); }
.hero-in { position: relative; padding: 0 var(--gut) clamp(48px, 9vh, 96px); width: 100%; }
.hero-name { font-size: clamp(64px, 17vw, 260px); font-weight: 700; }
.hero-tag { font-family: var(--f-serif); font-size: clamp(24px, 4vw, 44px); margin-top: 8px; }
.hero-tag em { font-style: italic; }
.hero-lead { max-width: 520px; margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hud { position: absolute; font: 600 11px/1 var(--f-body); letter-spacing: .2em; color: rgba(255,255,255,.7); }
.hud-tl { top: 84px; left: var(--gut); } .hud-tl::first-letter { color: var(--red); }
.hud-br { top: 84px; right: var(--gut); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 12vw, 140px) var(--gut); }
.sec-paper { background: var(--paper); color: var(--ink); }
.sec-head { margin-bottom: 36px; }
.sec-sub { max-width: 560px; margin-top: 16px; color: #4A4843; font-size: 17px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 40px; padding: 0 18px; border-radius: 40px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line); color: var(--white);
  font: 500 14px/1 var(--f-body); white-space: nowrap;
}
.chip.on { background: var(--white); color: var(--ink); border-color: var(--white); }
.chips-dark .chip { border-color: var(--line-d); color: var(--ink); }
.chips-dark .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- portfolio ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: var(--r); background: var(--ink-2); cursor: pointer; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover img, .card:hover video { transform: scale(1.04); }
.card-ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #222, #0B0B0B); font: 700 44px/1 var(--f-cond); color: rgba(255,255,255,.12); }
.card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.card-cat { font: 600 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.card-title { font: 600 20px/1.05 var(--f-cond); text-transform: uppercase; margin-top: 6px; }
.card-play { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.card-play::after { content: ''; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.empty { color: var(--muted); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.svc-note { color: #5A5852; margin: -12px 0 20px; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pkg {
  position: relative; text-align: left; cursor: pointer; padding: 22px 20px 20px; border-radius: var(--r);
  background: var(--white); border: 2px solid transparent; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pkg:hover { transform: translateY(-2px); }
.pkg.on { border-color: var(--red); box-shadow: 8px 8px 0 var(--ink); }
.pkg-hit { position: absolute; top: -10px; right: 14px; background: var(--red); color: #fff; font: 600 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; }
.pkg-name { font: 600 24px/1 var(--f-cond); text-transform: uppercase; }
.pkg-price { font: 700 34px/1 var(--f-cond); margin: 12px 0 14px; }
.pkg-price small { font-size: 18px; }
.pkg ul { list-style: none; display: grid; gap: 7px; font-size: 14px; color: #3A3934; }
.pkg li { padding-left: 18px; position: relative; }
.pkg li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 2px; background: var(--red); }
.pkg-radio { position: absolute; top: 20px; right: 18px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-d); }
.pkg.on .pkg-radio { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--white); background: var(--red); }

.addons-wrap { margin-top: 36px; }
.addons { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper-2); border-radius: var(--r); }
.addon-l { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; min-width: 0; }
.addon input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.addon-price { font-weight: 600; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: var(--r); background: var(--white); cursor: pointer; font-size: 18px; font-weight: 600; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }

.calc-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--ink); }
.calc-line strong { display: block; font: 700 38px/1 var(--f-cond); margin-top: 4px; }

/* ---------- order ---------- */
.order { position: sticky; top: 84px; background: var(--ink); color: var(--white); padding: 24px; border-radius: var(--r); }
.order-list { list-style: none; display: grid; gap: 10px; }
.order-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-item b { font-weight: 600; display: block; }
.order-item small { color: var(--muted); display: block; margin-top: 2px; }
.order-item .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.order-item .x:hover { color: var(--red); }
.order-empty { color: var(--muted); font-size: 14px; }
.order-sum { margin: 18px 0 20px; }
.order-sum .row { display: flex; justify-content: space-between; align-items: baseline; }
.order-sum .row strong { font: 700 36px/1 var(--f-cond); color: var(--white); }
.order-sum .row-sm { font-size: 14px; color: var(--muted); margin-top: 6px; }

.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r);
  background: var(--ink-2); border: 1.5px solid var(--line); color: var(--white); font-size: 16px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { resize: vertical; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-err { color: #FF6B6B; font-size: 14px; }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact-phone { display: inline-block; font: 700 clamp(36px, 7vw, 80px)/1 var(--f-cond); margin: 24px 0; border-bottom: 3px solid var(--red); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- mobile bar ---------- */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60;
  display: none; justify-content: space-between; align-items: center; height: 56px; padding: 0 20px;
  background: var(--red); color: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 15px;
}
.mbar strong { font: 700 22px/1 var(--f-cond); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 56px 16px 16px; }
.lb-in { width: min(420px, 100%); aspect-ratio: 9/16; max-height: calc(100svh - 80px); }
.lb-in video, .lb-in iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r); background: #000; object-fit: contain; }
.lb-x { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 36px; cursor: pointer; }
.qr-in { background: var(--white); color: var(--ink); padding: 28px; border-radius: 8px; text-align: center; width: min(360px, 100%); }
.qr-in img { width: 100%; margin: 8px 0 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .order { position: static; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-title { font-size: 16px; }
  .pkgs { grid-template-columns: 1fr; }
  .mbar:not([hidden]) { display: flex; }
  body.has-order { padding-bottom: 80px; }
  .form-2 { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
}
