/* ============================================================
   ЛогистПро — Landing Page Styles
   Premium Vanilla CSS • No Tailwind
   ============================================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --primary-dark: #000230;
  --white: #FFFFFF;
  --accent-blue: #498DF0;
  --accent-orange: #FF6B35;
  --light-gray: #F5F7FA;
  --text-dark: #2D3748;
  --text-light: #718096;

  --shadow-sm: 0 2px 8px rgba(0, 2, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 2, 48, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 2, 48, 0.14);
  --shadow-xl: 0 24px 64px rgba(0, 2, 48, 0.18);
  --shadow-orange-glow: 0 8px 32px rgba(255, 107, 53, 0.35);
  --shadow-blue-glow: 0 8px 32px rgba(73, 141, 240, 0.30);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Utility — container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section padding */
section {
  padding: 100px 0;
}

/* ============================================================
   1. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(0, 2, 48, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  z-index: 1001;
  text-decoration: none;
}

.logo svg,
.logo-svg {
  width: 200px;
  height: 50px;
  flex-shrink: 0;
}

/* Logo trail animation — линия следует за стрелкой */
.logo-trail-path {
  stroke-dasharray: 120 550;
  stroke-dashoffset: 120;
  animation: logoTrail 3.5s linear infinite;
}

.logo-arrow {
  opacity: 0.95;
}

@keyframes logoTrail {
  0% { stroke-dashoffset: 120; }
  100% { stroke-dashoffset: -550; }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  transition: color var(--transition);
}

.header-phone:hover {
  color: var(--accent-blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-glow);
  background: #e85e2f;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger span:nth-child(1) {
  margin-bottom: 6px;
}

.burger span:nth-child(3) {
  margin-top: 6px;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 2, 48, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile .nav-link {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
}

.nav-mobile .nav-link:hover {
  color: var(--accent-blue);
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/images/hero-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 2, 48, 0.75) 0%,
    rgba(0, 2, 48, 0.60) 50%,
    rgba(0, 2, 48, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 120px 24px 60px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--accent-blue);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: transform var(--transition-bounce), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-orange-glow);
  background: #e85e2f;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  background: transparent;
  color: var(--accent-blue);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-blue);
  transition: background var(--transition), color var(--transition), transform var(--transition-bounce), box-shadow var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-blue-glow);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Hero stats */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.hero-stats .stat-number,
.stat-item .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero-stats .stat-label,
.stat-item .stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-top: 4px;
}

/* ============================================================
   3. SERVICES
   ============================================================ */
.services {
  background: var(--light-gray);
}

/* Shared section header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-title span {
  color: var(--accent-blue);
}

/* Dark section title variant */
.about .section-title,
.contact .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

.about .section-subtitle,
.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(73, 141, 240, 0.03), rgba(255, 107, 53, 0.03));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-blue);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-icon svg,
.service-icon img {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-blue-glow);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ============================================================
   3b. PARALLAX DIVIDERS
   ============================================================ */
.parallax-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}

.parallax-flip {
  transform: scaleY(-1);
}

.wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   3c. КАК МЫ РАБОТАЕМ (PROCESS)
   ============================================================ */
.process {
  background: var(--light-gray);
  padding-top: 40px;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(73, 141, 240, 0.12);
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(73, 141, 240, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-step:hover .step-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(73, 141, 240, 0.25);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-blue);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.process-connector {
  display: flex;
  align-items: center;
  padding-top: 70px;
  flex-shrink: 0;
  width: 50px;
}

.process-connector svg {
  width: 40px;
  height: 12px;
}

/* ============================================================
   3d. СЧЁТЧИКИ (COUNTERS)
   ============================================================ */
.counters {
  background: linear-gradient(135deg, #000230 0%, #0a1555 50%, #000230 100%);
  padding: 60px 0;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.counter-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), background var(--transition);
}

.counter-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.counter-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.counter-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ============================================================
   4. ABOUT
   ============================================================ */
.about {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow decoration */
.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(73, 141, 240, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.about-text {
  color: var(--white);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-text h2 span {
  color: var(--accent-blue);
}

.about-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  line-height: 1.75;
}

.about-list {
  margin-top: 24px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.6;
}

.about-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(73, 141, 240, 0.15);
  color: var(--accent-blue);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* About — stat cards (glassmorphism) */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 141, 240, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card .stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  line-height: 1.4;
}

/* About — advantage cards */
.about-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.advantage-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.advantage-item:hover {
  transform: translateY(-6px);
  border-color: rgba(73, 141, 240, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(73, 141, 240, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform var(--transition), background var(--transition);
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-blue);
  fill: none;
}

.advantage-item:hover .advantage-icon {
  transform: scale(1.1);
  background: rgba(73, 141, 240, 0.2);
}

.advantage-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.advantage-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ============================================================
   5. GEOGRAPHY
   ============================================================ */
.geography {
  background: var(--light-gray);
}

.geo-map-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.russia-map {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.city-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

.city-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  fill: var(--text-light);
  text-anchor: middle;
  font-weight: 600;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.route-line {
  stroke-dasharray: 8 4;
  animation: route-dash 1.5s linear infinite;
}

@keyframes route-dash {
  to { stroke-dashoffset: -24; }
}

.geo-info {
  display: flex;
  gap: 24px;
  max-width: 900px;
  margin: 28px auto 0;
}

.geo-info-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.geo-info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.geo-info-item .geo-flag {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.geo-info-item strong {
  color: var(--text-dark);
  font-weight: 700;
}

.geo-info-item div {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   6. FAQ (TABS)
   ============================================================ */
.faq {
  background: var(--white);
}

.faq-tabs {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 340px;
}

.faq-tabs-list {
  display: flex;
  flex-direction: column;
  background: var(--light-gray);
  border-right: 1px solid rgba(0, 2, 48, 0.06);
}

.faq-tab {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.faq-tab:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(0, 2, 48, 0.06);
}

.faq-tab:hover {
  color: var(--accent-blue);
  background: rgba(73, 141, 240, 0.04);
}

.faq-tab.active {
  color: var(--accent-blue);
  font-weight: 600;
  border-left-color: var(--accent-blue);
  background: var(--white);
}

.faq-panel {
  position: relative;
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
}

.faq-panel-content {
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.faq-panel-content.active {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.faq-panel-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.faq-panel-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.85;
}

/* ============================================================
   7. CONTACT FORM
   ============================================================ */
.contact {
  background: linear-gradient(160deg, var(--primary-dark) 0%, #0a0f3c 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(73, 141, 240, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.contact-info {
  color: var(--white);
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.contact-info h2 span {
  color: var(--accent-blue);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-info a {
  color: var(--accent-blue);
  transition: color var(--transition);
}

.contact-info a:hover {
  color: var(--white);
}

.contact-details {
  margin-top: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.contact-detail-item a {
  color: rgba(255, 255, 255, 0.8);
}

.contact-detail-item a:hover {
  color: var(--accent-blue);
}

.contact-messengers {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.messenger-link:hover {
  transform: translateY(-3px);
  color: var(--white);
}

.messenger-link.telegram:hover {
  background: #0088cc;
}

.messenger-link.max-vk:hover {
  background: #0077FF;
}

.messenger-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Contact form */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(73, 141, 240, 0.06);
  box-shadow: 0 0 0 3px rgba(73, 141, 240, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--accent-orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-bounce), box-shadow var(--transition), background var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-glow);
  background: #e85e2f;
}

.form-submit:active {
  transform: translateY(0) scale(0.98);
}

/* Success overlay */
.form-success {
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.form-success.show {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success.show .success-content {
  transform: scale(1);
}

.success-icon {
  margin-bottom: 20px;
}

.success-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.success-content p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.success-close {
  padding: 12px 32px;
  background: var(--accent-blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.success-close:hover {
  background: #3a7ee0;
  transform: translateY(-2px);
}

/* Form error state */
.form-group.error input,
.form-group.error textarea {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.06);
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 6px;
}

.form-group.error .form-error {
  display: block;
}

/* Stat icon check */
.stat-icon-check {
  margin-bottom: 10px;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
  background: #000120;
  padding: 60px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.footer-col {
  color: rgba(255, 255, 255, 0.65);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.logo-text-white {
  color: var(--white);
}

.logo-text-blue {
  color: var(--accent-blue);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-contacts li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-contacts li a:hover {
  color: var(--accent-blue);
}

.footer-contacts li svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contacts a,
.footer-contacts span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contacts a:hover {
  color: var(--accent-blue);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-blue);
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-3px);
}

/* Цветные иконки мессенджеров (всегда) */
.footer-social .social-telegram,
.messenger-link.telegram {
  color: #0088cc;
}

.footer-social .social-telegram:hover {
  background: #0088cc;
  color: var(--white);
}

.footer-social .social-whatsapp,
.messenger-link.whatsapp {
  color: #25D366;
}

.footer-social .social-whatsapp:hover {
  background: #25D366;
  color: var(--white);
}

.messenger-link.telegram:hover {
  color: #006fa1;
}

.messenger-link.whatsapp:hover {
  color: #1da851;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ============================================================
   9. FLOATING ELEMENTS
   ============================================================ */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.floating-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
  pointer-events: none;
}

.floating-btn:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
}

.floating-btn.telegram {
  background: #0088cc;
}

.floating-btn.telegram::after {
  box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4);
}

.floating-btn.whatsapp {
  background: #25D366;
}

.floating-btn.whatsapp::after {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
}

.floating-btn.max-vk {
  background: #0077FF;
}

.floating-btn.max-vk::after {
  box-shadow: 0 0 0 0 rgba(0, 119, 255, 0.4);
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 88px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 900;
  border: none;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

.scroll-top:hover {
  background: #3a7ee0;
  transform: translateY(-2px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   10. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.5;
  }
  70% {
    box-shadow: 0 0 0 14px currentColor;
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ============================================================
   12. LOGO ANIMATION
   ============================================================ */
.logo-container {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.logo-svg {
  display: block;
}

.logo-svg .trail-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: trailDraw 2s ease forwards;
}

.logo-svg .arrow-element {
  offset-path: path('M10,25 C40,5 80,45 120,25');
  animation: moveArrow 2s ease forwards;
}

@keyframes trailDraw {
  0% {
    stroke-dashoffset: 300;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes moveArrow {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 1;
  }
}

/* ============================================================
   11. RESPONSIVE DESIGN
   ============================================================ */

/* ---------- Tablet (≤1199px) ---------- */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-advantages {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .contact-container {
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  /* Header — burger */
  .burger {
    display: flex;
  }

  .nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-container {
    height: 64px;
  }

  /* Hero */
  .hero-content {
    padding: 100px 20px 50px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Process */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .process-connector {
    padding-top: 0;
    transform: rotate(90deg);
    width: 40px;
    height: 30px;
  }

  .step-number {
    font-size: 1.6rem;
  }

  .step-icon {
    width: 52px;
    height: 52px;
  }

  /* Counters */
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .counter-number {
    font-size: 2rem;
  }

  /* About */
  .about-advantages {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Geography */
  .geo-map-container {
    padding: 12px;
  }

  .geo-info {
    flex-direction: column;
    gap: 12px;
  }

  /* FAQ Tabs */
  .faq-tabs {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .faq-tabs-list {
    border-right: none;
    border-bottom: 1px solid rgba(0, 2, 48, 0.06);
  }

  .faq-tab {
    padding: 14px 20px;
    font-size: 0.85rem;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .faq-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent-blue);
  }

  .faq-panel {
    padding: 24px 20px;
  }

  .faq-panel-content {
    top: 24px;
    left: 20px;
    right: 20px;
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-contacts {
    align-items: center;
  }

  /* Floating */
  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
  }

  .scroll-top {
    right: 74px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  /* FAQ */
  .faq-question span {
    font-size: 0.95rem;
  }
}

/* ---------- Extra small (≤480px) ---------- */
@media (max-width: 480px) {
  section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 24px 20px;
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }

  .service-card {
    padding: 28px 20px;
  }

  .geo-card {
    padding: 28px 20px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .form-submit {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero-stats .stat-number {
    font-size: 1.75rem;
  }

  .floating-btn {
    width: 42px;
    height: 42px;
  }

  .scroll-top {
    width: 36px;
    height: 36px;
    right: 68px;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(73, 141, 240, 0.3);
  color: var(--white);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(73, 141, 240, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* ---------- Focus visible ---------- */
*:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
