/* ============================================
   Конструктор "Лучик" — Modern Landing Page
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7fa;
  --bg-card: #e8e8ee;
  --bg-card-hover: #ddddda;
  --border: rgba(0, 0, 0, 0.07);
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --accent: #176b4d;
  --accent-light: #1e8a63;
  --accent-glow: rgba(23, 107, 77, 0.08);
  --accent-border: rgba(23, 107, 77, 0.2);
  --green: #00a89d;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(23, 107, 77, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(0, 168, 157, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-specs {
  display: flex;
  gap: 32px;
}

.hero-spec {
  display: flex;
  flex-direction: column;
}

.hero-spec-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.hero-spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  max-height: 520px;
  object-fit: contain;
}

/* ---------- Sections ---------- */

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.section-acronym {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
}

/* ---------- About ---------- */

.about {
  background: var(--bg-alt);
}

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

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 8px 30px rgba(23, 107, 77, 0.08);
  transform: translateY(-4px);
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Specs ---------- */

.specs-table {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:hover {
  background: var(--accent-glow);
}

.spec-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.9rem;
  text-align: right;
}

/* ---------- Screens ---------- */

.screens {
  background: var(--bg-alt);
}

.screen-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.screen-item:last-child {
  margin-bottom: 0;
}

.screen-reverse {
  direction: rtl;
}

.screen-reverse > * {
  direction: ltr;
}

.screen-image {
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-image img {
  border-radius: var(--radius-sm);
  max-height: 360px;
  object-fit: contain;
}

.screen-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-bottom: 14px;
}

.screen-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.screen-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Firmware ---------- */

.firmware {
  background: var(--bg-alt);
}

.firmware-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.firmware-card .section-tag {
  margin-bottom: 20px;
}

.firmware-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}

.firmware-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.firmware-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.firmware-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 24px rgba(23, 107, 77, 0.18);
}

/* ---------- Warranty ---------- */

.warranty-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.warranty-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.warranty-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.warranty-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 60px;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-specs {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 380px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .spec-value {
    text-align: left;
    color: var(--accent);
    font-weight: 600;
  }

  .screen-item,
  .screen-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .screen-reverse > * {
    direction: ltr;
  }

  .screen-image img {
    max-height: 300px;
  }

  .firmware-card {
    padding: 36px 24px;
  }

  .warranty-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-specs {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
