/* ==========================================================================
   HOTLIGHT — Premium Green Corporate
   Ref: Prism Corporate · Outfit + Inter
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary:       #1a3d2e;
  --color-primary-light: #24523f;
  --color-surface:       #f2f0ec;
  --color-card:          #ffffff;
  --color-dark:          #111111;
  --color-text:          #1a1a1a;
  --color-text-muted:    #6b6b6b;
  --color-accent:        #c87941;
  --color-accent-hover:  #b56a35;
  --color-border:        #e0ddd8;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width:      1200px;
  --section-py:     100px;
  --radius-card:    16px;
  --radius-button:  100px;
  --radius-small:   8px;
  --shadow-card:    0 1px 3px rgba(0,0,0,0.04);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--color-surface);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);   margin-bottom: 24px; }
h3 { font-size: 1.25rem;                     margin-bottom: 10px; }

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   HEADER — прозрачная → белая при скролле
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 40px;
  transition: background 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: var(--color-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* при скролле ссылки и лого — тёмные */
.site-header.scrolled .logo { color: var(--color-text); }
.site-header.scrolled nav a { color: var(--color-text-muted); }
.site-header.scrolled nav a:hover { color: var(--color-text); }
.site-header.scrolled .nav-cta {
  border-color: var(--color-text) !important;
  color: var(--color-text) !important;
}
.site-header.scrolled .nav-cta:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.site-header.scrolled .menu-toggle span { background: var(--color-text); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
}

nav { display: flex; gap: 28px; align-items: center; }

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.25s;
}

nav a:hover { color: #fff; }

.nav-cta {
  background: transparent !important;
  color: #fff !important;
  padding: 10px 26px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(255,255,255,0.4) !important;
  font-weight: 500 !important;
  transition: all 0.25s !important;
}

.nav-cta:hover {
  background: #fff !important;
  color: var(--color-dark) !important;
  border-color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding: 0 32px;
}

.hero-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-subtitle span { margin: 0 10px; opacity: 0.4; }

/* Hero button — outline white pill */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 16px 40px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-hero:hover {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

/* CTA button — solid white on green */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-card);
  color: var(--color-primary);
  padding: 16px 40px;
  border-radius: var(--radius-button);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Outline button on green card */
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: var(--section-py) 0;
}

.section-surface { background: var(--color-surface); }
.section-white   { background: var(--color-card); }

/* ==========================================================================
   BLOCK 2 — ЧТО ТАКОЕ HOTLIGHT (green card + image)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 20px;
  align-items: stretch;
}

.about-card {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-card h2 {
  color: #fff;
  margin-bottom: 20px;
}

.about-card p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
}

.about-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about-card .feature-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.about-card .feature-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  line-height: 1;
}

.about-card .btn-outline-light { margin-top: auto; }

.about-image {
  border-radius: var(--radius-card);
  overflow: hidden;
}

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

/* ==========================================================================
   BLOCK 3 — ЦИФРЫ (bento grid)
   ========================================================================== */
.stats-section {
  padding: var(--section-py) 0;
  background: var(--color-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   BLOCK 4 — ПРИНЦИП РАБОТЫ (на белом фоне)
   ========================================================================== */
.how-section { text-align: center; }
.how-section h2 { text-align: center; }
.how-section > .container > p {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.heating-compare {
  padding: 48px 36px;
  text-align: center;
}

.heating-compare.convection {
  background: var(--color-card);
  border-right: 1px solid var(--color-border);
}

.heating-compare.radiant {
  background: #eef5f0;
}

.heating-compare h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.temp-bar {
  display: flex;
  align-items: center;
  margin: 12px 0;
  gap: 10px;
}

.temp-zone {
  width: 64px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  flex-shrink: 0;
}

.temp-fill {
  flex: 1;
  height: 34px;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.temp-hot  { background: linear-gradient(90deg, #c84c30, #e06840); }
.temp-warm { background: linear-gradient(90deg, #d4933a, #e8b050); color: #555; }
.temp-cold { background: linear-gradient(90deg, #4882b8, #5a9ad0); }
.temp-even { background: linear-gradient(90deg, #1a3d2e, #2a6048); }

.heating-label {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.energy-callout {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
}

.energy-callout .big-stat {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-primary);
  margin-bottom: 8px;
}

.energy-callout p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   BLOCK 5 — ПРЕИМУЩЕСТВА
   ========================================================================== */
.benefits-heading { text-align: center; margin-bottom: 48px; }

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

.benefit-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  z-index: 1;
  position: relative;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.benefit-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.benefit-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   BLOCK 6 — ПРИМЕНЕНИЕ (карусель со стрелками)
   ========================================================================== */
.app-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.app-section-header .app-section-intro { margin-bottom: 0; }
.app-section-intro p { max-width: 560px; margin-bottom: 0; }

.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--color-text);
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-carousel-wrap { position: relative; }

.app-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.app-carousel::-webkit-scrollbar { display: none; }

.app-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s;
}

.app-card:hover { transform: translateY(-3px); }

.app-card-img {
  height: 200px;
  overflow: hidden;
}

.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.app-card:hover .app-card-img img { transform: scale(1.04); }

.app-card-body { padding: 24px; }

.app-card-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.app-card-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ==========================================================================
   BLOCK 7 — FAQ
   ========================================================================== */
.faq-heading { text-align: center; margin-bottom: 40px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--color-border);
}

.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  color: var(--color-text);
  transition: color 0.2s;
}

.faq-list summary:hover { color: var(--color-primary); }
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.25s;
}

details[open] summary::after {
  content: '\2212';
  background: var(--color-primary);
  color: #fff;
}

.faq-list details p {
  margin-top: 0;
  margin-bottom: 24px;
  padding-right: 48px;
  line-height: 1.7;
}

/* ==========================================================================
   BLOCK 8 — CTA + ФОРМА (зелёная карточка)
   ========================================================================== */
.cta-section {
  padding: var(--section-py) 0;
  background: var(--color-surface);
}

.cta-card {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cta-info h2 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 24px;
}

.cta-info p {
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-form select option {
  background: var(--color-primary);
  color: #fff;
}

.contact-form textarea { min-height: 80px; resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
}

.contact-form .btn-accent {
  width: 100%;
  justify-content: center;
}

.form-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.form-disclaimer a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  padding: 48px 0;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
}

.footer-center {
  font-size: 0.875rem;
  text-align: center;
}

.footer-center a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-center a:hover { color: rgba(255,255,255,0.8); }

.footer-right {
  font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
}

@media (max-width: 768px) {
  :root { --section-py: 72px; }

  .site-header { padding: 14px 20px; }
  nav { display: none; }
  .menu-toggle { display: block; }

  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 12px; right: 12px;
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 24px;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }

  nav.open a { color: var(--color-text); }
  nav.open .nav-cta {
    border-color: var(--color-text) !important;
    color: var(--color-text) !important;
  }

  .container { padding: 0 20px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-card { padding: 36px 28px; }
  .about-image { min-height: 280px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 28px 20px; }

  .how-grid { grid-template-columns: 1fr; }
  .heating-compare { padding: 32px 24px; }
  .heating-compare.convection { border-right: none; border-bottom: 1px solid var(--color-border); }

  .benefits-grid { grid-template-columns: 1fr; gap: 12px; }

  .app-card { flex: 0 0 280px; }

  .cta-card { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
