/* Военник.com — стили в духе povestok.net */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8a;
  --accent: #e63946;
  --accent-hover: #d62839;
  --text: #1a1a1a;
  --text-muted: #5c6b7a;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(30,58,95,0.08);
  --shadow-lg: 0 10px 40px rgba(30,58,95,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  height: 40px !important;
  width: 40px !important;
  object-fit: contain;
}

.nav-logo-text {
  height: 24px !important;
  width: auto !important;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* === HERO === */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left { max-width: 540px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30,58,95,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 24px;
}

.checks {
  margin-bottom: 32px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn.red {
  background: var(--accent);
  color: #fff;
}

.btn.red:hover { background: var(--accent-hover); }

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn.white {
  background: #fff;
  color: var(--primary);
}

.btn.white:hover { opacity: 0.9; }

.btn.ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.15);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-emblem {
  width: 280px !important;
  height: 280px !important;
  max-width: 280px !important;
  filter: drop-shadow(0 20px 40px rgba(30,58,95,0.15));
}

/* === STATS === */
.stats {
  padding: 60px 0;
  background: var(--primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat span {
  font-size: 14px;
  opacity: 0.9;
}

/* === SECTIONS === */
section {
  padding: 80px 0;
}

.title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === ABOUT === */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about-card-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.about-card small {
  color: var(--text-muted);
  font-size: 14px;
}

/* === HOW === */
.how { background: var(--bg-alt); }

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

.step-arrow {
  align-self: center;
  font-size: 24px;
  color: var(--primary);
  opacity: 0.5;
}

/* === SERVICES === */
.services { background: var(--bg); }

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

.svc {
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.svc:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.svc-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.svc h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.svc p {
  color: var(--text-muted);
  font-size: 14px;
}

/* === RESULTS / GALLERY === */
.results { background: var(--bg-alt); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* === CTA === */
.cta { padding: 80px 0; }

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.cta-box p { opacity: 0.9; }

.cta-btns { display: flex; gap: 16px; flex-shrink: 0; }

/* === CONTACTS === */
.contacts { background: var(--bg); }

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

.contact-card {
  display: block;
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.cc-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.cc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cc-value {
  font-weight: 600;
}

.tg-card:hover { border-color: #0088cc; }

/* === FOOTER === */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 48px 0 24px;
}

.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 32px !important;
  width: 32px !important;
  object-fit: contain;
}

.footer-logo-text {
  height: 20px !important;
  width: auto !important;
  object-fit: contain;
}

.footer-nav { display: flex; gap: 24px; }

.footer-nav a { opacity: 0.9; }

.footer-nav a:hover { opacity: 1; }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p { font-size: 14px; opacity: 0.85; }

.footer-bottom .small {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.7;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lb-close, .lb-arrow {
  position: absolute;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}

.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,0.3); }

.lb-close { top: 20px; right: 20px; }

.lb-prev { left: 20px; }

.lb-next { right: 20px; }

/* === TELEGRAM FLOAT === */
.tg-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #0088cc;
  color: #fff !important;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,136,204,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tg-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(0,136,204,0.5);
  color: #fff !important;
}

.tg-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tg-float-text {
  font-weight: 600;
  font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-emblem { width: 200px !important; height: 200px !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger { display: flex; }

  .hero { padding: 120px 0 80px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .tg-float-text { display: none; }
  .tg-float { padding: 14px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; }
}
