/* ===== APIS LED — Новый сайт ===== */
/* Редактируй контент прямо в HTML-файлах */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --night:   #0D1B2A;
  --deep:    #1B3A5C;
  --blue:    #1B6CA8;
  --amber:   #F5A623;
  --amber2:  #E8920F;
  --light:   #F4F7FA;
  --mid:     #C8D6E5;
  --text:    #2C3E50;
  --muted:   #6B7F93;
  --white:   #FFFFFF;
  --radius:  6px;
  --max:     1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--night);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--amber);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--night);
  letter-spacing: -0.5px;
}
.logo-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.logo-text span { color: var(--amber); }

nav { display: flex; gap: 4px; }
nav a {
  color: var(--mid);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.2px;
}
nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.header-phone {
  color: var(--amber);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.header-phone:hover { color: var(--white); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--night) 0%, var(--deep) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
}
/* световой луч — signature element */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: 10%;
  width: 2px;
  height: 800px;
  background: linear-gradient(to bottom, transparent, var(--amber), transparent);
  opacity: 0.35;
  transform: rotate(20deg);
  animation: beam 5s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: 18%;
  width: 1px;
  height: 600px;
  background: linear-gradient(to bottom, transparent, rgba(245,166,35,0.4), transparent);
  transform: rotate(15deg);
  animation: beam 5s 0.8s ease-in-out infinite alternate;
}
@keyframes beam {
  0%   { opacity: 0.15; transform: rotate(18deg) scaleY(0.9); }
  100% { opacity: 0.4;  transform: rotate(22deg) scaleY(1.1); }
}

.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--amber);
  color: var(--night);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--amber); }
.hero-sub {
  color: var(--mid);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--amber); color: var(--night); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }

/* ===== SECTION ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--night); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 12px;
}
.section-dark .section-head h2 { color: var(--white); }
.section-head p { color: var(--muted); font-size: 16px; }

/* ===== CARDS GRID ===== */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== PRODUCT CARD ===== */
.product-card {
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,42,0.12);
  transform: translateY(-3px);
}
.product-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 8px;
  background: var(--amber);
  color: var(--night);
}
.product-card-badge.new { background: var(--blue); color: var(--white); }
.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--night);
  margin-bottom: 4px;
  line-height: 1.4;
}
.product-card-article {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.product-card-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card-cta::after { content: '→'; transition: transform 0.15s; }
.product-card:hover .product-card-cta::after { transform: translateX(4px); }

/* ===== FEATURES ===== */
.feature-card {
  padding: 32px;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  background: var(--white);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber2) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--night);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--night);
}
.feature-card p { color: var(--muted); font-size: 15px; }

/* ===== CATEGORIES ===== */
.cat-card {
  border-radius: var(--radius);
  background: var(--night);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.2s;
  min-height: 160px;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0.12;
  transition: transform 0.3s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card:hover::before { transform: scale(1.3); }
.cat-card h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-card p { color: var(--mid); font-size: 13px; }
.cat-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--amber);
  font-size: 20px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--mid); }

/* ===== PAGE TITLE ===== */
.page-title {
  background: var(--light);
  border-bottom: 1px solid var(--mid);
  padding: 28px 0 24px;
}
.page-title h1 { font-size: 28px; font-weight: 700; color: var(--night); }

/* ===== CATALOG PAGE ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-block {
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-title {
  background: var(--night);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 18px;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--light);
  transition: background 0.15s, color 0.15s;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: var(--light);
  color: var(--blue);
}
.sidebar-menu li:last-child a { border-bottom: none; }

.catalog-goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== PRODUCT PAGE ===== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 40px 0 64px;
  align-items: start;
}
.product-gallery-main {
  aspect-ratio: 1;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}
.product-gallery-thumbs { display: flex; gap: 10px; }
.product-gallery-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--mid);
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active { border-color: var(--amber); }

.product-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 6px;
}
.product-article { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.product-specs {
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.product-specs-title {
  background: var(--light);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--night);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-row {
  display: flex;
  border-bottom: 1px solid var(--light);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  padding: 10px 16px;
  color: var(--muted);
  width: 50%;
  font-weight: 500;
}
.spec-val {
  padding: 10px 16px;
  color: var(--text);
  font-weight: 600;
  border-left: 1px solid var(--light);
}

.price-request-form {
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--light);
}
.price-request-form h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--night);
  margin-bottom: 16px;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ===== CONTACTS PAGE ===== */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: start;
}
.contacts-info h2 { font-size: 22px; font-weight: 700; color: var(--night); margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-body { flex: 1; }
.contact-item-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-item-value { font-size: 15px; font-weight: 600; color: var(--night); }
.contact-item-value a { color: var(--blue); }

#map {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--mid);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* ===== TEXT PAGE ===== */
.text-content {
  max-width: 820px;
  padding: 48px 0 72px;
}
.text-content h2 { font-size: 22px; font-weight: 700; color: var(--night); margin: 32px 0 14px; }
.text-content h2:first-child { margin-top: 0; }
.text-content p { color: var(--text); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.text-content ul { padding-left: 20px; margin-bottom: 14px; }
.text-content ul li { color: var(--text); font-size: 15px; line-height: 1.75; margin-bottom: 6px; }

/* ===== SECOND BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--night) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { color: var(--mid); font-size: 16px; margin-bottom: 28px; }

/* ===== FOOTER ===== */
footer {
  background: var(--night);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--mid);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 14px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: var(--mid);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--amber); }
.footer-col .footer-phone {
  color: var(--amber);
  font-size: 16px;
  font-weight: 600;
}
.footer-col .footer-email { color: var(--mid); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.footer-social a:hover { border-color: var(--amber); color: var(--amber); }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0 0; }
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.pagination a:hover { background: var(--light); border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .catalog-goods { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .catalog-goods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .catalog-goods { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 48px 0; }
}
