/* =============================================
   CSS VARIABLES — СИНЬО-ЖОВТА ПАЛІТРА
   ============================================= */
:root {
  --blue-dark:    #0a1f44;
  --blue-mid:     #1a3a6e;
  --blue:         #1e50a2;
  --blue-light:   #2d6fd4;
  --blue-pale:    #e8f0fb;

  --yellow:       #f5c500;
  --yellow-deep:  #d4a800;
  --yellow-light: #fff8d6;

  --white:        #ffffff;
  --gray-100:     #f5f7fa;
  --gray-200:     #e9ecef;
  --gray-500:     #8a98aa;
  --gray-700:     #4a5568;
  --text:         #1a2433;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 2px 8px rgba(10,31,68,.10);
  --shadow-md:    0 6px 24px rgba(10,31,68,.15);
  --shadow-lg:    0 16px 48px rgba(10,31,68,.20);

  --transition:   .22s ease;
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* =============================================
   HEADER
   ============================================= */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow var(--transition), background var(--transition);
}

#main-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(10, 31, 68, 0.97);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.5px;
  text-decoration: none;
  /* УДАЛЯЕМ white-space: nowrap; */
  white-space: normal; 
  line-height: 1.1; /* Чтобы строки при переносе не были слишком далеко */
}

.logo span { 
  color: var(--yellow); 
}

.logo-icon {
  flex-shrink: 0; /* ВАЖНО: не дает иконке сжиматься при переносе текста */
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  font-size: 1.2rem;
}

/* --- Адаптация для мобильных --- */
@media (max-width: 576px) {
  .logo {
    font-size: 1.1rem; /* Уменьшаем шрифт, чтобы название не было огромным */
    max-width: 240px;  /* Ограничиваем ширину, заставляя текст переноситься */
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Для самых маленьких экранов (iPhone SE) */
@media (max-width: 360px) {
  .logo {
    font-size: 0.95rem;
    max-width: 190px;
  }
}

/* Address in header */
.header-address {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.header-address i { color: var(--yellow); }

/* Phone block */
.header-phone {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.header-phone-num {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.header-phone-num i { color: var(--yellow); margin-right: .25rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-cta {
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: .95rem;
  border: none;
  border-radius: var(--radius);
  padding: .55rem 1.3rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.btn-primary-cta:hover {
  background: var(--yellow-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,197,0,.4);
  color: var(--blue-dark);
}

.btn-outline-cta {
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  padding: .5rem 1.25rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.btn-outline-cta:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-call {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.btn-call:hover { background: var(--blue-light); color: var(--white); }

.btn-details {
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  transition: background var(--transition), transform var(--transition);
}
.btn-details:hover { background: var(--yellow-deep); transform: translateY(-1px); }

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 55%, #1a4a8a 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(245,197,0,.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,197,0,.15);
  border: 1px solid rgba(245,197,0,.4);
  color: var(--yellow);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .8rem;
}
.hero-title .accent { color: var(--yellow); }

.hero-sub {
  color: rgba(255,255,255,.8);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-sub i { color: var(--yellow); }

.hero-hint {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Hero image side */
.hero-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap img {
  max-height: 340px;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg); 
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* =============================================
   FEATURES BAR
   ============================================= */
#features {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  padding: 1.4rem 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--yellow-deep);
  flex-shrink: 0;
  border: 2px solid var(--yellow);
}
.feature-text strong {
  display: block;
  font-weight: 800;
  font-size: .95rem;
  color: var(--blue-dark);
}
.feature-text span {
  font-size: .8rem;
  color: var(--gray-500);
}

/* Banner strip */
.strip-banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: .75rem 1rem;
  font-weight: 700;
  font-size: clamp(.85rem, 2vw, 1rem);
}
.strip-banner .accent { color: var(--yellow); margin: 0 .3rem; }
.strip-banner .sep { margin: 0 .6rem; opacity: .4; }

/* =============================================
   CATALOG SECTION
   ============================================= */
#catalog {
  padding: 3.5rem 0 4rem;
  background: var(--gray-100);
}

.section-title {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--yellow);
  border-radius: 3px;
  margin-top: .4rem;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 700;
  font-size: .88rem;
  border-radius: 50px;
  padding: .45rem 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}

.product-card__img-wrap {
  position: relative;
  background: var(--blue-pale);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .75rem;
  transition: transform .35s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: var(--blue);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 50px;
}

.product-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: .3rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: .6rem;
  flex: 1;
}

.product-card__price {
  margin-bottom: .75rem;
}
.price-value {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--blue-dark);
}
.price-call {
  font-size: .8rem;
  color: var(--gray-500);
  font-style: italic;
}

.product-card__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.product-card__actions .btn { font-size: .8rem; flex: 1; justify-content: center; }

/* =============================================
   BENEFITS SECTION
   ============================================= */
#benefits {
  background: var(--blue-dark);
  padding: 3.5rem 0;
}

.benefit-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  height: 100%;
  transition: background var(--transition), transform var(--transition);
}
.benefit-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
}
.benefit-card__icon {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.benefit-card__title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .4rem;
}
.benefit-card__text {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* =============================================
   ABOUT / CONTACTS SECTION
   ============================================= */
#contacts {
  padding: 3.5rem 0;
  background: var(--gray-100);
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.about-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin-bottom: 1.2rem;
}
.about-card h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--yellow);
  margin-top: .3rem;
  border-radius: 3px;
}

.info-row {
  display: flex;
  gap: .75rem;
  margin-bottom: .85rem;
  align-items: flex-start;
}
.info-row i {
  color: var(--blue);
  font-size: 1rem;
  margin-top: .1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.info-row span, .info-row a {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.info-row a:hover { color: var(--blue-light); }

.rekviz-table {
  font-size: .82rem;
  width: 100%;
  border-collapse: collapse;
}
.rekviz-table td {
  padding: .3rem .4rem;
  border-bottom: 1px solid var(--gray-200);
}
.rekviz-table td:first-child {
  color: var(--gray-500);
  font-weight: 600;
  width: 55%;
}
.rekviz-table td:last-child { color: var(--text); font-weight: 700; }

/* =============================================
   FOOTER CTA STRIP
   ============================================= */
#cta-strip {
  background: var(--blue-mid);
  padding: 2rem 1rem;
  text-align: center;
}
#cta-strip p {
  color: rgba(255,255,255,.8);
  margin-bottom: .5rem;
  font-size: .95rem;
}
#cta-strip .cta-phone {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
#cta-strip .cta-phone i { font-size: .9em; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: .8rem;
  border-top: 2px solid rgba(245,197,0,.25);
}
footer a { color: var(--yellow); }

/* =============================================
   MODAL
   ============================================= */
#productModal .modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#productModal .modal-header {
  background: var(--blue-dark);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
  padding: 1rem 1.5rem;
}
#productModal .modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
#productModal .btn-close { filter: invert(1) brightness(2); }

#productModal .modal-body { padding: 1.5rem; }

.modal-img-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 1.25rem;
  text-align: center;
}
.modal-img-wrap::before,
.modal-img-wrap::after {
  content: none;
}
.modal-img-wrap img {
  position: relative;
  z-index: 2;
  max-height: 200px;
  display: block;
  margin: 0 auto;
  background: transparent;
  opacity: 1;
  filter: none;
  object-fit: contain;
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.specs-table thead tr {
  background: var(--blue);
  color: var(--white);
}
.specs-table thead th {
  padding: .55rem .75rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .4px;
}
.specs-table tbody tr { border-bottom: 1px solid var(--gray-200); }
.specs-table tbody tr:nth-child(even) { background: var(--blue-pale); }
.specs-table tbody tr:hover { background: var(--yellow-light); }
.specs-table td { padding: .5rem .75rem; vertical-align: top; }
td.spec-num { color: var(--gray-500); font-weight: 700; width: 36px; text-align: center; }
td.spec-name { font-weight: 700; color: var(--blue-dark); width: 55%; }
td.spec-value { color: var(--text); }

.modal-note {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .82rem;
  color: var(--gray-700);
  margin-top: 1rem;
}

#productModal .modal-footer {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  gap: .5rem;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 575.98px) {
  #hero { padding: 2.5rem 0 2rem; }
  .hero-img-wrap { margin-top: 1.5rem; }
  .hero-actions { gap: .6rem; }
  .btn-primary-cta, .btn-outline-cta { font-size: .88rem; padding: .5rem 1rem; }
  .feature-item { flex-direction: column; text-align: center; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

@media (min-width: 1920px) {
  html { font-size: 17px; }
  .container { max-width: 1600px; }
}

@media (min-width: 2560px) {
  html { font-size: 19px; }
  .container { max-width: 2200px; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card { animation: fadeInUp .4s ease both; }
.product-card:nth-child(1) { animation-delay: .05s; }
.product-card:nth-child(2) { animation-delay: .10s; }
.product-card:nth-child(3) { animation-delay: .15s; }
.product-card:nth-child(4) { animation-delay: .20s; }
.product-card:nth-child(5) { animation-delay: .25s; }
.product-card:nth-child(6) { animation-delay: .30s; }
