/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --navy-950: #060b15;
  --navy-900: #0b1526;
  --navy-800: #0e1c33;
  --navy-700: #173463;
  --navy-600: #1f4586;
  --blue-accent: #3b82f6;
  --orange: #ff9900;
  --orange-light: #ffb347;
  --white: #ffffff;
  --gray-100: #f4f6fa;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --text-dark: #10192b;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --shadow-md: 0 10px 30px rgba(6,11,21,.08);
  --shadow-lg: 0 20px 50px rgba(6,11,21,.14);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 54px; height: 54px;
  border: 3px solid rgba(255,153,0,.2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(255,153,0,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,153,0,.45); }
.btn--ghost {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(6,11,21,.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); flex-shrink: 0; }
.logo__icon { color: var(--orange); display: flex; }
.logo__text { font-size: 1.15rem; font-weight: 800; letter-spacing: .2px; }
.logo__text span { color: var(--orange); }

.nav__list { display: flex; gap: 22px; }
.nav__link {
  display: inline-block;
  color: rgba(255,255,255,.82);
  font-size: .93rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav__link:hover, .nav__link.active-link { color: var(--white); }
.nav__link:hover::after, .nav__link.active-link::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header__phone { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: .92rem; }
.header__phone svg { color: var(--orange); }

.burger {
  display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; z-index: 1000;
}
.burger span {
  display: block; height: 2px; width: 100%; background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px;
  overflow: hidden;
  color: var(--white);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,153,0,.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(59,130,246,.18), transparent 45%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero__inner { padding-bottom: 60px; }
.hero__eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(255,153,0,.4);
  border-radius: 999px;
  background: rgba(255,153,0,.08);
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: 1.13rem;
  color: rgba(255,255,255,.78);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 36px;
}
.hero__stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; }
.hero__stat .counter, .hero__stat-suffix {
  font-size: 2.2rem; font-weight: 800; color: var(--orange);
}
.hero__stat p { width: 100%; color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 4px; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 3px; background: var(--orange); animation: scrollcue 1.6s ease infinite; }
@keyframes scrollcue { 0% { opacity: 1; transform: translateY(0);} 100% { opacity: 0; transform: translateY(14px);} }

/* ==========================================================================
   Strip
   ========================================================================== */
.strip { background: var(--gray-100); padding: 26px 0; }
.strip__inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.strip__label { font-weight: 700; color: var(--gray-700); font-size: .88rem; white-space: nowrap; }
.strip__items { display: flex; gap: 26px; flex-wrap: wrap; }
.strip__items span { color: var(--gray-500); font-size: .88rem; font-weight: 600; position: relative; padding-left: 14px; }
.strip__items span::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:5px; height:5px; border-radius:50%; background: var(--orange); }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section__eyebrow {
  color: var(--orange); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-size: .82rem; margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--text-dark); max-width: 700px; }
.section__subtitle { color: var(--gray-500); max-width: 620px; margin-top: 16px; font-size: 1.03rem; }

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}
.card {
  background: var(--white);
  border: 1px solid #eceff4;
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255,153,0,.3); }

.service-card { position: relative; overflow: hidden; }
.service-card__num {
  position: absolute; top: 18px; right: 24px;
  font-size: 2.6rem; font-weight: 800; color: #f0f2f7; z-index: 0;
}
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,153,0,.15), rgba(255,153,0,.05));
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { color: var(--gray-500); font-size: .95rem; position: relative; z-index: 1; }
.service-card__list { margin-top: 16px; position: relative; z-index: 1; }
.service-card__list li {
  font-size: .87rem; color: var(--gray-700); padding-left: 18px; position: relative; margin-bottom: 7px;
}
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: .85fr 1fr; gap: 70px; align-items: center; }
.about__media-frame { position: relative; }
.about__illustration { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.badge-float {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 16px 20px; max-width: 220px;
  border-left: 4px solid var(--orange);
}
.badge-float strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.badge-float span { font-size: .82rem; color: var(--gray-500); }

.about__content p { color: var(--gray-500); margin: 22px 0 30px; font-size: 1.02rem; }
.about__points { display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.about__point { display: flex; gap: 14px; align-items: flex-start; }
.about__point svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.about__point strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.about__point p { margin: 0; font-size: .93rem; color: var(--gray-500); }

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: var(--gray-100); }
.process__steps {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.process__step {
  background: var(--white); border-radius: var(--radius-md); padding: 30px 22px;
  box-shadow: var(--shadow-md); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.process__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.process__index {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--navy-950); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.process__step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process__step p { font-size: .87rem; color: var(--gray-500); }

/* ==========================================================================
   Advantages
   ========================================================================== */
.advantages__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.advantage { display: flex; flex-direction: column; }
.advantage__icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: var(--navy-800); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.advantage__icon svg { width: 24px; height: 24px; }
.advantage h3 { font-size: 1.05rem; margin-bottom: 8px; }
.advantage p { font-size: .9rem; color: var(--gray-500); }

/* ==========================================================================
   Projects
   ========================================================================== */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 46px 0 34px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid #e2e6ee;
  color: var(--gray-700); font-weight: 600; font-size: .87rem;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }

.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  border-radius: var(--radius-md); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), opacity .35s ease, transform .35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.hide { display: none; }
.project-card__cover {
  height: 190px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cover-1 { background: linear-gradient(135deg, #1f4586, #3b82f6); }
.cover-2 { background: linear-gradient(135deg, #0e1c33, #ff9900); }
.cover-3 { background: linear-gradient(135deg, #173463, #64748b); }
.cover-4 { background: linear-gradient(135deg, #ff9900, #144187); }
.cover-5 { background: linear-gradient(135deg, #10192b, #1f4586); }
.cover-6 { background: linear-gradient(135deg, #3b82f6, #0e1c33); }
.project-card__cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-card__cover-icon {
  position: relative; z-index: 2;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(10, 18, 36, .38);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(2px);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(6,11,21,.25);
  transition: transform var(--transition);
}
.project-card:hover .project-card__cover-icon { transform: scale(1.06); }
.project-card__cover-icon svg { width: 42px; height: 42px; }
.project-card__body { padding: 24px; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--orange); background: rgba(255,153,0,.1);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.project-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.project-card p { font-size: .9rem; color: var(--gray-500); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700));
  padding: 60px 0;
}
.cta-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 480px; }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.contact-item { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.contact-item__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--gray-100); color: var(--orange); display: flex; align-items: center; justify-content: center;
}
.contact-item strong { display: block; font-size: .82rem; color: var(--gray-500); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-weight: 600; font-size: .98rem; }
.socials { display: flex; gap: 12px; margin-top: 30px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-950); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: transform var(--transition), background var(--transition);
}
.socials a:hover { background: var(--orange); color: var(--navy-950); transform: translateY(-3px); }

.contact-form {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 40px; position: relative; overflow: hidden;
  border: 1px solid #eceff4;
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form__hint { color: var(--gray-500); font-size: .9rem; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #e2e6ee; transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,153,0,.12);
}
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select { border-color: #e5484d; }
.error-msg { display: none; color: #e5484d; font-size: .78rem; margin-top: 5px; }
.form-group.has-error .error-msg, .checkbox.has-error .error-msg { display: block; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--gray-700); margin-bottom: 22px; position: relative; flex-wrap: wrap; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--orange); }

.form-success {
  display: none; text-align: center; padding: 20px 0 6px;
  color: #16a34a; flex-direction: column; align-items: center; gap: 10px;
}
.form-success.show { display: flex; }
.form-success svg { color: #16a34a; }
.contact-form.submitted .form-group,
.contact-form.submitted .checkbox,
.contact-form.submitted button[type="submit"],
.contact-form.submitted h3,
.contact-form.submitted .contact-form__hint { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding-top: 70px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.logo--footer { margin-bottom: 16px; }
.footer__col p { font-size: .9rem; line-height: 1.7; }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer__col ul li { margin-bottom: 10px; font-size: .9rem; }
.footer__col ul li a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* ==========================================================================
   To top button
   ========================================================================== */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-950); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), visibility var(--transition);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange); color: var(--navy-950); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(3, 1fr); }
  .about__grid, .contacts__grid { grid-template-columns: 1fr; gap: 50px; }
  .about__media { max-width: 420px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1240px) {
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(340px, 80%);
    background: var(--navy-950); padding: 110px 34px 40px; transition: right var(--transition); z-index: 950;
    box-shadow: -20px 0 60px rgba(0,0,0,.35);
  }
  .nav.open { right: 0; }
  .nav__list { flex-direction: column; gap: 26px; }
  .nav__link { font-size: 1.05rem; }
  .header__phone { display: none; }
  .burger { display: flex; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .services__grid, .advantages__grid, .projects__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 28px 22px; }
  .header__actions .btn { display: none; }
}

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
