/* ROO24 — сайт в стиле «B · Глубина»: тёмный графит, цветной свет, стеклянные плашки со светлой кромкой.
   Шрифты: Onder — заголовки и цифры (только заглавные), Manrope — весь текст. */
@font-face { font-family: "Onder"; src: url("../fonts/Onder-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #171C25;
  --bg-2: #1D2330;
  --text: #F3E8D2;
  --muted: rgba(243, 232, 210, 0.78);
  --faint: rgba(243, 232, 210, 0.12);
  --accent: #E64A2F;
  --accent-hi: #FF6A4A;
  --link: #FF8A6E;
  --light: #4E98E4;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  --glass-border: 1px solid rgba(255, 255, 255, 0.14);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 28px 56px -20px rgba(0, 0, 0, 0.65);
  --r: 28px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--link); }
:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* фон: цветной свет */
.glow-bg { position: relative; isolation: isolate; overflow-x: clip; }
.glow-bg::before { content: ""; position: absolute; z-index: -1; right: -240px; top: -260px; width: 1100px; height: 1100px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(78, 152, 228, 0.36), rgba(15, 76, 129, 0.12) 55%, transparent 100%); pointer-events: none; }
.glow-bg::after { content: ""; position: absolute; z-index: -1; left: -320px; bottom: -300px; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 74, 47, 0.14), transparent 100%); pointer-events: none; }

/* типографика */
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.h1, .h2, .h3d { font-family: Manrope, sans-serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.h1 { font-size: clamp(36px, 5.2vw, 68px); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.h3d { font-size: clamp(22px, 2.4vw, 30px); }
/* Onder — очень широкий акцидентный шрифт: только цифры, логотип и короткие метки */
.display { font-family: Onder, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.accent { color: var(--accent-hi); }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
h3 { margin: 0; font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--muted); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 26px; font: 600 16px/1 Manrope, sans-serif;
  border: 0; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background .2s, transform .2s; }
.btn:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px -12px rgba(230, 74, 47, 0.6); }
.btn--accent:hover { background: #F05A3E; color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* стекло */
.glass { background: var(--glass); border: var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--r); }

/* шапка */
.top { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--faint); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; min-height: 40px; }
.top a { color: var(--muted); }
.top a:hover { color: var(--link); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(23, 28, 37, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--faint); }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo svg { width: 36px; height: 35px; }
.logo span { font-family: Onder, sans-serif; font-size: 22px; line-height: 1; color: var(--text); }
.logo b { font-weight: 400; color: var(--accent); }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; flex: 1; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--accent-hi); }
.header .phone { font-weight: 600; white-space: nowrap; }
.burger { display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text); cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
@media (max-width: 1180px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--bg-2); border-bottom: 1px solid var(--faint); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--faint); }
  .nav.open { display: flex; }
  .header .phone, .header .btn { display: none; }
}

/* секции */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 32px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }

/* первый экран */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-top: 48px; padding-bottom: 56px; }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__text .lead { margin-top: 22px; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__pic { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__stage { position: relative; display: flex; justify-content: center; }
.hero__pic img { height: clamp(320px, 46vw, 560px); width: auto; object-fit: contain; filter: drop-shadow(0 0 2px rgba(243, 232, 210, 0.45)) drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6)); position: relative; }
.hero__stage::after { content: ""; position: absolute; z-index: -1; bottom: -1%; left: 15%; right: 15%; height: 50px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
.hero__badge { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 18px; padding: 12px 18px 12px 22px; border-radius: 20px; }
.hero__badge small { grid-column: 1; font-size: 13px; line-height: 1.3; color: var(--muted); }
.hero__badge strong { grid-column: 1; font-size: 18px; line-height: 1.3; }
.hero__badge span { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 600; }
.hero__badge:hover { color: var(--text); }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { padding: 26px 28px; }
.stat b { display: block; white-space: nowrap; font-family: Manrope, sans-serif; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; color: var(--accent-hi); }
.stat span { color: var(--muted); }

/* каталог */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card__pic { height: 250px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: radial-gradient(closest-side, rgba(78, 152, 228, 0.28), transparent 100%); }
.card__pic img { height: 230px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55)); }
.card__tag { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.card__spec { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-size: 21px; font-weight: 600; white-space: nowrap; }
.mp .h3d { font-size: clamp(24px, 2.6vw, 32px); }

/* преимущества */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { padding: 28px; }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--accent); margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.feature .ico svg { width: 26px; height: 26px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* маркетплейсы */
.mp { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mp a { padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.mp a:hover { color: var(--text); }
.mp .h3d { color: var(--text); }

/* страница сборки */
.build .wrap { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; padding-top: 28px; }
.build__pic { flex: 1 1 460px; min-width: 0; position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.build__pic img { height: clamp(320px, 44vw, 560px); width: auto; object-fit: contain; filter: drop-shadow(0 0 2px rgba(243,232,210,.45)) drop-shadow(0 40px 50px rgba(0,0,0,.6)); }
.build__info { flex: 1 1 440px; min-width: 0; }
.build__price { margin: 22px 0 0; font-size: 30px; font-weight: 600; }
.build__price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.spec { margin-top: 28px; padding: 8px 28px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--faint); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; box-shadow: var(--glass-shadow); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 13, 18, 0.92); }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 16px; }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* текстовые страницы */
.prose { max-width: 820px; }
.prose h2 { font-family: Manrope, sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.tile { padding: 24px; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.steps li { list-style: none; counter-increment: s; padding: 24px; }
.steps li::before { content: counter(s); display: inline-flex; width: 40px; height: 40px; border-radius: 20px; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 12px; }

/* контакты */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contacts .tile b { display: block; font-size: 20px; margin-top: 6px; color: var(--text); }
.map { margin-top: 24px; border-radius: var(--r); overflow: hidden; border: var(--glass-border); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(0.6) invert(0.9) hue-rotate(180deg); }

/* CTA и подвал */
.cta { padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer { border-top: 1px solid var(--faint); margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 48px; padding-bottom: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 8px 0; }
.footer .legal { grid-column: 1 / -1; font-size: 14px; color: var(--muted); border-top: 1px solid var(--faint); padding-top: 20px; }

/* окно «Связаться» */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 13, 18, 0.75); }
.modal.open { display: flex; }
.modal__box { width: min(460px, 100%); padding: 32px; background: linear-gradient(160deg, #2A3242, #1D2330); }
.modal__box .btn { width: 100%; margin-top: 12px; }
.modal__close { float: right; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
