/* ============================================================
   ОПТОВОЛОКНО — wholesale optical fiber landing
   Theme: dark luminous "fiber-optic" — deep navy-black,
   cyan/teal light strands, warm amber for order CTAs.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: #0d111d;
  --surface-2: #121726;
  --line: rgba(150, 180, 230, 0.12);
  --line-strong: rgba(150, 180, 230, 0.22);

  /* text */
  --text: #e9eefb;
  --text-dim: #9aa6c2;
  --text-faint: #6b7794;

  /* cool fiber accent */
  --cyan: #2ee6d6;
  --blue: #39d0ff;

  /* warm signal accent (CTAs) */
  --amber: #ffb24a;
  --amber-deep: #ff9a2e;
  --amber-ink: #2a1700;

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1180px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- Background atmosphere ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% -5%, rgba(57, 208, 255, 0.16), transparent 60%),
    radial-gradient(50% 45% at 8% 12%, rgba(46, 230, 214, 0.12), transparent 60%),
    radial-gradient(80% 60% at 50% 110%, rgba(255, 178, 74, 0.07), transparent 60%),
    var(--bg);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s, border-color .2s;
}
.btn--lg { --pad-y: 15px; --pad-x: 28px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn--cta {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: var(--amber-ink);
  box-shadow: 0 8px 28px -8px rgba(255, 154, 46, 0.55);
}
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255, 154, 46, 0.7); }

.btn--ghost { background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(46, 230, 214, 0.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5,7,13,0.9), rgba(5,7,13,0.55));
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(5,7,13,0.92); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  position: relative; width: 30px; height: 30px; border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, #133140, #07121a);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(57,208,255,0.7), transparent);
  width: 3px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 12px 2px rgba(57,208,255,0.6);
}
.brand-mark__pulse {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px 3px var(--cyan);
  animation: markPulse 2.6s ease-in-out infinite;
}
@keyframes markPulse {
  0%,100% { transform: translateY(9px); opacity: 0.3; }
  50% { transform: translateY(-9px); opacity: 1; }
}
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.04em; }
.brand-text__accent { color: var(--cyan); }

.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { color: var(--text-dim); font-weight: 600; font-size: 0.92rem; position: relative; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--cyan); transition: width .25s ease;
}
.nav a:hover { color: var(--text); } .nav a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px clamp(20px,5vw,48px) 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 6px; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: 1px solid transparent; margin-top: 10px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 8vw, 96px); overflow: hidden; }
.fiber-strands { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.strand-base path { fill: none; stroke: rgba(120, 170, 220, 0.14); stroke-width: 1; }
.strand-pulse path {
  fill: none; stroke: url(#strandGrad); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 150 2400; stroke-dashoffset: 2550;
  filter: drop-shadow(0 0 6px rgba(57, 208, 255, 0.7));
  animation: travel var(--d, 7s) linear var(--delay, 0s) infinite;
}
@keyframes travel { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(46, 230, 214, 0.05);
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.02em;
  margin: 26px 0 0;
}
.hero-title .hl {
  color: transparent; background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: var(--text-dim); margin: 24px 0 0; max-width: 640px; }
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; max-width: 760px; }
.hero-stats > div { padding-left: 18px; border-left: 2px solid var(--line-strong); }
.hero-stats dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1; color: #fff; }
.hero-stats dd { color: var(--text-faint); font-size: 0.86rem; margin-top: 7px; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.trust-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 20px 0; }
.trust-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.trust-list li { position: relative; padding-left: 20px; color: var(--text-dim); font-weight: 600; font-size: 0.92rem; }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 9px 1px rgba(46,230,214,0.8);
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-kicker { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--cyan); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 0; }
.section-lead { color: var(--text-dim); font-size: 1.05rem; margin-top: 16px; }
.section-lead .mono { color: var(--text); }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9); }
.card--featured {
  border-color: rgba(46, 230, 214, 0.4);
  background: linear-gradient(180deg, rgba(46,230,214,0.06), var(--surface) 40%);
  box-shadow: 0 0 0 1px rgba(46,230,214,0.12), 0 30px 70px -40px rgba(46,230,214,0.5);
}
.ribbon {
  position: absolute; top: 16px; right: -1px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber-ink); background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  padding: 6px 14px 6px 16px; border-radius: 999px 0 0 999px;
  box-shadow: 0 6px 18px -6px rgba(255,154,46,0.6);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-titles h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.card-origin { color: var(--text-faint); font-size: 0.82rem; margin-top: 4px; }
.badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge--stock { color: var(--cyan); background: rgba(46,230,214,0.1); border: 1px solid rgba(46,230,214,0.3); }
.badge--preorder { color: var(--amber); background: rgba(255,178,74,0.1); border: 1px solid rgba(255,178,74,0.3); }
.card-reel { color: var(--text-dim); font-size: 0.9rem; margin: 16px 0 4px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.card-reel .mono { color: var(--text); }

.price-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; }
.price-table th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); padding: 0 0 8px; }
.price-table th:last-child { text-align: right; }
.price-table td { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.96rem; color: var(--text-dim); }
.price-table td:last-child { text-align: right; color: var(--text); font-weight: 700; }
.price-table tr.best td { color: #fff; }
.price-table tr.best td:last-child { color: var(--cyan); }
.price-table tr.best td:first-child::before { content: "★ "; color: var(--cyan); font-size: 0.8em; }

.card-defer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 16px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025); border: 1px solid var(--line);
}
.defer-label { font-size: 0.8rem; color: var(--text-faint); max-width: 60%; line-height: 1.35; }
.defer-price { font-size: 1.15rem; font-weight: 700; color: var(--amber); }
.defer-price span { font-size: 0.7em; color: var(--text-faint); }

.card-meta { list-style: none; margin: 16px 0; display: flex; flex-direction: column; gap: 1px; }
.card-meta li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.card-meta span { color: var(--text-faint); }
.card-meta b { color: var(--text); font-weight: 700; }
.card .btn { margin-top: auto; }

.cards-note { text-align: center; color: var(--text-faint); font-size: 0.9rem; max-width: 720px; margin: 32px auto 0; }

/* ---------- Payment ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pay-card {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.pay-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.pay-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pay-card:hover::before { transform: scaleX(1); }
.pay-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); font-weight: 700; }
.pay-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 14px 0 10px; }
.pay-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Logistics timeline ---------- */
.logi-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.timeline { list-style: none; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 20px; padding-bottom: 30px; position: relative; }
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.timeline-step {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--cyan); font-size: 0.95rem; font-weight: 700;
}
.timeline h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 5px; }
.timeline p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Terms ---------- */
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.term {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.term b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.term span { color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(120% 100% at 50% 0%, rgba(57,208,255,0.06), transparent 55%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-copy .section-kicker, .contact-copy .section-title, .contact-copy .section-lead { text-align: left; }
.contact-copy .section-title { margin-top: 12px; }
.phone-block {
  display: flex; flex-direction: column; gap: 6px; margin-top: 34px;
  padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46,230,214,0.07), rgba(57,208,255,0.04));
  border: 1px solid rgba(46,230,214,0.28);
  transition: transform .2s ease, border-color .25s, box-shadow .3s; width: 100%;
}
.phone-block:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 22px 50px -28px rgba(46,230,214,0.6); }
.phone-block__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.phone-block__num { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 700; color: #fff; line-height: 1.1; }
.phone-block__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--cyan); font-size: 0.95rem; }

.footer-phone { display: inline-block; margin-top: 16px; font-size: 1.15rem; font-weight: 700; color: var(--text); transition: color .2s; }
.footer-phone:hover { color: var(--cyan); }

.order-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }
.field label .optional { color: var(--text-faint); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 76px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa6c2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,214,0.15);
}
.field input.invalid, .field textarea.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,0.15); }
.form-status { font-size: 0.9rem; min-height: 1.2em; text-align: center; }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: #ff8a8a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 52px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.footer-brand .brand-text { font-size: 1.1rem; }
.footer-brand p { color: var(--text-faint); font-size: 0.92rem; margin-top: 12px; max-width: 360px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: flex-end; }
.footer-nav a { color: var(--text-dim); font-weight: 600; font-size: 0.92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-legal { grid-column: 1 / -1; color: var(--text-faint); font-size: 0.82rem; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 0.1s + 0.1s); }
@keyframes reveal { to { opacity: 1; transform: none; } }

.in-view { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.in-view.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards, .pay-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .logi-inner, .contact-inner { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .card-defer { flex-direction: column; align-items: flex-start; }
  .defer-label { max-width: 100%; }
  .trust-inner { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .in-view { opacity: 1; transform: none; }
}
