/* GLOSS — чёрный + красный */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1e1e21;
  --text: #f3f3f4;
  --muted: #9b9ba3;
  --line: rgba(255, 255, 255, .1);
  --accent: #e3192a;
  --accent-hover: #ff2b3c;
  --accent-ink: #fff;
  --accent-2: #e3192a;
  --dark: #000;
  --radius: 4px;
  --radius-sm: 4px;
  --font-head: "Russo One", "Arial Black", sans-serif;
  --font-body: "Exo 2", system-ui, sans-serif;
}
h1, h2, .h1, .h2 { font-weight: 400; text-transform: uppercase; }
.h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; }
.btn { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn:hover { box-shadow: none; filter: drop-shadow(0 8px 18px rgba(227,25,42,.45)); }
.btn--ghost:hover, .btn--outline-light:hover { filter: none; }
.card { background: var(--surface); border-color: var(--line); }
.card:hover { border-color: var(--accent); box-shadow: 0 20px 50px -20px rgba(227,25,42,.4); }
.card__n { display: block; font-family: var(--font-head); font-size: 34px; color: transparent; -webkit-text-stroke: 1px var(--accent); margin-bottom: 14px; }
.faq-item { background: var(--surface); }
.faq-q::after { background: var(--surface-2); }
.form input, .form textarea, .form select { background: var(--surface-2) !important; }
.map-stub { filter: invert(.92) hue-rotate(180deg) saturate(.6); }
.map-stub__pin svg { color: #1ce6d5; }
.site-footer { border-top: 1px solid var(--line); }

/* hero */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 80px 0; overflow: hidden; }
.hero__img { position: absolute; inset: 0; border-radius: 0; }
.hero__img img { height: 100%; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.7) 45%, rgba(11,11,12,.2) 100%), linear-gradient(0deg, var(--bg), transparent 30%); }
.hero__img:hover img { transform: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; }
.hero__kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero .h1 { font-size: clamp(42px, 7vw, 92px); line-height: .98; }
.hero .h1 span { color: var(--accent); text-shadow: 0 0 40px rgba(227,25,42,.5); }
.hero .lead { max-width: 520px; color: rgba(255,255,255,.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero__stats b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 400; }
.hero__stats span { color: var(--muted); font-size: 14px; }
.hero__stripe { position: absolute; right: -10%; bottom: 14%; width: 60%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent)); transform: rotate(-8deg); box-shadow: 0 0 20px var(--accent); animation: stripe 3.5s ease-in-out infinite; }
@keyframes stripe { 0%, 100% { opacity: .3; transform: rotate(-8deg) translateX(40px); } 50% { opacity: 1; transform: rotate(-8deg) translateX(0); } }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; position: relative; transition: background .3s; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.svc:hover { background: var(--surface-2); }
.svc:hover::before { transform: scaleY(1); }
.svc__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.svc__top b { color: var(--accent); white-space: nowrap; }
.svc p { color: var(--muted); }
.svc span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* builder */
.builder { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.builder__main { display: grid; gap: 20px; }
.b-step { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.b-step__n { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); font-family: var(--font-head); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.presets { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.presets button { padding: 6px 14px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); transition: all .2s; }
.presets button:hover { border-color: var(--accent); color: #fff; }
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cls { position: relative; cursor: pointer; }
.cls input { position: absolute; opacity: 0; }
.cls > span { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 10px; background: var(--surface); border: 1px solid var(--line); transition: all .25s; height: 100%; }
.cls svg { width: 80px; height: 36px; fill: #3a3a40; transition: fill .25s; }
.cls b { font-size: 14px; }
.cls small { color: var(--muted); font-size: 12px; }
.cls:hover > span { border-color: rgba(227,25,42,.5); }
.cls input:checked + span { border-color: var(--accent); background: linear-gradient(180deg, rgba(227,25,42,.14), var(--surface)); }
.cls input:checked + span svg { fill: var(--accent); }
.cls input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp { position: relative; cursor: pointer; }
.sp input { position: absolute; opacity: 0; }
.sp > span { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); transition: all .25s; height: 100%; }
.sp i { width: 22px; height: 22px; border: 2px solid #4a4a52; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; transition: all .2s; }
.sp b { display: block; font-size: 15px; }
.sp small { color: var(--muted); font-size: 12.5px; }
.sp em { font-style: normal; font-weight: 800; white-space: nowrap; color: var(--muted); transition: color .2s; }
.sp:hover > span { border-color: rgba(227,25,42,.5); }
.sp input:checked + span { border-color: var(--accent); background: rgba(227,25,42,.08); }
.sp input:checked + span i { background: var(--accent); border-color: var(--accent); }
.sp input:checked + span i::after { content: "✓"; color: #fff; }
.sp input:checked + span em { color: #fff; }
.sp input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.builder__sum { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 28px; }
.sum__car { font-family: var(--font-head); font-size: 22px; text-transform: uppercase; }
.sum__lines { display: grid; gap: 8px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; min-height: 60px; }
.sum__lines li { display: flex; justify-content: space-between; gap: 10px; animation: fadeUp .3s var(--ease); }
.sum__lines li span:last-child { white-space: nowrap; font-weight: 700; }
.sum__empty { color: var(--muted); }
.sum__row { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 6px; }
.sum__row b { color: var(--text); }
#sumDisc { color: #3ddc84; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 20px; }
.sum__total b { font-family: var(--font-head); font-size: 36px; font-weight: 400; color: var(--accent); }
.sum__note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

/* works */
.works { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.work { position: relative; overflow: hidden; }
.work .media { display: block; height: 100%; border-radius: 0; cursor: zoom-in; }
.work--big { grid-row: span 2; }
.work figcaption { position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(90deg, rgba(0,0,0,.85), transparent); width: 100%; pointer-events: none; transform: translateY(100%); transition: transform .35s var(--ease); }
.work:hover figcaption { transform: none; }
.work figcaption b { display: block; font-family: var(--font-head); font-weight: 400; text-transform: uppercase; }
.work figcaption span { color: var(--accent); font-size: 14px; font-weight: 600; }

.contact-box { background: var(--surface); padding: 36px; border-left: 3px solid var(--accent); }
#contacts .map-stub { min-height: 100%; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .classes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .builder { grid-template-columns: 1fr; }
  .builder__sum { position: static; }
  .works { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .work--big { grid-row: auto; grid-column: span 2; }
  .work figcaption { transform: none; }
  #contacts .map-stub { min-height: 320px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 64px 0 48px; }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .hero__stats { gap: 22px; margin-top: 36px; }
  .hero__stats b { font-size: 22px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc__top { flex-direction: column; gap: 4px; }
  .svc-pick { grid-template-columns: 1fr; }
  .presets { margin-left: 0; width: 100%; }
  .cls > span { padding: 14px 6px; }
  .cls svg { width: 64px; }
  .builder__sum { padding: 20px; }
  .works { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .work--big { grid-column: auto; }
  .contact-box { padding: 22px; }
}
