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

:root {
  --orange: #E8820C;
  --orange-dark: #C46A06;
  --orange-light: #F5A633;
  --red: #C0251A;
  --blue: #1A5FA8;
  --blue-dark: #0E3F75;
  --blue-light: #2A7ED4;
  --dark: #1A1A1A;
  --gray: #555;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --border: #DDD;
  --success: #2E7D32;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  color: var(--dark);
}
h2 sup { font-size: 0.6em; color: var(--red); }

h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--orange-dark); text-decoration: none !important; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white) !important;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid var(--white);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.full-width { width: 100%; text-align: center; }

/* ===== HEADER ===== */
header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-area { flex-shrink: 0; }
.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-sila { color: var(--orange); }
.logo-pro { font-size: 0.65em; color: var(--red); vertical-align: super; margin-left: 2px; }
.logo-poly { color: var(--white); margin-left: 6px; }
.logo-sub { font-size: 0.72rem; color: #AAA; margin-top: 2px; }

.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: #CCC;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.main-nav a:hover { color: var(--orange); background: rgba(232,130,12,0.1); }

.header-phones { text-align: right; flex-shrink: 0; }
.header-phones a {
  display: block;
  color: var(--orange-light);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.header-phones a:hover { color: var(--orange); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A3A5C 100%);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(232,130,12,0.15) 0%, transparent 60%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
}
.hero-content h1 sup { font-size: 0.5em; color: var(--red); }
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--orange-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-desc { color: #CCC; margin-bottom: 20px; font-size: 0.98rem; line-height: 1.7; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(232,130,12,0.4);
  color: #EEE;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }

.hero-importer {
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  border-radius: 4px;
  color: #CCC;
  font-size: 0.9rem;
}
.hero-importer strong { color: var(--orange-light); }

.hero-image { flex-shrink: 0; }
.hero-image img { max-width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

/* ===== ADVANTAGES ===== */
.advantages { padding: 70px 0; background: var(--white); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--orange);
  font-size: 0.95rem;
}
.adv-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ===== USAGE ===== */
.usage { padding: 70px 0; background: linear-gradient(135deg, #1A3A5C 0%, #0E2A45 100%); color: var(--white); }
.usage h2 { color: var(--white); }
.usage-intro { text-align: center; color: #CCC; margin-bottom: 28px; font-size: 1.05rem; }
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.usage-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.usage-temp {
  text-align: center;
  background: rgba(232,130,12,0.2);
  border: 1px solid var(--orange);
  padding: 14px 24px;
  border-radius: 8px;
  color: #EEE;
}

/* ===== CHARACTERISTICS ===== */
.characteristics { padding: 70px 0; background: var(--light-gray); }
.char-tables-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.char-table { width: 100%; border-collapse: collapse; }
.char-table tr:nth-child(even) { background: rgba(0,0,0,0.04); }
.char-table td {
  padding: 9px 14px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}
.char-table td:first-child { color: var(--gray); width: 55%; }
.char-table td:last-child { font-weight: 600; color: var(--dark); }
.char-table-block h3 { color: var(--blue-dark); margin-bottom: 10px; }

.nasadki-block {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 28px;
  margin-top: 20px;
}
.nasadki-img { width: 200px; object-fit: contain; flex-shrink: 0; }
.new-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* ===== INSTRUCTIONS ===== */
.instructions { padding: 70px 0; background: var(--white); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.step-num {
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.storage-note {
  background: #FFF8E1;
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* ===== PHOTOS ===== */
.photos-section { padding: 70px 0; background: var(--light-gray); }
.product-photos { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.photo-main {
  flex: 1;
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-main img { max-height: 350px; max-width: 100%; object-fit: contain; }
.photo-thumbs { display: flex; flex-direction: column; gap: 10px; width: 120px; }
.photo-thumbs img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  background: var(--white);
  transition: border-color 0.2s;
}
.photo-thumbs img.active, .photo-thumbs img:hover { border-color: var(--orange); }

.video-wrap {
  text-align: center;
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
.video-wrap iframe { width: 100%; max-width: 800px; aspect-ratio: 16/9; height: auto; display: block; margin: 0 auto; }

/* ===== CERTIFICATES ===== */
.certs-section { padding: 70px 0; background: var(--white); }
.certs-desc { text-align: center; color: var(--gray); margin-bottom: 32px; }
.certs-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.cert-item {
  width: 280px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.cert-item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.cert-item img { width: 100%; height: 200px; object-fit: cover; }
.cert-caption { padding: 12px; font-size: 0.88rem; color: var(--gray); background: var(--light-gray); }
.cert-caption small { display: block; font-size: 0.8rem; margin-top: 4px; color: #888; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  text-align: center;
}
.modal-content img { max-width: 100%; max-height: 85vh; border-radius: 6px; }
.modal-close {
  display: block;
  margin-top: 12px;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
}

/* ===== PRICES ===== */
.prices-section { padding: 70px 0; background: var(--light-gray); }
.price-info {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.price-details h3 { font-size: 1.3rem; margin-bottom: 10px; }
.warning-text { color: var(--red); font-size: 0.9rem; margin-top: 6px; }
.price-tag {
  margin-top: 16px;
  font-size: 1.15rem;
  background: #FFF3E0;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--orange);
}
.price-tag strong { color: var(--orange); font-size: 1.4rem; }
.price-note { font-size: 0.85rem; color: var(--gray); }
.wholesale-note { margin-top: 12px; font-size: 0.92rem; color: var(--blue-dark); }

/* Calculator */
.calculator {
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 32px;
}
.calculator h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--orange-dark); }
.calc-controls { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.calc-field { flex: 1; min-width: 200px; }
.calc-field label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--gray); }
.thickness-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.th-btn {
  padding: 9px 18px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--dark);
}
.th-btn.active { border-color: var(--orange); background: var(--orange); color: var(--white); }
.th-btn:hover:not(.active) { border-color: var(--orange); color: var(--orange); }

#area {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1.1rem;
  transition: border-color 0.2s;
}
#area:focus { outline: none; border-color: var(--orange); }

.calc-results {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.calc-result-item {
  flex: 1;
  min-width: 150px;
  background: var(--light-gray);
  padding: 16px 20px;
  border-radius: 8px;
  text-align: center;
}
.calc-result-item span { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 6px; }
.calc-result-item strong { font-size: 1.4rem; color: var(--dark); }

/* ===== WHOLESALE ===== */
.wholesale { padding: 70px 0; background: linear-gradient(135deg, #0E2A45, #1A3A5C); }
.wholesale h2 { color: var(--white); }
.wholesale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.wholesale-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 24px;
  color: var(--white);
}
.wholesale-item h3 { color: var(--orange-light); margin-bottom: 10px; }
.wholesale-item p { color: #CCC; font-size: 0.92rem; line-height: 1.6; }
.ws-icon { font-size: 2rem; margin-bottom: 12px; }
.wholesale-cta { text-align: center; color: #CCC; }
.wholesale-cta p { margin-bottom: 16px; font-size: 1.05rem; }
.wholesale-cta .btn-secondary { margin-left: 12px; }

/* ===== ORDER ===== */
.order-section { padding: 70px 0; background: var(--white); }
.order-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.order-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; color: var(--gray); font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--orange); }
.spam-check { display: none; } /* hidden anti-spam */

.contacts-block { padding-top: 10px; }
.company-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.contacts-block > p { color: var(--gray); font-size: 0.92rem; margin-bottom: 20px; }

.contact-hours { display: flex; gap: 24px; margin-bottom: 14px; font-size: 0.92rem; }
.contact-hours a { display: block; color: var(--dark); font-weight: 600; text-decoration: none; }
.contact-hours a:hover { color: var(--orange); }
.contact-email { margin-bottom: 14px; }
.contact-email a { color: var(--blue); font-weight: 600; }
.contact-address { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
.contact-address a { color: var(--blue); }

/* ===== PARTNERS ===== */
.partners { padding: 36px 0; background: var(--light-gray); border-top: 1px solid var(--border); }
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.partners-logos img { height: 40px; object-fit: contain; filter: grayscale(0.3); transition: filter 0.2s; }
.partners-logos img:hover { filter: grayscale(0); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #AAA;
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}
footer p { margin-bottom: 4px; }
footer a { color: #CCC; }
footer sup { font-size: 0.7em; color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-image { display: none; }
  .hero-content h1 { font-size: 2.2rem; }
  .char-tables-wrap { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  h2 { font-size: 1.5rem; }
  .price-info { flex-direction: column; }
  .calc-controls { flex-direction: column; }
  .calc-results { flex-direction: column; }
  .contact-hours { flex-direction: column; gap: 14px; }
  .nasadki-block { flex-direction: column; }
}
