:root{
  --bg:#f6f9fd;
  --bg-2:#eef4fb;
  --card:rgba(255,255,255,.86);
  --card-strong:rgba(255,255,255,.96);
  --line:rgba(17,30,54,.08);
  --line-2:rgba(17,30,54,.12);
  --text:#132036;
  --muted:#5c6d87;
  --soft:#7e8ea8;
  --brand:#2f63ff;
  --brand-2:#5d8eff;
  --accent:#7c5cff;
  --ok:#1db978;
  --shadow:0 26px 80px rgba(16,31,58,.10);
  --shadow-soft:0 16px 40px rgba(16,31,58,.08);
  --radius:34px;
  --radius-sm:22px;
  --max:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  margin:0;
  color:var(--text);
  font:16px/1.72 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(47,99,255,.08), transparent 20%),
    radial-gradient(circle at 84% 10%, rgba(124,92,255,.08), transparent 18%),
    radial-gradient(circle at 70% 86%, rgba(29,185,120,.05), transparent 16%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 50%, #eef4fb 100%);
  min-height:100vh;
  overflow-x:hidden;
}

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

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.glow,
.glow-2,
.glow-3{
  position:fixed;
  border-radius:999px;
  filter:blur(90px);
  opacity:.42;
  pointer-events:none;
  z-index:0;
  animation:floatBlob 18s ease-in-out infinite;
}
.glow{
  width:260px;height:260px;
  left:-40px;top:70px;
  background:rgba(47,99,255,.13);
}
.glow-2{
  width:220px;height:220px;
  right:-20px;top:160px;
  background:rgba(124,92,255,.12);
  animation-delay:-6s;
}
.glow-3{
  width:220px;height:220px;
  left:48%;bottom:-40px;
  background:rgba(29,185,120,.08);
  animation-delay:-11s;
}

.wrap{
  position:relative;
  z-index:1;
  max-width:var(--max);
  margin:0 auto;
  padding:18px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 0 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand-mark{
  width:50px;
  height:50px;
  border-radius:18px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  box-shadow:0 18px 36px rgba(36,84,230,.20);
  flex:0 0 auto;
}

.brand-mark::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:17px;
  background:linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.05));
}

.brand-mark span{
  position:relative;
  z-index:1;
  color:#fff;
  font-size:20px;
  font-weight:900;
  letter-spacing:0;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.brand-copy b{
  font-size:20px;
  line-height:1;
  letter-spacing:0;
  color:var(--text);
}

.brand-copy small{
  margin-top:4px;
  color:var(--soft);
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}

.site-nav a{
  padding:10px 12px;
  border-radius:999px;
  color:#385372;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(17,30,54,.07);
  font-size:13px;
  font-weight:800;
  transition:.2s ease;
}

.site-nav a:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.96);
  border-color:rgba(47,99,255,.14);
}

.site-nav a.site-nav-featured{
  color:#122846;
  background:linear-gradient(180deg, rgba(255,184,0,.18), rgba(255,255,255,.86));
  border-color:rgba(255,184,0,.30);
}

.site-nav a.site-nav-featured:hover{
  border-color:rgba(255,184,0,.52);
}

.topbar-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
  flex-wrap:wrap;
}

.site-search{
  width:min(100%, 300px);
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:6px;
  padding:5px;
  border-radius:999px;
  border:1px solid rgba(17,30,54,.08);
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 32px rgba(17,32,64,.07);
}

.site-search input,
.search-hero-form input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  color:var(--text);
  background:transparent;
  font:inherit;
  font-size:14px;
  font-weight:750;
}

.site-search input{
  min-height:38px;
  padding:0 8px 0 14px;
}

.site-search input::placeholder,
.search-hero-form input::placeholder{
  color:#8291a9;
}

.site-search button{
  min-height:38px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:0;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(36,84,230,.16);
}

.site-search button span,
.search-hero-form button span{
  width:13px;
  height:13px;
  position:relative;
  display:inline-block;
  border:2px solid currentColor;
  border-radius:50%;
}

.site-search button span::after,
.search-hero-form button span::after{
  content:"";
  position:absolute;
  width:6px;
  height:2px;
  right:-5px;
  bottom:-3px;
  border-radius:999px;
  background:currentColor;
  transform:rotate(45deg);
  transform-origin:left center;
}

.hero{
  position:relative;
  overflow:hidden;
  border-radius:42px;
  border:1px solid rgba(17,30,54,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  padding:28px;
}

.hero::before{
  content:"";
  position:absolute;
  right:-120px;
  bottom:-140px;
  width:360px;
  height:360px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(47,99,255,.10), transparent 68%);
  pointer-events:none;
}

.hero-grid,
.article-hero-grid{
  position:relative;
  display:grid;
  gap:24px;
  align-items:start;
  z-index:1;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#5f718d;
  font-size:14px;
  font-weight:800;
  margin-bottom:14px;
}

h1{
  margin:0 0 16px;
  font-size:44px;
  line-height:.98;
  letter-spacing:0;
  max-width:12ch;
}

.article-hero h1{
  max-width:13ch;
}

.article-updated{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--soft);
  font-size:13px;
  font-weight:850;
}

.article-updated::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, #3c74ff 0%, #1db978 100%);
  box-shadow:0 0 0 5px rgba(47,99,255,.08);
  flex:0 0 auto;
}

.hero-copy p,
.page-hero p{
  margin:0;
  font-size:17px;
  line-height:1.84;
  color:var(--muted);
  max-width:62ch;
}

.article-hero-helper{
  width:min(100%, 560px);
  margin-top:28px;
  display:grid;
  gap:14px;
}

.article-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.article-facts span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(47,99,255,.10);
  background:rgba(47,99,255,.07);
  color:#315fdf;
  font-size:13px;
  font-weight:900;
}

.article-outline{
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(247,250,255,.78));
  box-shadow:0 16px 42px rgba(17,32,64,.07);
}

.article-outline-title{
  margin-bottom:12px;
  color:var(--text);
  font-size:15px;
  font-weight:900;
}

.article-outline ol{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:9px;
  counter-reset:outline;
}

.article-outline li{
  counter-increment:outline;
}

.article-outline a{
  display:grid;
  grid-template-columns:34px minmax(0, 1fr);
  gap:10px;
  align-items:center;
  min-height:46px;
  color:#1c2a44;
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}

.article-outline a::before{
  content:counter(outline, decimal-leading-zero);
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eef4ff;
  color:#315fdf;
  font-size:12px;
  font-weight:900;
}

.article-outline a:hover{
  color:#315fdf;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:0 18px;
  border-radius:18px;
  font-size:15px;
  font-weight:800;
  transition:.25s ease;
  cursor:pointer;
  border:0;
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  box-shadow:0 16px 34px rgba(36,84,230,.20);
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 40px rgba(36,84,230,.26);
}

.btn-ghost{
  color:var(--text);
  background:rgba(255,255,255,.72);
  border:1px solid rgba(19,32,54,.08);
}

.btn-ghost:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.96);
}

.hero-panel{
  border:1px solid rgba(17,30,54,.08);
  border-radius:32px;
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.74));
  padding:18px;
  box-shadow:var(--shadow-soft);
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.panel-head strong{
  font-size:15px;
  color:var(--text);
  letter-spacing:0;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(47,99,255,.08);
  border:1px solid rgba(47,99,255,.12);
  color:#315fdf;
  font-size:12px;
  font-weight:800;
}

.panel-list{
  display:grid;
  gap:12px;
}

.panel-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.66);
  border:1px solid rgba(17,30,54,.06);
}

.panel-item i{
  width:36px;height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-style:normal;
  font-weight:800;
  color:#315fdf;
  background:rgba(47,99,255,.10);
  flex:0 0 auto;
}

.panel-item b{
  display:block;
  margin-bottom:4px;
  font-size:15px;
}

.panel-item span{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.section,
.seo-box{
  margin-top:18px;
  padding:24px;
  border-radius:32px;
  border:1px solid rgba(17,30,54,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.76));
  box-shadow:var(--shadow);
}

.section h2,
.seo-box h2{
  margin:0 0 12px;
  font-size:30px;
  line-height:1.16;
  letter-spacing:0;
}

.section p,
.seo-box p,
.seo-box li{
  color:var(--muted);
  line-height:1.86;
}

.section p,
.seo-box p{
  margin:0 0 14px;
}

.section p:last-child,
.seo-box p:last-child{margin-bottom:0}

.cards,
.article-cards{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.card{
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  box-shadow:var(--shadow-soft);
  transition:.25s ease;
}

a.card:hover{
  transform:translateY(-4px);
  border-color:rgba(47,99,255,.14);
  box-shadow:0 16px 34px rgba(17,32,64,.10);
}

.card-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.card-icon{
  width:40px;height:40px;border-radius:15px;
  display:grid;place-items:center;
  background:rgba(47,99,255,.10);
  color:#315fdf;
  font-size:14px;
  font-weight:900;
  flex:0 0 auto;
}

.card h3{
  margin:0;
  font-size:18px;
  letter-spacing:0;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.75;
}

.article-card{
  display:grid;
  gap:12px;
  align-content:start;
}

.article-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:20px;
  border:1px solid rgba(17,30,54,.06);
}

.article-card-copy{
  display:grid;
  gap:4px;
}

.article-card-copy span,
.related-list span{
  color:#315fdf;
  font-size:13px;
  font-weight:800;
}

.article-card-copy strong,
.related-list strong{
  font-size:19px;
  line-height:1.28;
  letter-spacing:0;
}

.directory-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.directory-card{
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,.72);
  box-shadow:var(--shadow-soft);
}

.directory-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}

.directory-card h3{
  margin:0;
  font-size:21px;
  line-height:1.24;
}

.directory-card p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:14px;
  font-weight:800;
}

.directory-card-link{
  flex:0 0 auto;
  padding:8px 12px;
  border:1px solid rgba(47,99,255,.15);
  border-radius:999px;
  color:#214fde;
  background:rgba(47,99,255,.06);
  font-size:13px;
  font-weight:900;
}

.compact-link-list,
.article-link-list{
  list-style:none;
  margin:0;
  padding:0;
}

.compact-link-list{
  display:grid;
  gap:8px;
}

.compact-link-list a,
.article-link-list a{
  color:#17345f;
  font-weight:850;
}

.compact-link-list a:hover,
.article-link-list a:hover{
  color:#2454e6;
}

.article-link-list{
  display:grid;
  gap:0;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  overflow:hidden;
  background:rgba(255,255,255,.78);
  box-shadow:var(--shadow-soft);
}

.article-link-list li{
  display:block;
  align-items:start;
  padding:13px 16px;
  border-bottom:1px solid var(--line);
}

.article-link-list li:last-child{
  border-bottom:0;
}

.article-link-list span{
  color:var(--soft);
  font-size:13px;
  font-weight:800;
  line-height:1.45;
  text-align:right;
}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
  color:var(--soft);
  font-size:13px;
  font-weight:700;
}

.breadcrumbs a{
  color:#385372;
}

.breadcrumbs a::after{
  content:"/";
  margin-left:8px;
  color:rgba(126,142,168,.72);
}

.article{
  margin:0;
}

.scheme{
  margin:0;
}

.scheme img{
  width:min(100%, 460px);
  margin:0 auto;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.08);
  background:#eef4fb;
  box-shadow:var(--shadow-soft);
}

figcaption{
  margin-top:10px;
  color:var(--soft);
  text-align:center;
  font-size:13px;
  line-height:1.5;
}

.scheme-share{
  width:min(100%, 460px);
  margin:12px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(17,30,54,.08);
  background:rgba(255,255,255,.76);
  color:#385372;
  font-size:13px;
  font-weight:900;
  transition:.22s ease;
}

button.share-btn{
  appearance:none;
  cursor:pointer;
}

.share-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.98);
  border-color:rgba(47,99,255,.16);
  box-shadow:0 14px 28px rgba(17,32,64,.08);
}

.share-btn-native{
  gap:8px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  border-color:rgba(36,84,230,.14);
  box-shadow:0 14px 28px rgba(36,84,230,.14);
}

.share-btn-native:hover{
  background:linear-gradient(135deg, #4a7dff 0%, #2454e6 100%);
  border-color:rgba(36,84,230,.22);
}

.share-btn-pinterest{
  gap:8px;
  color:#fff;
  background:linear-gradient(135deg, #d7354d 0%, #b92137 100%);
  border-color:rgba(185,33,55,.12);
  box-shadow:0 14px 28px rgba(185,33,55,.12);
}

.share-btn-pinterest:hover{
  background:linear-gradient(135deg, #df4058 0%, #b92137 100%);
  border-color:rgba(185,33,55,.20);
}

.article-body{
  max-width:880px;
  margin-left:auto;
  margin-right:auto;
}

.article-body h2,
.article-body h3{
  margin:28px 0 12px;
  color:var(--text);
  line-height:1.2;
  letter-spacing:0;
}

.article-body h2:first-child{margin-top:0}
.article-body ul,
.article-body ol{
  margin:0 0 16px;
  padding-left:24px;
}

.note-box{
  max-width:880px;
  margin-left:auto;
  margin-right:auto;
}

.related{
  max-width:880px;
  margin-left:auto;
  margin-right:auto;
}

.related-list{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.related-list a{
  display:grid;
  gap:6px;
}

.calculator-hero-cta{
  width:max-content;
}

.calculator-intro{
  max-width:940px;
  margin-left:auto;
  margin-right:auto;
}

.calculator-section{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
  padding:0;
  overflow:hidden;
}

.lighting-calculator{
  display:grid;
  gap:0;
  background:
    linear-gradient(135deg, rgba(47,99,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.92));
}

.calc-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:24px 24px 18px;
  border-bottom:1px solid rgba(17,30,54,.08);
}

.calc-head h2{
  margin:4px 0 0;
  font-size:30px;
  line-height:1.15;
}

.calc-kicker,
.calc-result-kicker{
  color:#315fdf;
  font-size:13px;
  font-weight:900;
  letter-spacing:0;
}

.calc-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  color:#17345f;
  background:rgba(250,202,74,.24);
  border:1px solid rgba(218,165,32,.22);
  font-size:13px;
  font-weight:900;
}

.calc-form{
  display:grid;
  gap:18px;
  padding:20px 24px 24px;
}

.calc-step{
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}

.calc-step legend{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  padding:0;
  color:#17345f;
  font-size:18px;
  font-weight:900;
  line-height:1.25;
}

.calc-step legend span{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  box-shadow:0 10px 22px rgba(36,84,230,.18);
  font-size:14px;
}

.calc-choice-grid{
  display:grid;
  gap:10px;
}

.calc-choice-grid-rooms,
.calc-choice-grid-fixtures{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.calc-choice-grid-styles{
  grid-template-columns:1fr;
}

.calc-option{
  position:relative;
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(17,30,54,.08);
  background:rgba(255,255,255,.82);
  color:#17345f;
  cursor:pointer;
  font-weight:900;
  line-height:1.2;
  transition:background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.calc-option:hover{
  transform:translateY(-1px);
  border-color:rgba(47,99,255,.16);
  background:#fff;
}

.calc-option:has(input:checked){
  border-color:rgba(47,99,255,.42);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(238,244,255,.94));
  box-shadow:0 12px 28px rgba(36,84,230,.10);
}

.calc-option:has(input:focus-visible){
  outline:3px solid rgba(47,99,255,.22);
  outline-offset:2px;
}

.calc-option input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.calc-style-visual{
  width:48px;
  height:36px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#eef4fb;
  overflow:hidden;
}

.calc-style-visual i{
  width:22px;
  height:22px;
  display:block;
  border-radius:999px;
  box-shadow:0 0 28px currentColor;
}

.calc-style-warm .calc-style-visual{
  color:#f0a833;
  background:linear-gradient(135deg, #fff6de, #ffe0a8);
}

.calc-style-neutral .calc-style-visual{
  color:#7aa6ff;
  background:linear-gradient(135deg, #eef5ff, #ffffff);
}

.calc-style-work .calc-style-visual{
  color:#35b3c4;
  background:linear-gradient(135deg, #e7fbff, #dceaff);
}

.calc-style-accent .calc-style-visual{
  color:#68c389;
  background:linear-gradient(135deg, #ebfff3, #e8edff);
}

.calc-measure-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.calc-measure-grid label,
.calc-area-badge{
  display:grid;
  gap:6px;
  min-width:0;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(17,30,54,.08);
  background:rgba(255,255,255,.82);
}

.calc-measure-grid span,
.calc-area-badge span{
  color:var(--soft);
  font-size:12px;
  font-weight:900;
}

.calc-measure-grid input{
  width:100%;
  min-width:0;
  min-height:44px;
  border:0;
  border-radius:12px;
  padding:0 12px;
  color:#17345f;
  background:rgba(238,244,251,.92);
  font-size:18px;
  font-weight:900;
  outline:0;
}

.calc-measure-grid input:focus{
  box-shadow:0 0 0 3px rgba(47,99,255,.18);
  background:#fff;
}

.calc-area-badge{
  align-content:center;
  background:linear-gradient(135deg, rgba(47,99,255,.12), rgba(29,185,120,.10));
}

.calc-area-badge strong{
  color:#17345f;
  font-size:22px;
  line-height:1.1;
}

.calc-advanced{
  border:1px solid rgba(17,30,54,.08);
  border-radius:18px;
  background:rgba(255,255,255,.68);
  overflow:hidden;
}

.calc-advanced summary,
.calc-details summary{
  cursor:pointer;
  padding:14px 16px;
  color:#17345f;
  font-weight:900;
}

.calc-technical-grid{
  padding:0 14px 14px;
}

.calc-actions{
  display:flex;
  justify-content:flex-start;
}

.calc-submit{
  min-width:min(100%, 320px);
}

.calc-result{
  margin:0 24px 24px;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(47,99,255,.13);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86));
  box-shadow:0 24px 58px rgba(17,32,64,.11);
}

.calc-result[hidden]{
  display:none;
}

.calc-result h2{
  margin:6px 0 18px;
  font-size:28px;
  line-height:1.22;
}

.calc-result-metrics{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin-bottom:18px;
}

.calc-result-metrics div{
  min-width:0;
  padding:12px;
  border-radius:18px;
  background:rgba(238,244,251,.86);
}

.calc-result-metrics span{
  display:block;
  color:var(--soft);
  font-size:12px;
  font-weight:900;
}

.calc-result-metrics strong{
  display:block;
  margin-top:4px;
  color:#17345f;
  font-size:17px;
  line-height:1.18;
}

.calc-layout{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(260px, 1.1fr);
  gap:16px;
  align-items:center;
  margin-top:8px;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(47,99,255,.08), rgba(29,185,120,.06));
}

.calc-layout h3,
.calc-product-block h3{
  margin:0 0 6px;
  color:#17345f;
  font-size:21px;
  line-height:1.2;
}

.calc-layout p{
  margin:0;
  color:var(--muted);
}

.calc-plan{
  --calc-cols:3;
  --calc-rows:2;
  position:relative;
  min-height:180px;
  aspect-ratio:5/3;
  display:grid;
  grid-template-columns:repeat(var(--calc-cols), minmax(0, 1fr));
  grid-template-rows:repeat(var(--calc-rows), minmax(0, 1fr));
  place-items:center;
  gap:12px;
  padding:28px;
  border:2px solid rgba(23,52,95,.18);
  border-radius:22px;
  background:
    linear-gradient(90deg, rgba(23,52,95,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23,52,95,.05) 1px, transparent 1px),
    rgba(255,255,255,.82);
  background-size:34px 34px;
}

.calc-plan.is-track::before{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:50%;
  height:4px;
  border-radius:999px;
  background:rgba(23,52,95,.18);
}

.calc-dot{
  position:relative;
  z-index:1;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#ffd560;
  border:3px solid #fff;
  box-shadow:0 0 0 1px rgba(23,52,95,.10), 0 0 26px rgba(255,185,55,.78);
}

.calc-product-block{
  margin-top:18px;
}

.calc-products{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}

.calc-product-card{
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:12px;
  min-width:0;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(17,30,54,.08);
  background:rgba(255,255,255,.88);
}

.calc-product-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.calc-product-head span{
  color:#315fdf;
  font-size:13px;
  font-weight:900;
}

.calc-product-price{
  color:#17345f;
  font-size:13px;
  white-space:nowrap;
}

.calc-product-body{
  display:grid;
  grid-template-columns:76px minmax(0, 1fr);
  gap:12px;
}

.calc-product-body h4{
  margin:0;
  color:#17345f;
  font-size:16px;
  line-height:1.25;
}

.calc-product-body p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.calc-product-placeholder,
.calc-product-body img{
  width:76px;
  height:56px;
  border-radius:16px;
  object-fit:cover;
  background:linear-gradient(135deg, rgba(47,99,255,.12), rgba(255,213,96,.28));
}

.calc-product-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  color:#315fdf;
  font-size:11px;
  font-weight:900;
  line-height:1.1;
  text-align:center;
}

.calc-product-link{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  font-size:14px;
  font-weight:900;
  transition:transform .2s ease, box-shadow .2s ease;
}

.calc-product-link:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(36,84,230,.14);
}

.calc-product-empty{
  padding:14px;
  border-radius:18px;
  background:rgba(238,244,251,.92);
}

.calc-details{
  margin-top:18px;
  border:1px solid rgba(17,30,54,.08);
  border-radius:18px;
  background:rgba(238,244,251,.72);
  overflow:hidden;
}

.calc-details div{
  padding:0 16px 16px;
}

.calc-details p{
  margin:0 0 10px;
  color:var(--muted);
}

.calc-details p:last-child{
  margin-bottom:0;
}

.empty-box{
  margin-top:18px;
  padding:24px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  color:var(--muted);
  box-shadow:var(--shadow-soft);
}

.search-hero{
  display:grid;
  gap:22px;
}

.search-hero-copy{
  position:relative;
  z-index:1;
}

.search-hero h1{
  max-width:15ch;
}

.search-hero-form{
  position:relative;
  z-index:1;
  width:min(100%, 760px);
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:8px;
  padding:8px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.08);
  background:rgba(255,255,255,.88);
  box-shadow:var(--shadow-soft);
}

.search-hero-form input{
  min-height:54px;
  padding:0 16px;
  font-size:18px;
}

.search-hero-form button{
  min-height:54px;
  padding:0 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(36,84,230,.18);
}

.search-section{
  display:grid;
  gap:16px;
}

.search-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:space-between;
}

.search-status{
  color:var(--muted);
  font-size:15px;
  font-weight:800;
}

.search-yandex{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(47,99,255,.12);
  background:rgba(47,99,255,.07);
  color:#315fdf;
  font-size:13px;
  font-weight:900;
}

.search-results{
  display:grid;
  gap:12px;
}

.search-result{
  --result-accent:#315fdf;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:14px;
  align-items:center;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  box-shadow:var(--shadow-soft);
  position:relative;
  overflow:hidden;
  opacity:0;
  transform:translateY(12px);
  animation:resultEnter .42s cubic-bezier(.2,.8,.2,1) forwards;
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.search-result:nth-child(2){animation-delay:.04s}
.search-result:nth-child(3){animation-delay:.08s}
.search-result:nth-child(4){animation-delay:.12s}
.search-result:nth-child(n+5){animation-delay:.16s}

.search-result::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg, #3c74ff, #1db978);
  opacity:.72;
}

.search-result::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 0%, rgba(47,99,255,.08) 45%, transparent 70%);
  transform:translateX(-120%);
  transition:transform .55s ease;
  pointer-events:none;
}

.search-result:hover{
  transform:translateY(-3px);
  border-color:rgba(47,99,255,.15);
  box-shadow:0 18px 42px rgba(17,32,64,.13);
}

.search-result:hover::after{
  transform:translateX(120%);
}

.search-result-copy{
  min-width:0;
}

.search-result-kicker{
  display:block;
  margin-bottom:4px;
  color:#315fdf;
  font-size:13px;
  font-weight:900;
}

.search-result-title{
  display:block;
  color:var(--text);
  font-size:20px;
  line-height:1.25;
  font-weight:950;
}

.search-result-text{
  margin:8px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
}

.search-result-arrow{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  box-shadow:0 12px 24px rgba(36,84,230,.18);
  position:relative;
  transition:transform .22s ease, box-shadow .22s ease;
}

.search-result-arrow::before{
  content:"";
  width:12px;
  height:12px;
  border-top:3px solid currentColor;
  border-right:3px solid currentColor;
  transform:rotate(45deg) translate(-1px,1px);
  border-radius:2px;
}

.search-result:hover .search-result-arrow{
  transform:translateX(3px);
  box-shadow:0 16px 30px rgba(36,84,230,.24);
}

.search-empty{
  display:grid;
  gap:10px;
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.07);
  background:rgba(255,255,255,.72);
  color:var(--muted);
}

.search-empty[hidden]{
  display:none;
}

.footer{
  margin:18px 0 10px;
  padding:24px;
  border-radius:32px;
  border:1px solid rgba(17,30,54,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.76));
  box-shadow:var(--shadow);
  display:grid;
  gap:18px;
}

.footer-top{
  display:grid;
  gap:18px;
}

.footer-brand{
  max-width:560px;
}

.footer-brand p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.82;
}

.footer-links{
  display:grid;
  gap:8px;
  align-content:start;
}

.footer-links a{
  color:#385372;
  opacity:.94;
  transition:.2s ease;
}

.footer-links a:hover{
  opacity:1;
  transform:translateX(2px);
}

.footer-bottom{
  padding-top:16px;
  border-top:1px solid rgba(17,30,54,.08);
  color:var(--soft);
  font-size:14px;
  line-height:1.75;
}

.footer-bottom a,
.legal-body a,
.cookie-notice a{
  color:#315fdf;
  font-weight:800;
}

.legal-section{
  padding:30px;
}

.legal-body{
  max-width:900px;
  margin:0 auto;
  color:var(--muted);
}

.legal-body h2,
.legal-body h3{
  color:var(--text);
  line-height:1.22;
  letter-spacing:0;
}

.legal-body h2{
  margin:30px 0 12px;
  font-size:28px;
}

.legal-body h2:first-child{
  margin-top:0;
}

.legal-body h3{
  margin:22px 0 10px;
  font-size:21px;
}

.legal-body p,
.legal-body li{
  line-height:1.86;
}

.legal-body p{
  margin:0 0 14px;
}

.legal-body ul,
.legal-body ol{
  margin:0 0 18px;
  padding-left:24px;
}

.legal-body table{
  width:100%;
  margin:18px 0 22px;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(17,30,54,.08);
  border-radius:20px;
  background:rgba(255,255,255,.72);
}

.legal-body th,
.legal-body td{
  padding:14px 16px;
  border-bottom:1px solid rgba(17,30,54,.07);
  border-right:1px solid rgba(17,30,54,.07);
  text-align:left;
  vertical-align:top;
}

.legal-body th{
  color:var(--text);
  background:rgba(47,99,255,.07);
  font-weight:900;
}

.legal-body tr:last-child td{
  border-bottom:0;
}

.legal-body th:last-child,
.legal-body td:last-child{
  border-right:0;
}

.cookie-notice{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:20;
  width:min(calc(100% - 36px), 860px);
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(17,30,54,.10);
  background:rgba(255,255,255,.96);
  box-shadow:0 20px 60px rgba(16,31,58,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.cookie-notice[hidden]{
  display:none;
}

.cookie-notice p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.cookie-notice button{
  min-height:42px;
  padding:0 16px;
  border:0;
  border-radius:14px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(36,84,230,.18);
}

.back-to-top{
  position:fixed;
  right:max(18px, env(safe-area-inset-right));
  bottom:calc(22px + env(safe-area-inset-bottom));
  z-index:30;
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.64);
  border-radius:18px;
  color:#fff;
  background:linear-gradient(135deg, #3c74ff 0%, #2454e6 100%);
  box-shadow:0 18px 38px rgba(36,84,230,.24), 0 8px 18px rgba(17,32,64,.10);
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(14px) scale(.94);
  transition:opacity .22s ease, transform .22s ease, box-shadow .22s ease;
}

.has-cookie-notice-visible .back-to-top{
  bottom:calc(116px + env(safe-area-inset-bottom));
}

.back-to-top.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.back-to-top:hover{
  transform:translateY(-3px) scale(1);
  box-shadow:0 22px 46px rgba(36,84,230,.30), 0 10px 22px rgba(17,32,64,.12);
}

.back-to-top span{
  width:14px;
  height:14px;
  border-top:3px solid currentColor;
  border-left:3px solid currentColor;
  border-radius:2px;
  transform:rotate(45deg) translate(2px,2px);
}

@media (min-width:760px){
  .calc-choice-grid-styles{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

@media (min-width:900px){
  .wrap{padding:24px}
  .hero{padding:38px}
  .hero-grid{
    grid-template-columns:1.06fr .94fr;
    gap:28px;
  }
  .article-hero-grid{
    grid-template-columns:minmax(0, 1fr) minmax(280px, 420px);
    gap:28px;
  }
  .article-hero .scheme img,
  .article-hero .scheme-share{
    width:min(100%, 380px);
  }
  h1{font-size:72px}
  .cards{grid-template-columns:1fr 1fr 1fr}
  .article-cards{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .related-list{grid-template-columns:1fr 1fr}
  .footer-top{grid-template-columns:1.1fr .9fr}
  .section,.seo-box,.footer{padding:30px}
  .section.calculator-section{padding:0}
}

@media (min-width:1050px){
  .article-hero-grid{
    grid-template-columns:minmax(0, 1fr) minmax(320px, 500px);
    gap:30px;
  }
  .article-hero .scheme img,
  .article-hero .scheme-share{
    width:min(100%, 460px);
  }
}

@media (max-width:820px){
  .calc-result-metrics,
  .calc-products{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .calc-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:899px){
  .topbar-tools{
    width:100%;
    justify-content:flex-start;
  }
  .site-search{
    width:min(100%, 360px);
  }
  .site-nav{
    justify-content:flex-start;
  }
  .article-facts{
    display:none;
  }
}

@media (max-width:640px){
  .wrap{
    padding:12px;
  }
  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  .topbar-tools,
  .site-search{
    width:100%;
  }
  .site-nav{
    gap:6px;
  }
  .hero{padding:20px}
  h1{font-size:40px}
  .article-hero h1{font-size:36px}
  .hero-copy p{font-size:16px}
  .section,
  .seo-box{
    padding:18px;
    border-radius:26px;
  }
  .section h2,
  .seo-box h2{font-size:25px}
  .btn{width:100%}
  .hero-actions{display:grid}
  .cards,
  .article-cards{grid-template-columns:1fr}
  .article-cards{
    gap:18px;
  }
  .article-card.card{
    width:calc(100vw - 24px);
    margin-inline:calc(50% - 50vw + 12px);
    padding:0;
    gap:0;
    overflow:hidden;
    border-radius:24px;
  }
  .article-card img{
    width:100%;
    border:0;
    border-radius:0;
  }
  .article-card-copy,
  .article-card.card > p{
    padding-inline:16px;
  }
  .article-card-copy{
    padding-top:16px;
  }
  .article-card.card > p{
    padding-bottom:18px;
  }
  .calculator-hero-cta{
    width:100%;
  }
  .calculator-section{
    width:calc(100vw - 24px);
    margin-inline:calc(50% - 50vw + 12px);
    border-radius:24px;
  }
  .calc-head,
  .calc-form{
    padding-left:14px;
    padding-right:14px;
  }
  .calc-head{
    display:grid;
    gap:10px;
  }
  .calc-head h2{
    font-size:25px;
  }
  .calc-badge{
    width:max-content;
  }
  .calc-choice-grid-rooms,
  .calc-choice-grid-fixtures,
  .calc-choice-grid-styles,
  .calc-measure-grid,
  .calc-result-metrics,
  .calc-products{
    grid-template-columns:1fr;
  }
  .calc-option{
    min-height:54px;
    border-radius:16px;
  }
  .calc-result{
    margin:0 12px 14px;
    padding:16px;
    border-radius:22px;
  }
  .calc-result h2{
    font-size:22px;
  }
  .calc-layout{
    padding:14px;
  }
  .calc-plan{
    min-height:150px;
    padding:22px;
  }
  .calc-product-card{
    border-radius:18px;
  }
  .article-hero .scheme.hero-panel{
    width:calc(100vw - 24px);
    margin-inline:calc(50% - 50vw + 12px);
    padding:0;
    overflow:hidden;
    border-radius:24px;
  }
  .article-hero .scheme img{
    width:100%;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .article-hero .scheme figcaption{
    padding:0 16px;
  }
  .article-hero .scheme-share{
    width:auto;
    margin:14px 16px 18px;
  }
  .directory-card-head,
  .article-link-list li{
    grid-template-columns:1fr;
  }
  .directory-card-head{
    display:grid;
  }
  .article-link-list span{
    text-align:left;
  }
  .scheme img{width:100%}
  .legal-section{padding:22px}
  .legal-body table{
    display:block;
    overflow-x:auto;
  }
  .cookie-notice{
    grid-template-columns:1fr;
  }
  .cookie-notice button{
    width:100%;
  }
  .back-to-top{
    right:max(14px, env(safe-area-inset-right));
    bottom:calc(14px + env(safe-area-inset-bottom));
    width:46px;
    height:46px;
    border-radius:16px;
  }
  .has-cookie-notice-visible .back-to-top{
    bottom:calc(168px + env(safe-area-inset-bottom));
  }
  .search-hero-form{
    grid-template-columns:1fr;
  }
  .search-hero-form button{
    width:100%;
  }
  .search-result{
    grid-template-columns:1fr;
  }
  .search-result-arrow{
    display:none;
  }
}

@media (min-width:760px) and (max-width:899px){
  .article-hero-grid{
    grid-template-columns:minmax(0, 1fr) minmax(240px, 300px);
    gap:20px;
  }
  .article-hero .scheme{
    padding:16px;
  }
  .article-hero .scheme img,
  .article-hero .scheme-share{
    width:min(100%, 260px);
  }
  .article-hero-helper{
    margin-top:22px;
  }
}

@keyframes pulse{
  0%{transform:scale(1);opacity:1}
  50%{transform:scale(1.14);opacity:.82}
  100%{transform:scale(1);opacity:1}
}

@keyframes floatBlob{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-18px,0)}
}

@keyframes resultEnter{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Calculator-specific UX refresh */
.lighting-calculator{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(17,30,54,.08);
  border-radius:30px;
  box-shadow:0 26px 70px rgba(17,32,64,.11);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(247,250,255,.92) 58%, rgba(255,248,232,.92) 100%);
}

.lighting-calculator::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:180px;
  background:linear-gradient(90deg, rgba(47,99,255,.10), rgba(255,202,60,.12), transparent 72%);
  opacity:.75;
  pointer-events:none;
  z-index:-1;
}

.calc-head{
  padding:28px 28px 14px;
}

.calc-head h2{
  max-width:18ch;
  font-size:34px;
}

.calc-badge{
  min-height:40px;
  padding:0 16px;
  border-radius:16px;
  background:#fff4cf;
  box-shadow:0 10px 28px rgba(218,165,32,.12);
}

.calc-progress{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  margin:0;
  padding:0 28px 22px;
  list-style:none;
}

.calc-progress li{
  position:relative;
  min-width:0;
  padding:11px 10px 11px 34px;
  border-radius:16px;
  color:#5d6d8c;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(17,30,54,.07);
  font-size:13px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
}

.calc-progress li::before{
  content:"";
  position:absolute;
  left:11px;
  top:50%;
  width:12px;
  height:12px;
  border-radius:999px;
  background:#dbe5f4;
  transform:translateY(-50%);
}

.calc-progress li.is-active{
  color:#17345f;
  background:rgba(255,255,255,.92);
  border-color:rgba(47,99,255,.18);
}

.calc-progress li.is-active::before{
  background:#2f63ff;
  box-shadow:0 0 0 5px rgba(47,99,255,.11);
}

.calc-progress li.is-current{
  box-shadow:0 10px 24px rgba(17,32,64,.08);
}

.calc-workspace{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(300px, 340px);
  gap:20px;
  align-items:start;
  padding:0 28px 28px;
}

.calc-form{
  padding:0;
  gap:16px;
}

.calc-step{
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(17,30,54,.07);
  background:rgba(255,255,255,.74);
  box-shadow:0 14px 34px rgba(17,32,64,.045);
}

.calc-step legend{
  margin-bottom:14px;
  color:#10213c;
}

.calc-step legend span{
  border-radius:12px;
}

.calc-choice-grid-rooms{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.calc-choice-grid-fixtures,
.calc-choice-grid-styles{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.calc-option{
  min-height:64px;
  border-radius:18px;
  background:rgba(255,255,255,.90);
  border-color:rgba(16,33,60,.10);
}

.calc-option::after{
  content:"";
  position:absolute;
  top:12px;
  right:12px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#d7e2f0;
  transition:background .2s ease, box-shadow .2s ease;
}

.calc-option:has(input:checked){
  border-color:rgba(47,99,255,.58);
  background:linear-gradient(180deg, #fff, #f3f7ff);
  box-shadow:0 16px 34px rgba(36,84,230,.13);
}

.calc-option:has(input:checked)::after{
  background:#2f63ff;
  box-shadow:0 0 0 5px rgba(47,99,255,.13);
}

.calc-measure-grid label,
.calc-area-badge{
  border-radius:18px;
  background:rgba(255,255,255,.92);
}

.calc-area-badge{
  background:linear-gradient(135deg, rgba(255,213,96,.34), rgba(238,244,255,.98));
}

.calc-area-badge strong{
  font-size:26px;
}

.calc-live{
  position:sticky;
  top:18px;
  display:grid;
  gap:14px;
  padding:20px;
  border-radius:26px;
  border:1px solid rgba(17,30,54,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,255,.92));
  box-shadow:0 24px 54px rgba(17,32,64,.10);
}

.calc-live-label{
  width:max-content;
  padding:7px 10px;
  border-radius:12px;
  color:#315fdf;
  background:rgba(47,99,255,.10);
  font-size:12px;
  font-weight:900;
}

.calc-live strong{
  color:#10213c;
  font-size:28px;
  line-height:1.12;
}

.calc-live p{
  margin:0;
  color:#5d6d8c;
  line-height:1.45;
}

.calc-live-details{
  display:grid;
  gap:8px;
  margin:0;
}

.calc-live-details div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-top:1px solid rgba(17,30,54,.07);
}

.calc-live-details dt,
.calc-live-details dd{
  margin:0;
  font-size:13px;
  line-height:1.2;
}

.calc-live-details dt{
  color:#6a7894;
  font-weight:800;
}

.calc-live-details dd{
  color:#10213c;
  font-weight:900;
  text-align:right;
}

.calc-live-plan,
.calc-plan{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  display:grid;
  grid-template-columns:repeat(var(--calc-cols), minmax(0, 1fr));
  grid-template-rows:repeat(var(--calc-rows), minmax(0, 1fr));
  place-items:center;
  gap:12px;
  border:2px solid rgba(23,52,95,.16);
  background:
    linear-gradient(135deg, rgba(228,194,139,.16) 25%, transparent 25%, transparent 50%, rgba(228,194,139,.16) 50%, rgba(228,194,139,.16) 75%, transparent 75%, transparent),
    #fffdf8;
  background-size:44px 44px;
}

.calc-live-plan{
  --calc-cols:3;
  --calc-rows:2;
  min-height:170px;
  aspect-ratio:5/3;
  padding:28px;
  border-radius:22px;
}

.calc-plan{
  min-height:220px;
  padding:34px;
  border-radius:24px;
}

.calc-plan-window,
.calc-plan-sofa,
.calc-plan-table,
.calc-plan-zone{
  position:absolute;
  pointer-events:none;
  z-index:0;
}

.calc-plan-window{
  top:18px;
  left:19%;
  right:19%;
  height:12px;
  border-radius:999px;
  background:#dceaff;
  border:1px solid #c4d7f1;
}

.calc-plan-sofa{
  left:17%;
  bottom:17px;
  width:38%;
  height:28px;
  border-radius:12px;
  background:#dfe9f5;
  border:1px solid #bccfe6;
}

.calc-plan-table{
  left:50%;
  top:50%;
  width:52px;
  height:52px;
  border-radius:999px;
  background:#f1dfc5;
  border:1px solid #d8bc8d;
  transform:translate(-50%, -50%);
}

.calc-plan-zone{
  right:13%;
  bottom:18px;
  width:20%;
  height:26px;
  border-radius:12px;
  background:#e5f0df;
  border:1px solid #c5d8bd;
}

.calc-plan.is-track::before,
.calc-live-plan.is-track::before{
  content:"";
  position:absolute;
  left:28px;
  right:28px;
  top:50%;
  height:5px;
  border-radius:999px;
  background:rgba(23,52,95,.20);
  z-index:1;
}

.calc-dot{
  z-index:2;
  width:22px;
  height:22px;
  background:#ffd45f;
  border:4px solid rgba(255,255,255,.95);
  box-shadow:0 0 0 1px rgba(23,52,95,.10), 0 0 22px rgba(255,185,55,.72), 0 0 42px rgba(255,213,96,.35);
}

.calc-live-plan .calc-dot{
  width:18px;
  height:18px;
  border-width:3px;
}

.calc-plan.is-track,
.calc-live-plan.is-track,
.calc-plan.is-ceiling,
.calc-live-plan.is-ceiling{
  display:block;
}

.calc-plan.is-track::before,
.calc-live-plan.is-track::before{
  display:none;
}

.calc-track-rail{
  position:absolute;
  left:15%;
  right:15%;
  height:8px;
  border-radius:999px;
  background:linear-gradient(180deg, #dbe6f4, #9fb5d0);
  border:1px solid rgba(23,52,95,.16);
  box-shadow:0 6px 14px rgba(17,32,64,.10), inset 0 1px 0 rgba(255,255,255,.8);
  transform:translateY(-50%);
  z-index:2;
}

.calc-track-head,
.calc-ceiling-fixture{
  position:absolute;
  transform:translate(-50%, -50%);
  z-index:3;
}

.calc-track-head{
  width:34px;
  height:26px;
  border-radius:12px;
  background:linear-gradient(180deg, #fff8dc, #ffd45f);
  border:3px solid #fff;
  box-shadow:0 0 0 1px rgba(23,52,95,.12), 0 0 22px rgba(255,185,55,.68);
}

.calc-track-head::after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  width:42px;
  height:48px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 0, rgba(255,213,96,.38), transparent 68%);
  transform:translateX(-50%);
  pointer-events:none;
}

.calc-ceiling-fixture{
  width:58px;
  height:58px;
  border-radius:999px;
  background:radial-gradient(circle at 50% 42%, #fff7dc 0 28%, #ffd45f 29% 45%, #f2b738 46% 58%, #fff8e7 59% 100%);
  border:4px solid rgba(255,255,255,.96);
  box-shadow:0 0 0 1px rgba(23,52,95,.12), 0 12px 30px rgba(17,32,64,.10), 0 0 38px rgba(255,196,55,.48);
}

.calc-ceiling-fixture::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(255,213,96,.34), transparent 66%);
  z-index:-1;
}

.calc-ceiling-fixture::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(161,111,26,.35);
  transform:translate(-50%, -50%);
}

.calc-live-plan .calc-track-rail{
  height:6px;
}

.calc-live-plan .calc-track-head{
  width:26px;
  height:20px;
  border-radius:10px;
  border-width:2px;
}

.calc-live-plan .calc-track-head::after{
  width:30px;
  height:34px;
}

.calc-live-plan .calc-ceiling-fixture{
  width:44px;
  height:44px;
  border-width:3px;
}

.calc-plan.is-ceiling .calc-plan-table,
.calc-live-plan.is-ceiling .calc-plan-table{
  opacity:.58;
}

.calc-actions{
  padding-top:2px;
}

.calc-submit{
  min-width:min(100%, 360px);
  box-shadow:0 18px 34px rgba(36,84,230,.20);
}

.calc-result{
  margin:0 28px 28px;
  padding:24px;
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.94));
}

.calc-result.is-visible{
  animation:resultEnter .28s ease both;
}

.calc-result-hero{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(140px, 180px);
  gap:20px;
  align-items:center;
  margin-bottom:18px;
}

.calc-result h2{
  margin:6px 0 0;
  font-size:30px;
}

.calc-result-number{
  display:grid;
  justify-items:center;
  padding:18px 14px;
  border-radius:24px;
  color:#10213c;
  background:linear-gradient(180deg, #fff7dc, #fff);
  border:1px solid rgba(218,165,32,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.calc-result-number span{
  color:#2454e6;
  font-size:74px;
  font-weight:900;
  line-height:.9;
}

.calc-result-number small{
  margin-top:8px;
  color:#5d6d8c;
  font-size:13px;
  font-weight:900;
  line-height:1.15;
  text-align:center;
}

.calc-result-metrics div{
  background:#f3f7fc;
}

.calc-layout{
  grid-template-columns:minmax(0, .82fr) minmax(280px, 1.18fr);
  background:linear-gradient(135deg, rgba(47,99,255,.07), rgba(255,213,96,.16));
}

.calc-product-card{
  border-radius:22px;
  color:inherit;
  cursor:pointer;
  text-decoration:none;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 34px rgba(17,32,64,.06);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.calc-product-card:hover,
.calc-product-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(47,99,255,.22);
  box-shadow:0 18px 38px rgba(17,32,64,.10);
}

.calc-product-card:focus-visible{
  outline:3px solid rgba(47,99,255,.22);
  outline-offset:3px;
}

.calc-product-card:active{
  transform:translateY(0);
}

.calc-product-count{
  display:block;
  width:max-content;
  max-width:100%;
  margin-top:9px;
  padding:6px 9px;
  border-radius:10px;
  color:#17345f;
  background:#fff4cf;
  font-size:12px;
  line-height:1.1;
}

.calc-product-link{
  border-radius:14px;
}

@media (min-width:760px){
  .calc-choice-grid-styles{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:860px){
  .calc-workspace{
    grid-template-columns:1fr;
  }
  .calc-layout{
    grid-template-columns:1fr;
  }
  .calc-live{
    position:relative;
    top:auto;
    order:-1;
  }
}

@media (max-width:640px){
  .calculator-section{
    overflow:visible;
  }
  .lighting-calculator{
    border-radius:28px;
    box-shadow:0 18px 46px rgba(17,32,64,.10);
  }
  .lighting-calculator::before{
    height:150px;
  }
  .calc-head{
    display:grid;
    gap:10px;
    padding:18px 14px 12px;
  }
  .calc-head h2{
    max-width:none;
    font-size:24px;
  }
  .calc-badge{
    width:max-content;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    font-size:12px;
  }
  .calc-progress{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    gap:5px;
    padding:0 14px 14px;
    -webkit-overflow-scrolling:touch;
  }
  .calc-progress li{
    flex:0 0 auto;
    min-height:38px;
    padding:9px 12px;
    display:flex;
    align-items:center;
    scroll-snap-align:start;
    white-space:normal;
    font-size:12px;
  }
  .calc-progress li::before{
    display:none;
  }
  .calc-workspace{
    padding:0 10px 14px;
    gap:14px;
  }
  .calc-live{
    order:0;
    padding:14px;
    border-radius:24px;
  }
  .calc-live strong{
    font-size:22px;
  }
  .calc-live-details div{
    padding:8px 0;
  }
  .calc-live-plan{
    min-height:138px;
    padding:22px;
  }
  .calc-form{
    gap:12px;
  }
  .calc-step{
    padding:14px;
    border-radius:24px;
    background:rgba(255,255,255,.92);
    box-shadow:0 14px 30px rgba(17,32,64,.07);
  }
  .calc-step legend{
    font-size:19px;
  }
  .calc-choice-grid-rooms{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .calc-choice-grid-fixtures,
  .calc-choice-grid-styles{
    grid-template-columns:1fr;
  }
  .calc-option{
    min-height:52px;
    padding:12px 38px 12px 12px;
  }
  .calc-measure-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .calc-height-field,
  .calc-area-badge{
    grid-column:auto;
  }
  .calc-actions{
    position:sticky;
    bottom:10px;
    z-index:5;
    margin:0 -2px;
    padding:10px;
    border-radius:20px;
    background:rgba(255,255,255,.84);
    box-shadow:0 12px 34px rgba(17,32,64,.14);
    backdrop-filter:blur(10px);
  }
  .calc-submit{
    width:100%;
    min-width:0;
  }
  .calc-result{
    margin:0 10px 14px;
    padding:16px;
    border-radius:24px;
  }
  .calc-result-hero{
    grid-template-columns:1fr;
    gap:14px;
  }
  .calc-result h2{
    font-size:22px;
  }
  .calc-result-number{
    grid-template-columns:auto 1fr;
    justify-items:start;
    gap:12px;
    align-items:center;
    padding:14px;
  }
  .calc-result-number span{
    font-size:58px;
  }
  .calc-result-number small{
    margin:0;
    text-align:left;
  }
  .calc-result-metrics{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .calc-layout{
    padding:14px;
    border-radius:22px;
  }
  .calc-plan{
    min-height:158px;
    padding:24px;
  }
  .calc-plan .calc-track-rail{
    left:12%;
    right:12%;
    height:6px;
  }
  .calc-plan .calc-track-head{
    width:27px;
    height:21px;
    border-width:3px;
    border-radius:10px;
  }
  .calc-plan .calc-track-head::after{
    width:30px;
    height:34px;
  }
  .calc-products{
    grid-template-columns:1fr;
  }
  .calc-product-card{
    display:grid;
    gap:12px;
    padding:16px;
    border-radius:20px;
  }
  .calc-product-head{
    align-items:flex-start;
  }
  .calc-product-head span{
    padding:6px 9px;
    border-radius:999px;
    background:rgba(47,99,255,.10);
    line-height:1;
  }
  .calc-product-price{
    padding-top:5px;
    font-size:14px;
  }
  .calc-product-body{
    grid-template-columns:1fr;
    gap:10px;
  }
  .calc-product-body h4{
    font-size:18px;
    line-height:1.28;
  }
  .calc-product-body p{
    font-size:14px;
  }
  .calc-product-placeholder{
    width:max-content;
    max-width:100%;
    height:auto;
    min-height:34px;
    padding:9px 12px;
    border-radius:999px;
    font-size:12px;
    background:linear-gradient(135deg, rgba(47,99,255,.10), rgba(255,213,96,.32));
  }
  .calc-product-body img{
    width:100%;
    height:auto;
    max-height:170px;
  }
  .calc-product-count{
    width:100%;
    text-align:center;
  }
  .calc-product-link{
    min-height:48px;
    width:100%;
    font-size:15px;
  }
}

/* Mobile calculator should use the screen, not nest narrow cards inside cards. */
@media (max-width:760px){
  .section.calculator-section{
    width:100vw;
    max-width:none;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    padding:0;
    border-radius:0;
  }

  .lighting-calculator{
    width:100%;
    border-left:0;
    border-right:0;
    border-radius:0;
    box-shadow:none;
  }

  .calc-head{
    display:grid;
    gap:10px;
    padding:18px 12px 12px;
  }

  .calc-badge{
    width:max-content;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    font-size:12px;
  }

  .calc-progress{
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding:0 12px 14px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  .calc-progress li{
    flex:0 0 auto;
    min-height:38px;
    padding:9px 12px;
    display:flex;
    align-items:center;
    scroll-snap-align:start;
    white-space:normal;
    font-size:12px;
  }

  .calc-progress li::before{
    display:none;
  }

  .calc-workspace{
    grid-template-columns:1fr;
    gap:12px;
    padding:0 8px 12px;
  }

  .calc-live{
    order:0;
    padding:12px;
    border-radius:20px;
  }

  .calc-live-plan{
    min-height:150px;
    padding:14px;
    border-radius:18px;
  }

  .calc-form{
    gap:12px;
  }

  .calc-step{
    padding:12px;
    border-radius:20px;
  }

  .calc-choice-grid-rooms{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .calc-choice-grid-fixtures,
  .calc-choice-grid-styles,
  .calc-product-body{
    grid-template-columns:1fr;
  }

  .calc-measure-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .calc-height-field,
  .calc-area-badge{
    grid-column:auto;
  }

  .calc-actions{
    margin:0;
    padding:8px;
    border-radius:18px;
  }

  .calc-result{
    margin:0;
    padding:14px 8px 16px;
    border-left:0;
    border-right:0;
    border-radius:0;
    background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.94));
    box-shadow:none;
  }

  .calc-result-hero{
    grid-template-columns:1fr;
    gap:12px;
    margin-bottom:14px;
  }

  .calc-result h2{
    font-size:22px;
  }

  .calc-result-number{
    grid-template-columns:auto 1fr;
    align-items:center;
    justify-items:start;
    gap:12px;
    padding:12px;
    border-radius:18px;
  }

  .calc-result-number span{
    font-size:58px;
  }

  .calc-result-number small{
    margin:0;
    text-align:left;
  }

  .calc-result-metrics{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    margin-bottom:14px;
  }

  .calc-result-metrics div{
    padding:10px;
    border-radius:14px;
  }

  .calc-layout{
    width:calc(100% + 16px);
    margin-left:-8px;
    margin-right:-8px;
    padding:12px 8px;
    border-radius:0;
    grid-template-columns:1fr;
    gap:12px;
  }

  .calc-layout > div:first-child{
    padding:0 8px;
  }

  .calc-plan{
    width:100%;
    min-height:210px;
    aspect-ratio:4/3;
    padding:14px;
    border-left:0;
    border-right:0;
    border-radius:18px;
  }

  .calc-product-block{
    width:calc(100% + 16px);
    margin-left:-8px;
    margin-right:-8px;
    margin-top:18px;
  }

  .calc-product-block h3{
    padding:0 8px;
  }

  .calc-products{
    grid-template-columns:1fr;
    gap:10px;
    margin-top:10px;
  }

  .calc-product-card{
    width:100%;
    padding:14px 12px;
    border-left:0;
    border-right:0;
    border-radius:18px;
  }

  .calc-product-head{
    align-items:flex-start;
  }

  .calc-product-head span{
    padding:6px 9px;
    border-radius:999px;
    background:rgba(47,99,255,.10);
    line-height:1;
  }

  .calc-product-price{
    padding-top:5px;
    font-size:14px;
  }

  .calc-product-body{
    gap:10px;
  }

  .calc-product-body h4{
    font-size:18px;
    line-height:1.28;
  }

  .calc-product-body p{
    font-size:14px;
  }

  .calc-product-placeholder{
    width:max-content;
    max-width:100%;
    height:auto;
    min-height:34px;
    padding:9px 12px;
    border-radius:999px;
    font-size:12px;
  }

  .calc-product-body img{
    width:100%;
    height:auto;
    max-height:180px;
  }

  .calc-product-count{
    width:100%;
    text-align:center;
  }

  .calc-product-link{
    width:100%;
    min-height:48px;
    font-size:15px;
  }

  .calc-details{
    width:calc(100% + 16px);
    margin-left:-8px;
    margin-right:-8px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
}
