:root {
  --bg: #070a18;
  --bg2: #0a0e1f;
  --teal: #14b8a6;
  --emerald: #34d399;
  --orange: #f97316;
  --text: #f8fafc;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(94, 234, 212, 0.16);
  --font-head: 'Tektur', sans-serif;
  --font-body: 'Onest', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 800px at 70% -10%, #10203a 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(20, 184, 166, 0.4); }

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; }

/* ===== Logo animation ===== */
.lg-p { stroke-dasharray: 300; stroke-dashoffset: 300; animation: lg-draw 1.1s ease forwards; }
.lg-f1 { animation-delay: 0.15s; }
.lg-f2 { animation-delay: 0.3s; }
.lg-f3 { animation-delay: 0.45s; }
.lg-body { animation-delay: 0s; }
.lg-beak { animation-delay: 0.85s; animation-duration: 0.4s; }
.lg-t1 { animation-delay: 0.55s; }
.lg-t2 { animation-delay: 0.7s; }
.lg-ring { animation-delay: 0.9s; animation-duration: 1.4s; }
.lg-eye { opacity: 0; animation: lg-blink 0.5s ease 1.1s forwards; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
@keyframes lg-blink { to { opacity: 1; } }
.lg-sway { transform-origin: 60px 65px; animation: lg-sway 6s ease-in-out 2s infinite alternate; }
@keyframes lg-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.pre-logo { filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.5)); }
.nav-mark, .form-bird { filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.35)); }

/* ===== Background layers ===== */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ornament {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%2334d399' stroke-width='1'%3E%3Cpath d='M48 8 58 38 88 48 58 58 48 88 38 58 8 48 38 38z'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 5vw;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(7, 10, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(94, 234, 212, 0.12);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-word { font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: 0.14em; color: var(--text); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.25s; }
.nav-links a:hover { color: var(--emerald); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav-phone:hover { color: var(--emerald); }
.lang-switch {
  display: flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: 0.05em;
  padding: 6px 11px; border-radius: 999px;
  transition: color 0.25s, background 0.3s, box-shadow 0.3s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: linear-gradient(120deg, var(--teal), var(--emerald));
  color: #04342c; box-shadow: 0 0 14px rgba(20, 184, 166, 0.35);
}
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 49; width: min(320px, 85vw);
  background: rgba(10, 14, 31, 0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 8px; padding: 90px 32px 32px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 19px; font-weight: 600; padding: 12px 0; }
.mobile-menu .btn { margin-top: 16px; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 14px; text-decoration: none; cursor: pointer;
  border: 0; color: var(--text); position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-glow {
  background: linear-gradient(120deg, var(--teal), var(--emerald) 60%, #6ee7b7);
  color: #04342c;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.35), 0 4px 18px rgba(0, 0, 0, 0.35);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(52, 211, 153, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4); }
.btn-ghost {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(94, 234, 212, 0.45); box-shadow: 0 0 24px rgba(20, 184, 166, 0.18); }

/* ===== Hero ===== */
.hero {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 120px 5vw 80px; text-align: left;
}
.hero-inner { max-width: 640px; margin-left: 2vw; }
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 6vw, 66px); line-height: 1.12; letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero-title em { font-style: normal; background: linear-gradient(100deg, var(--teal), var(--emerald) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 36px; }
.hero-chips { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
.chip {
  font-size: 13.5px; font-weight: 600; color: #ccfbf1;
  padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
/* ===== Marquee ===== */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(94, 234, 212, 0.1); border-bottom: 1px solid rgba(94, 234, 212, 0.1); background: rgba(10, 14, 31, 0.5); }
.marquee-track { display: flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 0.22em; color: rgba(148, 163, 184, 0.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 96px 5vw 40px; }
.feather-divider { display: flex; justify-content: center; margin-bottom: 34px; opacity: 0.8; }
.section-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4vw, 42px); text-align: center; margin-bottom: 14px; }
.section-title em { font-style: normal; background: linear-gradient(100deg, var(--teal), var(--emerald) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; }

/* ===== Cards + живые ховеры ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; perspective: 1100px; }
.card {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 30px 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease-out, border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.card::before, .step::before, .contact-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, 0.16), rgba(249, 115, 22, 0.05) 45%, transparent 68%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::before, .step:hover::before, .contact-card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(94, 234, 212, 0.45); box-shadow: 0 18px 50px rgba(5, 150, 105, 0.2); }
.card-icon {
  width: 52px; height: 52px; margin-bottom: 18px; padding: 12px; border-radius: 14px;
  background: rgba(20, 184, 166, 0.1); border: 1px solid var(--glass-border);
  transition: transform 0.4s cubic-bezier(0.22, 1.4, 0.36, 1), background 0.4s, box-shadow 0.4s;
}
.card:hover .card-icon { transform: scale(1.12) rotate(-7deg); background: rgba(20, 184, 166, 0.2); box-shadow: 0 0 22px rgba(52, 211, 153, 0.35); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 10px; transition: color 0.3s; }
.card:hover h3 { color: #a7f3d0; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; perspective: 1100px; }
.step {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 30px 26px; backdrop-filter: blur(10px);
  transition: transform 0.25s ease-out, border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.step:hover { border-color: rgba(94, 234, 212, 0.45); box-shadow: 0 18px 50px rgba(5, 150, 105, 0.18); }
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--teal), var(--emerald) 60%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter 0.4s, transform 0.4s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.step:hover .step-num { filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.65)); transform: scale(1.08); }
.step h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Requirements ===== */
.req-list { list-style: none; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.req-list li {
  display: flex; align-items: flex-start; gap: 14px; font-size: 16.5px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px 22px;
  backdrop-filter: blur(8px); transition: border-color 0.3s, transform 0.3s;
}
.req-list li:hover { border-color: rgba(94, 234, 212, 0.4); transform: translateX(4px); }
.req-check { color: var(--emerald); font-weight: 800; font-size: 18px; line-height: 1.4; text-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }

/* ===== Form ===== */
.section-form { padding-top: 110px; }
.form-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative;
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.08), rgba(10, 14, 31, 0.6) 55%);
  border: 1px solid var(--glass-border); border-radius: 28px; padding: 52px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 80px rgba(20, 184, 166, 0.08);
}
.form-side p { color: var(--muted); margin: 14px 0 22px; }
.form-side .section-title { text-align: left; }
.form-side-phone { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--emerald); text-decoration: none; }
.form-side-phone:hover { text-shadow: 0 0 20px rgba(52, 211, 153, 0.6); }
.form-bird { margin-bottom: 6px; }
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input {
  font-family: var(--font-body); font-size: 17px; color: var(--text);
  background: rgba(7, 10, 24, 0.6); border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 14px;
  padding: 15px 18px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.field input::placeholder { color: rgba(148, 163, 184, 0.5); }
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; }
.consent-box {
  flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  border: 1.5px solid rgba(148, 163, 184, 0.45); background: rgba(7, 10, 24, 0.6);
  display: flex; align-items: center; justify-content: center; transition: 0.25s; position: relative;
}
.consent-box::after { content: '✓'; font-size: 14px; font-weight: 800; color: #04342c; opacity: 0; transform: scale(0.4); transition: 0.25s; }
.consent input:checked + .consent-box { background: linear-gradient(120deg, var(--teal), var(--emerald)); border-color: transparent; box-shadow: 0 0 14px rgba(20, 184, 166, 0.4); }
.consent input:checked + .consent-box::after { opacity: 1; transform: scale(1); }
.consent input:focus-visible + .consent-box { box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3); }
.consent-text { font-size: 13px; color: var(--muted); line-height: 1.55; }
.consent-text a { color: var(--emerald); }
.form-error { color: #fda4af; font-size: 14px; min-height: 20px; margin: -6px 0; }
.btn-submit { width: 100%; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-success { grid-column: 2; text-align: center; padding: 20px; }
.form-success .success-mark {
  width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: #04342c;
  background: linear-gradient(120deg, var(--teal), var(--emerald));
  box-shadow: 0 0 50px rgba(52, 211, 153, 0.5);
  animation: pop 0.6s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 12px; }
.form-success p { color: var(--muted); margin-bottom: 22px; }

/* ===== Contacts ===== */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 28px;
  backdrop-filter: blur(10px); transition: transform 0.25s ease-out, border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.contact-card[href]:hover { border-color: rgba(94, 234, 212, 0.5); box-shadow: 0 18px 50px rgba(5, 150, 105, 0.18); }
.contacts { perspective: 1100px; }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); }
.contact-value { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.contact-hint { font-size: 14px; color: var(--muted); }

/* ===== Footer ===== */
.footer { position: relative; z-index: 1; border-top: 1px solid rgba(94, 234, 212, 0.1); margin-top: 80px; background: rgba(7, 10, 24, 0.7); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 5vw 110px; display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; letter-spacing: 0.14em; }
.footer-req { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.footer-req a { color: var(--emerald); text-decoration: none; }
.footer-note { opacity: 0.7; margin-top: 6px; }

/* ===== Sticky mobile bar ===== */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 10, 24, 0.9); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(94, 234, 212, 0.14);
  transform: translateY(110%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar .btn { flex: 1; padding: 13px 10px; font-size: 15px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .form-wrap { grid-template-columns: 1fr; padding: 36px 26px; gap: 30px; }
  .form-success { grid-column: 1; }
}
@media (max-width: 960px) {
  .hero { justify-content: center; text-align: center; }
  .hero-inner { margin-left: 0; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-cta, .hero-chips { justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 12px 4vw; gap: 14px; }
  .nav-right { display: none; }
  .nav-burger { display: block; margin-left: 0; }
  .lang-switch { margin-left: auto; }
  .lang-switch button { padding: 6px 9px; font-size: 12px; }
  .section { padding: 72px 5vw 30px; }
  .sticky-bar { display: flex; }
  .hero { padding-top: 100px; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { padding-bottom: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; animation: none; }
  .lg-p { stroke-dashoffset: 0; animation: none; }
  .lg-eye { opacity: 1; animation: none; }
}
