﻿/*
Theme Name: Azov Window Portal
Theme URI: https://dok.lprostov.ru/
Author: Azov Window Factory
Description: WordPress theme for a window factory portal with product pages, dealer pages, animated calculator and SEO-ready templates.
Version: 0.3.0
Text Domain: azov-window-portal
*/
:root {
  --blue: #0b2a45;
  --blue-2: #123f63;
  --red: #e03a3e;
  --teal: #62c9c3;
  --ink: #14202a;
  --muted: #647382;
  --line: #dce5ec;
  --bg: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 42, 69, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 42, 69, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(11, 42, 69, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 56px);
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
}

.topbar span:nth-child(2) {
  color: #bfe9e6;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--blue);
}

.brand img {
  width: 110px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eaf3f8;
  color: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  color: var(--blue);
  font-size: 22px;
}

.hero {
  min-height: 620px;
  display: block;
  padding: clamp(28px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 42, 69, 0.92) 0%, rgba(11, 42, 69, 0.72) 42%, rgba(11, 42, 69, 0.14) 100%),
    url("assets/factory-hero.png") center / cover no-repeat;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  max-width: 1280px;
  min-height: 520px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 800;
}

.eyebrow.dark {
  border-color: rgba(11, 42, 69, 0.2);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--blue);
}

.hero p {
  max-width: 620px;
  color: #e9f2f8;
  font-size: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 640px;
}

.hero-stats span {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats strong {
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}

.hero-lead {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-lead h2 {
  margin-bottom: 2px;
  font-size: 24px;
}

.hero-lead small,
.form-status {
  color: var(--muted);
  font-size: 13px;
}

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

.shine-call {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6660, #e03a3e);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(224, 58, 62, 0.25);
}

.shine-call::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -40%;
  width: 34%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.66), transparent);
  transform: rotate(18deg);
  animation: shine-sweep 2.8s linear infinite;
}

@keyframes shine-sweep {
  0% { left: -46%; }
  100% { left: 128%; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.secondary {
  background: var(--blue);
  color: var(--white);
}

.section {
  padding: clamp(40px, 6vw, 78px) clamp(16px, 4vw, 56px);
}

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

.section-head {
  max-width: 840px;
  margin-bottom: 26px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-home {
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
}

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

.portal-group {
  min-height: 230px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(11, 42, 69, 0.07);
}

.portal-group h3 {
  padding-bottom: 12px;
  border-bottom: 2px solid #e9f1f6;
}

.portal-group div {
  display: grid;
  gap: 8px;
}

.portal-group a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: var(--blue);
  font-weight: 700;
}

.portal-group a::after {
  content: ">";
  color: var(--red);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: clamp(42px, 7vw, 92px) clamp(16px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(11, 42, 69, 0.96), rgba(11, 42, 69, 0.70)),
    url("assets/factory-hero.png") center / cover no-repeat;
}

.portal-hero span {
  color: var(--teal);
  font-weight: 800;
}

.portal-hero p {
  max-width: 780px;
  color: #e5f1f8;
  font-size: 19px;
}

.portal-mini-nav {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-mini-nav a {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 700;
}

.portal-text {
  max-width: 980px;
}

.portal-text p {
  color: #2d3c48;
  font-size: 20px;
}

.portal-facts,
.portal-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.portal-facts article,
.portal-related-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7fbfd;
}

.portal-facts strong,
.portal-related-card strong {
  color: var(--blue);
  font-size: 22px;
}

.portal-related-card span {
  color: var(--red);
  font-weight: 800;
}

.price-card {
  position: relative;
  min-height: 230px;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef6fa);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 42, 69, 0.06);
}

.price-card span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.price-card a {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: var(--red);
  font-weight: 800;
}

.card,
.metric-card,
.lamination-card,
.system-row {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(11, 42, 69, 0.06);
}

.card:hover,
.price-card:hover,
.lamination-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card p,
.system-row p,
.lamination-card p {
  color: var(--muted);
}

.product-card strong {
  color: var(--red);
  font-size: 18px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #e8f7f6;
  color: #0a6964;
  font-weight: 800;
  font-size: 13px;
}

.image-panel {
  min-height: 380px;
  border-radius: 8px;
  background: url("assets/profile-detail.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.factory-band {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 42, 69, 0.94), rgba(18, 63, 99, 0.86)),
    url("assets/profile-detail.png") center / cover no-repeat;
}

.factory-band h2 {
  color: var(--white);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow article {
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.workflow strong {
  display: block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 30px;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(100deg, #f6fbff, #ffffff);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.check-list,
.split-lists ul,
.split-lists ol {
  padding-left: 20px;
  color: var(--ink);
}

.check-list li,
.split-lists li {
  margin: 8px 0;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: stretch;
}

.calculator form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.calculator-rich form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calc-full {
  grid-column: 1 / -1;
}

.calc-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

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

.option-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.option-card input,
.swatch-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.option-card.active,
.swatch-card.active {
  border-color: var(--red);
  box-shadow: 0 12px 26px rgba(224, 58, 62, 0.12);
  transform: translateY(-1px);
}

.option-card strong,
.option-card span {
  color: var(--blue);
  font-weight: 800;
}

.option-card small {
  color: var(--muted);
}

.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch-card {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.swatch-card span {
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  background: var(--swatch);
}

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

.laminate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wall-light { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #f2eee7, #f2eee7); }
.wall-blue { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #d5e4ef, #d5e4ef); }
.wall-stone { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #ddd5cc, #ddd5cc); }
.wall-sage { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #c2ccb9, #c2ccb9); }
.wall-gray { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #dbdbdb, #dbdbdb); }

.laminate-white .window-frame { border-color: #f8fbfd; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 0 0 4px #c7d8e4; }
.laminate-oak .window-frame { border-color: #d7b883; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 0 0 4px #b98b49; }
.laminate-walnut .window-frame { border-color: #8c5f3e; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 0 0 4px #5e3d23; }
.laminate-anthracite .window-frame { border-color: #616b72; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 0 0 4px #333c42; }

.callback-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callback-inline input {
  min-width: 190px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkbox input {
  width: auto;
}

.result {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.calc-visual-panel {
  display: grid;
  gap: 14px;
}

.window-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(98, 201, 195, 0.22), transparent 32%),
    linear-gradient(145deg, #102f4a, #061a2b);
  overflow: hidden;
}

.window-frame {
  position: relative;
  width: min(88%, 300px);
  height: 190px;
  border: 12px solid #f8fbfd;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 0 0 4px #c7d8e4;
  perspective: 720px;
}

.sash,
.door-sash {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: 5px solid #e9f2f8;
  background: linear-gradient(145deg, rgba(169, 216, 245, 0.82), rgba(255, 255, 255, 0.42));
  transform-origin: left center;
  transition: transform 0.7s ease, opacity 0.3s ease, width 0.35s ease, left 0.35s ease;
}

.sash-a {
  left: 0;
}

.sash-b {
  left: 50%;
}

.sash-c,
.door-sash {
  display: none;
}

.is-single .sash-a {
  width: 100%;
}

.is-single .sash-b,
.is-single .sash-c,
.is-single .door-sash {
  display: none;
}

.is-triple .sash {
  display: block;
  width: 33.333%;
}

.is-triple .sash-a {
  left: 0;
}

.is-triple .sash-b {
  left: 33.333%;
}

.is-triple .sash-c {
  left: 66.666%;
}

.is-balcony .window-frame {
  height: 230px;
}

.is-balcony .sash-a {
  width: 42%;
}

.is-balcony .sash-b,
.is-balcony .sash-c {
  display: none;
}

.is-balcony .door-sash {
  display: block;
  left: 42%;
  width: 58%;
}

.open-1 .sash-a,
.open-2 .sash-b,
.open-3 .sash-c,
.is-balcony.open-2 .door-sash {
  transform: rotateY(-28deg);
}

/* WordPress production polish */
.site-header .nav {
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header .brand {
  min-width: 210px;
}

.site-header .brand img {
  width: 178px;
  height: 64px;
  object-fit: contain;
}

.nav-links,
.nav-links > div,
.nav-links ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .nav-links ul.menu,
.site-header .nav-links ul.menu > li.menu-item,
.site-header .nav-links ul.menu > li.menu-item > a {
  list-style: none !important;
}

.site-header .nav-links ul.menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .nav-links ul.menu > li.menu-item {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #dbe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 42, 69, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header .nav-links ul.menu > li.menu-item > a {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  border: 1px solid #dbe7ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--blue) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(11, 42, 69, 0.06) !important;
}

.nav-links a:hover {
  transform: translateY(-1px);
  background: #eaf6fb;
  box-shadow: 0 14px 28px rgba(11, 42, 69, 0.11);
}

.hero {
  min-height: 690px;
  background:
    linear-gradient(90deg, rgba(6, 28, 46, 0.88) 0%, rgba(11, 42, 69, 0.66) 48%, rgba(11, 42, 69, 0.18) 100%),
    url("assets/factory-hero.png") center / cover no-repeat;
}

.hero-copy h1 {
  max-width: 840px;
  text-wrap: balance;
}

.portal-group,
.price-card,
.card {
  position: relative;
  overflow: hidden;
}

.portal-group::before,
.price-card::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.calculator {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.calculator-showcase {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.calc-stage,
.calc-config,
.lg-group,
.cta-panel,
.lg-benefit-card,
.calc-hint {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(11, 42, 69, 0.07);
}

.calc-stage {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.calc-stage-wall {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f7fa 0%, #eaf0f4 100%);
}

.calc-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

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

.wall-swatches-wide {
  display: grid;
  grid-template-columns: repeat(8, 52px);
}

.laminate-grid-rich .laminate-card i {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(11, 42, 69, 0.08);
}

.visual-type-card {
  padding-top: 18px;
}

.mini-window {
  display: block;
  height: 54px;
  border: 5px solid #c9dae7;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(169, 216, 245, 0.82), rgba(255, 255, 255, 0.42));
  position: relative;
}

.mini-window::before,
.mini-window::after {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 4px;
  background: #c9dae7;
}

.mini-single::before,
.mini-single::after {
  display: none;
}

.mini-double::before {
  left: calc(50% - 2px);
}

.mini-double::after {
  display: none;
}

.mini-triple::before {
  left: 33.333%;
}

.mini-triple::after {
  left: 66.666%;
}

.mini-balcony::before {
  left: 40%;
}

.mini-balcony::after {
  display: none;
}

.calc-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.calc-result-stack {
  display: grid;
  gap: 14px;
}

.calc-hint {
  padding: 16px;
}

.calc-hint strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
}

.wall-rose { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #f0d9d1, #f0d9d1); }
.wall-sand { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #d9d3c6, #d9d3c6); }
.wall-mist { background: linear-gradient(145deg, #0e2942, #153550), linear-gradient(0deg, #c9d2d8, #c9d2d8); }

.window-frame [data-open="fixed"] {
  transform: none !important;
}

.window-frame [data-open="swing"] {
  transform: rotateY(-24deg) !important;
}

.window-frame [data-open="tilt"] {
  transform: perspective(720px) rotateY(-16deg) rotateX(10deg) !important;
}

.lg-intro {
  align-items: start;
}

.lg-benefits {
  display: grid;
  gap: 12px;
}

.lg-benefit-card,
.cta-panel {
  padding: 20px;
}

.lg-catalog {
  display: grid;
  gap: 18px;
}

.lg-group {
  padding: 20px;
}

.lg-group-head p {
  max-width: 820px;
  color: var(--muted);
}

.lg-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lg-swatch-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.lg-swatch-color {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 6px;
  border: 1px solid rgba(11, 42, 69, 0.08);
}

.cta-panel p {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .calculator-showcase {
    grid-template-columns: 1fr;
  }

  .calc-stage {
    position: static;
  }

  .lg-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .calc-config,
  .sash-grid,
  .calc-extra-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wall-swatches-wide {
    grid-template-columns: repeat(4, 52px);
  }

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

@media (max-width: 640px) {
  .calc-config,
  .sash-grid,
  .calc-extra-grid,
  .lg-swatch-grid {
    grid-template-columns: 1fr;
  }

  .option-grid,
  .laminate-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .wall-swatches-wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.calculator form {
  gap: 10px;
  padding: 16px;
}

.calculator label {
  gap: 5px;
}

.calculator input,
.calculator select {
  min-height: 40px;
  padding: 9px 10px;
}

.checkbox {
  min-height: 58px;
  padding: 8px 10px;
}

.window-visual {
  min-height: 210px;
}

.window-frame {
  height: 150px;
}

.result {
  padding: 18px;
}

.result strong {
  font-size: 30px;
}

.factory-photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.factory-photo-strip figure {
  min-height: 360px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #eaf2f7;
  box-shadow: var(--shadow);
}

.factory-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .site-header .nav {
    min-height: auto;
  }

  .nav-links,
  .nav-links > div,
  .nav-links ul,
  .factory-photo-strip {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-header .brand img {
    width: 150px;
    height: 54px;
  }
}

.result strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
}

.result small {
  color: #d6e6f0;
}

.page-hero {
  padding: 58px clamp(16px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.page-hero p {
  max-width: 850px;
  color: #dcecf4;
  font-size: 18px;
}

.system-row {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  gap: 16px;
  align-items: start;
}

.swatch {
  height: 112px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.04);
}

.dealer-panel,
.contact-panel,
.admin-panel {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

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

.map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(98, 201, 195, 0.18), rgba(224, 58, 62, 0.14)),
    repeating-linear-gradient(0deg, #eef5f8, #eef5f8 22px, #dce8ee 23px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(11, 42, 69, 0.08) 29px);
  color: var(--blue);
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-dashboard article {
  padding: 18px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.admin-dashboard span {
  display: block;
  margin-bottom: 8px;
  color: #cbe8f5;
}

.admin-dashboard strong {
  color: var(--teal);
  font-size: 24px;
}

.admin-tools {
  display: grid;
  gap: 12px;
  align-content: start;
}

#data-editor {
  min-height: 620px;
  font-family: Consolas, monospace;
  font-size: 14px;
}

#admin-status {
  min-height: 24px;
  color: var(--red);
  font-weight: 800;
}

.leads-panel {
  margin-top: 24px;
}

.leads-table {
  display: grid;
  gap: 10px;
}

.leads-table article {
  display: grid;
  grid-template-columns: 1fr 160px 180px 210px;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(16px, 4vw, 56px);
  background: var(--blue);
  color: var(--white);
}

.footer p {
  max-width: 620px;
  color: #d6e6f0;
}

.footer div:last-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }

  .grid,
  .grid.two,
  .split,
  .calculator,
  .admin-layout,
  .split-lists,
  .hero-shell,
  .price-grid,
  .factory-band,
  .workflow,
  .promo-row,
  .portal-groups,
  .portal-hero,
  .portal-facts,
  .portal-related,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .calculator form {
    grid-template-columns: 1fr 1fr;
  }

  .option-grid,
  .profile-grid,
  .laminate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .system-row {
    grid-template-columns: 1fr;
  }

  .nav-cta {
    display: none;
  }

  .leads-table article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar,
  .footer {
    flex-direction: column;
    gap: 6px;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  .calculator form {
    grid-template-columns: 1fr;
  }

  .option-grid,
  .profile-grid,
  .laminate-grid,
  .callback-inline {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .result strong {
    font-size: 28px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 24px 14px;
  }

  .hero-shell {
    min-height: 0;
  }

  .hero-lead,
  .card,
  .price-card,
  .dealer-panel,
  .contact-panel,
  .admin-panel,
  .calculator form,
  .result {
    padding: 16px;
  }

  .section {
    padding: 34px 14px;
  }

  .button {
    width: 100%;
  }

  .brand img {
    width: 116px;
    height: 34px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .topbar,
  .nav {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Redesign v2 */
.site-header-v2 {
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-v2 {
  padding: 10px clamp(16px, 4vw, 54px);
  background: #0a2135;
}

.topbar-meta,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.topbar-actions a {
  color: #fff;
  font-weight: 700;
}

.nav-v2 {
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0 14px 34px rgba(8, 22, 37, 0.08);
}

.brand-v2 {
  gap: 14px;
}

.brand-v2 img {
  width: 140px;
  height: 42px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links-v2 ul.menu {
  gap: 8px !important;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta.ghost {
  background: #eef5fa;
  color: var(--blue);
}

.hero-v2 {
  min-height: 780px;
  padding-top: 36px;
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 12% 16%, rgba(98, 201, 195, 0.18), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(224, 58, 62, 0.18), transparent 14%),
    linear-gradient(92deg, rgba(7, 28, 46, 0.96) 0%, rgba(8, 39, 63, 0.84) 50%, rgba(7, 34, 55, 0.66) 100%),
    url("assets/factory-hero.png") center/cover no-repeat;
}

.hero-shell-v2 {
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: start;
  min-height: 640px;
}

.hero-copy-v2 {
  padding-top: 32px;
}

.hero-copy-v2 h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5vw, 74px);
}

.hero-copy-v2 p {
  max-width: 700px;
  font-size: 19px;
}

.hero-achievements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-achievements article {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-achievements strong {
  color: #fff;
  font-size: 22px;
}

.hero-achievements span {
  color: #d8e4ee;
  font-size: 14px;
}

.hero-sidecard {
  display: grid;
  gap: 14px;
}

.hero-lead-v2 {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
}

.lead-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hero-lead-v2 p {
  color: var(--muted);
  font-size: 15px;
}

.hero-floating-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.float-card {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.float-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.promo-strip {
  padding-top: 30px;
}

.section-head.left {
  text-align: left;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promo-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  box-shadow: 0 14px 30px rgba(8, 22, 37, 0.06);
  overflow: hidden;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--teal));
}

.promo-card.accent {
  background: linear-gradient(135deg, #0d2d4a, #163f63);
  color: #fff;
}

.promo-card.accent h3,
.promo-card.accent p,
.promo-card.accent a,
.promo-card.accent .promo-tag {
  color: #fff;
}

.promo-tag,
.profile-chip {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.category-card {
  min-height: 300px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
}

.category-card.large {
  grid-row: span 2;
  min-height: 620px;
}

.category-card.dark {
  background: linear-gradient(135deg, #0b2a45, #183e62);
}

.category-card h3,
.category-card p,
.category-card span,
.category-card a {
  color: #fff;
}

.pricing-v2 {
  background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
}

.pricing-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.pricing-switch button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pricing-switch button.is-active {
  background: var(--blue);
  color: #fff;
}

.pricing-panels {
  margin-top: 22px;
}

.pricing-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-panel.is-active {
  display: grid;
}

.window-price-card,
.profile-detail-card,
.project-card,
.trust-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(8, 22, 37, 0.05);
}

.window-price-card strong,
.window-price-card b {
  display: block;
}

.window-price-card span,
.window-price-card small {
  color: var(--muted);
}

.window-price-card b {
  margin-top: 14px;
  color: var(--red);
  font-size: 28px;
}

.profile-cards-v2,
.trust-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calculator-anchor {
  background:
    linear-gradient(180deg, #081f33 0%, #102f4b 100%);
}

.calculator-anchor .section-head h2,
.calculator-anchor .section-head p,
.calculator-anchor .section-head .tag {
  color: #fff;
}

.calculator-anchor .tag {
  background: rgba(255,255,255,.12);
}

.calculator-showcase {
  margin-top: 10px;
}

.projects-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  min-height: 180px;
}

.final-cta {
  background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
}

.promo-row-v2 {
  align-items: center;
  gap: 24px;
}

.callback-inline-v2 {
  width: 100%;
  justify-content: flex-end;
}

.footer-v2 {
  padding: 0;
  background: #091b2b;
  color: #e5eef6;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 34px clamp(16px, 4vw, 54px);
}

.footer-brand img {
  width: 140px;
  margin-bottom: 10px;
}

.footer-links,
.footer-contacts,
.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-v2 a,
.footer-v2 span,
.footer-v2 p,
.footer-v2 strong {
  color: inherit;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 54px);
  border-top: 1px solid rgba(255,255,255,.08);
  color: #b3c4d3;
  font-size: 14px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-card,
.category-card,
.window-price-card,
.profile-detail-card,
.project-card,
.trust-grid article {
  animation: rise-in .6s ease both;
}

@media (max-width: 1180px) {
  .hero-shell-v2,
  .category-grid,
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .category-card.large {
    grid-row: auto;
    min-height: 320px;
    grid-column: span 2;
  }

  .promo-grid,
  .pricing-panel,
  .profile-cards-v2,
  .trust-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-achievements {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .topbar-v2,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-v2 {
    flex-wrap: wrap;
  }

  .nav-side,
  .brand-copy {
    display: none;
  }

  .hero-shell-v2,
  .promo-grid,
  .category-grid,
  .pricing-panel,
  .profile-cards-v2,
  .trust-grid,
  .projects-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .category-card.large {
    grid-column: auto;
    min-height: 320px;
  }

  .hero-floating-cards,
  .hero-achievements {
    grid-template-columns: 1fr;
  }

  .pricing-switch {
    display: grid;
    width: 100%;
    border-radius: 8px;
  }

  .pricing-switch button {
    border-radius: 8px;
  }
}

/* Light redesign and calculator reference */
:root {
  --blue: #1b5d8f;
  --blue-2: #2e7db6;
  --red: #ff6b4a;
  --teal: #56c1bf;
  --ink: #203040;
  --muted: #5d7185;
  --line: #dbe6ef;
  --bg: #f7fafc;
}

body {
  background:
    radial-gradient(circle at top left, rgba(86, 193, 191, 0.08), transparent 24%),
    linear-gradient(180deg, #fafdff 0%, #f5f8fb 100%);
}

body::before {
  display: none;
}

.hero-v3 {
  background:
    radial-gradient(circle at 14% 18%, rgba(86, 193, 191, 0.28), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(255, 107, 74, 0.2), transparent 16%),
    linear-gradient(115deg, rgba(241, 248, 253, 0.98) 0%, rgba(228, 241, 249, 0.95) 48%, rgba(211, 233, 247, 0.94) 100%);
  color: var(--ink);
}

.hero-v3 .eyebrow {
  border-color: rgba(27, 93, 143, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue);
}

.hero-v3 h1,
.hero-v3 p,
.hero-v3 .hero-achievements strong,
.hero-v3 .hero-achievements span,
.hero-v3 .float-card,
.hero-v3 .float-card strong {
  color: var(--ink);
}

.hero-v3 .hero-achievements article,
.hero-v3 .float-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(27, 93, 143, 0.1);
  box-shadow: 0 16px 34px rgba(33, 65, 97, 0.08);
}

.hero-lead-v3 {
  box-shadow: 0 24px 54px rgba(33, 65, 97, 0.12);
}

.category-showcase-light {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.category-card.pale {
  background: linear-gradient(135deg, #ffffff, #eef6fb);
  color: var(--ink);
  border: 1px solid var(--line);
}

.category-card.pale h3,
.category-card.pale p,
.category-card.pale span,
.category-card.pale a {
  color: var(--ink);
}

.pricing-v3,
.trust-v3,
.projects-v3 {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}

.calculator-reference {
  background: linear-gradient(180deg, #f4f8fb 0%, #eef5fa 100%);
}

.calculator-head .tag,
.calculator-head h2,
.calculator-head .lead {
  color: var(--ink) !important;
}

.calculator-head .tag {
  background: #eef5fb;
}

.calculator-reference-shell {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.calc-reference-stage,
.calc-reference-config {
  display: grid;
  gap: 16px;
}

.calc-reference-stage > div,
.calc-reference-config > div,
.calculator-form-reference,
.calc-summary-box,
.guarantee-box,
.calc-room-colors,
.calc-lamination-panel,
.calc-block,
.calc-reference-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(33, 65, 97, 0.06);
}

.calc-reference-visual {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.65)),
    linear-gradient(180deg, #f5f2ec 0%, #ece6dc 100%);
}

.calc-reference-visual .window-visual {
  width: 100%;
  min-height: 280px;
  background: transparent;
}

.calculator-reference .window-visual[class*="wall-"] {
  background: transparent !important;
}

.calc-room-colors,
.calc-lamination-panel,
.calc-block,
.calc-summary-box {
  padding: 20px;
}

.calc-subtitle {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.wall-swatches-ref {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

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

.lamination-ref-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  cursor: pointer;
}

.lamination-ref-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.lamination-ref-card i {
  display: block;
  width: 48px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(33, 65, 97, 0.08);
}

.lamination-ref-card span {
  color: var(--ink);
  font-weight: 700;
}

.lamination-ref-card.active {
  border-color: var(--red);
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.14);
}

.calc-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.calculator-form-reference {
  gap: 16px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.ref-type-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-door::before {
  display: none;
}

.mini-door::after {
  display: none;
}

.mini-door {
  width: 48%;
}

.sash-grid-reference,
.reference-dim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sash-grid-reference label:last-child,
.reference-dim-grid label:nth-child(3),
.reference-dim-grid label:nth-child(4) {
  grid-column: span 1;
}

.profile-switch {
  margin-bottom: 12px;
}

.profile-desc-panel {
  display: none;
  padding: 12px 0 0;
  color: var(--muted);
}

.profile-desc-panel.is-active {
  display: block;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--blue);
  font-weight: 800;
}

.reference-extra-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-summary-box {
  display: grid;
  gap: 14px;
}

.result-light {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8fc 100%);
  color: var(--ink);
  border: 1px solid var(--line);
}

.result-light span {
  color: var(--muted);
}

.result-light strong {
  color: var(--red);
  font-size: 38px;
}

.guarantee-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.wall-pearl { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), linear-gradient(180deg, #dce0e3 0%, #cfd5d9 100%); }
.wall-cream { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), linear-gradient(180deg, #ebddc8 0%, #dcc8a8 100%); }
.wall-linen { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), linear-gradient(180deg, #e8e1d9 0%, #d4cdc4 100%); }
.wall-sky { background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.65)), linear-gradient(180deg, #ccdce8 0%, #b7ccdb 100%); }

.wall-light,
.wall-blue,
.wall-stone,
.wall-sage,
.wall-gray,
.wall-rose,
.wall-sand,
.wall-mist {
  background-blend-mode: normal;
}

.laminate-makori .window-frame { border-color: #8b5f41; box-shadow: 0 18px 40px rgba(0,0,0,.16), inset 0 0 0 4px #6d472f; }
.laminate-mokka .window-frame { border-color: #7a5d47; box-shadow: 0 18px 40px rgba(0,0,0,.16), inset 0 0 0 4px #614532; }
.laminate-lightoak .window-frame { border-color: #ba9259; box-shadow: 0 18px 40px rgba(0,0,0,.16), inset 0 0 0 4px #9a7543; }

.is-door .window-frame {
  width: min(48%, 160px);
  height: 230px;
}

.is-door .sash-a {
  width: 100%;
}

.is-door .sash-b,
.is-door .sash-c,
.is-door .door-sash {
  display: none;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .calculator-reference-shell {
    grid-template-columns: 1fr;
  }

  .wall-swatches-ref {
    grid-template-columns: repeat(6, 52px);
    justify-content: center;
  }

  .ref-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .reference-extra-grid,
  .reference-dim-grid,
  .sash-grid-reference,
  .lamination-ref-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .wall-swatches-ref,
  .ref-type-grid,
  .reference-extra-grid,
  .reference-dim-grid,
  .sash-grid-reference,
  .lamination-ref-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .topbar-meta,
  .topbar-actions {
    gap: 8px;
  }

  .hero-v3 {
    padding-top: 24px;
  }
}

/* CTA recolor + animated hero background + modals */
.button.primary,
.nav-cta,
.shine-call,
.pricing-switch button.is-active {
  background: linear-gradient(135deg, #ff7b52 0%, #ff5a5f 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.button.ghost,
.nav-cta.ghost {
  background: linear-gradient(135deg, #56c1bf 0%, #78d8d2 100%) !important;
  color: #0f3855 !important;
  border-color: transparent !important;
}

.hero-v3 {
  position: relative;
  overflow: hidden;
}

.hero-v3::before,
.hero-v3::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-v3::before {
  background:
    linear-gradient(110deg, rgba(255,255,255,.78) 8%, rgba(255,255,255,.36) 38%, rgba(189,221,240,.24) 100%),
    url("assets/factory-hero.png") center/cover no-repeat;
  transform: scale(1.04);
  animation: hero-pan 22s ease-in-out infinite alternate;
  opacity: .62;
}

.hero-v3::after {
  background:
    radial-gradient(circle at 18% 26%, rgba(86, 193, 191, 0.22), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 123, 82, 0.2), transparent 16%),
    linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.18));
  animation: hero-glow 12s ease-in-out infinite alternate;
}

.hero-v3 > * {
  position: relative;
  z-index: 1;
}

@keyframes hero-pan {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.1) translate3d(-2.5%, -1.5%, 0);
  }
}

@keyframes hero-glow {
  0% {
    opacity: .75;
  }
  100% {
    opacity: 1;
  }
}

.topbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.topbar-actions a:first-child {
  background: linear-gradient(135deg, #56c1bf 0%, #78d8d2 100%);
  color: #0f3855;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.site-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 33, 52, 0.58);
  backdrop-filter: blur(6px);
}

.site-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: 0 30px 70px rgba(18, 42, 66, 0.28);
}

.site-modal__dialog h3 {
  margin-bottom: 10px;
  font-size: 32px;
}

.site-modal__dialog p {
  color: var(--muted);
}

.site-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--blue);
  font-size: 24px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.modal-form textarea {
  resize: vertical;
}

body.modal-open {
  overflow: hidden;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.hero-v3 {
  min-height: 740px;
}

.hero-shell-v2 {
  align-items: stretch;
}

.hero-copy-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-v2 p {
  max-width: 720px;
  font-size: 19px;
}

.hero-sidecard {
  display: grid;
  align-content: center;
}

.hero-lead-v3 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 82, 124, 0.12);
}

.hero-lead-v3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff7b52, #56c1bf);
}

.hero-achievements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-achievements article,
.float-card {
  padding: 16px;
  border-radius: 8px;
}

.float-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.category-card,
.promo-card,
.window-price-card,
.trust-grid article,
.project-card {
  box-shadow: 0 18px 38px rgba(28, 63, 94, 0.08);
}

.promo-card,
.window-price-card,
.trust-grid article,
.project-card {
  border: 1px solid rgba(19, 71, 108, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.promo-card,
.window-price-card,
.trust-grid article,
.project-card,
.category-card.pale,
.calc-room-colors,
.calc-lamination-panel,
.calc-block,
.calc-summary-box {
  backdrop-filter: blur(14px);
}

.calculator-reference-shell {
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 26px;
}

.calc-reference-stage {
  position: sticky;
  top: 108px;
}

.calc-reference-visual {
  position: relative;
  min-height: 390px;
  padding: 24px;
}

.calc-reference-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(86, 193, 191, 0.14), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(255, 123, 82, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0));
  pointer-events: none;
}

.calc-reference-visual .window-visual {
  position: relative;
  z-index: 1;
}

.calc-lamination-panel,
.calc-room-colors,
.calc-block,
.calc-summary-box {
  padding: 22px;
}

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

.lamination-ref-card {
  min-height: 74px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lamination-ref-card:hover,
.option-card:hover,
.swatch-card:hover {
  transform: translateY(-2px);
}

.visual-type-card {
  min-height: 146px;
  align-content: start;
}

.visual-type-card strong {
  line-height: 1.3;
}

.mini-window {
  height: 68px;
  border-width: 6px;
}

.compare-table th {
  background: #f5f9fc;
}

.calc-summary-box {
  position: sticky;
  top: 108px;
}

.result-light {
  gap: 12px;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(28, 63, 94, 0.06);
}

.result-light strong {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
}

.result-meta {
  padding-top: 10px;
  border-top: 1px solid #d9e5ee;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.result-meta b {
  color: var(--blue);
}

.guarantee-box {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.callback-inline-v2 {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.callback-inline-v2 input {
  min-width: 220px;
}

.site-modal__dialog {
  border: 1px solid rgba(23, 73, 110, 0.1);
}

.site-modal__dialog .button.primary {
  width: 100%;
}

@media (max-width: 1180px) {
  .hero-achievements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-reference-stage,
  .calc-summary-box {
    position: static;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 16px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links,
  .nav-links > div,
  .nav-links ul,
  .site-header .nav-links ul.menu {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .site-header .nav-links ul.menu > li.menu-item > a,
  .nav-links a,
  .nav-cta {
    width: 100%;
  }

  .nav-side {
    width: 100%;
    flex-direction: column;
  }

  .hero-shell-v2,
  .promo-grid,
  .category-grid,
  .pricing-panels,
  .trust-grid,
  .projects-grid,
  .footer-main {
    grid-template-columns: 1fr !important;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-meta,
  .topbar-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero-v3 {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero-achievements,
  .wall-swatches-ref,
  .lamination-ref-grid,
  .ref-type-grid,
  .reference-extra-grid,
  .reference-dim-grid,
  .sash-grid-reference,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .callback-inline-v2 input {
    min-width: 100%;
  }

  .site-modal__dialog {
    padding: 22px 18px;
  }

  .site-modal__dialog h3 {
    font-size: 26px;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Premium redesign layer */
:root {
  --blue: #163553;
  --blue-2: #24547c;
  --red: #ff5d49;
  --teal: #4fc3cf;
  --ink: #16314a;
  --muted: #667a8f;
  --line: #d9e5ef;
  --bg: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(17, 51, 80, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 195, 207, 0.09), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 93, 73, 0.08), transparent 20%),
    #f5f8fc;
}

.site-header-v2 {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 18px 46px rgba(14, 42, 68, 0.08);
}

.topbar-v2 {
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(90deg, #183a59 0%, #214c73 100%);
}

.topbar-meta,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-actions a {
  color: rgba(255, 255, 255, 0.96);
}

.nav-v2 {
  gap: 24px;
  min-height: 96px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-v2 {
  gap: 16px;
  min-width: 320px;
}

.brand-v2--full {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(36, 84, 124, 0.08), rgba(79, 195, 207, 0.15));
  box-shadow: inset 0 0 0 1px rgba(36, 84, 124, 0.08);
}

.brand-v2 img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
}

.brand-full-image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 360px);
}

.brand-v2--full img {
  width: 100% !important;
  height: auto !important;
  max-height: 88px;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-brand img {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
  object-fit: contain;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.nav-links-v2,
.nav-links-v2 > div,
.nav-links-v2 ul.menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.site-header .nav-links ul.menu > li.menu-item > a {
  min-height: 44px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%) !important;
  border-color: #dbe7f0 !important;
  box-shadow: 0 10px 26px rgba(16, 47, 74, 0.06) !important;
}

.site-header .nav-links ul.menu > li.menu-item.current-menu-item > a,
.site-header .nav-links ul.menu > li.menu-item > a:hover {
  color: var(--red) !important;
  border-color: rgba(255, 93, 73, 0.24) !important;
  background: linear-gradient(180deg, #fff7f4 0%, #ffffff 100%) !important;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-cta {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6e57 0%, #ff5d49 100%);
  box-shadow: 0 16px 32px rgba(255, 93, 73, 0.24);
}

.nav-cta.ghost-light {
  background: #f2f7fb;
  color: var(--blue);
  box-shadow: none;
  border: 1px solid #dbe7f0;
}

.hero-v3 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, rgba(18, 53, 83, 0.94) 0%, rgba(28, 80, 119, 0.78) 46%, rgba(17, 58, 89, 0.28) 100%);
}

.hero-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(10, 34, 55, 0.72), rgba(10, 34, 55, 0.12)),
    var(--hero-bg);
  background-position: center;
  background-size: cover;
  animation: hero-pan 20s ease-in-out infinite alternate;
  transform: scale(1.04);
}

.hero-v3::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0), rgba(245, 248, 252, 0.82));
}

@keyframes hero-pan {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(-1.4%, -1%, 0); }
  100% { transform: scale(1.06) translate3d(1.2%, 1.1%, 0); }
}

.hero-shell-v2,
.hero-v3 > * {
  position: relative;
  z-index: 1;
}

.hero-copy-v2 {
  max-width: 760px;
}

.hero-v3 .eyebrow {
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-v3 h1 {
  max-width: 860px;
  font-size: clamp(42px, 5.4vw, 74px);
  color: #ffffff;
  text-shadow: 0 14px 34px rgba(8, 26, 44, 0.22);
}

.hero-v3 p {
  color: rgba(255, 255, 255, 0.92);
}

.hero-v3 .hero-achievements strong,
.hero-v3 .hero-achievements span,
.hero-v3 .float-card,
.hero-v3 .float-card strong {
  color: #ffffff;
}

.hero-v3 .hero-actions {
  gap: 14px;
}

.hero-offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.hero-offer-list article {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-offer-list strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
}

.hero-offer-list span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.hero-v3 .button.primary,
.hero-v3 .shine-call,
.hero-v3 .button.ghost {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 999px;
}

.hero-v3 .button.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-achievements article,
.float-card,
.hero-lead-v3 {
  border-radius: 24px !important;
}

.hero-achievements article {
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px);
}

.hero-lead-v3 {
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 70px rgba(12, 44, 72, 0.18);
}

.promo-card,
.category-card,
.window-price-card,
.calc-room-colors,
.calc-lamination-panel,
.calc-block,
.calc-summary-box,
.guarantee-box {
  border-radius: 24px !important;
}

.promo-card {
  border: 1px solid #d8e6f0;
  box-shadow: 0 20px 46px rgba(18, 53, 83, 0.07);
}

.promo-card.accent {
  background: linear-gradient(135deg, #1b4469 0%, #214f78 100%);
  border-color: #1f4f79;
}

.promo-card.accent .promo-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.promo-card.accent h3,
.promo-card.accent p,
.promo-card.accent a {
  color: #ffffff;
}

.calculator-reference-shell {
  gap: 24px;
}

.calc-reference-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #f8f3eb 0%, #efe6d9 100%);
}

.calc-reference-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background: linear-gradient(180deg, rgba(163, 130, 102, 0.04), rgba(163, 130, 102, 0.18));
}

.calc-reference-visual.wall-light { background: linear-gradient(180deg, #f5efe7 0%, #e6dccd 100%); }
.calc-reference-visual.wall-blue { background: linear-gradient(180deg, #dce9f1 0%, #c7d7e3 100%); }
.calc-reference-visual.wall-stone { background: linear-gradient(180deg, #e7ddd2 0%, #d7c7b8 100%); }
.calc-reference-visual.wall-sage { background: linear-gradient(180deg, #dce5d6 0%, #c4d0bd 100%); }
.calc-reference-visual.wall-gray { background: linear-gradient(180deg, #e5e5e5 0%, #d2d5d7 100%); }
.calc-reference-visual.wall-rose { background: linear-gradient(180deg, #f2ddda 0%, #e6cbc6 100%); }
.calc-reference-visual.wall-sand { background: linear-gradient(180deg, #e7dcc9 0%, #d8c6aa 100%); }
.calc-reference-visual.wall-mist { background: linear-gradient(180deg, #d7e0e6 0%, #c2d0d8 100%); }
.calc-reference-visual.wall-pearl { background: linear-gradient(180deg, #e3e7ea 0%, #d2d8de 100%); }
.calc-reference-visual.wall-cream { background: linear-gradient(180deg, #f0e0c9 0%, #e2cba8 100%); }
.calc-reference-visual.wall-linen { background: linear-gradient(180deg, #ebe3da 0%, #d8cec3 100%); }
.calc-reference-visual.wall-sky { background: linear-gradient(180deg, #d5e4ef 0%, #c2d7e6 100%); }

.calc-reference-visual .window-visual {
  width: min(92%, 520px);
  min-height: 320px;
  align-self: end;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0)),
    linear-gradient(180deg, #88b5d5 0%, #d6ebf8 100%);
  box-shadow: 0 34px 70px rgba(22, 49, 74, 0.18);
}

.window-frame {
  width: min(84%, 340px);
  height: 220px;
  border-width: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(229, 239, 247, 0.4));
}

.is-balcony .window-frame {
  width: min(88%, 380px);
  height: 250px;
}

.is-door .window-frame {
  width: min(56%, 220px);
  height: 272px;
}

.sash,
.door-sash {
  border-width: 6px;
  background: linear-gradient(180deg, rgba(186, 220, 243, 0.92) 0%, rgba(246, 251, 255, 0.54) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.58);
  transition: transform 0.45s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.sash-a,
.sash-c {
  transform-origin: left center;
}

.sash-b,
.door-sash {
  transform-origin: right center;
}

.window-frame .sash-a[data-open="swing"],
.window-frame .sash-c[data-open="swing"] {
  transform: perspective(900px) rotateY(-18deg) translateX(-10px);
}

.window-frame .sash-b[data-open="swing"],
.window-frame .door-sash[data-open="swing"] {
  transform: perspective(900px) rotateY(18deg) translateX(10px);
}

.window-frame [data-open="tilt"] {
  transform: translateY(-8px) skewX(-5deg);
}

.window-frame [data-open="fixed"] {
  transform: none;
}

.laminate-white .window-frame {
  border-color: #f5f7fa;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.16), inset 0 0 0 4px #cbd9e4;
}

.laminate-makori .window-frame {
  border-color: #956749;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.18), inset 0 0 0 4px #72492e;
}

.laminate-walnut .window-frame {
  border-color: #835739;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.18), inset 0 0 0 4px #5d3d27;
}

.laminate-anthracite .window-frame {
  border-color: #5f6670;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.18), inset 0 0 0 4px #353b43;
}

.laminate-mokka .window-frame {
  border-color: #83624a;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.18), inset 0 0 0 4px #674a37;
}

.laminate-lightoak .window-frame {
  border-color: #c59b62;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.18), inset 0 0 0 4px #9e7542;
}

.laminate-oak .window-frame {
  border-color: #d0a164;
  box-shadow: 0 20px 48px rgba(18, 53, 83, 0.18), inset 0 0 0 4px #ac7c42;
}

.footer-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(79, 195, 207, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.footer-brand-mark img {
  width: 62px;
  height: 62px;
  margin: 0;
}

.calc-summary-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 22px 48px rgba(16, 47, 74, 0.08);
}

@media (max-width: 1100px) {
  .nav-panel {
    gap: 14px;
  }

  .brand-v2 {
    min-width: 260px;
  }
}

@media (max-width: 980px) {
  .nav-panel {
    display: none;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links-v2,
  .nav-links-v2 > div,
  .nav-links-v2 ul.menu {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .site-header .nav-links ul.menu > li.menu-item > a,
  .nav-cta,
  .nav-cta.ghost-light {
    width: 100%;
  }

  .brand-v2 {
    min-width: 0;
  }
}

/* Calculator redraw */
.calc-reference-visual .window-visual {
  display: grid;
  place-items: center;
}

.window-frame {
  position: relative;
  overflow: visible;
  width: min(86%, 354px);
  height: 226px;
  padding: 8px;
  border: 14px solid #f6f8fb;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(231, 238, 245, 0.96));
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.14),
    inset 0 0 0 4px rgba(190, 206, 219, 0.95);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.frame-sill {
  position: absolute;
  left: -22px;
  right: -22px;
  bottom: -18px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #d7e1ea 100%);
  box-shadow: 0 10px 18px rgba(22, 49, 74, 0.10);
}

.sash,
.door-sash {
  position: absolute;
  top: 8px;
  bottom: 8px;
  display: block !important;
  border: 7px solid rgba(244, 248, 251, 0.98);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232, 239, 245, 0.95));
  box-shadow:
    inset 0 0 0 2px rgba(182, 198, 210, 0.9),
    0 2px 8px rgba(13, 33, 48, 0.07);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.45s ease, box-shadow 0.25s ease;
}

.sash::before,
.door-sash::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(143, 158, 171, 0.2), rgba(143, 158, 171, 0.65), rgba(143, 158, 171, 0.2));
}

.sash-a::before,
.sash-c::before {
  left: 8px;
}

.sash-b::before,
.door-sash::before {
  right: 8px;
}

.leaf-glass {
  position: absolute;
  inset: 10px;
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, #cbe3f4 0%, #e9f6ff 100%);
  box-shadow:
    inset 0 0 0 2px rgba(236, 246, 252, 0.95),
    inset 0 -18px 30px rgba(149, 189, 214, 0.15);
}

.leaf-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.22) 0%, transparent 42%, rgba(255,255,255,0.14) 100%);
}

.leaf-handle {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 34px;
  margin-top: -17px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c5ccd2 0%, #8f9ba7 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

.sash-a .leaf-handle,
.sash-c .leaf-handle {
  right: 10px;
}

.sash-b .leaf-handle,
.door-sash .leaf-handle {
  left: 10px;
}

.is-single .sash-a {
  left: 8px;
  width: calc(100% - 16px);
}

.is-single .sash-b,
.is-single .sash-c,
.is-single .door-sash {
  display: none !important;
}

.is-double .sash-a,
.is-double .sash-b {
  width: calc(50% - 12px);
}

.is-double .sash-a {
  left: 8px;
}

.is-double .sash-b {
  left: calc(50% + 4px);
}

.is-double .sash-c,
.is-double .door-sash {
  display: none !important;
}

.is-triple .sash-a,
.is-triple .sash-b,
.is-triple .sash-c {
  width: calc(33.333% - 11px);
}

.is-triple .sash-a {
  left: 8px;
}

.is-triple .sash-b {
  left: calc(33.333% + 3px);
}

.is-triple .sash-c {
  left: calc(66.666% - 2px);
}

.is-triple .door-sash {
  display: none !important;
}

.is-balcony .window-frame {
  width: min(90%, 400px);
  height: 246px;
}

.is-balcony .sash-a {
  left: 8px;
  width: calc(42% - 10px);
}

.is-balcony .door-sash {
  left: calc(42% + 6px);
  width: calc(58% - 14px);
  display: block !important;
}

.is-balcony .sash-b,
.is-balcony .sash-c {
  display: none !important;
}

.is-door .window-frame {
  width: min(58%, 224px);
  height: 288px;
}

.is-door .door-sash {
  left: 8px;
  width: calc(100% - 16px);
  display: block !important;
}

.is-door .sash-a,
.is-door .sash-b,
.is-door .sash-c {
  display: none !important;
}

.sash-a,
.sash-c {
  transform-origin: left center;
}

.sash-b,
.door-sash {
  transform-origin: right center;
}

.sash-a[data-open="swing"],
.sash-c[data-open="swing"] {
  transform: perspective(1400px) rotateY(-26deg) translateX(-8px);
  box-shadow:
    inset 0 0 0 2px rgba(182, 198, 210, 0.9),
    -12px 12px 24px rgba(13, 33, 48, 0.16);
}

.sash-b[data-open="swing"],
.door-sash[data-open="swing"] {
  transform: perspective(1400px) rotateY(26deg) translateX(8px);
  box-shadow:
    inset 0 0 0 2px rgba(182, 198, 210, 0.9),
    12px 12px 24px rgba(13, 33, 48, 0.16);
}

.sash[data-open="tilt"],
.door-sash[data-open="tilt"] {
  transform-origin: center top;
  transform: perspective(1400px) rotateX(18deg) translateY(-6px);
  box-shadow:
    inset 0 0 0 2px rgba(182, 198, 210, 0.9),
    0 12px 22px rgba(13, 33, 48, 0.12);
}

.sash[data-open="fixed"],
.door-sash[data-open="fixed"] {
  transform: none;
}

.laminate-white .window-frame {
  border-color: #f6f8fb;
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.14),
    inset 0 0 0 4px rgba(190, 206, 219, 0.95);
}

.laminate-makori .window-frame {
  border-color: #976a4a;
  background: linear-gradient(180deg, #b9835e 0%, #8e6243 100%);
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.16),
    inset 0 0 0 4px rgba(109, 70, 43, 0.75);
}

.laminate-walnut .window-frame {
  border-color: #7f5338;
  background: linear-gradient(180deg, #9d6c4a 0%, #744d32 100%);
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.16),
    inset 0 0 0 4px rgba(89, 57, 36, 0.78);
}

.laminate-anthracite .window-frame {
  border-color: #626b73;
  background: linear-gradient(180deg, #79848e 0%, #5b636a 100%);
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.16),
    inset 0 0 0 4px rgba(58, 63, 68, 0.78);
}

.laminate-mokka .window-frame {
  border-color: #88654f;
  background: linear-gradient(180deg, #ab8467 0%, #866149 100%);
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.16),
    inset 0 0 0 4px rgba(104, 72, 51, 0.8);
}

.laminate-lightoak .window-frame {
  border-color: #c79c62;
  background: linear-gradient(180deg, #ddb77f 0%, #bc9158 100%);
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.16),
    inset 0 0 0 4px rgba(153, 111, 61, 0.68);
}

.laminate-oak .window-frame {
  border-color: #d09d5d;
  background: linear-gradient(180deg, #dfb473 0%, #c18a45 100%);
  box-shadow:
    0 24px 54px rgba(24, 56, 84, 0.16),
    inset 0 0 0 4px rgba(162, 113, 54, 0.72);
}

/* Factoria-inspired refinement */
:root {
  --blue: #1d4367;
  --blue-2: #2b5b86;
  --red: #ff725f;
  --teal: #63cfd2;
  --ink: #1d3956;
  --muted: #698098;
  --line: #d6e3ee;
  --bg: #f3f7fb;
  --white: #ffffff;
  --shadow: 0 26px 62px rgba(22, 51, 79, 0.10);
}

body::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(99, 207, 210, 0.10), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(255, 114, 95, 0.08), transparent 16%),
    linear-gradient(90deg, rgba(29, 67, 103, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 67, 103, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

.topbar-v2 {
  background: linear-gradient(90deg, #20476d 0%, #2a5a85 100%);
}

.nav-v2 {
  border-bottom: 1px solid rgba(214, 227, 238, 0.88);
  box-shadow: 0 18px 40px rgba(29, 67, 103, 0.06);
}

.site-header .nav-links ul.menu > li.menu-item > a {
  color: #244764 !important;
}

.site-header .nav-links ul.menu > li.menu-item.current-menu-item > a,
.site-header .nav-links ul.menu > li.menu-item > a:hover {
  color: #ff725f !important;
  box-shadow: 0 12px 28px rgba(255, 114, 95, 0.08) !important;
}

.nav-cta,
.button.primary,
.shine-call {
  background: linear-gradient(180deg, #ff8973 0%, #ff725f 100%);
  box-shadow: 0 16px 34px rgba(255, 114, 95, 0.22);
}

.nav-cta.ghost-light {
  background: linear-gradient(180deg, #eef7fb 0%, #e8f4fb 100%);
}

.hero-v3 {
  background: linear-gradient(118deg, rgba(24, 67, 104, 0.92) 0%, rgba(36, 85, 126, 0.72) 44%, rgba(45, 91, 134, 0.22) 100%);
}

.hero-v3::before {
  background-image:
    linear-gradient(108deg, rgba(17, 53, 82, 0.74) 0%, rgba(17, 53, 82, 0.48) 34%, rgba(17, 53, 82, 0.08) 70%),
    var(--hero-bg);
}

.hero-v3 .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-lead-v3 {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(221, 233, 242, 0.92);
}

.hero-trustbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: -36px auto 0;
  padding: 0 clamp(16px, 4vw, 56px);
}

.hero-trustbar article {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid #d8e6f0;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(247, 251, 254, 0.97) 100%);
  box-shadow: 0 18px 38px rgba(29, 67, 103, 0.08);
}

.hero-trustbar strong {
  display: block;
  margin-bottom: 6px;
  color: #234868;
  font-size: 17px;
}

.hero-trustbar span {
  color: #6a8198;
  font-size: 14px;
  line-height: 1.45;
}

.hero-achievements article,
.float-card {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}

.promo-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.promo-strip {
  padding-top: 92px;
}

.promo-card.accent {
  background: linear-gradient(135deg, #21486d 0%, #31638d 100%);
}

.calculator-reference-shell {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  align-items: start;
}

.calc-reference-stage {
  display: grid;
  gap: 18px;
}

.calc-reference-config {
  display: grid;
  gap: 18px;
}

.calc-room-colors,
.calc-lamination-panel,
.calc-block,
.calc-summary-box,
.compare-block {
  border: 1px solid #d7e4ef !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 18px 40px rgba(29, 67, 103, 0.06) !important;
}

.calc-reference-visual {
  border: 1px solid #d7e4ef !important;
  box-shadow: 0 24px 56px rgba(29, 67, 103, 0.10) !important;
}

.calc-reference-visual::after {
  height: 96px;
  background: linear-gradient(180deg, rgba(171, 185, 197, 0.02), rgba(162, 176, 187, 0.22));
}

.calc-reference-visual .window-visual {
  width: min(94%, 540px);
  min-height: 340px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.22), transparent 32%),
    linear-gradient(180deg, #a4cae4 0%, #cfe6f5 56%, #e6f3fb 100%);
}

.ref-type-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.visual-type-card {
  min-height: 156px;
  padding: 16px;
  border: 1px solid #d8e6f0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.visual-type-card.active {
  border-color: rgba(255, 114, 95, 0.55);
  box-shadow: 0 16px 36px rgba(255, 114, 95, 0.12);
}

.mini-window {
  height: 72px;
  border: 5px solid #c7dced;
  border-radius: 8px;
  background: linear-gradient(180deg, #cae1f2 0%, #eaf6fd 100%);
}

.mini-window::before,
.mini-window::after {
  background: #c3d8e8;
}

.pricing-switch {
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: #eef5fb;
}

.pricing-switch button {
  border-radius: 999px;
  color: #32506e;
  font-weight: 800;
}

.pricing-switch button.is-active {
  background: linear-gradient(180deg, #ff8771 0%, #ff725f 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 114, 95, 0.18);
}

.pricing-switch button.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.pricing-switch button.is-disabled:hover {
  transform: none;
}

.swatch-card,
.lamination-ref-card {
  border: 1px solid #d8e6f0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.swatch-card.active,
.lamination-ref-card.active {
  border-color: rgba(255, 114, 95, 0.55);
  box-shadow: 0 14px 28px rgba(255, 114, 95, 0.12);
}

.lamination-ref-card {
  min-height: 78px;
}

.lamination-ref-card i {
  border-radius: 10px;
}

.compare-table th {
  background: #edf5fb;
  color: #274868;
}

.compare-table td {
  color: #35516e;
}

.result-light {
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fc 100%);
  border: 1px solid #d8e6f0;
}

.result-light strong {
  color: #ff725f;
}

@media (max-width: 1180px) {
  .calculator-reference-shell {
    grid-template-columns: 1fr;
  }

  .hero-offer-list,
  .hero-trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-offer-list,
  .hero-trustbar {
    grid-template-columns: 1fr;
  }

  .hero-trustbar {
    margin-top: 18px;
  }

  .promo-strip {
    padding-top: 40px;
  }
}

/* Stabilization fixes */
.hero-v3 {
  min-height: auto !important;
  padding-top: 40px !important;
  padding-bottom: 48px !important;
}

.hero-shell-v2 {
  min-height: 0 !important;
  align-items: start !important;
}

.hero-copy-v2,
.hero-sidecard {
  align-self: start !important;
}

.hero-v3 h1 {
  max-width: 760px !important;
  margin-bottom: 18px !important;
  font-size: clamp(42px, 4.9vw, 64px) !important;
  line-height: 1.02 !important;
}

.hero-v3 .hero-offer-list {
  margin-top: 20px !important;
}

.hero-v3 .hero-achievements {
  margin-top: 20px !important;
}

.hero-v3 .hero-floating-cards {
  display: none !important;
}

.hero-trust-section {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.hero-trustbar-standalone {
  position: static !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 18px auto 0;
}

.hero-stats-strip article {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid #d8e6f0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: 0 16px 34px rgba(29, 67, 103, 0.06);
}

.hero-stats-strip strong {
  display: block;
  margin-bottom: 8px;
  color: #234868;
  font-size: 28px;
  line-height: 1;
}

.hero-stats-strip span {
  color: #6a8198;
  font-size: 14px;
  line-height: 1.45;
}

.hero-v3 .hero-lead-v3 p,
.hero-v3 .hero-lead-v3 label,
.hero-v3 .hero-lead-v3 h2 {
  color: #244764 !important;
}

.hero-v3 .hero-lead-v3 .lead-badge {
  color: #1f4a6f !important;
}

.hero-v3 .hero-lead-v3 {
  box-shadow: 0 24px 52px rgba(24, 56, 84, 0.16) !important;
}

.footer-brand-mark {
  width: 96px !important;
  height: 96px !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)) !important;
}

.footer-brand-mark img {
  width: 72px !important;
  height: 72px !important;
}

.sash-a[data-open="swing"],
.sash-c[data-open="swing"] {
  transform: perspective(1400px) rotateY(-14deg) translateX(-4px) !important;
}

.sash-b[data-open="swing"],
.door-sash[data-open="swing"] {
  transform: perspective(1400px) rotateY(14deg) translateX(4px) !important;
}

.sash[data-open="tilt"],
.door-sash[data-open="tilt"] {
  transform-origin: center top !important;
  transform: translateY(-3px) !important;
  box-shadow:
    inset 0 0 0 2px rgba(182, 198, 210, 0.9),
    0 10px 18px rgba(13, 33, 48, 0.10) !important;
}

@media (max-width: 1180px) {
  .hero-trustbar-standalone,
  .hero-offer-list,
  .hero-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .hero-trustbar-standalone,
  .hero-offer-list,
  .hero-achievements,
  .hero-stats-strip {
    grid-template-columns: 1fr !important;
  }
}

/* Home v4 redesign */
.home-v4 {
  --page-bg: linear-gradient(180deg, #f7fbff 0%, #eef5fa 45%, #f7fbff 100%);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(40, 86, 126, 0.12);
  --line-strong: rgba(40, 86, 126, 0.18);
  --text: #153a61;
  --muted: #5c7690;
  --teal: #63d2c6;
  --teal-deep: #3abeb2;
  --accent: #ff6c5b;
  --accent-deep: #ff8768;
  --shadow-soft: 0 18px 48px rgba(30, 67, 102, 0.10);
  --shadow-strong: 0 24px 64px rgba(19, 52, 82, 0.16);
  background: var(--page-bg);
}

.home-v4 .section,
.home-v4 .hero-v4 {
  position: relative;
}

.home-v4 .shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.home-v4 .section {
  padding: 88px 0;
}

.home-v4 .section-head {
  max-width: 820px;
  margin-bottom: 36px;
}

.home-v4 .section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-v4 .section-head h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.02;
}

.home-v4 .section-head .lead,
.home-v4 .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.home-v4 .tag,
.home-v4 .tag-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.home-v4 .tag {
  color: #0d7a73;
  background: rgba(99, 210, 198, 0.16);
}

.home-v4 .tag-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.home-v4 .button.primary,
.home-v4 .button.secondary,
.home-v4 .shine-call {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
}

.home-v4 .button.primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 38px rgba(255, 108, 91, 0.28);
}

.home-v4 .button.secondary {
  color: var(--text);
  border: 1px solid rgba(40, 86, 126, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.home-v4 .shine-call {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 16px 36px rgba(83, 206, 193, 0.24);
}

.home-v4 .glass-card,
.home-v4 .glass-panel,
.home-v4 .stat-card,
.home-v4 .work-card,
.home-v4 .review-card,
.home-v4 .dealer-card,
.home-v4 .city-list__item,
.home-v4 .summary-term-card,
.home-v4 .before-after-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-v4 {
  min-height: calc(100vh - 110px);
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(14, 56, 93, 0.88) 0%, rgba(14, 56, 93, 0.58) 34%, rgba(14, 56, 93, 0.12) 74%),
    var(--hero-bg) center/cover no-repeat;
}

.hero-v4__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 210, 198, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.00), rgba(255, 255, 255, 0.10));
  animation: heroPulse 12s ease-in-out infinite;
}

.hero-v4__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.hero-v4__content h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: #ffffff;
  font-size: clamp(50px, 6vw, 86px);
  line-height: 0.94;
  text-wrap: balance;
}

.hero-v4__lead {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 21px;
  line-height: 1.65;
}

.hero-v4__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-v4__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.hero-fact {
  padding: 20px 22px;
  border-radius: 24px;
}

.hero-fact strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
}

.hero-fact span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.6;
}

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

.hero-v4__villa {
  position: relative;
  min-height: 390px;
}

.villa-glow {
  position: absolute;
  inset: 12% 8% auto;
  height: 280px;
  border-radius: 44px;
  background: radial-gradient(circle, rgba(99, 210, 198, 0.38), rgba(99, 210, 198, 0));
  filter: blur(14px);
  animation: glowShift 8s ease-in-out infinite;
}

.villa-card {
  position: relative;
  min-height: 390px;
  padding: 40px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.villa-roof {
  width: 72%;
  height: 22px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcf9f5, #8be1d7);
}

.villa-body {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 44, 73, 0.84), rgba(23, 71, 110, 0.72));
}

.villa-floor {
  display: grid;
  gap: 14px;
}

.villa-floor-top {
  grid-template-columns: 1.5fr 1fr;
}

.villa-floor-bottom {
  grid-template-columns: 1fr 0.8fr 1fr;
}

.villa-window {
  position: relative;
  display: block;
  min-height: 118px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(185, 225, 249, 0.92), rgba(217, 240, 255, 0.64));
  overflow: hidden;
}

.villa-window::before,
.villa-window::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.villa-window::before {
  left: 22px;
}

.villa-window::after {
  right: 22px;
}

.villa-window.wide::before,
.villa-window.wide::after,
.villa-window.tall::before,
.villa-window.tall::after,
.villa-window.door::before,
.villa-window.door::after {
  width: 0;
}

.villa-window.wide {
  min-height: 138px;
}

.villa-window.wide::before {
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
}

.villa-window.tall {
  min-height: 174px;
}

.villa-window.tall::before {
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
}

.villa-window.door {
  min-height: 174px;
}

.villa-window.door::before {
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
}

.villa-caption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-weight: 700;
}

.hero-v4__leadform {
  padding: 28px;
  border-radius: 30px;
}

.hero-v4__leadform .lead-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(99, 210, 198, 0.14);
  color: #0e736c;
  font-weight: 800;
}

.hero-v4__leadform h2 {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  line-height: 1.02;
}

.hero-v4__leadform p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-v4__leadform label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--text);
  font-weight: 700;
}

.hero-v4__leadform input,
.hero-v4__leadform select,
.home-v4 .callback-inline input,
.home-v4 .calculator-form-reference input,
.home-v4 .calculator-form-reference select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 16px;
}

.trust-logos-section {
  padding-top: 54px;
}

.brand-marquee {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.brand-chip {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
}

.brand-chip span {
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
}

.premium-split,
.map-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 32px;
  align-items: start;
}

.premium-split {
  grid-template-columns: minmax(400px, 0.8fr) minmax(0, 1fr);
}

.hardware-poster {
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-strong);
}

.poster-badge,
.poster-note {
  position: absolute;
  left: 28px;
}

.poster-badge {
  top: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.poster-note {
  bottom: 28px;
  max-width: 280px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
}

.content-stack h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.benefit-grid article {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  padding: 28px 22px;
  border-radius: 28px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--text);
  font-size: 42px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  overflow: hidden;
  border-radius: 30px;
}

.work-card__image {
  aspect-ratio: 1.18;
  background-size: cover;
  background-position: center;
}

.work-card__body {
  padding: 22px;
}

.work-card__body h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.work-card__body ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.reze-line {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(99, 210, 198, 0.16);
  color: #0e736c;
  font-size: 14px;
  font-weight: 800;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.before-after-card {
  border-radius: 30px;
  overflow: hidden;
}

.before-after-stage {
  position: relative;
  aspect-ratio: 1.22;
  overflow: hidden;
}

.before-after-stage__before,
.before-after-stage__after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.before-after-range {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
}

.before-label,
.after-label {
  position: absolute;
  top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(14, 56, 93, 0.45);
}

.before-label {
  left: 18px;
}

.after-label {
  right: 18px;
}

.calculator-reference-v2 .calculator-reference-shell {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 30px;
}

.calculator-reference-v2 .calc-reference-stage,
.calculator-reference-v2 .calc-reference-config {
  display: grid;
  gap: 20px;
}

.calculator-reference-v2 .calc-reference-visual,
.calculator-reference-v2 .calc-room-colors,
.calculator-reference-v2 .calc-lamination-panel,
.calculator-reference-v2 .calc-block,
.calculator-reference-v2 .calc-summary-box {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.calculator-reference-v2 .calc-reference-visual {
  min-height: 420px;
}

.calculator-reference-v2 .calc-subtitle {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
}

.calculator-reference-v2 .swatch-grid,
.calculator-reference-v2 .lamination-ref-grid,
.calculator-reference-v2 .reference-extra-grid,
.calculator-reference-v2 .reference-dim-grid,
.calculator-reference-v2 .sash-grid-reference {
  gap: 14px;
}

.calculator-reference-v2 .result-light strong {
  font-size: 42px;
  line-height: 1;
}

.summary-term-card {
  padding: 18px 20px;
  border-radius: 20px;
}

.summary-term-card span,
.summary-term-card small {
  display: block;
}

.summary-term-card span {
  color: var(--muted);
}

.summary-term-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 28px;
}

.summary-term-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.reviews-carousel {
  position: relative;
  min-height: 1px;
}

.reviews-page {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.reviews-page.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

.review-card {
  display: block;
  height: 100%;
  padding: 28px;
  border: 1px solid #d7e4ef;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 18px 40px rgba(29, 67, 103, 0.08);
}

.review-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.review-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.review-card__head strong,
.review-card__head b {
  color: var(--text);
}

.review-card__head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.review-card p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.dealer-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dealer-tile {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.98));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 94px;
  display: flex;
  align-items: center;
}

.dealer-tile__city {
  width: 100%;
  padding: 22px 24px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.dealer-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.object-map-wrap {
  display: flex;
  justify-content: center;
}

.object-map-canvas {
  position: relative;
  width: min(100%, 1080px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 253, 0.98));
  box-shadow: var(--shadow-soft);
}

.object-map-canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.object-map-marker {
  position: absolute;
  z-index: 2;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
}

.object-map-marker i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 108, 91, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: mapPulse 1.9s ease-in-out infinite;
}

.object-map-marker::after {
  content: attr(data-count);
  position: absolute;
  left: 50%;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(18, 49, 79, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.object-map-marker:hover::after,
.object-map-marker:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.object-map-marker:hover i,
.object-map-marker:focus-visible i {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(255, 108, 91, 0.22);
  animation-play-state: paused;
}

.region-map {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 252, 0.96));
  box-shadow: var(--shadow-soft);
}

.region-map__surface {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(99, 210, 198, 0.14), transparent 28%),
    radial-gradient(circle at 76% 66%, rgba(255, 108, 91, 0.10), transparent 32%),
    linear-gradient(135deg, rgba(22, 82, 126, 0.05), rgba(255, 255, 255, 0));
}

.region-map__surface img {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  opacity: 0.98;
  user-select: none;
  pointer-events: none;
}

.region-map__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(40, 86, 126, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(25, 60, 94, 0.12);
  backdrop-filter: blur(10px);
}

.region-map__badge strong,
.region-map__badge span {
  display: block;
}

.region-map__badge strong {
  color: var(--text);
  font-size: 18px;
}

.region-map__badge span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.region-map__badge--teal {
  border-color: rgba(74, 202, 191, 0.28);
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(40, 86, 126, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(25, 60, 94, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.map-marker.is-active,
.map-marker:hover {
  transform: translate(-50%, -50%) scale(1.04);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 28px rgba(255, 108, 91, 0.22);
}

.map-marker--object.is-active,
.map-marker--object:hover {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  box-shadow: 0 16px 28px rgba(74, 202, 191, 0.22);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.city-list__item,
.dealer-card {
  padding: 18px 20px;
  border-radius: 20px;
  text-align: left;
}

.city-list__item {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 800;
}

.city-list__item.is-active,
.dealer-card.is-active,
.object-card.is-active {
  border-color: rgba(255, 108, 91, 0.26);
  box-shadow: 0 18px 36px rgba(255, 108, 91, 0.12);
}

.dealer-cards {
  display: grid;
  gap: 14px;
}

.map-sidebar .city-list {
  max-height: 220px;
  overflow: auto;
  padding-right: 6px;
}

.city-list--objects {
  max-height: 280px !important;
}

.dealer-card {
  display: none;
}

.dealer-card.is-active,
.object-card {
  display: block;
}

.dealer-card strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.dealer-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.map-panel .section-head {
  margin-bottom: 20px;
}

.map-split {
  align-items: start;
}

.production-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.production-gallery__item {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.production-gallery__image {
  aspect-ratio: 1.16;
  background-size: cover;
  background-position: center;
}

.production-gallery__meta {
  padding: 20px 22px;
}

.production-gallery__meta strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.production-gallery__meta span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.final-cta-v2 .promo-row-v2 {
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(245, 250, 253, 0.94));
  box-shadow: var(--shadow-soft);
}

.final-cta-v2 .callback-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes glowShift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -6px, 0) scale(1.06); }
}

@keyframes mapPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(255, 108, 91, 0.16);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 9px rgba(255, 108, 91, 0.08);
  }
}

@media (max-width: 1180px) {
  .hero-v4__shell,
  .premium-split,
  .map-split,
  .calculator-reference-v2 .calculator-reference-shell {
    grid-template-columns: 1fr;
  }

  .brand-marquee,
  .stats-grid,
  .works-grid,
  .before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-v4__facts,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta-v2 .callback-inline {
    grid-template-columns: 1fr;
  }

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

  .region-map {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .home-v4 .shell {
    width: min(100% - 24px, 1280px);
  }

  .home-v4 .section {
    padding: 64px 0;
  }

  .hero-v4 {
    min-height: auto;
    padding: 36px 0 64px;
  }

  .hero-v4__content h1 {
    font-size: 48px;
  }

  .hero-v4__lead {
    font-size: 18px;
  }

  .hero-v4__facts,
  .brand-marquee,
  .stats-grid,
  .works-grid,
  .before-after-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .villa-card,
  .hero-v4__leadform,
  .calculator-reference-v2 .calc-reference-visual,
  .calculator-reference-v2 .calc-room-colors,
  .calculator-reference-v2 .calc-lamination-panel,
  .calculator-reference-v2 .calc-block,
  .calculator-reference-v2 .calc-summary-box {
    border-radius: 24px;
  }

  .review-card__head {
    grid-template-columns: auto 1fr;
  }

  .review-card__head b {
    grid-column: 1 / -1;
  }

  .dealer-tiles {
    grid-template-columns: 1fr;
  }

  .dealer-tile__city {
    font-size: 18px;
    padding: 18px;
  }

  .object-map-canvas {
    padding: 12px;
    border-radius: 24px;
  }

  .region-map {
    min-height: 440px;
  }

  .region-map__surface img {
    inset: 6%;
    width: 88%;
    height: 88%;
  }

  .region-map__badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
    padding: 14px 16px;
  }

  .map-marker {
    padding: 7px 9px;
    font-size: 11px;
  }

  .map-sidebar .city-list {
    max-height: none;
    overflow: visible;
  }

  .production-gallery {
    grid-auto-columns: minmax(240px, 84vw);
  }

  .final-cta-v2 .promo-row-v2 {
    padding: 24px;
  }
}

/* Refinements after live review */
.home-v4 .section-head h2 {
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.08;
}

.hero-v4 {
  min-height: auto;
  padding: 54px 0 58px;
  background:
    linear-gradient(100deg, rgba(12, 48, 80, 0.92) 0%, rgba(12, 48, 80, 0.74) 36%, rgba(12, 48, 80, 0.18) 78%),
    var(--hero-bg) center/cover no-repeat;
}

.hero-v4__shell {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 28px;
}

.hero-v4__content h1 {
  max-width: 700px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.02;
}

.hero-v4__lead {
  max-width: 620px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-v4__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-v4__list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.55;
}

.hero-v4__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-v4__actions {
  margin-top: 26px;
}

.hero-v4__visual {
  gap: 0;
}

.hero-v4__media-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hero-v4__media {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.hero-v4__media-copy {
  padding: 24px;
  background: rgba(10, 40, 67, 0.78);
}

.hero-v4__media-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(99, 210, 198, 0.18);
  color: #dffffb;
  font-size: 13px;
  font-weight: 800;
}

.hero-v4__media-copy h2 {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.08;
}

.hero-v4__media-copy p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.hero-v4__media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-v4__media-tags span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hero-v4__facts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.hero-v4__facts {
  display: none;
}

.hero-fact {
  padding: 18px 20px;
  border-radius: 22px;
}

.hero-fact strong {
  font-size: 18px;
}

.hero-fact span {
  margin-top: 8px;
  font-size: 14px;
}

.quick-lead-section {
  padding-top: 28px;
  padding-bottom: 34px;
}

.quick-lead-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.95fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 253, 0.96));
  box-shadow: var(--shadow-soft);
}

.quick-lead-copy h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 1.08;
}

.quick-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
}

.quick-lead-form select,
.quick-lead-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
}

.quick-lead-form button {
  width: 100%;
}

.quick-lead-form > :last-child,
.quick-lead-form select {
  grid-column: span 2;
}

.trust-logos-section {
  padding-top: 36px;
}

.brand-marquee {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brand-chip {
  min-height: 88px;
  border-radius: 18px;
}

.brand-chip span {
  font-size: 22px;
}

.page-hero {
  padding: 56px clamp(16px, 4vw, 56px) 28px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.06;
}

.page-hero p {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
}

.page-image-panel {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.page-image-panel__label {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-image-panel__body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(10, 40, 67, 0.62);
  backdrop-filter: blur(14px);
}

.page-image-panel__body strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.page-image-panel__body p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page-brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-brand-strip span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40, 86, 126, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: flex-start;
  color: #fff;
  text-decoration: none;
}

.footer-brand-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(5, 20, 34, 0.18);
}

.footer-brand-full img {
  width: 100% !important;
  height: auto !important;
  max-height: 110px;
  margin: 0 !important;
  object-fit: contain;
}

.footer-brand > p {
  max-width: 420px;
  margin-top: 18px;
}

@media (max-width: 1366px) {
  .hero-v4__content h1 {
    font-size: clamp(34px, 3.8vw, 52px);
  }

  .hero-v4__shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  }
}

@media (max-width: 1180px) {
  .hero-v4__facts-strip,
  .brand-marquee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-lead-shell,
  .quick-lead-form {
    grid-template-columns: 1fr;
  }

  .quick-lead-form > :last-child,
  .quick-lead-form select {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .hero-v4 {
    padding: 32px 0 42px;
  }

  .hero-v4__content h1 {
    font-size: 34px;
  }

  .hero-v4__lead,
  .hero-v4__list li,
  .page-hero p {
    font-size: 16px;
  }

  .hero-v4__media {
    min-height: 260px;
  }

  .hero-v4__media-copy h2,
  .quick-lead-copy h2 {
    font-size: 24px;
  }

  .hero-v4__facts-strip,
  .brand-marquee {
    grid-template-columns: 1fr;
  }

  .page-image-panel {
    min-height: 300px;
  }

  .brand-full-image {
    width: min(100%, 300px);
  }

  .brand-v2--full img {
    max-height: 74px;
  }

  .footer-brand-full {
    width: min(100%, 260px);
    padding: 12px 16px;
  }
}

/* Calculator mobile stabilization */
.calculator-reference-v2 .compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero fact cards blend better with dark first screen */
.home-v4 .hero-v4__facts-strip .hero-fact {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)),
    rgba(10, 36, 58, 0.34);
  box-shadow: 0 14px 28px rgba(9, 27, 43, 0.16);
  backdrop-filter: blur(12px);
}

.home-v4 .hero-v4__facts-strip .hero-fact strong {
  color: rgba(255, 255, 255, 0.96);
}

.home-v4 .hero-v4__facts-strip .hero-fact span {
  color: rgba(255, 255, 255, 0.72);
}

.calculator-reference-v2 .compare-table {
  min-width: 760px;
}

@media (max-width: 980px) {
  .calculator-reference-v2 .calculator-reference-shell {
    gap: 18px;
  }

  .calculator-reference-v2 .calc-reference-stage,
  .calculator-reference-v2 .calc-reference-config {
    gap: 16px;
  }

  .calculator-reference-v2 .calc-reference-visual,
  .calculator-reference-v2 .calc-room-colors,
  .calculator-reference-v2 .calc-lamination-panel,
  .calculator-reference-v2 .calc-block,
  .calculator-reference-v2 .calc-summary-box {
    padding: 18px;
    border-radius: 22px;
  }

  .calculator-reference-v2 .calc-reference-visual {
    min-height: 320px;
  }

  .calculator-reference-v2 .calc-reference-visual .window-visual {
    min-height: 240px;
  }

  .calculator-reference-v2 .ref-type-grid,
  .calculator-reference-v2 .reference-dim-grid,
  .calculator-reference-v2 .sash-grid-reference,
  .calculator-reference-v2 .reference-extra-grid,
  .calculator-reference-v2 .lamination-ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-reference-v2 .wall-swatches-ref {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch;
  }

  .calculator-reference-v2 .swatch-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .calculator-reference-v2 .pricing-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  .calculator-reference-v2 .pricing-switch button {
    min-height: 48px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .calculator-reference-v2 .visual-type-card {
    min-height: 138px;
  }

  .calculator-reference-v2 .mini-window {
    height: 62px;
  }

  .calculator-reference-v2 .result-light strong {
    font-size: 36px;
  }

  .calculator-reference-v2 .summary-term-card strong {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .calculator-reference-v2 .calculator-head h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .calculator-reference-v2 .calculator-head .lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .calculator-reference-v2 .calc-reference-visual,
  .calculator-reference-v2 .calc-room-colors,
  .calculator-reference-v2 .calc-lamination-panel,
  .calculator-reference-v2 .calc-block,
  .calculator-reference-v2 .calc-summary-box {
    padding: 16px;
    border-radius: 20px;
  }

  .calculator-reference-v2 .calc-reference-visual {
    min-height: 272px;
  }

  .calculator-reference-v2 .calc-reference-visual .window-visual {
    min-height: 204px;
  }

  .calculator-reference-v2 .window-frame {
    width: min(96%, 302px);
    height: 196px;
    border-width: 10px;
    padding: 6px;
  }

  .calculator-reference-v2 .frame-sill {
    left: -14px;
    right: -14px;
    bottom: -12px;
    height: 12px;
  }

  .calculator-reference-v2 .leaf-glass {
    inset: 8px;
  }

  .calculator-reference-v2 .leaf-handle {
    width: 6px;
    height: 26px;
    margin-top: -13px;
  }

  .calculator-reference-v2 .is-balcony .window-frame {
    width: min(100%, 328px);
    height: 210px;
  }

  .calculator-reference-v2 .is-door .window-frame {
    width: min(74%, 210px);
    height: 246px;
  }

  .calculator-reference-v2 .ref-type-grid,
  .calculator-reference-v2 .reference-dim-grid,
  .calculator-reference-v2 .sash-grid-reference,
  .calculator-reference-v2 .reference-extra-grid,
  .calculator-reference-v2 .lamination-ref-grid,
  .calculator-reference-v2 .pricing-switch {
    grid-template-columns: 1fr;
  }

  .calculator-reference-v2 .wall-swatches-ref {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .calculator-reference-v2 .visual-type-card {
    min-height: 124px;
    padding: 14px;
  }

  .calculator-reference-v2 .mini-window {
    height: 56px;
  }

  .calculator-reference-v2 .profile-desc-panel,
  .calculator-reference-v2 .calc-note,
  .calculator-reference-v2 .compare-table,
  .calculator-reference-v2 .checkbox,
  .calculator-reference-v2 label span,
  .calculator-reference-v2 input,
  .calculator-reference-v2 select {
    font-size: 15px;
  }

  .calculator-reference-v2 .result-light strong {
    font-size: 31px;
  }

  .calculator-reference-v2 .summary-term-card {
    padding: 16px;
  }

  .calculator-reference-v2 .summary-term-card strong {
    font-size: 22px;
  }
}

/* Hero slider refinement */
.home-v4 .hero-slider {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
}

.home-v4 .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-v4 .hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.home-v4 .hero-slider__controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}

.home-v4 .hero-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  pointer-events: auto;
}

.home-v4 .hero-slider__dots button,
.home-v4 .hero-slider__arrow {
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.home-v4 .hero-slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.home-v4 .hero-slider__dots button.is-active {
  background: var(--coral);
  transform: scale(1.18);
}

.home-v4 .hero-slider__arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  pointer-events: auto;
}

.home-v4 .hero-slider__arrow:hover,
.home-v4 .hero-slider__dots button:hover {
  transform: translateY(-1px);
}

.home-v4 .hero-v4__media-copy {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.home-v4 .hero-v4__media-copy p {
  min-height: 132px;
}

.home-v4 .hero-v4__media-tags {
  margin-top: auto;
}

.home-v4 .hero-v4__facts-strip {
  width: min(1180px, calc(100% - 48px));
  margin-top: 34px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 8px;
}

.home-v4 .hero-v4__facts-strip .hero-fact {
  min-height: 132px;
}

/* Restore the lighter KPI card treatment used before the latest hero refresh */
.home-v4 .hero-v4__facts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-v4 .hero-v4__facts-strip .hero-fact {
  min-height: auto;
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.home-v4 .hero-v4__facts-strip .hero-fact strong {
  font-size: 22px;
  line-height: 1.1;
  color: #ffffff;
}

.home-v4 .hero-v4__facts-strip .hero-fact span {
  color: #d8e4ee;
  font-size: 14px;
  line-height: 1.45;
}

.calculator-reference-v2 .profile-switch {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 10px;
}

.calculator-reference-v2 .profile-switch button {
  min-height: 72px;
  white-space: nowrap;
  font-size: 15px;
}

.calculator-reference-v2 .compare-table th {
  white-space: nowrap;
  vertical-align: top;
  font-size: 15px;
}

.calculator-reference-v2 .compare-table td {
  vertical-align: top;
}

@media (max-width: 980px) {
  .home-v4 .hero-v4__facts-strip {
    width: min(100%, calc(100% - 32px));
    margin-top: 26px;
    padding-top: 0;
  }

  .calculator-reference-v2 .profile-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-v4 .hero-slider__controls {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .home-v4 .hero-v4__media-copy {
    min-height: auto;
  }

  .home-v4 .hero-v4__media-copy p {
    min-height: 0;
  }

  .home-v4 .hero-slider__arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .home-v4 .hero-v4__facts-strip {
    margin-top: 22px;
    width: min(100%, calc(100% - 24px));
  }

  .home-v4 .hero-v4__facts-strip .hero-fact {
    min-height: auto;
  }

  .calculator-reference-v2 .profile-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-reference-v2 .profile-switch button,
  .calculator-reference-v2 .compare-table th {
    white-space: normal;
  }
}

/* Calculator wall color fix */
.calculator-reference-v2 .calc-reference-visual {
  transition: background 0.28s ease;
}

.calculator-reference-v2 .calc-reference-visual.wall-light {
  background: linear-gradient(180deg, #f5efe7 0%, #e6dccd 100%);
}

.calculator-reference-v2 .calc-reference-visual.wall-blue {
  background: linear-gradient(180deg, #dce9f1 0%, #c7d7e3 100%);
}

.calculator-reference-v2 .calc-reference-visual.wall-stone {
  background: linear-gradient(180deg, #e7ddd2 0%, #d7c7b8 100%);
}

.calculator-reference-v2 .calc-reference-visual.wall-sage {
  background: linear-gradient(180deg, #dce5d6 0%, #c4d0bd 100%);
}

.calculator-reference-v2 .calc-reference-visual.wall-gray {
  background: linear-gradient(180deg, #e5e5e5 0%, #d2d5d7 100%);
}

.calculator-reference-v2 .calc-reference-visual.wall-rose {
  background: linear-gradient(180deg, #f2ddda 0%, #e6cbc6 100%);
}

/* Hero slider controls hidden by request */
.home-v4 .hero-slider__controls,
.home-v4 .hero-slider__dots,
.home-v4 .hero-slider__arrow {
  display: none !important;
}

@media (max-width: 980px) {
  .reviews-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reviews-page {
    grid-template-columns: 1fr;
  }
}

/* Calculator extras alignment fix */
.calculator-reference-v2 .reference-extra-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calculator-reference-v2 .reference-extra-grid .checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 80px;
  padding: 18px 20px;
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.calculator-reference-v2 .reference-extra-grid .checkbox input {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 22px;
  accent-color: var(--accent);
}

@media (max-width: 980px) {
  .calculator-reference-v2 .reference-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .calculator-reference-v2 .reference-extra-grid {
    grid-template-columns: 1fr;
  }

  .calculator-reference-v2 .reference-extra-grid .checkbox {
    min-height: 72px;
    padding: 16px 18px;
  }
}

/* Footer redesign */
.footer-v2 {
  padding: 34px 0 0;
  background:
    radial-gradient(circle at top left, rgba(86, 193, 191, 0.12), transparent 22%),
    linear-gradient(180deg, #091a2a 0%, #071523 100%);
  color: #eaf2f8;
}

/* Calculator type cards alignment fix */
.calculator-reference-v2 .ref-type-grid {
  align-items: stretch;
  gap: 12px;
}

.calculator-reference-v2 .ref-type-grid .visual-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 164px;
  padding: 16px 14px;
  text-align: center;
}

.calculator-reference-v2 .ref-type-grid .visual-type-card .mini-window {
  width: 112px;
  max-width: 100%;
  margin: 0 auto;
}

.calculator-reference-v2 .ref-type-grid .visual-type-card .mini-door {
  width: 52px;
}

.calculator-reference-v2 .ref-type-grid .visual-type-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin: 0;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 1180px) {
  .calculator-reference-v2 .ref-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .calculator-reference-v2 .ref-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-reference-v2 .ref-type-grid .visual-type-card {
    min-height: 150px;
    padding: 14px 12px;
  }

  .calculator-reference-v2 .ref-type-grid .visual-type-card .mini-window {
    width: 100px;
  }

  .calculator-reference-v2 .ref-type-grid .visual-type-card strong {
    min-height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .calculator-reference-v2 .ref-type-grid {
    grid-template-columns: 1fr;
  }
}

/* Calculator inner scene background cleanup */
.calculator-reference-v2 .calc-reference-visual .window-visual {
  background: transparent !important;
}

.footer-shell {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 52px);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.8fr 0.95fr minmax(280px, 0.9fr);
  gap: 26px;
  align-items: start;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(9, 27, 43, 0.72);
  box-shadow: 0 28px 60px rgba(3, 12, 21, 0.28);
  backdrop-filter: blur(12px);
}

.footer-brand,
.footer-column,
.footer-contact-card {
  min-width: 0;
}

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

.footer-brand-lockup {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  color: #fff;
  text-decoration: none;
}

.footer-brand-full {
  width: 108px;
  min-width: 108px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,252,0.96));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.footer-brand-full img {
  width: 100% !important;
  max-height: none;
}

.footer-brand-copy {
  display: grid;
  gap: 8px;
}

.footer-brand-copy strong {
  color: #ffffff;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.04;
}

.footer-brand-copy span {
  color: rgba(228, 238, 246, 0.82);
  font-size: 15px;
  line-height: 1.5;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
  color: rgba(223, 234, 244, 0.86);
  font-size: 15px;
  line-height: 1.72;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-badges span,
.footer-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8e9f4;
  font-size: 13px;
  font-weight: 800;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 10px;
}

.footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.footer-column a {
  color: rgba(227, 237, 246, 0.82);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(11, 35, 56, 0.96);
  border: 1px solid rgba(120, 173, 214, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.footer-phone,
.footer-mail {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffffff;
  text-decoration: none;
}

.footer-phone {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
}

.footer-mail {
  font-size: 15px;
  color: #8fe0dd;
}

.footer-contact-meta {
  display: grid;
  gap: 8px;
  color: rgba(223, 234, 244, 0.84);
  font-size: 15px;
  line-height: 1.55;
}

.footer-button {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, #56c1bf 0%, #67d0d4 100%);
  color: #0a243c;
  box-shadow: 0 18px 34px rgba(86, 193, 191, 0.18);
}

.footer-button:hover,
.footer-button:focus-visible {
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 6px 24px;
  color: rgba(189, 207, 221, 0.76);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1220px) {
  .footer-panel {
    grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  }

  .footer-contact-card {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .footer-contact-card .footer-kicker,
  .footer-contact-card .footer-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .footer-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand-lockup {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .footer-brand-full {
    width: 90px;
    min-width: 90px;
    border-radius: 20px;
  }

  .footer-brand-copy strong {
    font-size: 24px;
  }

  .footer-contact-card {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 4px 24px;
  }
}

@media (max-width: 640px) {
  .footer-v2 {
    padding-top: 24px;
  }

  .footer-shell {
    padding: 0 14px;
  }

  .footer-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .footer-brand-lockup {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-brand-copy strong {
    font-size: 22px;
  }

  .footer-column a,
  .footer-brand p,
  .footer-contact-meta {
    font-size: 15px;
  }

  .footer-phone {
    font-size: 22px;
  }
}

/* Full-width footer adjustment */
.footer-v2 {
  padding-top: 0;
}

.footer-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

.footer-panel {
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding-left: clamp(18px, 4vw, 52px);
  padding-right: clamp(18px, 4vw, 52px);
}

.footer-bottom {
  padding-left: clamp(18px, 4vw, 52px);
  padding-right: clamp(18px, 4vw, 52px);
}

@media (max-width: 640px) {
  .footer-panel,
  .footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Footer rollback with current logo and unified social buttons */
.footer-v2 {
  padding: 0;
  background: #091b2b;
  color: #e5eef6;
}

.footer-v2 .footer-main {
  width: min(100%, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.85fr 0.95fr minmax(280px, 1fr);
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 52px);
}

.footer-v2 .footer-brand,
.footer-v2 .footer-links,
.footer-v2 .footer-contacts {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.footer-v2 .footer-brand-lockup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}

.footer-v2 .footer-brand-full {
  width: min(100%, 240px);
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-v2 .footer-brand-full img {
  width: 100% !important;
  height: auto;
  max-height: none;
}

.footer-v2 .footer-brand-copy {
  display: grid;
  gap: 8px;
}

.footer-v2 .footer-brand-copy strong {
  color: #ffffff;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
}

.footer-v2 .footer-brand-copy span,
.footer-v2 .footer-brand p,
.footer-v2 .footer-contact-meta,
.footer-v2 .footer-bottom {
  color: rgba(221, 233, 243, 0.82);
}

.footer-v2 .footer-brand p {
  margin: 0;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.7;
}

.footer-v2 .footer-badges--stacked {
  display: grid;
  gap: 10px;
}

.footer-v2 .footer-badges--stacked span,
.footer-v2 .footer-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e8f3;
  font-size: 13px;
  font-weight: 700;
}

.footer-v2 .footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.footer-v2 .footer-links a {
  color: rgba(227, 237, 246, 0.82);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-v2 .footer-links a:hover,
.footer-v2 .footer-links a:focus-visible,
.footer-v2 .footer-phone:hover,
.footer-v2 .footer-mail:hover,
.footer-v2 .footer-social:hover,
.footer-v2 .footer-social:focus-visible {
  color: #ffffff;
}

.footer-v2 .footer-phone,
.footer-v2 .footer-mail {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
}

.footer-v2 .footer-phone {
  color: #ffffff;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
}

.footer-v2 .footer-mail {
  color: #8fe0dd;
  font-size: 15px;
}

.footer-v2 .footer-contact-meta {
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-v2 .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.footer-v2 .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe8f3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-v2 .footer-social:hover,
.footer-v2 .footer-social:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.footer-v2 .footer-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-v2 .footer-button {
  width: fit-content;
  min-width: 220px;
  justify-content: center;
  min-height: 50px;
  margin-top: 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #56c1bf 0%, #67d0d4 100%);
  color: #0a243c;
  box-shadow: 0 18px 34px rgba(86, 193, 191, 0.18);
}

.footer-v2 .footer-bottom {
  width: min(100%, 1360px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 52px) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.5;
}

.footer-v2 .footer-bottom__meta {
  display: grid;
  gap: 6px;
}

.footer-v2 .footer-bottom .footer-socials {
  justify-content: flex-end;
  align-self: start;
  margin-top: 0;
}

.footer-v2 .footer-bottom .footer-social {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
}

.footer-v2 .footer-bottom .footer-social__icon {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .footer-v2 .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .footer-v2 .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .footer-v2 .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-v2 .footer-bottom .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-v2 .footer-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .footer-v2 .footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 20px;
  }

  .footer-v2 .footer-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-v2 .footer-social {
    justify-content: center;
  }

  .footer-v2 .footer-button {
    width: 100%;
    min-width: 0;
  }
}

/* Footer restore: calmer structured layout */
.footer-v2 .footer-panel {
  grid-template-columns: minmax(0, 1.45fr) 0.85fr 0.95fr minmax(280px, 0.95fr);
}

.footer-v2 .footer-brand-lockup {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.footer-v2 .footer-brand-full {
  width: 108px;
  min-width: 108px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,252,0.96));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.footer-v2 .footer-brand-full img {
  width: 100% !important;
  height: auto;
  max-height: none;
}

.footer-v2 .footer-brand-copy strong {
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.06;
}

.footer-v2 .footer-brand-copy span {
  font-size: 14px;
  line-height: 1.5;
}

.footer-v2 .footer-brand p {
  max-width: 520px;
}

.footer-v2 .footer-badges--stacked {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-v2 .footer-badges--stacked span {
  min-height: 40px;
  border-radius: 999px;
}

.footer-v2 .footer-column {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 10px;
}

.footer-v2 .footer-contact-card {
  align-content: start;
}

.footer-v2 .footer-bottom {
  width: 100%;
  margin-top: 0;
}

.footer-v2 .footer-bottom .footer-socials {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .footer-v2 .footer-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-v2 .footer-contact-card {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .footer-v2 .footer-contact-card .footer-kicker,
  .footer-v2 .footer-contact-card .footer-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .footer-v2 .footer-panel {
    grid-template-columns: 1fr;
  }

  .footer-v2 .footer-brand-lockup {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .footer-v2 .footer-brand-full {
    width: 90px;
    min-width: 90px;
    border-radius: 20px;
  }

  .footer-v2 .footer-contact-card {
    grid-template-columns: 1fr;
  }

  .footer-v2 .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-v2 .footer-bottom .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-v2 .footer-brand-lockup {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-v2 .footer-brand-full {
    width: 84px;
    min-width: 84px;
    padding: 10px;
    border-radius: 18px;
  }

  .footer-v2 .footer-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


