/* ============================================
   ASEINVEST — style.css
   ============================================ */

:root {
  --primary: #041071;
  --primary-light: #023E7D;
  --primary-lighter: #e8ecf5;
  --secondary: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f2f5;
  --bg-light: #f9fafb;
  --bg-lighter: #f8f9fa;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .8; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in.visible {
  opacity: 1;
}

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #041071;
  transition: color .3s;
}

h2 { 
  font-size: clamp(1.4rem, 3vw, 2rem); 
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

h3 { 
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp .6s ease-out;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  animation: slideInDown .4s ease;
}

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

.header__logo img {
  max-height: 56px;
  width: auto;
  transition: transform .3s;
}

.header__logo:hover img {
  transform: scale(1.02);
}

.header__nav ul {
  display: flex;
  gap: 24px;
}

.header__nav a {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #343A40;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 8px;
  border-bottom: 3px solid transparent;
  transition: all .3s;
  position: relative;
}

.header__nav a::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #041071, #023E7D);
  transition: width .3s;
}

.header__nav a:hover::before,
.header__nav a.active::before {
  width: 100%;
}

.header__nav a:hover,
.header__nav a.active {
  color: #041071;
}

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

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #343A40;
  transition: transform .3s, opacity .3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0a0a2e;
  background-size: cover;
  background-position: center top;
  margin-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,16,113,.6), rgba(2,62,125,.5));
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  animation: fadeInUp 1s ease-out;
}

.hero__brand-logo {
  max-width: 500px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  font-weight: 700;
  letter-spacing: -.5px;
}

.hero__tagline {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(4, 16, 113, .9), rgba(245, 158, 11, .15));
  padding: 14px 36px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

/* --- About --- */
.about { 
  padding: 80px 0;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #041071, #f59e0b, #041071);
}

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

.about__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(4,16,113,.15);
  transition: transform .3s, box-shadow .3s;
}

.about__image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(4,16,113,.25);
}

.about__image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

.about__text p { 
  margin-bottom: 12px;
  line-height: 1.7;
}

.about__text p:last-child { margin-bottom: 0; }

/* --- Products --- */
.products {
  padding: 80px 0;
  background: linear-gradient(180deg, #f9fafb, #f0f4ff);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #041071, #f59e0b, #041071);
}

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

.products__grid:last-child { margin-bottom: 0; }

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(4,16,113,.05);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #041071, transparent);
  opacity: 0;
  transition: opacity .3s;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(4,16,113,.15);
}

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

.product-card__image { 
  padding: 16px;
  background: linear-gradient(135deg, #f9fafb, #f0f2f5);
  transition: background .3s;
}

.product-card:hover .product-card__image {
  background: linear-gradient(135deg, #f0f2f5, #e8ecf5);
}

.product-card__image img { 
  margin: 0 auto;
  transition: transform .3s;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__info { 
  padding: 16px 16px 20px;
}

.product-card__name {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #041071;
  margin-bottom: 6px;
  transition: color .3s;
}

.product-card:hover .product-card__name {
  color: #023E7D;
}

.product-card__price { 
  font-size: 14px; 
  color: #666;
  font-weight: 500;
  transition: color .3s;
}

.product-card:hover .product-card__price {
  color: #041071;
}

.product-card__sku { 
  font-size: 12px; 
  color: #999; 
  margin-top: 4px;
}

/* --- Specs --- */
.specs { 
  padding: 80px 0;
  position: relative;
}

.specs::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #041071, #f59e0b, #041071);
}

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

.spec-card { text-align: center; }
.spec-card h3 { color: #041071; margin-bottom: 16px; }
.spec-card img { 
  border-radius: 8px; 
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}

.spec-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* --- Accordion (for specs & certs) --- */
.accordion {
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: all .3s;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.accordion:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.accordion:last-child { margin-bottom: 0; }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #041071;
  text-align: left;
  transition: all .3s;
  user-select: none;
}

.accordion__trigger:hover {
  background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
  padding-left: 28px;
}

.accordion.open .accordion__trigger {
  background: linear-gradient(135deg, #e8ecf5, #f0f2f5);
}

.accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #041071;
}

.accordion.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.accordion.open .accordion__body {
  max-height: 2000px;
}

.accordion__body-inner {
  padding: 0 24px 24px;
  text-align: center;
}

.accordion__body-inner img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* --- Spec Table --- */
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.spec-table thead th {
  background: linear-gradient(135deg, #041071, #023E7D);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 14px 16px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.spec-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
  color: #343A40;
  transition: background .2s;
}

.spec-table tbody tr:nth-child(even):not(.spec-table__group):not(.spec-table__subgroup) td {
  background: #f8f9fa;
}

.spec-table tbody tr:hover:not(.spec-table__group):not(.spec-table__subgroup) td {
  background: #e8ecf5;
}

.spec-table__group td {
  background: #e8ecf5;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: #041071;
  font-size: 14px;
  padding: 12px 16px;
  border: none;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.spec-table__subgroup td {
  background: #f4f6fa;
  font-weight: 600;
  color: #555;
  font-size: 13px;
  padding: 10px 16px;
  font-style: italic;
  border: none;
}

/* --- Certificates --- */
.certificates {
  padding: 80px 0;
  background: linear-gradient(180deg, #f9fafb, #f0f4ff);
  position: relative;
}

.certificates::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #041071, #f59e0b, #041071);
}

.cert-block {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp .6s ease-out;
}

.cert-block:last-child { margin-bottom: 0; }

.cert-block__title {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #023E7D;
  margin-bottom: 20px;
}

.cert-block img {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transition: transform .3s, box-shadow .3s;
}

/* --- Distributors --- */
.distributors { 
  padding: 80px 0;
  position: relative;
}

.distributors::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #041071, #f59e0b, #041071);
}

.distributors__list { 
  max-width: 700px;
}

.distributor {
  margin-bottom: 20px;
  padding: 16px;
  padding-left: 20px;
  border-left: 4px solid #041071;
  background: linear-gradient(135deg, rgba(4,16,113,.02), transparent);
  border-radius: 0 6px 6px 0;
  transition: all .3s;
}

.distributor:hover {
  background: linear-gradient(135deg, rgba(4,16,113,.05), transparent);
  border-left-color: #f59e0b;
  transform: translateX(4px);
}

.distributor:last-child { 
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
  padding-bottom: 0;
}

.distributor__name { 
  font-weight: 700; 
  color: #041071; 
  margin-bottom: 4px;
  transition: color .3s;
}

.distributor:hover .distributor__name {
  color: #f59e0b;
}

.distributor__address { 
  color: #666;
  font-size: 14px;
}

.distributors__contacts { 
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e9ecef;
}

.distributors__contacts h3 { 
  margin-bottom: 16px;
  color: #041071;
}

.distributors__contacts a {
  display: inline-block;
  font-size: 16px;
  color: #041071;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all .3s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.distributors__contacts a:hover { 
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

.distributors__contacts span { 
  color: #666; 
  font-weight: 400;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(135deg, #041071, #023E7D);
  color: #E5EBF0;
  padding: 60px 0 40px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #041071, #f59e0b);
}

.footer h2 { 
  color: #fff; 
  margin-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform .3s;
}

.footer__item:hover {
  transform: translateX(4px);
}

.footer__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: #8899cc;
  margin-top: 3px;
  transition: fill .3s;
}

.footer__item:hover .footer__icon {
  fill: #f59e0b;
}

.footer__item p { 
  color: #E5EBF0;
  font-size: 14px;
  line-height: 1.6;
}

.footer__item a { 
  color: #E5EBF0;
  font-weight: 600;
  transition: color .3s;
}

.footer__item a:hover { 
  color: #f59e0b;
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  font-size: 14px;
  color: #8899cc;
  animation: fadeIn .6s ease-out;
}

/* --- Responsive --- */
@media (max-width: 975px) {
  .header__nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 24px;
    transform: translateY(-120%);
    transition: transform .4s ease;
    z-index: 999;
  }

  .header__nav.open { transform: translateY(0); }
  .header__nav ul { flex-direction: column; gap: 16px; }
  .header__burger { display: flex; }

  .header__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__burger.open span:nth-child(2) { opacity: 0; }
  .header__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .about__inner { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .specs__grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .products__grid { grid-template-columns: 1fr; }
  .hero__brand-logo { max-width: 280px; }
  .footer__grid { grid-template-columns: 1fr; }
}