/* ============================================================
   SKYFEND RU — Design System v2
   Release-ready | Bebas Neue + Roboto | Dark tech + human
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@300;400;500;700&display=swap');

/* ---- Tokens ----------------------------------------------- */
:root {
  --bg:          #0e0f10;
  --bg-2:        #141516;
  --bg-3:        #1a1b1c;
  --bg-card:     rgba(255,255,255,0.04);
  --accent:      #0095f5;
  --accent-dim:  rgba(0,149,245,0.18);
  --accent-line: rgba(0,149,245,0.35);
  --white:       #ffffff;
  --text:        rgba(255,255,255,0.90);
  --text-mid:    rgba(255,255,255,0.60);
  --text-low:    rgba(255,255,255,0.35);
  --border:      rgba(255,255,255,0.09);
  --border-mid:  rgba(255,255,255,0.18);

  --font-d:   'Bebas Neue', sans-serif;
  --font-b:   'Roboto', sans-serif;

  /* ---- backward-compat aliases (inner pages) ---------------- */
  --font-heading:  var(--font-d);
  --font-body:     var(--font-b);
  --bg-dark:       var(--bg-2);
  --bg-light:      #c8c8c8;
  --text-muted:    var(--text-low);
  --border-gray:   #636363;
  --accent-30:     rgba(0,149,245,0.18);
  --r-sm:          4px;
  --r-md:          8px;
  --section-v:     var(--sv);

  --skew:    -30deg;
  --ease:    cubic-bezier(0.23, 1, 0.32, 1);

  --hh: 68px;           /* header height */
  --pad: clamp(16px, 3.5vw, 64px);   /* horizontal padding */
  --sv:  clamp(64px, 9vw, 120px);    /* section vertical */
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); line-height: 1.6;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* ---- Container -------------------------------------------- */
.c  { width: 100%; padding: 0 var(--pad); }
.cw { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* ---- Section ---------------------------------------------- */
.s     { padding: var(--sv) 0; }
.s--dark  { background: var(--bg); }
.s--2     { background: var(--bg-2); }
.s--3     { background: var(--bg-3); }

/* ---- Typography ------------------------------------------- */
.h1 {
  font-family: var(--font-d);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.92;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.h3 {
  font-family: var(--font-d);
  font-size: clamp(20px, 2.5vw, 34px);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.model-label {
  font-family: var(--font-d);
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.body-lg  { font-size: clamp(15px, 1.4vw, 18px); color: var(--text-mid); line-height: 1.75; }
.body-md  { font-size: clamp(13px, 1.1vw, 15px); color: var(--text-mid); line-height: 1.75; }
.caption  { font-size: 12px; color: var(--text-low); letter-spacing: 0.8px; }

/* ---- Section label (/// prefix) --------------------------- */
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.sec-eyebrow::before { content: '///'; letter-spacing: -2px; }

/* ---- Dividers --------------------------------------------- */
.hr      { width: 100%; height: 1px; background: var(--border); }
.hr-a    { width: 48px; height: 2px; background: var(--accent); }
.hr-a--lg { width: 80px; height: 2px; background: var(--accent); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-d); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--border-mid);
  position: relative; overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer; white-space: nowrap;
  z-index: 1;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: -1;
}
.btn:hover { border-color: var(--accent); }
.btn:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--white); }

.btn--solid {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.btn--solid::after { background: #0077cc; }

.btn--ghost {
  border-color: rgba(255,255,255,0.3); color: var(--text-mid);
}
.btn--ghost:hover { color: var(--white); }

.btn--sm { padding: 10px 22px; font-size: 13px; }

/* Arrow icon inside btn */
.btn .arr {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative; flex-shrink: 0;
  transition: width 0.3s;
}
.btn .arr::after {
  content: '';
  position: absolute; right: 0; top: -4px;
  border: 4px solid transparent;
  border-left: 6px solid currentColor;
  border-right: none;
}
.btn:hover .arr { width: 28px; }

/* ============================================================
   HEADER
   ============================================================ */
.hd {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--hh);
  z-index: 900;
  transition: background 0.4s, box-shadow 0.4s;
}
.hd__inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0 var(--pad);
}

/* Logo */
.hd__logo a { display: flex; flex-direction: column; justify-content: center; height: 38px; }
.hd__logo img { height: 30px; width: auto; }
.hd__logo-text {
  font-family: var(--font-d); font-size: 20px; letter-spacing: 4px;
  color: var(--white);
}
.hd__logo-text b { color: var(--accent); font-weight: 400; }
.hd__logo-sub {
  display: block;
  font-family: var(--font-d);
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--text-low);
  line-height: 1;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Nav */
.hd__nav ul { display: flex; gap: 2px; }
.hd__nav li { position: relative; }
.hd__nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  font-family: var(--font-d); font-size: 14px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.hd__nav a:hover, .hd__nav a.active { color: var(--white); }

/* Dropdown */
.hd__drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px;
  background: rgba(14,15,16,0.98); backdrop-filter: blur(14px);
  border: 1px solid var(--border); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.22s; z-index: 10;
}
.hd__nav li:hover .hd__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.hd__drop a {
  display: block; padding: 9px 18px; font-size: 13px; letter-spacing: 0.5px;
  color: var(--text-mid); border-left: 2px solid transparent;
  transition: all 0.2s;
}
.hd__drop a:hover { color: var(--white); border-left-color: var(--accent); padding-left: 22px; }

/* Right side */
.hd__right { display: flex; align-items: center; gap: 12px; }
.hd__cta {
  font-family: var(--font-d); font-size: 12px; letter-spacing: 1.5px;
  padding: 8px 18px; border: 1px solid rgba(255,255,255,0.35);
  text-transform: uppercase; transition: all 0.25s; white-space: nowrap;
}
.hd__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Hamburger */

.hd__email {
  font-family: var(--font-d);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--accent-line);
  padding: 7px 16px;
  transition: background 0.2s, color 0.2s;
}
.hd__email:hover { background: var(--accent); color: var(--white); }
@media(max-width:1100px) { .hd__email { display: none; } }

.hd__ham { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hd__ham span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* Scrolled */
.hd--scroll {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
.hd--scroll .hd__logo-text { color: #111; }
.hd--scroll .hd__logo-text b { color: var(--accent); }
.hd--scroll .hd__nav a { color: rgba(0,0,0,0.7); }
.hd--scroll .hd__nav a:hover { color: #000; }
.hd--scroll .hd__cta { color: #333; border-color: rgba(0,0,0,0.25); }
.hd--scroll .hd__cta:hover { color: var(--white); }
.hd--scroll .hd__ham span { background: #333; }
.hd--scroll .hd__drop { background: rgba(255,255,255,0.98); border-color: rgba(0,0,0,0.1); }
.hd--scroll .hd__drop a { color: #555; }
.hd--scroll .hd__drop a:hover { color: #000; }

/* Mobile nav */
.mob-nav {
  display: none; position: fixed; inset: 0; z-index: 899;
  background: rgba(10,11,12,0.98);
  padding: calc(var(--hh) + 28px) var(--pad) 40px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.mob-nav.is-open { display: flex; }
.mob-nav a {
  font-family: var(--font-d); font-size: clamp(22px, 5vw, 34px);
  letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  color: var(--text-mid); transition: color 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.mob-nav a b { color: var(--accent); font-weight: 400; }
.mob-nav a:hover { color: var(--white); }
.mob-nav .mob-cta { color: var(--accent); border-bottom-color: var(--accent-line); }

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(52px, 7vw, 88px) 0 clamp(24px, 3vw, 36px);
}
.ft__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.ft__brand-name {
  font-family: var(--font-d); font-size: 26px; letter-spacing: 4px;
  color: var(--white); margin-bottom: 14px; display: block;
}
.ft__brand-name b { color: var(--accent); font-weight: 400; }
.ft__brand p { font-size: 13px; color: var(--text-low); line-height: 1.7; max-width: 260px; }
.ft__contacts { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.ft__contacts a {
  display: flex; gap: 10px; font-size: 13px; color: var(--text-low);
  align-items: baseline; transition: color 0.2s;
}
.ft__contacts a:hover { color: var(--accent); }
.ft__contacts-l { font-family: var(--font-d); font-size: 11px; letter-spacing: 1.5px; color: var(--text-low); min-width: 48px; }

.ft__col h4 {
  font-family: var(--font-d); font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-low); margin-bottom: 16px;
}
.ft__col ul { display: flex; flex-direction: column; gap: 9px; }
.ft__col a {
  font-size: 13px; color: var(--text-low); display: flex;
  align-items: center; gap: 8px; transition: color 0.2s;
}
.ft__col a::before { content: ''; display: block; width: 0; height: 1px; background: var(--accent); transition: width 0.2s; flex-shrink: 0; }
.ft__col a:hover { color: var(--white); }
.ft__col a:hover::before { width: 10px; }

.ft__bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.ft__bottom p, .ft__bottom a { font-size: 12px; color: var(--text-low); }
.ft__bottom a:hover { color: var(--accent); }
.ft__bottom-links { display: flex; gap: 20px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.pg-hero {
  padding-top: calc(var(--hh) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(48px, 7vw, 88px);
  background: var(--bg-2);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.pg-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.15;
}
.pg-hero__content { position: relative; z-index: 1; }
.pg-hero .breadcrumb {
  font-family: var(--font-d); font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.pg-hero .breadcrumb span { color: var(--text-low); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(20px, 3vw, 36px);
  position: relative; transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border-mid); transform: translateY(-2px); }

/* Product card */
.prod-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden; position: relative;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.prod-card:hover { border-color: var(--accent-line); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.prod-card__img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-3); position: relative;
}
.prod-card__img img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease); }
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card__body { padding: 20px 22px 24px; }
.prod-card__model { font-family: var(--font-d); font-size: 12px; letter-spacing: 3px; color: var(--accent); margin-bottom: 6px; }
.prod-card__name  { font-family: var(--font-d); font-size: clamp(18px, 2vw, 24px); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.prod-card__desc  { font-size: 13px; color: var(--text-mid); line-height: 1.65; }
.prod-card__foot  { padding: 0 22px 20px; display: flex; align-items: center; justify-content: space-between; }
.prod-card__tag {
  font-family: var(--font-d); font-size: 11px; letter-spacing: 2px;
  color: var(--accent); border: 1px solid var(--accent-line);
  padding: 4px 10px;
}
.prod-card__arr {
  width: 32px; height: 32px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-low);
  transition: all 0.2s;
}
.prod-card:hover .prod-card__arr { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.anim { opacity: 0; transform: translateY(28px); }
.anim.on { animation: fadeUp 0.65s var(--ease) forwards; }
.anim:nth-child(1) { animation-delay: 0s; }
.anim:nth-child(2) { animation-delay: 0.08s; }
.anim:nth-child(3) { animation-delay: 0.16s; }
.anim:nth-child(4) { animation-delay: 0.24s; }
.anim:nth-child(5) { animation-delay: 0.32s; }
.anim:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   UTILITIES
   ============================================================ */
.flex       { display: flex; }
.flex-c     { display: flex; align-items: center; }
.flex-cc    { display: flex; align-items: center; justify-content: center; }
.gap-4      { gap: 4px; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.gap-16     { gap: 16px; }
.gap-20     { gap: 20px; }
.gap-24     { gap: 24px; }
.mt-8       { margin-top: 8px; }
.mt-12      { margin-top: 12px; }
.mt-16      { margin-top: 16px; }
.mt-20      { margin-top: 20px; }
.mt-24      { margin-top: 24px; }
.mt-32      { margin-top: 32px; }
.mt-36      { margin-top: 36px; }
.mt-40      { margin-top: 40px; }
.mt-48      { margin-top: 48px; }
.mb-8       { margin-bottom: 8px; }
.mb-16      { margin-bottom: 16px; }
.mb-24      { margin-bottom: 24px; }
.mb-32      { margin-bottom: 32px; }
.text-accent { color: var(--accent); }
.text-low   { color: var(--text-low); }
.text-mid   { color: var(--text-mid); }
.text-up    { text-transform: uppercase; }
.text-center { text-align: center; }
.hidden     { display: none; }

/* Tag */
.tag {
  display: inline-block; padding: 4px 12px;
  font-family: var(--font-d); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid var(--accent-line); color: var(--accent);
}

/* Slash marker */
.sl::before { content: '/// '; color: var(--accent); letter-spacing: -1px; }

/* Accent list */
.alist { display: flex; flex-direction: column; gap: 14px; }
.alist li { display: flex; gap: 14px; font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.alist li::before { content: ''; display: block; width: 22px; height: 2px; background: var(--accent); flex-shrink: 0; margin-top: 11px; }

/* Form elements */
.f-group { display: flex; flex-direction: column; gap: 6px; }
.f-label {
  font-family: var(--font-d); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-low);
}
.f-input {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--white); padding: 13px 16px; font-size: 14px;
  outline: none; width: 100%; border-radius: 0;
  transition: border-color 0.2s, background 0.2s; -webkit-appearance: none;
}
.f-input::placeholder { color: var(--text-low); }
.f-input:focus { border-color: var(--accent); background: rgba(0,149,245,0.05); }
textarea.f-input { resize: vertical; min-height: 120px; line-height: 1.6; }
select.f-input option { background: #1a1b1c; }
.f-req { color: var(--accent); }
.f-check { display: flex; gap: 12px; cursor: pointer; }
.f-check input { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); padding: 0; cursor: pointer; }
.f-check span { font-size: 13px; color: var(--text-low); line-height: 1.55; }
.f-check a { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .ft__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .ft__grid .ft__col:last-child { display: none; }
}
@media (max-width: 800px) {
  .hd__nav, .hd__cta { display: none; }
  .hd__ham { display: flex; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .ft__grid .ft__col:last-child { display: block; }
}
@media (max-width: 480px) {
  :root { --hh: 58px; }
  .ft__grid { grid-template-columns: 1fr; }
  .ft__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---- Cookie banner ---------------------------------------- */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(14,15,16,0.97);
  border-top: 1px solid var(--border-mid);
  backdrop-filter: blur(12px);
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar__text {
  font-size: 13px; color: var(--text-mid); line-height: 1.6; max-width: 680px;
}
.cookie-bar__text a { color: var(--accent); text-decoration: underline; }
.cookie-bar__btn {
  font-family: var(--font-d); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; white-space: nowrap;
  background: var(--accent); color: var(--white);
  border: none; padding: 10px 28px; cursor: pointer;
  transition: background 0.2s; flex-shrink: 0;
}
.cookie-bar__btn:hover { background: #0077cc; }
