/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0f3460; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}
.btn-primary:hover { background: #c73650; border-color: #c73650; text-decoration: none; }
.btn-primary:disabled { background: #9ca3af; border-color: #9ca3af; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: #fff; color: #0f3460; text-decoration: none; }

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ ШАПКА ============ */
.site-header {
  background: #1a1a2e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  flex-wrap: wrap;
}
.logo img { display: block; }
.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.main-nav a { color: #fff; font-weight: 500; }
.main-nav a:hover { color: #e94560; text-decoration: none; }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  color: #fff;
  padding: 70px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero-sub {
  font-size: 18px;
  opacity: .92;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-actions .btn-outline { color: #fff; }

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 24px;
  font-size: 14px;
  opacity: .95;
}
.hero-facts strong {
  display: block;
  font-size: 26px;
  color: #e94560;
  line-height: 1.1;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* ============ СЕКЦИИ ============ */
.section { padding: 70px 0; }
.section-alt { background: #f5f7fa; }
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  text-align: center;
  margin: 0 0 12px;
  color: #1a1a2e;
}
.section-sub {
  text-align: center;
  color: #4b5563;
  margin: 0 auto 40px;
  max-width: 720px;
}

/* ============ ПРЕИМУЩЕСТВА ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: .25s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,52,96,.1); }
.benefit-num {
  font-size: 32px;
  font-weight: 800;
  color: #e94560;
  margin-bottom: 8px;
}
.benefit-card h3 { margin: 0 0 8px; font-size: 18px; color: #1a1a2e; }
.benefit-card p { margin: 0; color: #4b5563; font-size: 15px; }

/* ============ ПРОДУКЦИЯ ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  border: 1px solid #e5e7eb;
  transition: .3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: 0 24px 60px rgba(15, 52, 96, .14);
  transform: translateY(-6px);
  border-color: #e94560;
}

/* Контейнер изображения — крупный, фиксированной пропорции */
.product-img {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #eef2f7;
}
.product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.06);
}

/* Текстовый блок под изображением */
.product-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  margin: 0 0 8px;
  color: #0f3460;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}
.product-desc {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
}
.product-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  color: #374151;
  line-height: 1.55;
}
.product-card ul li { margin-bottom: 8px; }
.product-card ul li:last-child { margin-bottom: 0; }

/* ============ АДАПТИВ ДЛЯ ПРОДУКЦИИ ============ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-img { padding: 24px; }
  .product-body { padding: 22px 22px 26px; }
  .product-card h3 { font-size: 21px; }
}

/* ============ CTA БЕЗ ФОРМЫ ============ */
.section-cta {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  color: #fff;
}
.cta-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.cta-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 16px;
}
.cta-text p { font-size: 16px; opacity: .92; }
.cta-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.cta-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.cta-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e94560;
  font-weight: bold;
}

/* Блок с почтой */
.cta-mailbox {
  background: #fff;
  color: #1f2937;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  text-align: center;
}
.mailbox-icon {
  font-size: 48px;
  color: #e94560;
  line-height: 1;
  margin-bottom: 12px;
}
.mailbox-label {
  margin: 0 0 8px;
  font-size: 15px;
  color: #6b7280;
}
.mailbox-address {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #0f3460;
  margin-bottom: 16px;
  word-break: break-all;
  text-decoration: none;
}
.mailbox-address:hover { color: #e94560; text-decoration: underline; }
.mailbox-note {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 22px;
  line-height: 1.5;
}

/* ============ КОНТАКТЫ ============ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.contacts-block h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  margin: 0 0 6px;
}
.contacts-block p { margin: 0 0 20px; font-size: 16px; }
.contacts-block p a { color: #0f3460; font-weight: 500; }

.legal-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 0 0 16px;
  font-size: 15px;
}
.legal-list dt { color: #6b7280; }
.legal-list dd { margin: 0; font-weight: 500; }
.legal-note {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
}

.contacts-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* ============ ПОДВАЛ ============ */
.site-footer {
  background: #1a1a2e;
  color: #d1d5db;
  padding: 50px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 14px;
}
.footer-col p { margin: 0 0 8px; font-size: 14px; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a,
.footer-col a { color: #d1d5db; font-size: 14px; }
.footer-links a:hover,
.footer-col a:hover { color: #e94560; }

.footer-bottom {
  background: #14142a;
  padding: 20px 0;
  font-size: 13px;
  color: #9ca3af;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { margin: 0; }

/* ============ COOKIE-БАННЕР ============ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1a1a2e;
  color: #fff;
  padding: 16px 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  font-size: 14px;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-inner p { margin: 0; flex: 1 1 400px; }
.cookie-inner a { color: #e94560; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions .btn-outline { color: #fff; border-color: #fff; }
.cookie-actions .btn-outline:hover { background: #fff; color: #1a1a2e; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
  .hero-inner,
  .cta-wrapper,
  .contacts-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-image { order: -1; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 10;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .mobile-toggle { display: block; margin-left: auto; order: 3; }
  .header-contacts { order: 4; width: 100%; justify-content: space-between; }
  .header-phone { font-size: 15px; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; }
  .hero-facts { gap: 20px; }
  .hero-facts strong { font-size: 22px; }
  .cta-mailbox { padding: 24px 20px; }
  .mailbox-address { font-size: 20px; }
  .legal-list { grid-template-columns: 1fr; gap: 2px; }
  .legal-list dt { margin-top: 10px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; }
}