/* =========================================================
   Stellar Engineering — дизайн-система
   ========================================================= */
:root {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --surface: #151a23;
  --surface-2: #1b212c;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef1f5;
  --muted: #95a0b1;
  --accent: #ff7a1a;
  --accent-2: #ffb15c;
  --accent-glow: rgba(255, 122, 26, .35);
  --steel: #a9bccf;
  --ok: #38c793;
  --danger: #ff5c5c;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.6; color: #d5dbe4; }

.h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.02em; }
.h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.015em; }
.h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--accent-2); }

/* ---------- Кнопки ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em; white-space: nowrap;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: linear-gradient(135deg, var(--accent), #ff9440); color: #140a02; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--accent:hover { box-shadow: 0 16px 40px -10px var(--accent-glow); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--sm { --bh: 40px; padding: 0 18px; font-size: .9rem; }
.btn--lg { --bh: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-2); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(4px); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 4px; }
.checklist--lg li { font-size: 1.08rem; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: border-color .3s;
  border-bottom: 1px solid transparent;
}
/* Фон с размытием — на псевдоэлементе, чтобы backdrop-filter не обрезал fixed-меню на мобильных */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(11, 14, 19, .82); backdrop-filter: blur(14px) saturate(140%); }
.header.is-scrolled, body:not(.page-home) .header { border-bottom-color: var(--line); }
.header.is-scrolled::before, body:not(.page-home) .header::before, .nav-open .header::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 34px; height: 40px; transition: transform .8s var(--ease); }
.brand:hover .brand__logo { transform: rotate(60deg); }
.brand__name { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.brand__name span { font-size: .6rem; font-weight: 400; letter-spacing: .32em; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: #cfd6e0; border-radius: 10px; transition: color .2s; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__group { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 6px); left: -10px; min-width: 260px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.nav__group:hover .nav__dropdown, .nav__group:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: #cfd6e0; }
.nav__dropdown a:hover { background: var(--surface-2); color: #fff; }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; flex-direction: column; text-align: right; line-height: 1.2; font-weight: 700; }
.header__phone small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 50px) 0 100px; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 700px at 75% 40%, #171d28 0%, var(--bg) 65%);
}
.hero__aurora { position: absolute; inset: 0; z-index: -3; filter: blur(70px); opacity: .7; }
.hero__aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.hero__aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 50%; top: -10%; background: radial-gradient(circle, rgba(255, 122, 26, .45), transparent 60%); }
.hero__aurora span:nth-child(2) { width: 38vw; height: 38vw; left: 70%; top: 40%; background: radial-gradient(circle, rgba(255, 177, 92, .3), transparent 60%); animation-delay: -6s; }
.hero__aurora span:nth-child(3) { width: 40vw; height: 40vw; left: -10%; top: 50%; background: radial-gradient(circle, rgba(90, 130, 200, .22), transparent 60%); animation-delay: -12s; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__stars {
  position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #ffd8b0, transparent),
    radial-gradient(1px 1px at 40% 75%, #fff, transparent),
    radial-gradient(1px 1px at 60% 45%, #cfe3ff, transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent),
    radial-gradient(1px 1px at 92% 85%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.hero__layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px);
  font-size: .86rem; font-weight: 600; color: #d8dee7;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(56, 199, 147, .2); animation: pulse 2s infinite; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2.2rem, 4.1vw, 3.9rem); line-height: 1.05; margin-bottom: 26px;
}
.hero__title em, .grad {
  font-style: normal; background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, #ffe0bd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 580px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #c3cad5; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.hero__photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6;
  border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.hero__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(200deg, transparent 40%, rgba(11, 14, 19, .75)), linear-gradient(0deg, rgba(255, 122, 26, .12), transparent 40%); }
.hero__photo::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 177, 92, .6), transparent 35%, transparent 65%, rgba(255, 255, 255, .25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
.hero__emblem { position: absolute; z-index: 3; width: 120px; right: -28px; top: -34px; opacity: .9; animation: spinFlat 40s linear infinite; filter: drop-shadow(0 0 30px rgba(255, 177, 92, .55)); }
.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px;
  background: rgba(21, 26, 35, .72); backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7); animation: bob 6s ease-in-out infinite;
}
.float-card b { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--accent-2); }
.float-card span { font-size: .9rem; color: #cbd2dc; line-height: 1.3; }
.float-card small { display: block; color: var(--muted); font-size: .8rem; }
.float-card span b { font-size: 1rem; color: var(--text); font-family: var(--font-body); font-weight: 700; }
.float-card--a { left: -36px; bottom: 18%; }
.float-card--b { right: -20px; bottom: -22px; animation-delay: -3s; }
.float-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #08130e; flex: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: scrollDot 1.8s infinite; }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-display); font-size: 1.05rem; color: #c6ceda; white-space: nowrap; }
.marquee__track i { color: var(--accent); font-style: normal; }

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .muted { margin-top: 16px; font-size: 1.08rem; }
.section-head--left { text-align: left; margin: 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }

/* Карточки услуг */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 32px; min-height: 340px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.service-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%); opacity: 0; transition: opacity .4s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 26, .45); }
.service-card:hover::after { opacity: 1; }
.service-card__num { position: absolute; top: 26px; right: 30px; font-family: var(--font-display); font-size: .9rem; color: var(--muted); }
.service-card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; margin-bottom: 26px;
  color: var(--accent-2); background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .22);
}
.service-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.service-card__sub { display: block; color: var(--accent-2); font-size: .92rem; font-weight: 600; margin: 6px 0 14px; }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card .link-arrow { margin-top: auto; position: relative; z-index: 1; }
.service-card--cta { background: linear-gradient(140deg, #ff7a1a, #ff9f4a 55%, #ffc078); color: #1a0d03; border: 0; border-radius: var(--radius); }
.service-card--cta .service-card__icon { color: #1a0d03; background: rgba(0, 0, 0, .1); border-color: rgba(0, 0, 0, .15); }
.service-card--cta p { color: rgba(26, 13, 3, .8); }
.service-card--cta .link-arrow { color: #1a0d03; }
.service-card--cta:hover { transform: translateY(-6px) rotate(-.4deg); }

/* Сплит-секции */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; background: var(--bg-2); }
.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split:hover .split__media img { transform: scale(1.04); }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-2)); }
.split__body { align-self: center; padding: clamp(40px, 6vw, 96px); max-width: 680px; }
.split__body .h2 { margin-bottom: 22px; font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.h1, .h2, .h3 { overflow-wrap: break-word; hyphens: auto; }
.split__body p { color: #c3cbd6; }
.split--reverse .split__media { order: 2; }
.split--reverse .split__media::after { background: linear-gradient(270deg, transparent 60%, var(--bg-2)); }
.split--reverse .split__body { justify-self: end; }

/* Процесс */
.process { background: radial-gradient(900px 400px at 50% 0, rgba(255, 122, 26, .08), transparent 70%); }
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.process__list::before { content: ""; position: absolute; top: 31px; left: 32px; right: 32px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line-strong)); }
.process__list li { position: relative; }
.process__n {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 22px;
  font-family: var(--font-display); font-weight: 600; color: var(--accent-2);
  background: var(--bg); border: 1px solid rgba(255, 122, 26, .45); box-shadow: 0 0 0 8px var(--bg);
}
.process__list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; margin-bottom: 10px; }
.process__list p { color: var(--muted); font-size: .95rem; }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 36px 32px; transition: background .3s; }
.feature:hover { background: var(--surface); }
.feature .icon { color: var(--accent); margin-bottom: 20px; }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Продукция */
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.products--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s; }
.product:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.product__img { aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); }
.product__body { padding: 22px; }
.product__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 8px; }
.product__body p { color: var(--muted); font-size: .93rem; }
.product__body p.muted { font-size: .9rem; }

/* Мозаика / галерея */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mosaic__item { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.9); }
.mosaic__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-weight: 600; font-size: .9rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.07); filter: saturate(1.1); }
.mosaic__item:hover span { opacity: 1; transform: none; }
.page-home .mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic__item.is-hidden { display: none; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tabs__btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-weight: 600; cursor: pointer; transition: .2s; }
.tabs__btn small { color: var(--muted); margin-left: 4px; }
.tabs__btn:hover { border-color: var(--accent); }
.tabs__btn.is-active { background: var(--accent); border-color: var(--accent); color: #140a02; }
.tabs__btn.is-active small { color: rgba(20, 10, 2, .7); }

/* Отзывы */
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { margin: 0; padding: 34px; display: flex; flex-direction: column; }
.review__quote { color: var(--accent); opacity: .8; margin-bottom: 16px; }
.review blockquote { margin: 0 0 28px; color: #d3d9e2; font-size: 1.02rem; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.review figcaption b { display: block; }
.review figcaption small { color: var(--muted); }
.review__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0d03; font-weight: 800; }

/* CTA-полоса */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vw, 130px) 0; text-align: center; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 19, .9), rgba(11, 14, 19, .72), rgba(11, 14, 19, .92)); }
.cta-band__inner { max-width: 760px; }
.cta-band p { color: #cbd2dc; font-size: 1.12rem; margin: 18px auto 34px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__grid .section-head .muted { margin: 16px 0 20px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s; }
.faq__item[open] { border-color: rgba(255, 122, 26, .4); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 700; font-size: 1.04rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { color: var(--accent); transition: transform .3s var(--ease); }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Блок «Свяжитесь с нами» ---------- */
.quote { padding: clamp(72px, 9vw, 120px) 0; background: radial-gradient(800px 500px at 0% 100%, rgba(255, 122, 26, .1), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote__intro .h2 { margin-bottom: 20px; }

.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: 24px;
  border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, .5); box-shadow: 0 24px 60px -30px var(--accent-glow); }
.contact-card__icon { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 18px; color: var(--accent-2); background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .25); }
.contact-card__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.contact-card__body small { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card__body b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.55vw, 1.4rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-card__body em { font-style: normal; color: var(--muted); font-size: .92rem; }
.contact-card__arrow { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.contact-card:hover .contact-card__arrow { color: var(--accent); transform: translateX(4px); }
.contact-card--accent { background: linear-gradient(140deg, #ff7a1a, #ff9f4a 55%, #ffc078); border: 0; color: #1a0d03; }
.contact-card--accent .contact-card__icon { color: #1a0d03; background: rgba(0, 0, 0, .1); border-color: rgba(0, 0, 0, .15); }
.contact-card--accent small, .contact-card--accent em, .contact-card--accent .contact-card__arrow { color: rgba(26, 13, 3, .75); }
.contact-card--accent:hover .contact-card__arrow { color: #1a0d03; }
.contact-card__row { display: flex; gap: 12px; }

.form__success-icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; color: #08130e; background: var(--ok); box-shadow: 0 0 0 10px rgba(56, 199, 147, .15); margin: 0 auto; }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 90px) 0 80px; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 14, 19, .96), rgba(11, 14, 19, .7)), linear-gradient(0deg, var(--bg), transparent 50%); }
.page-hero .h1 { max-width: 18ch; }
.page-hero__sub { margin: 16px 0 0; font-size: 1.2rem; color: var(--accent-2); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: .9rem; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.about-intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { padding: 34px; }
.pillar .icon { color: var(--accent); margin-bottom: 20px; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; }
.pillar--img { padding: 0 0 30px; overflow: hidden; }
.pillar--img img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; margin-bottom: 24px; }
.pillar--img h3, .pillar--img p { padding: 0 28px; }

.services-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.services-list__item { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.services-list__item:hover { border-color: rgba(255, 122, 26, .45); transform: translateX(4px); }
.services-list__icon { color: var(--accent-2); }
.services-list__text { flex: 1; }
.services-list__text b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.services-list__text small { color: var(--muted); font-size: .92rem; }
.services-list__arrow { color: var(--muted); transition: color .3s; }
.services-list__item:hover .services-list__arrow { color: var(--accent); }

.trust { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }

.services-rows { display: grid; gap: 16px; }
.service-row { display: grid; grid-template-columns: 120px 1.3fr 1fr auto; gap: 34px; align-items: center; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s; }
.service-row:hover { border-color: rgba(255, 122, 26, .4); }
.service-row__head { display: flex; flex-direction: column; gap: 12px; }
.service-row__head .service-card__icon { margin: 0; }
.service-row__num { font-family: var(--font-display); color: var(--muted); font-size: .9rem; }
.service-row__main p { color: var(--muted); margin: 0; }
.service-row__main .service-card__sub { margin-bottom: 10px; }
.service-row__main a:hover { color: var(--accent-2); }
.service-row__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; color: #c8cfd9; }
.service-row__features .icon { color: var(--accent); margin-right: 6px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.detail__main p { color: #c8d0da; }
.detail__main .lead { color: var(--text); margin-bottom: 1.4em; }
.detail__img { border-radius: var(--radius); margin-top: 30px; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.detail__card { padding: 30px; display: grid; gap: 14px; }
.detail__card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.detail__card .checklist { margin: 0 0 10px; }

.contacts { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.contacts__info { display: grid; gap: 14px; align-content: start; }
.contact-tile { display: flex; gap: 18px; align-items: center; padding: 22px 24px; transition: border-color .3s; }
a.contact-tile:hover { border-color: rgba(255, 122, 26, .45); }
.contact-tile small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.contact-tile b { font-size: 1.08rem; font-weight: 700; }
.contact-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; color: var(--accent-2); background: rgba(255, 122, 26, .1); }
.contacts__messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.contacts__map { position: relative; overflow: hidden; min-height: 460px; }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.contacts__route { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); font-weight: 700; font-size: .92rem; }
.contacts__route:hover { border-color: var(--accent); }

.prose { max-width: 820px; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 36px 0 12px; }
.prose p { color: #c8d0da; }
.prose a { color: var(--accent-2); text-decoration: underline; }

.status-page { min-height: 80vh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 60px); }
.status-page__inner { text-align: center; max-width: 720px; display: grid; gap: 20px; justify-items: center; }
.status-page__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Подвал ---------- */
.footer { background: #07090d; border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__about p { color: var(--muted); margin: 20px 0; max-width: 320px; font-size: .95rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: .2s; }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__title { font-family: var(--font-display); font-size: .95rem; font-weight: 500; margin-bottom: 20px; }
.footer__list, .footer__contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.footer__list a { color: var(--muted); transition: color .2s; }
.footer__list a:hover { color: var(--text); }
.footer__contacts li { display: flex; gap: 12px; color: var(--muted); }
.footer__contacts .icon { color: var(--accent); margin-top: 4px; }
.footer__contacts a { color: var(--text); font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding: 24px; border-top: 1px solid var(--line); color: #6b7586; font-size: .85rem; }

.fab-call { display: none; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5, 7, 10, .94); backdrop-filter: blur(6px); animation: fadeIn .25s; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; transition: .2s; }
.lightbox button:hover { border-color: var(--accent); color: var(--accent-2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; transform: scaleX(-1); }
.lightbox__nav--next { right: 20px; }

/* ---------- Анимации ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Первый экран появляется сразу по загрузке, без ожидания прокрутки */
.hero .reveal { transition: none; animation: heroIn .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 100ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes twinkle { from { opacity: .25; } to { opacity: .7; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-row { grid-template-columns: 90px 1fr 1fr; }
  .service-row > .btn { grid-column: 2 / -1; justify-self: start; }
  .process__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process__list::before { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .header .nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 20px 24px 40px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s var(--ease);
  }
  .nav-open .header .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 16px 0; font-size: 1.25rem; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--accent-2); }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 6px 0 10px 14px; min-width: 0; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 28px; font-weight: 700; }
  .nav__mobile-extra a { display: flex; align-items: center; gap: 10px; }
  .nav__mobile-extra .icon { color: var(--accent); }
  .nav-open { overflow: hidden; }

  .services-grid, .reviews__grid, .pillars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split__media { height: 320px; order: 0 !important; }
  .split__media::after { background: linear-gradient(0deg, var(--bg-2), transparent 50%) !important; }
  .split__body { padding: 40px 24px 70px; }
  .faq__grid, .quote__grid, .about-intro, .trust, .detail, .contacts { grid-template-columns: minmax(0, 1fr); }
  .detail__aside { position: static; }
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__emblem { width: 90vw; right: -30vw; }
  .cta-band__bg { background-attachment: scroll; }

  .fab-call {
    display: grid; place-items: center; position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff9440); color: #140a02; box-shadow: 0 12px 30px -6px var(--accent-glow);
  }
  .fab-call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2s infinite; }
}
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-bottom: 70px; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 40px; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }
  .services-grid, .reviews__grid, .pillars, .features, .services-list, .products, .products--wide, .process__list { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .product__body { padding: 16px; }
  .product__body p { font-size: .88rem; }
  .service-card { min-height: 0; padding: 26px; }
  .service-row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; }
  .service-row > .btn { grid-column: auto; }
  .service-row__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__bottom { padding: 20px 0 90px; }
  .contacts__map { min-height: 340px; }
  .contact-card { padding: 20px; gap: 14px; }
  .contact-card__icon { width: 48px; height: 48px; border-radius: 14px; }
  .contact-card__arrow { display: none; }
  .contact-card__body b { white-space: normal; overflow-wrap: anywhere; }
  .contact-card__row { flex-direction: column; }
  .lightbox__nav { top: auto; bottom: 20px; }
  .brand__name { font-size: .9rem; }
}

/* =========================================================
   v2 — современные блоки
   ========================================================= */

/* Шапка-капсула */
.header { top: 12px; height: var(--header-h); border-bottom: 0 !important; }
.header::before { display: none; }
.header__inner { position: relative; max-width: calc(var(--container) + 24px); height: 100%; padding: 0 12px 0 22px; }
/* Стекло — на псевдоэлементе: backdrop-filter на самом контейнере обрезал бы fixed-меню на мобильных */
.header__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; opacity: 0; transition: opacity .35s;
  background: rgba(16, 20, 27, .72); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8);
}
.header.is-scrolled .header__inner::before, body:not(.page-home) .header .header__inner::before, .nav-open .header .header__inner::before { opacity: 1; }
.nav__link.is-active::after { bottom: 2px; }

/* Полоса прогресса прокрутки */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }

/* Подсветка за курсором */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 122, 26, .14), transparent 60%);
}
.spot:hover::before { opacity: 1; }

.section-head__aside { max-width: 420px; margin: 0; }

/* Бенто-сетка услуг */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.bento__item {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .4s var(--ease), border-color .4s;
}
.bento__item:hover { transform: translateY(-5px); border-color: rgba(255, 122, 26, .45); }
.bento__item:nth-child(2) { grid-column: span 2; }
.bento__item--hero { grid-column: span 2; grid-row: span 2; min-height: 540px; background: var(--bg); }
.bento__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item--hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 14, 19, .97) 15%, rgba(11, 14, 19, .55) 55%, rgba(11, 14, 19, .2)); }
.bento__item--hero:hover .bento__bg { transform: scale(1.05); }
.bento__item--hero h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.bento__item--hero p { color: #c9d0da; max-width: 460px; }
.bento__top { display: flex; justify-content: space-between; align-items: flex-start; }
.bento__top .service-card__icon { margin: 0; }
.bento__top .service-card__num { position: static; }
.bento__item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.bento__item p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.bento__item--cta { background: linear-gradient(140deg, #ff7a1a, #ff9f4a 55%, #ffc078); border: 0; color: #1a0d03; }
.bento__item--cta .service-card__icon { color: #1a0d03; background: rgba(0, 0, 0, .1); border-color: rgba(0, 0, 0, .15); margin: 0; }
.bento__item--cta p { color: rgba(26, 13, 3, .78); }
.bento__item--cta .link-arrow { color: #1a0d03; }

/* Цифры */
.stats { padding: 0 0 clamp(60px, 7vw, 100px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.stat { padding: 34px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin-bottom: 12px; background: linear-gradient(180deg, #fff, #aab4c3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }
.stat b span { color: inherit; font-size: inherit; }

/* Лента фото пресс-форм */
.showcase-section { overflow: hidden; }
.showcase__nav { display: flex; gap: 10px; }
.round-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; transition: .25s; }
.round-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.round-btn--prev .icon { transform: scaleX(-1); }
.showcase {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px)) 10px;
  scroll-padding-inline: max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.showcase::-webkit-scrollbar { display: none; }
.showcase__item { position: relative; flex: 0 0 clamp(260px, 30vw, 420px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; border: 1px solid var(--line); }
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.showcase__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 45%); }
.showcase__item span { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; font-weight: 700; font-size: 1rem; }
.showcase__item:hover img { transform: scale(1.06); }

/* Тонкая градиентная рамка у карточек */
.review, .pillar { position: relative; }
.review::after, .pillar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 177, 92, .35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Cookie-баннер */
.cookie {
  position: fixed; z-index: 90; left: 20px; bottom: 20px; max-width: 440px; padding: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px;
  border-radius: 22px; background: rgba(21, 26, 35, .9); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85); animation: cookieIn .6s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie__icon { font-size: 1.8rem; line-height: 1; }
.cookie p { margin: 0; font-size: .9rem; color: #cbd2dc; }
.cookie a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cookie.is-leaving { animation: cookieOut .4s var(--ease) forwards; }

.footer__req { color: #8892a2; }

@keyframes drift { to { transform: translate(-6vw, 4vh) scale(1.15); } }
@keyframes spinFlat { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(56, 199, 147, 0); } }
@keyframes cookieIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes cookieOut { to { opacity: 0; transform: translateY(30px); } }

@media (prefers-reduced-motion: reduce) {
  .hero__aurora span, .float-card, .hero__emblem { animation: none !important; }
}

@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--hero { grid-row: auto; min-height: 420px; }
  .bento__item:nth-child(2) { grid-column: auto; }
  .bento__item--cta { grid-column: span 2; }
}

@media (max-width: 960px) {
  .header { top: 8px; }
  .header__inner { margin: 0 10px; width: auto; padding: 0 8px 0 18px; }
  .header .nav { inset: calc(var(--header-h) + 16px) 10px auto; max-height: calc(100svh - var(--header-h) - 36px); border-radius: 24px; border: 1px solid var(--line-strong); }
  .hero__layout { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .float-card--a { left: 12px; bottom: auto; top: 16px; }
  .float-card--b { right: 12px; bottom: -18px; }
  .hero__emblem { width: 80px; right: -8px; top: -26px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head__aside { max-width: none; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bento__item--hero, .bento__item--cta { grid-column: auto; }
  .bento__item--hero { min-height: 380px; }
  .float-card { padding: 12px 14px; }
  .float-card b { font-size: 1.6rem; }
  .stat { padding: 24px 18px; }
  .showcase__item { flex-basis: 78vw; }
  .showcase__nav { display: none; }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; grid-template-columns: minmax(0, 1fr); }
  .cookie__icon { display: none; }
  .cookie__actions { grid-column: 1; }
  .cookie__actions .btn { flex: 1; }
}
