* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Segoe UI',Arial,sans-serif; color:#1a1a1a; line-height:1.6; }
.container { max-width:1160px; margin:0 auto; padding:0 20px; }
h1,h2,h3 { line-height:1.2; }
a { text-decoration:none; color:inherit; }
.btn { display:inline-block; background:#ffcc00; color:#111; font-weight:700;
       padding:16px 34px; border-radius:8px; border:none; cursor:pointer;
       font-size:17px; transition:.2s; }
.btn:hover { background:#ffd633; transform:translateY(-2px); }

/* Шапка */
header { background:#111; color:#fff; padding:14px 0; position:sticky; top:0; z-index:10; }
header .container { display:flex; align-items:center; justify-content:space-between; }
.logo { display:block; }
.logo img { display:block; height:44px; width:auto; }
@media(max-width:600px){ .logo img { height:36px; } }
.head-right { display:flex; align-items:center; gap:22px; }
.head-badge { font-size:13px; color:#ffcc00; border:1px solid #ffcc00;
              padding:5px 12px; border-radius:20px; }
.head-phone { font-size:19px; font-weight:700; }
.head-phone small { display:block; font-size:12px; font-weight:400; color:#aaa; }

/* Hero */
.hero { position:relative; overflow:hidden; color:#fff; min-height:720px;
        padding:96px 0; text-align:center; display:flex; align-items:center; }
.hero-video { position:absolute; top:0; left:0; right:0; bottom:0;
              width:100%; height:100%; object-fit:cover;
              object-position:center center; z-index:0; }
.hero-overlay { position:absolute; top:0; left:0; right:0; bottom:0; z-index:1;
                background:linear-gradient(rgba(10,10,20,.74),rgba(10,10,20,.74)); }
.hero-content { position:relative; z-index:2; width:100%; }
.hero h1 { font-size:42px; margin-bottom:18px; }
.hero p { font-size:20px; max-width:780px; margin:0 auto 32px; color:#e8e8e8; }
.hero-tags { margin-bottom:34px; }
.hero-tags span { display:inline-block; background:rgba(255,255,255,.12);
                  padding:8px 16px; border-radius:20px; margin:5px; font-size:14px; }

section { padding:70px 0; }
.section-title { text-align:center; font-size:32px; margin-bottom:14px; }
.section-sub { text-align:center; color:#666; max-width:760px; margin:0 auto 46px; }

.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:26px; }
.card { border:1px solid #eee; border-radius:12px; padding:28px; transition:.2s; background:#fff; }
.card:hover { box-shadow:0 10px 30px rgba(0,0,0,.08); transform:translateY(-4px); }
.card h3 { font-size:20px; margin-bottom:10px; }
.card p { color:#555; font-size:15px; }
.card .num { font-size:15px; font-weight:800; color:#ffcc00; background:#111;
             width:34px; height:34px; border-radius:50%; display:flex;
             align-items:center; justify-content:center; margin-bottom:14px; }

/* Тёмные карточки (на чёрном фоне) */
.card.dark { background:#1c1c1c; border-color:#333; }
.card.dark h3 { color:#fff; }
.card.dark p { color:#bbb; }

.photo-ph { background:#f0f0f0; border:2px dashed #bbb; border-radius:12px;
            display:flex; align-items:center; justify-content:center; color:#888;
            min-height:220px; text-align:center; font-size:15px; padding:20px; }
.photo-ph.dark { background:#1c1c1c; border-color:#444; color:#888; }

.product-photo { width:100%; height:auto; border-radius:12px; display:block;
                 box-shadow:0 10px 30px rgba(0,0,0,.35); }

.bg-grey { background:#f7f8fa; }
.bg-dark { background:#111; color:#fff; }
.bg-dark .section-title { color:#fff; }
.bg-dark .section-sub { color:#bbb; }

/* Двухколоночный блок */
.split { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.split h2 { font-size:30px; margin-bottom:18px; }
.split p { color:#555; margin-bottom:14px; }
.bg-dark .split p { color:#ccc; }
.split ul { list-style:none; }
.split ul li { padding:8px 0 8px 30px; position:relative; }
.split ul li:before { content:'✔'; position:absolute; left:0; color:#ffcc00; font-weight:700; }

/* Интерактив «Включи свет» */
.light-demo { position:relative; max-width:100%; margin:0 auto; aspect-ratio:16/9;
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 88% at center, #000 55%, transparent 100%); }
.light-demo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.light-demo .light-off { opacity:1; transition:opacity .9s ease; }
.light-demo.on .light-off { opacity:0; }

/* Обёртка выключателя под фото */
.switch-wrap { display:flex; justify-content:center; margin-top:30px; }
.switch { width:82px; height:126px; background:#f4f4f4; border:none; border-radius:14px;
          cursor:pointer; box-shadow:0 6px 20px rgba(0,0,0,.4); display:flex;
          flex-direction:column; align-items:center; justify-content:center; gap:8px;
          transition:.2s; animation:pulse 2s infinite; }
.switch:hover { transform:scale(1.05); }
.switch-key { width:44px; height:58px; background:#ddd; border-radius:6px;
              box-shadow:inset 0 -20px 0 rgba(0,0,0,.08); transition:.2s; }
.switch.on-state .switch-key { background:#ffcc00; box-shadow:inset 0 20px 0 rgba(0,0,0,.12); }
.switch-label { font-size:11px; color:#333; font-weight:700; }
@keyframes pulse { 0%,100%{box-shadow:0 6px 20px rgba(0,0,0,.4);}
                   50%{box-shadow:0 6px 28px rgba(255,204,0,.6);} }

/* Форма */
.form-note { position: fixed; left: 50%; bottom: 24px;
             transform: translateX(-50%) translateY(20px); max-width: 90%;
             padding: 14px 22px; border-radius: 10px; font-size: 15px; color: #fff;
             box-shadow: 0 6px 24px rgba(0,0,0,.25); opacity: 0;
             transition: opacity .4s, transform .4s; z-index: 9999; }
.form-note--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.form-note--ok { background: #2e7d32; }
.form-note--err { background: #c62828; }

.form-wrap { max-width:640px; margin:0 auto; background:#fff; border-radius:14px;
             padding:40px; box-shadow:0 10px 40px rgba(0,0,0,.06); }
.form-wrap input, .form-wrap select, .form-wrap textarea {
  width:100%; padding:14px; margin-bottom:16px; border:1px solid #ddd;
  border-radius:8px; font-size:15px; font-family:inherit; }
.form-wrap textarea { min-height:90px; resize:vertical; }

.file-label { display:block; font-size:14px; color:#555; margin-bottom:16px; }
.file-label input[type=file] { width:100%; padding:10px; margin:8px 0 0;
                               border:1px dashed #bbb; background:#fafafa;
                               cursor:pointer; }

.form-consent { display:flex; align-items:flex-start; gap:10px;
                font-size:13px; color:#666; line-height:1.5;
                margin-bottom:16px; cursor:pointer; }
.form-consent input[type=checkbox] { width:16px; height:16px; padding:0;
                                     margin:3px 0 0; flex-shrink:0;
                                     accent-color:#ffcc00; }
.form-consent a { color:#b8860b; text-decoration:underline; }

footer { background:#0c0c0c; color:#ccc; padding:50px 0; }
footer .container { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:30px; }
footer h4 { color:#fff; margin-bottom:14px; }
footer a:hover { color:#ffcc00; }

.footer-bottom { display:block; margin-top:36px; padding-top:20px;
                 border-top:1px solid #222; font-size:13px; color:#888; }
.footer-bottom p { margin:0 0 4px; }
.footer-bottom a { color:#888; text-decoration:underline; }
.footer-bottom a:hover { color:#ffcc00; }

/* Планшеты */
@media(max-width:800px){
  .split { grid-template-columns:1fr; }
}

/* Телефоны */
@media(max-width:600px){
  .hero { min-height:760px; padding:70px 0; align-items:center; }
  .hero-video { object-position:center top; }
  .hero-overlay { background:linear-gradient(rgba(10,10,20,.55),rgba(10,10,20,.82)); }
  .hero h1 { font-size:30px; }
  .hero p { font-size:17px; }
  .head-badge { display:none; }
  .switch { width:70px; height:104px; }
}

/* ===== Пульт управления светом ===== */
.plan-demo{ position:relative; max-width:900px; margin:0 auto; border-radius:14px;
            overflow:hidden; background:#000; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.plan-base{ display:block; width:100%; height:auto; }
.plan-layer{ position:absolute; top:0; left:0; width:100%; height:100%;
             object-fit:cover; opacity:0; mix-blend-mode:screen;
             transition:opacity .4s ease; pointer-events:none; }
.dimmer-panel{ max-width:900px; margin:24px auto 0; display:grid;
               grid-template-columns:repeat(5,1fr); gap:14px; }
.dimmer{ background:#1c1c1c; border:1px solid #333; border-radius:12px;
         padding:14px 12px; text-align:center; }
.dimmer label{ display:block; color:#eee; font-size:13px; font-weight:600; margin-bottom:10px; }
.dimmer input[type=range]{ width:100%; accent-color:#ffcc00; cursor:pointer; }
.dim-val{ display:block; margin-top:8px; color:#ffcc00; font-size:13px; font-weight:700; }
.scene-btns{ max-width:900px; margin:16px auto 0; display:flex; gap:10px;
             flex-wrap:wrap; justify-content:center; }
.scene-btn{ background:transparent; border:1px solid #ffcc00; color:#ffcc00;
            padding:10px 18px; border-radius:24px; cursor:pointer; font-size:14px;
            font-family:inherit; transition:.2s; }
.scene-btn:hover{ background:#ffcc00; color:#111; }
@media(max-width:760px){
  .dimmer-panel{grid-template-columns:repeat(2,1fr);}
  .dimmer:last-child{grid-column:1/-1;}
}

/* ===== Навигация ===== */
html { scroll-behavior:smooth; }
section, footer { scroll-margin-top:80px; } /* якорь не прячется под шапкой */
.nav { display:flex; gap:24px; }
.nav a { color:#eee; font-size:15px; transition:.2s; }
.nav a:hover { color:#ffcc00; }
.burger { display:none; background:none; border:none; cursor:pointer;
          width:36px; height:30px; flex-direction:column;
          justify-content:space-between; padding:4px; }
.burger span { display:block; height:3px; width:100%; background:#ffcc00; border-radius:2px; }
@media(max-width:900px){
  .nav { display:none; position:absolute; top:100%; left:0; right:0;
         background:#111; flex-direction:column; gap:0; border-top:1px solid #333; }
  .nav.open { display:flex; }
  .nav a { padding:15px 20px; border-bottom:1px solid #222; }
  .burger { display:flex; }
  header .container { position:relative; }
  .head-phone { font-size:16px; }
  .head-phone small { display:none; }
}

/* ===== Лайтбокс ===== */
.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 10, 16, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
  cursor: zoom-out;
  /* лёгкий эффект «приближения» при открытии */
  transform: scale(.96);
  transition: transform .25s ease;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease;
}

.lightbox-close:hover { opacity: 1; }

/* ===== Выпадающее меню «Направления» ===== */
.nav-drop { position:relative; }
.nav-drop-toggle { background:none; border:none; color:#eee; font-size:15px;
                   font-family:inherit; cursor:pointer; padding:0; transition:.2s; }
.nav-drop-toggle:hover { color:#ffcc00; }
.nav-arrow { font-size:11px; }
.nav-sub { display:none; position:absolute; top:100%; left:-16px; padding-top:14px;
           min-width:250px; z-index:20; }
.nav-sub a { display:block; background:#1c1c1c; padding:12px 18px;
             border-bottom:1px solid #2a2a2a; font-size:14px; }
.nav-sub a:first-child { border-radius:10px 10px 0 0; }
.nav-sub a:last-child { border-radius:0 0 10px 10px; border-bottom:none; }
.nav-sub a:hover { background:#262626; color:#ffcc00; }
/* десктоп: открытие по наведению */
@media(min-width:901px){
  .nav-drop:hover .nav-sub { display:block; }
}
/* мобильный: раскрытие по клику, подпункты в общем потоке */
@media(max-width:900px){
  .nav-drop-toggle { display:block; width:100%; text-align:left;
                     padding:15px 20px; border-bottom:1px solid #222; }
  .nav-sub { position:static; padding-top:0; min-width:0; }
  .nav-drop.open .nav-sub { display:block; }
  .nav-sub a { padding-left:36px; background:#161616; border-radius:0 !important; }
}

/* куки */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
              display: none; align-items: center; gap: 16px; max-width: 720px;
              margin: 0 auto; padding: 14px 18px; background: #1c1c1c; color: #ddd;
              border-radius: 12px; font-size: 14px;
              box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.cookie-bar.is-visible { display: flex; }
.cookie-bar a { color: #ffcc00; }
.cookie-bar button { flex-shrink: 0; padding: 8px 20px; border: 0; border-radius: 8px;
                     background: #ffcc00; color: #111; cursor: pointer; }
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; text-align: center; }
}