:root{
  --primary-color:#0f172a;
  --secondary-color:#22c55e;
  --accent-color:#10b981;

  --text-color:#334155;
  --muted:#64748b;

  --light-bg:#f8fafc;
  --white:#ffffff;
  --border-color:#e2e8f0;

  --font-main:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  --radius:12px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow-md:0 10px 15px -3px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ width:100%; max-width:100%; overflow-x:hidden; }
body{
  font-family:var(--font-main);
  color:var(--text-color);
  line-height:1.6;
  background:var(--light-bg);
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; transition:color .2s ease; }
ul{ list-style:none; }

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

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 24px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  border:0;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  user-select:none;
}
.btn-primary{
  background:var(--secondary-color);
  color:var(--white);
}
.btn-primary:hover{ background:var(--accent-color); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.btn-secondary{
  background:transparent;
  border:2px solid var(--secondary-color);
  color:var(--secondary-color);
}
.btn-secondary:hover{ background:var(--secondary-color); color:var(--white); }

/* Header */
.site-header{
  background:var(--white);
  top:0;
  z-index:1000;
  box-shadow:0 2px 4px rgba(0,0,0,.05);
  display: block;
}


.nav-container{
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.logo{
  font-size:24px;
  font-weight:800;
  color:var(--primary-color);
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.logo span{ color:var(--secondary-color); }

.site-nav ul{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  justify-content:center;
}
.site-nav a{
  font-weight:600;
  color:var(--primary-color);
}
.site-nav a:hover{ color:var(--secondary-color); }
.header-cta{ white-space:nowrap; }

/* Hero */
.hero{
  background:linear-gradient(135deg,var(--primary-color) 0%, #1e293b 100%);
  color:var(--white);
  padding:96px 0;
  text-align:center;
}
.hero h1{
  font-size:3.2rem;
  line-height:1.15;
  margin-bottom:18px;
}
.hero p{
  font-size:1.15rem;
  opacity:.92;
  max-width:720px;
  margin:0 auto 34px;
}
.hero-buttons{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.hero-btn-alt{
  border-color:rgba(255,255,255,.9);
  color:var(--white);
}
.hero-btn-alt:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,1);
}

/* Sections */
.finder-section{ padding:80px 0; background:var(--white); }
.products-section{ padding:80px 0; }
.service-section{ padding:80px 0; background:var(--white); border-top:1px solid var(--border-color); }
.about-section{ padding:80px 0; background:var(--white); }
.contacts-section{ padding:80px 0; }

.section-title{ text-align:center; margin-bottom:48px; }
.section-title h2{ font-size:2.35rem; color:var(--primary-color); margin-bottom:10px; }
.section-title p{ color:var(--muted); }

/* Finder container */
.finder-container{
  background:var(--white);
  border:1px solid var(--border-color);
  border-radius:var(--radius);
  padding:40px;
  box-shadow:var(--shadow-md);
  max-width:920px;
  margin:0 auto;
}

.wizard-progress{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:2px solid var(--border-color);
  padding-bottom:14px;
  margin-bottom:34px;
}
.step{
  font-weight:800;
  color:#cbd5e1;
  position:relative;
}
.step.active{ color:var(--secondary-color); }
.step.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-16px;
  width:100%;
  height:2px;
  background:var(--secondary-color);
}

.wizard-step{ display:none; animation:fadeIn .35s ease; }
.wizard-step.active{ display:block; }
.wizard-step h3{
  text-align:center;
  color:var(--primary-color);
  font-size:1.45rem;
  margin-bottom:22px;
}

.wizard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}
.wizard-card{
  background:#f8fafc;
  border:2px solid transparent;
  border-radius:var(--radius);
  padding:28px 18px;
  text-align:center;
  cursor:pointer;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wizard-card:hover{
  border-color:var(--secondary-color);
  background:#f0fdf4;
  transform:translateY(-4px);
  box-shadow:var(--shadow-sm);
}
.wizard-icon{ font-size:3rem; margin-bottom:12px; }
.wizard-card h4{ color:var(--primary-color); margin-bottom:8px; }
.wizard-card p{ color:var(--muted); font-size:.95rem; }
.wizard-back{ margin-top:18px; }

.finder-result{
  margin-top:28px;
  padding:20px;
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:var(--radius);
  text-align:center;
  display:none;
}
.finder-result h3{ color:var(--primary-color); margin-bottom:8px; }
.recommendation{
  font-size:1.2rem;
  font-weight:900;
  color:var(--secondary-color);
}
.finder-reason{ margin-top:10px; color:var(--muted); font-size:.95rem; }
.rec-image{ margin:18px auto 0; max-width:320px; }
.rec-image img{ border-radius:10px; box-shadow:var(--shadow-sm); }
.finder-cta{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:16px;
}

/* Catalog filters */
.catalog-filters{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:40px;
  flex-wrap:wrap;
}
.filter-btn{
  padding:8px 16px;
  border:1px solid var(--border-color);
  background:var(--white);
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  color:var(--muted);
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.filter-btn:hover,
.filter-btn.active{
  background:var(--primary-color);
  color:var(--white);
  border-color:var(--primary-color);
}

/* Product grid */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:28px;
}
.product-card{
  background:var(--white);
  border:1px solid var(--border-color);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 4px 6px -1px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-md);
}
.product-image{
  height:250px;
  background:#e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-image img{ width:100%; height:100%; object-fit:cover; }
.product-info{ padding:22px; }
.product-info h3{ color:var(--primary-color); margin-bottom:10px; }
.product-specs{ margin:14px 0; font-size:.92rem; color:var(--muted); }
.product-specs li{ display:flex; justify-content:space-between; gap:10px; margin-bottom:6px; }

/* Pagination */
.pagination-container{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:54px;
  padding:10px;
}
.page-btn{
  width:48px;
  height:48px;
  border:1px solid var(--border-color);
  background:var(--white);
  color:#475569;
  border-radius:12px;
  cursor:pointer;
  font-size:1.1rem;
  font-weight:900;
  display:flex;
  justify-content:center;
  align-items:center;
  transition:transform .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease, background-color .15s ease;
  box-shadow:var(--shadow-sm);
}
.page-btn:hover:not(:disabled){
  border-color:var(--secondary-color);
  color:var(--secondary-color);
  background:#f0fdf4;
  transform:translateY(-2px);
}
.page-btn.active{
  background:var(--secondary-color);
  color:var(--white);
  border-color:var(--secondary-color);
  box-shadow:0 4px 12px rgba(34,197,94,.35);
}
.page-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  background:#f1f5f9;
  box-shadow:none;
  border-color:transparent;
}

/* Service */
.service-card{
  max-width:920px;
  margin:0 auto;
  background:var(--white);
  border:1px solid var(--border-color);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow-sm);
}
.service-list{ display:grid; gap:10px; color:#475569; }
.service-list li{ padding-left:18px; position:relative; }
.service-list li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:var(--secondary-color);
  font-weight:900;
}

/* About */
.about-grid{
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  margin-top:20px;
  justify-content:center;
}
.about-text{
  flex:1;
  min-width:280px;
  font-size:1.05rem;
  color:#475569;
}
.about-mission{ margin-top:14px; }
.about-stats{
  flex:1;
  min-width:280px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(120px,1fr));
  gap:18px;
}
.stat-item{
  text-align:center;
  padding:18px;
  background:#f1f5f9;
  border-radius:12px;
}
.stat-item h4{
  font-size:1.5rem;
  color:var(--secondary-color);
  margin-bottom:4px;
}

/* Contacts */
.contacts-grid{
  display:flex;
  justify-content:center;
}
.contacts-card{
  width:100%;
  max-width:520px;
  background:var(--white);
  border:1px solid var(--border-color);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow-sm);
}
.contacts-card h3{ margin-bottom:14px; color:var(--primary-color); }
.contacts-list{ display:grid; gap:12px; margin-bottom:16px; color:#475569; }
.contacts-list a:hover{ color:var(--secondary-color); }
.contacts-cta{ width:100%; }
.contacts-note{ margin-top:12px; color:var(--muted); font-size:.9rem; }

/* Footer */
.site-footer{
  background:var(--primary-color);
  color:#cbd5e1;
  padding:60px 0 20px;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:40px;
  margin-bottom:40px;
}
.footer-col h4{
  color:var(--white);
  margin-bottom:14px;
  font-size:1.1rem;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color:var(--secondary-color); }
.copyright{
  text-align:center;
  padding-top:20px;
  border-top:1px solid #334155;
  font-size:.9rem;
}

/* Mobile & tablet */
@media (max-width: 900px){
  .hero{ padding:80px 0; }
  .hero h1{ font-size:2.6rem; }
}

@media (max-width: 768px){
  .container{ padding:0 16px; }

  .nav-container{
    flex-direction:column;
    align-items:stretch;
  }
  .logo{ justify-content:center; }
  .site-nav ul{ gap:12px; }
  .header-cta{ width:100%; }

  .hero h1{ font-size:2.2rem; }
  .hero p{ font-size:1.05rem; }

  .finder-container{ padding:22px; }
  .wizard-progress{
    flex-direction:column;
    align-items:flex-start;
    border-bottom:0;
    padding-bottom:0;
    margin-bottom:18px;
  }
  .step.active::after{ display:none; }

  .product-grid{ grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 480px){
  /* HEADER */
  .nav-container{ align-items:center; }
  .site-nav{ width:100%; display:flex; justify-content:center; }
  

  .site-nav ul{
    display:flex;
    flex-wrap:nowrap;
    justify-content:center;
    gap:14px;
    overflow-x:auto;
    padding:6px 8px;
    margin:0 0 6px 0;
  }

  .site-nav a{
    padding:0;
    background:transparent;
    border-radius:0;
    font-size:15px;
    white-space:nowrap;
  }

  /* HERO */
  .hero{ padding:68px 0; }
  .hero h1{ font-size:2rem; }
  .hero-buttons{
    flex-direction:column;
    gap:12px;
  }

  /* CATALOG */
  .product-grid{ grid-template-columns:1fr; }

  /* PAGINATION */
  .page-btn{ width:42px; height:42px; }
}


/* Touch devices: disable hover lift */
@media (hover: none){
  .product-card:hover,
  .wizard-card:hover,
  .btn-primary:hover{
    transform:none;
    box-shadow:none;
  }
}


.empty-state{ grid-column:1/-1; text-align:center; padding:40px; color:var(--muted); }
.model-code{ margin-bottom:8px; color:var(--secondary-color); font-weight:700; }
.product-desc{ font-size:.92rem; color:var(--muted); margin-bottom:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

@media (max-width: 768px){
  body{
    padding-top: 12px;
  }
}