/* ==========================================================================
   BASE — токены, сброс, типографика, общие компоненты
   ========================================================================== */

:root {
  --bg: #070505;
  --bg-2: #0e0a09;
  --text: #F5F0EB;
  --muted: rgba(245, 240, 235, .62);
  --dim: rgba(245, 240, 235, .38);
  --line: rgba(255, 255, 255, .08);
  --accent: #FF6B1A;
  --accent-2: #FF8A3D;
  --accent-deep: #C2410C;
  --accent-a: rgba(255, 107, 26, .5);

  --radius: 22px;
  --radius-sm: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 92px;
  --gutter: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #120804; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Заголовки секций ---------- */

.sec-head { max-width: 720px; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.sec-title {
  margin-top: 14px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
}

/* акцентное слово заголовка в оранжевых уголках-«видоискателе» */
.mark {
  position: relative;
  display: inline-block;
  padding: .05em .2em .13em;
}
.mark::before,
.mark::after {
  content: '';
  position: absolute;
  width: .3em;
  height: .3em;
  border: 1px solid var(--accent);
  filter: drop-shadow(0 0 4px rgba(255, 107, 26, .8));
  transition: transform 1s var(--ease-out) .9s, opacity 1s ease .9s;
}
.mark::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.mark::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
/* уголки «сходятся» к слову, когда экран становится активным */
.js .screen:not(.is-active) .mark::before,
.is-loading .mark::before { transform: translate(-.3em, -.3em); opacity: 0; transition-delay: 0s; }
.js .screen:not(.is-active) .mark::after,
.is-loading .mark::after { transform: translate(.3em, .3em); opacity: 0; transition-delay: 0s; }

.sec-sub {
  margin-top: 14px;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

/* ---------- Стекло с градиентной окантовкой ---------- */

.glass {
  --mx: -300px;
  --my: -300px;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
/* рамка 1px: оранжевая сверху-слева, растворяется к низу-справа + свет за курсором */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 138, 61, .95), transparent 65%),
    linear-gradient(140deg, rgba(255, 107, 26, .6) 0%, rgba(255, 107, 26, .12) 28%, rgba(255, 255, 255, .07) 55%, rgba(255, 255, 255, .03) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* тёплое свечение по нижнему краю */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(70% 55% at 50% 105%, rgba(255, 107, 26, .17), transparent 70%);
  pointer-events: none;
  transition: opacity .5s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(20, 15, 13, .86); }
}
/* слабые устройства: без размытия */
.lite .glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(20, 15, 13, .82);
}

/* ---------- Иконки ---------- */

.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  flex-shrink: 0;
}
.ico--sm { width: 16px; height: 16px; stroke-width: 1.4; }

/* при наведении линии «прорисовываются» заново */
.draw-host:hover .ico,
.draw-host:focus-visible .ico,
.ico-tile.draw-host:hover .ico {
  animation: ico-draw 1.1s var(--ease-out) both;
}
@keyframes ico-draw {
  0%   { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.ico-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 107, 26, .1), rgba(255, 107, 26, .02));
  box-shadow:
    inset 0 0 0 1px rgba(255, 107, 26, .28),
    0 0 24px -6px rgba(255, 107, 26, .35);
  flex-shrink: 0;
  transition: box-shadow .4s, background .4s;
}
.draw-host:hover .ico-tile,
.ico-tile.draw-host:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 107, 26, .55),
    0 0 30px -4px rgba(255, 107, 26, .5);
}
.ico-tile--lg { width: 64px; height: 64px; border-radius: 18px; }
.ico-tile--lg .ico { width: 30px; height: 30px; stroke-width: 1.1; }

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s, color .35s;
}
.btn--sm { height: 42px; padding: 0 20px; font-size: 13px; }

.btn--primary {
  color: #160903;
  background: linear-gradient(180deg, #FF8A3D, #FF6B1A 55%, #E2540E);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    0 10px 30px -8px rgba(255, 107, 26, .65),
    0 0 0 1px rgba(255, 138, 61, .6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    0 16px 40px -8px rgba(255, 107, 26, .85),
    0 0 0 1px rgba(255, 160, 90, .8);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .7), 0 0 30px -10px rgba(255, 107, 26, .6);
  color: #fff;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .3);
  transition: box-shadow .35s, background .35s, transform .35s var(--ease-out);
}
.round-btn .ico { width: 20px; height: 20px; }
.round-btn:hover {
  background: rgba(255, 107, 26, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .7), 0 0 26px -6px rgba(255, 107, 26, .6);
}
.round-btn:active { transform: scale(.94); }

/* ---------- Списки с тонким тире ---------- */

.list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.list li + li { margin-top: 7px; }
.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Цена ---------- */

.price {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
}
.price small {
  font-size: 13px;
  color: var(--dim);
  margin-right: 2px;
}

/* ---------- Капсула с перетекающим светом (меню и вкладки) ---------- */

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(14, 10, 9, .42);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 20px 40px -20px rgba(0, 0, 0, .8);
}
.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, rgba(255, 107, 26, .05), rgba(255, 107, 26, .45), rgba(255, 107, 26, .05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.lite .pill { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 12, 10, .9); }

.pill__btn {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--dim);
  transition: color .45s;
  white-space: nowrap;
}
.pill__btn:hover,
.pill__btn.is-hover { color: rgba(245, 240, 235, .85); }
.pill__btn.is-active { color: #fff; }

/* «софит»: мягкий свет под активным пунктом */
.pill__light {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 0;
  border-radius: 999px;
  opacity: 0;
  background: radial-gradient(120% 140% at 50% 120%, rgba(255, 107, 26, .38), rgba(255, 107, 26, .06) 60%, transparent 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 26, .18);
  transition: transform .6s var(--ease), width .6s var(--ease), opacity .4s;
  pointer-events: none;
}
.pill__light::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px 1px rgba(255, 107, 26, .8);
}
.pill__light.is-on { opacity: 1; }
