:root {
  color-scheme: dark;
  --bg: #07111a;
  --paper: rgba(16, 27, 38, 0.72);
  --paper-solid: #101b25;
  --paper-2: rgba(22, 35, 48, 0.82);
  --ink: #f6fbff;
  --ink-2: #e2edf5;
  --text: #d6e3ec;
  --muted: #91a4b3;
  --line: rgba(216, 232, 244, 0.16);
  --steel: #9eb1bf;
  --cyan: #63e6ff;
  --gold: #d9ad68;
  --gold-2: #f3dca8;
  --rose: #ff6f9d;
  --dark-glass: rgba(8, 14, 22, 0.72);
  --light-glass: rgba(16, 27, 38, 0.72);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 38px 110px rgba(0, 0, 0, 0.42);
  --inner-glass: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --radius: 26px;
  --radius-sm: 18px;
  --radius-lg: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(99, 230, 255, 0.12), transparent 30%),
    linear-gradient(245deg, rgba(217, 173, 104, 0.1), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.ambient-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(94, 231, 255, 0.08) 42% 43%, transparent 43%),
    linear-gradient(300deg, transparent 0 58%, rgba(217, 174, 104, 0.07) 58% 59%, transparent 59%);
  opacity: 0.8;
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 240;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--rose));
}

.store-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  padding: 16px 24px;
  pointer-events: none;
}

.header-panel {
  width: min(1360px, 100%);
  min-height: 72px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(190px, 1fr);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    var(--dark-glass);
  color: #ffffff;
  box-shadow: var(--shadow-strong), var(--inner-glass);
  backdrop-filter: blur(28px) saturate(1.55);
  pointer-events: auto;
  animation: headerDrop 520ms ease both;
}

body[data-route="catalog"] .header-panel,
body[data-route="cart"] .header-panel,
body[data-route="checkout"] .header-panel {
  border-color: rgba(16, 24, 32, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    var(--light-glass);
  color: var(--ink);
  box-shadow: var(--shadow), var(--inner-glass);
}

.store-header.is-solid .header-panel {
  min-height: 64px;
  background: rgba(11, 18, 26, 0.86);
  box-shadow: var(--shadow);
}

body[data-route="catalog"] .store-header.is-solid .header-panel,
body[data-route="cart"] .store-header.is-solid .header-panel,
body[data-route="checkout"] .store-header.is-solid .header-panel {
  background: rgba(255, 255, 255, 0.92);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: currentColor;
  font-size: 16px;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.58;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--inner-glass);
}

body[data-route="catalog"] .nav-links,
body[data-route="cart"] .nav-links,
body[data-route="checkout"] .nav-links {
  border-color: rgba(16, 24, 32, 0.08);
  background: rgba(16, 24, 32, 0.04);
}

.nav-links a {
  border-radius: 15px;
  padding: 10px 14px;
  color: currentColor;
  font-size: 14px;
  font-weight: 900;
  opacity: 0.72;
  transition: opacity 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a.is-active {
  background: #ffffff;
  color: var(--ink);
  opacity: 1;
}

body[data-route="catalog"] .nav-links a.is-active,
body[data-route="cart"] .nav-links a.is-active,
body[data-route="checkout"] .nav-links a.is-active {
  background: var(--ink);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-call,
.instagram-link {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-call {
  padding: 0 15px;
  background: linear-gradient(135deg, rgba(99, 230, 255, 0.22), rgba(217, 173, 104, 0.22));
}

.instagram-link {
  position: relative;
  width: 48px;
  background: rgba(255, 255, 255, 0.12);
}

.header-call:hover,
.instagram-link:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 215, 156, 0.7);
}

.instagram-link span {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 7px;
  position: relative;
}

.instagram-link span::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.instagram-link span::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.bottom-nav {
  display: none;
}

.nav-icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
  color: currentColor;
}

.nav-home::before {
  content: "";
  position: absolute;
  inset: 4px 3px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.nav-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-catalog::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 9px 0 0 -2px currentColor, 0 9px 0 -2px currentColor, 9px 9px 0 -2px currentColor;
}

.nav-cart::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 4px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

.nav-cart::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 3px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.nav-measure::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 10px;
}

.nav-measure::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
}

.app-shell {
  min-height: 100vh;
}

.page-section {
  padding: 118px 64px;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 150px;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 980px);
  align-items: center;
  gap: 44px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media,
.hero-media video,
.hero-media::after,
.architect-grid {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.62) contrast(1.08);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.94) 0%, rgba(8, 13, 20, 0.62) 52%, rgba(8, 13, 20, 0.92) 100%),
    linear-gradient(180deg, rgba(8, 13, 20, 0.06), rgba(8, 13, 20, 0.56));
}

.architect-grid {
  opacity: 0.22;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.75) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 82%, transparent);
  animation: gridSlide 18s linear infinite;
}

.halo-lines {
  position: absolute;
  right: 6vw;
  top: 15vh;
  width: 420px;
  height: 420px;
  pointer-events: none;
}

.halo-lines span {
  position: absolute;
  inset: 0;
  border-top: 4px dotted rgba(240, 215, 156, 0.8);
  border-radius: 50%;
  transform: rotate(12deg) scale(var(--s));
  animation: ringBreathe 3600ms ease-in-out infinite;
  animation-delay: var(--d);
}

.halo-lines span:nth-child(1) { --s: 0.48; --d: 0ms; }
.halo-lines span:nth-child(2) { --s: 0.64; --d: 120ms; }
.halo-lines span:nth-child(3) { --s: 0.82; --d: 240ms; }
.halo-lines span:nth-child(4) { --s: 1; --d: 360ms; }

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 880px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(11, 18, 26, 0.28);
  box-shadow: var(--shadow-strong), var(--inner-glass);
  backdrop-filter: blur(22px) saturate(1.45);
}

.overline {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: inherit;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.hero-inner p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.center-row,
.center-actions {
  justify-content: center;
  text-align: center;
}

.center-row {
  display: flex;
  margin-top: 34px;
}

.btn {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 950;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 38px rgba(217, 173, 104, 0.25), var(--inner-glass);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.full {
  width: 100%;
  grid-column: 1 / -1;
}

.checkout-card,
.review-card,
.product-card,
.empty-shop,
.catalog-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    var(--paper);
  box-shadow: var(--shadow), var(--inner-glass);
  backdrop-filter: blur(22px) saturate(1.35);
}

.section-title p,
.shop-title p,
.review-card p,
.contacts-copy p,
.measure-promo-copy p,
.measure-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.section-title,
.shop-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 34px;
  margin-bottom: 48px;
}

.section-title {
  display: block;
  max-width: 760px;
}

.home-catalog {
  padding-top: 104px;
  padding-bottom: 118px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.74)),
    transparent;
}

.shop-page,
.cart-page,
.checkout-page,
.measure-page,
.installer-page,
.success-page {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding-top: 164px;
}

.shop-page {
  padding-top: 112px;
}

.shop-title h1 {
  max-width: 980px;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 0.98;
}

.shop-title p {
  max-width: 520px;
  font-size: 17px;
}

.shop-title .btn {
  flex: 0 0 auto;
}

.catalog-bar {
  position: sticky;
  top: 104px;
  z-index: 42;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(11, 18, 26, 0.84);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2), var(--inner-glass);
  backdrop-filter: blur(24px) saturate(1.45);
}

.search-box,
.checkout-form label {
  display: grid;
  gap: 8px;
}

.checkout-form label.is-hidden {
  display: none;
}

.search-box span,
.checkout-form span,
.checkout-form legend {
  color: var(--steel);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: var(--inner-glass);
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(94, 231, 255, 0.16);
}

input[readonly] {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(243, 220, 168, 0.12), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field-title {
  display: block;
  margin-bottom: 8px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ready-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.ready-trigger,
.ready-time-control {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    var(--paper-2);
  color: var(--ink);
  box-shadow: var(--inner-glass), 0 18px 45px rgba(18, 31, 44, 0.08);
  backdrop-filter: blur(18px);
}

.ready-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.ready-trigger strong,
.ready-time-control strong {
  font-size: 18px;
  font-weight: 950;
}

.ready-trigger i {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 7px;
  opacity: 0.78;
  position: relative;
}

.ready-trigger i::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  border-top: 2px solid currentColor;
}

.ready-calendar {
  position: absolute;
  z-index: 35;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 249, 0.76)),
    var(--paper-solid);
  box-shadow: 0 28px 85px rgba(5, 13, 22, 0.22);
  backdrop-filter: blur(24px);
}

.ready-calendar-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.ready-calendar-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
}

.ready-calendar-head button,
.ready-calendar-days button,
.ready-time-control button {
  border: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--inner-glass);
}

.ready-calendar-head button {
  aspect-ratio: 1;
  border-radius: 14px;
  font-size: 24px;
}

.ready-calendar-week,
.ready-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ready-calendar-week {
  margin-bottom: 8px;
}

.ready-calendar-week span {
  color: var(--steel);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.ready-calendar-days button {
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.ready-calendar-days button:not(:disabled):hover,
.ready-calendar-head button:hover,
.ready-time-control button:hover {
  transform: translateY(-1px);
  background: rgba(99, 230, 255, 0.18);
}

.ready-calendar-days button.is-muted {
  opacity: 0.38;
}

.ready-calendar-days button.is-today {
  outline: 2px solid rgba(99, 230, 255, 0.28);
}

.ready-calendar-days button.is-selected {
  color: #07111a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  opacity: 1;
}

.ready-calendar-days button:disabled {
  opacity: 0.2;
}

.ready-calendar-days button.is-closed-day {
  text-decoration: line-through;
  background: rgba(255, 255, 255, 0.05);
}

.ready-time-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.ready-time-control strong {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ready-time-control button {
  aspect-ratio: 1;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 950;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--inner-glass);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.category-row button:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 231, 255, 0.55);
}

.category-row button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.catalog-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 16px;
  color: var(--muted);
  background:
    linear-gradient(120deg, rgba(99, 230, 255, 0.14), rgba(217, 173, 104, 0.14)),
    rgba(255, 255, 255, 0.7);
}

.catalog-note strong {
  color: var(--ink);
}

.catalog-note.is-hidden {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

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

.shop-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: productRise 560ms ease both;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(94, 231, 255, 0.38);
}

.product-image {
  margin: 12px 12px 0;
  border-radius: 24px;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.78;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 248, 0.72)),
    rgba(241, 246, 250, 0.78);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.product-image.is-contain img {
  padding: 10px;
  object-fit: contain;
}

.product-image.is-cover img {
  object-fit: cover;
}

.product-card:hover .product-image img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.product-image span {
  color: var(--steel);
  font-size: 44px;
  font-weight: 950;
}

.product-info {
  padding: 16px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.product-tags span {
  padding: 4px 7px;
  border-radius: 12px;
  background: rgba(241, 246, 250, 0.74);
  color: #5b6d78;
  font-size: 11px;
  font-weight: 900;
}

.product-info h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.22;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-info p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-bottom {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  margin-bottom: 12px;
}

.product-bottom strong {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
}

.product-bottom small {
  color: var(--muted);
  font-weight: 800;
}

.product-info .product-install-note {
  min-height: 0;
  margin: -5px 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  -webkit-line-clamp: unset;
}

.quantity-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.quantity-field span,
.qty-control label span {
  color: var(--steel);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.quantity-field input,
.qty-control input {
  height: 42px;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 900;
}

.add-to-cart {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.product-cart-control {
  min-height: 42px;
}

.card-qty-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--inner-glass);
  overflow: hidden;
}

.card-qty-control button {
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.card-qty-control button:hover {
  background: rgba(99, 230, 255, 0.12);
}

.card-qty-control label {
  min-width: 0;
  height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-inline: 1px solid var(--line);
}

.card-qty-control input {
  height: 36px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  text-align: center;
  font-weight: 950;
}

.card-qty-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #20313e;
  border-color: #20313e;
}

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

.reviews-section {
  background: #ffffff;
}

.review-card {
  padding: 24px;
  min-height: 250px;
  display: grid;
  align-content: space-between;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stars {
  margin-bottom: 18px;
  color: var(--gold);
  letter-spacing: 0;
}

.review-card footer {
  display: grid;
  gap: 4px;
}

.review-card footer span {
  color: var(--muted);
}

.measure-promo,
.contacts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.measure-promo {
  background:
    linear-gradient(115deg, rgba(94, 231, 255, 0.1), transparent 36%),
    linear-gradient(245deg, rgba(217, 174, 104, 0.14), transparent 45%),
    var(--ink);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.measure-promo h2,
.contacts-section h2,
.measure-hero h1,
.success-card h1 {
  color: inherit;
}

.measure-promo-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.measure-promo-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  position: relative;
}

.measure-promo-visual::before,
.measure-promo-visual::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-top: 3px dotted rgba(240, 215, 156, 0.72);
  border-radius: 50%;
  animation: ringBreathe 3600ms ease-in-out infinite;
}

.measure-promo-visual::after {
  width: 230px;
  height: 230px;
  animation-delay: 240ms;
}

.measure-promo-visual span {
  position: relative;
  z-index: 1;
  font-size: 104px;
  font-weight: 950;
  color: var(--gold-2);
}

.contacts-section {
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
}

.map-shell {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-shell iframe {
  width: 100%;
  height: 430px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.cart-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    var(--paper);
  box-shadow: var(--shadow), var(--inner-glass);
  backdrop-filter: blur(18px) saturate(1.25);
  animation: slideIn 360ms ease both;
}

.cart-item-media {
  width: 110px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--steel);
  font-weight: 950;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
}

.installer-draft-item {
  grid-template-columns: 110px minmax(0, 1fr) minmax(210px, auto);
}

.installer-draft-media {
  background:
    radial-gradient(circle at 35% 28%, rgba(99, 230, 255, 0.34), transparent 46%),
    linear-gradient(145deg, rgba(243, 220, 168, 0.92), rgba(217, 173, 104, 0.62));
  color: #07111a;
}

.installer-draft-media span {
  font-size: 38px;
  font-weight: 950;
}

.installer-draft-copy h3 {
  margin: 4px 0 6px;
}

.installer-draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.installer-draft-meta span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 950;
}

.installer-draft-actions {
  display: grid;
  gap: 8px;
  min-width: 210px;
}

.installer-draft-actions .btn,
.installer-draft-actions button {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
}

.installer-draft-actions button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-weight: 950;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty-control.is-measured {
  align-items: end;
}

.qty-control label {
  width: 132px;
  display: grid;
  gap: 6px;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 20px;
}

.qty-control.is-measured button {
  height: 42px;
  border-radius: 16px;
}

.line-total {
  font-size: 18px;
}

.checkout-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.sticky-summary {
  position: sticky;
  top: 104px;
}

.summary-lines {
  display: grid;
  gap: 11px;
  margin: 16px 0;
}

.summary-lines div,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.summary-lines span,
.summary-total span {
  color: var(--muted);
}

.summary-total {
  margin-bottom: 16px;
  border-bottom: 0;
  font-size: 20px;
}

.summary-muted {
  margin: 16px 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.installer-draft-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  color: var(--muted);
  font-weight: 900;
}

.installer-draft-summary strong {
  color: var(--ink);
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout-form fieldset {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--inner-glass);
  backdrop-filter: blur(12px);
}

.checkout-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.checkout-form fieldset input {
  width: auto;
  accent-color: var(--gold);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
}

.form-note.is-error {
  color: #b33a4f;
}

.empty-shop {
  min-height: 420px;
  padding: 42px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-shop p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-animation {
  width: 150px;
  height: 150px;
  margin-bottom: 18px;
  position: relative;
}

.empty-animation span {
  position: absolute;
  inset: 0;
  border-top: 3px dotted var(--steel);
  border-radius: 50%;
  animation: ringBreathe 3200ms ease-in-out infinite;
}

.empty-animation span:nth-child(2) {
  inset: 24px;
  animation-delay: 160ms;
}

.empty-animation span:nth-child(3) {
  inset: 48px;
  animation-delay: 320ms;
}

.measure-page {
  background:
    linear-gradient(115deg, rgba(94, 231, 255, 0.08), transparent 40%),
    var(--ink);
  color: #ffffff;
}

.measure-hero {
  max-width: 760px;
  margin-bottom: 30px;
}

.measure-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.measure-panel {
  color: var(--ink);
  border-radius: var(--radius-lg);
}

.measure-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 74px;
  line-height: 0.9;
  color: var(--ink);
}

.measure-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.installer-page {
  color: #ffffff;
}

.installer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.sketch-card {
  display: grid;
  gap: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.panel-head h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 30px;
}

.sketch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sketch-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.sketch-actions button.is-active {
  border-color: rgba(243, 220, 168, 0.8);
  background:
    linear-gradient(135deg, rgba(243, 220, 168, 0.9), rgba(217, 173, 104, 0.86));
  color: #07111a;
  box-shadow: 0 14px 34px rgba(217, 173, 104, 0.22);
}

.sketch-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.sketch-tab-list {
  display: flex;
  flex: 1;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.sketch-tab-list::-webkit-scrollbar {
  display: none;
}

.sketch-tab {
  min-width: 152px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  box-shadow: var(--inner-glass);
}

.sketch-tab strong,
.sketch-tab span {
  display: block;
}

.sketch-tab strong {
  font-size: 14px;
  font-weight: 950;
}

.sketch-tab span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sketch-tab.is-active {
  border-color: rgba(243, 220, 168, 0.82);
  background:
    linear-gradient(135deg, rgba(243, 220, 168, 0.9), rgba(217, 173, 104, 0.84));
  color: #07111a;
}

.sketch-tab.is-active span {
  color: rgba(7, 17, 26, 0.68);
}

.sketch-tab-add {
  min-width: 142px;
  text-align: center;
  font-weight: 950;
}

.sketch-remove {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 900;
}

.sketch-board {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  min-height: 460px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(4, 11, 18, 0.52);
  background-size: 34px 34px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  touch-action: pan-y;
}

.sketch-board.is-interacting,
.sketch-board.is-interacting .sketch-svg {
  touch-action: none;
}

body.is-sketch-interacting {
  overscroll-behavior: contain;
}

.sketch-board.is-adding-point {
  border-color: rgba(243, 220, 168, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(243, 220, 168, 0.12),
    0 18px 46px rgba(217, 173, 104, 0.12);
}

.sketch-board.is-placing-hole {
  border-color: rgba(99, 230, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(99, 230, 255, 0.12),
    0 18px 46px rgba(99, 230, 255, 0.1);
}

.sketch-board.is-snapping {
  border-color: rgba(99, 230, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(99, 230, 255, 0.08),
    0 18px 46px rgba(99, 230, 255, 0.08);
}

.sketch-svg {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  cursor: crosshair;
  touch-action: pan-y;
}

.sketch-board.is-adding-point .sketch-svg,
.sketch-board.is-placing-hole .sketch-svg {
  cursor: copy;
}

.sketch-svg rect {
  fill: rgba(6, 14, 22, 0.38);
  stroke: rgba(255, 255, 255, 0.08);
}

.sketch-svg polygon {
  fill: rgba(99, 230, 255, 0.08);
  stroke: transparent;
}

.sketch-svg polyline {
  fill: none;
  stroke: url("#sketchLine");
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(99, 230, 255, 0.32));
}

.sketch-diagonal {
  stroke: rgba(243, 220, 168, 0.54);
  stroke-width: 3;
  stroke-dasharray: 10 8;
}

.sketch-active-edge {
  stroke: var(--gold-2);
  stroke-width: 9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 18px rgba(243, 220, 168, 0.42));
  pointer-events: none;
}

.sketch-snap-layer {
  pointer-events: none;
}

.sketch-snap-guide {
  stroke: rgba(99, 230, 255, 0.86);
  stroke-width: 2;
  stroke-dasharray: 9 9;
  filter: drop-shadow(0 0 12px rgba(99, 230, 255, 0.48));
  animation: sketchSnapPulse 0.82s ease-in-out infinite;
}

.sketch-snap-guide.is-horizontal {
  stroke: rgba(243, 220, 168, 0.86);
  filter: drop-shadow(0 0 12px rgba(243, 220, 168, 0.42));
}

.sketch-snap-guide.is-diagonal {
  stroke: rgba(255, 124, 190, 0.88);
  stroke-width: 2.4;
  stroke-dasharray: 12 7;
  filter: drop-shadow(0 0 14px rgba(255, 124, 190, 0.42));
}

.sketch-snap-label rect {
  fill: rgba(7, 17, 26, 0.88);
  stroke: rgba(255, 255, 255, 0.18);
}

.sketch-snap-label.is-diagonal rect {
  stroke: rgba(255, 124, 190, 0.36);
}

.sketch-snap-label text {
  fill: #f6fbff;
  font-size: 10px;
  font-weight: 950;
  text-anchor: middle;
  letter-spacing: 0;
}

.sketch-size-label rect {
  fill: rgba(8, 14, 22, 0.86);
  stroke: rgba(255, 255, 255, 0.16);
}

.sketch-size-label {
  cursor: pointer;
}

.sketch-size-label.is-active rect {
  fill: rgba(243, 220, 168, 0.94);
  stroke: rgba(255, 255, 255, 0.42);
}

.sketch-size-label.is-active text {
  fill: #07111a;
}

.sketch-size-label.is-diagonal rect {
  fill: rgba(217, 173, 104, 0.86);
}

.sketch-size-label.is-compact rect {
  fill: rgba(8, 14, 22, 0.78);
}

.sketch-size-label text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-anchor: middle;
  pointer-events: none;
}

.sketch-size-label.is-compact text {
  font-size: 11px;
}

.sketch-size-label.is-diagonal text {
  fill: #07111a;
}

.sketch-hole circle {
  fill: rgba(7, 17, 26, 0.9);
  stroke: #ffffff;
  stroke-width: 4;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.26));
}

.sketch-hole.is-pipe circle {
  stroke: var(--cyan);
}

.sketch-hole.is-lamp circle {
  stroke: var(--gold-2);
}

.sketch-hole.is-spot circle {
  stroke: #f6fbff;
}

.sketch-hole text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-anchor: middle;
  pointer-events: none;
}

.sketch-point circle {
  fill: #07111a;
  stroke: var(--gold-2);
  stroke-width: 4;
}

.sketch-point.is-snapped circle {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 14px rgba(99, 230, 255, 0.62));
  animation: sketchSnapPoint 0.58s ease-in-out infinite alternate;
}

.sketch-point {
  touch-action: none;
}

.sketch-point circle,
.sketch-point text {
  touch-action: none;
  user-select: none;
}

.sketch-point text {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 950;
  text-anchor: middle;
  pointer-events: none;
}

.sketch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sketch-meta span {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.sketch-builder {
  display: grid;
  gap: 12px;
}

.builder-side-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.builder-side-strip::-webkit-scrollbar {
  display: none;
}

.builder-side {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  box-shadow: var(--inner-glass);
}

.builder-side strong {
  font-size: 14px;
  font-weight: 1000;
}

.builder-side span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.builder-side.is-active {
  border-color: rgba(243, 220, 168, 0.62);
  background:
    linear-gradient(135deg, rgba(243, 220, 168, 0.26), rgba(99, 230, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(217, 173, 104, 0.14), var(--inner-glass);
}

.builder-action-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 22, 0.52);
}

.builder-action-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 26px;
}

.builder-action-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.builder-action-row button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.builder-action-row button.is-active {
  border-color: rgba(99, 230, 255, 0.68);
  background:
    linear-gradient(135deg, rgba(99, 230, 255, 0.2), rgba(243, 220, 168, 0.12)),
    rgba(255, 255, 255, 0.09);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 230, 255, 0.1);
}

.builder-action-row button:nth-child(-n + 2) {
  background: linear-gradient(135deg, rgba(243, 220, 168, 0.28), rgba(217, 173, 104, 0.12));
  color: var(--gold-2);
}

.material-picker {
  position: relative;
  z-index: 8;
}

.material-picker.is-open,
.installer-extra.is-open {
  z-index: 30;
}

.installer-extra {
  position: relative;
  z-index: 7;
  display: grid;
  gap: 12px;
}

.extra-head {
  display: grid;
  gap: 6px;
}

.extra-head small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.material-trigger,
.material-option {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}

.material-trigger {
  min-height: 76px;
  border-radius: 22px;
  padding: 10px 14px 10px 10px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--inner-glass);
}

.material-trigger i {
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.72;
}

.material-picker.is-open .material-trigger i {
  transform: rotate(225deg);
}

.installer-extra.is-open .extra-trigger i {
  transform: rotate(225deg);
}

.material-trigger-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.material-trigger-text strong,
.material-option strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.material-trigger-text small,
.material-option small,
.material-description {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.material-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-2);
  font-size: 20px;
  font-weight: 950;
}

.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.material-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(560px, 70vh);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 14px;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(32, 47, 61, 0.96), rgba(7, 17, 26, 0.98)),
    rgba(7, 17, 26, 0.94);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5), var(--inner-glass);
}

.extra-selected {
  display: grid;
  gap: 10px;
}

.extra-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.extra-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--inner-glass);
}

.extra-line .material-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.extra-line strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.extra-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.extra-qty {
  display: grid;
  grid-template-columns: 34px minmax(82px, 120px) 34px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 17, 26, 0.36);
}

.extra-qty button {
  border: 0;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 20px;
  font-weight: 1000;
}

.extra-qty label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  border-inline: 1px solid var(--line);
  padding: 0 7px;
}

.extra-qty input {
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-weight: 950;
}

.extra-qty label span {
  color: var(--steel);
  font-size: 11px;
  font-weight: 950;
}

.material-panel-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(26, 39, 51, 0.98), rgba(26, 39, 51, 0.82));
}

.material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.material-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.material-tabs button.is-active {
  background: #ffffff;
  color: #07111a;
}

.material-options {
  display: grid;
  gap: 9px;
}

.material-option {
  min-height: 92px;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
}

.material-option:hover,
.material-option.is-selected {
  border-color: rgba(99, 230, 255, 0.54);
  background: rgba(99, 230, 255, 0.1);
}

.material-option-body,
.material-option-top {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.material-option-top em {
  color: var(--gold-2);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.material-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sketch-dimensions {
  display: grid;
  gap: 16px;
}

.dimension-group {
  display: grid;
  gap: 10px;
}

.dimension-group > strong {
  color: var(--steel);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
}

.dimension-item {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--inner-glass);
}

.dimension-item.is-active {
  border-color: rgba(243, 220, 168, 0.58);
  background: rgba(243, 220, 168, 0.12);
}

.dimension-item label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(34px, auto) minmax(72px, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.dimension-item label span,
.dimension-item label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.dimension-item input {
  height: 38px;
  min-width: 72px;
  border: 0;
  border-radius: 11px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 950;
}

.dimension-item button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 7px 9px;
  background: rgba(243, 220, 168, 0.14);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 950;
}

.sketch-upload {
  display: grid;
  gap: 8px;
}

.sketch-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sketch-upload span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.sketch-upload strong {
  min-height: 54px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.photo-preview {
  display: none;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-preview.has-image {
  display: block;
}

.photo-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.installer-form {
  position: sticky;
  top: 104px;
}

.installer-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.installer-form-actions .btn {
  width: 100%;
}

.success-page {
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(94, 231, 255, 0.09), transparent 38%),
    linear-gradient(240deg, rgba(217, 174, 104, 0.12), transparent 42%),
    var(--ink);
  color: #ffffff;
}

.success-card {
  width: 100%;
  max-width: 760px;
  padding: 52px;
  text-align: center;
}

.success-card p {
  max-width: 570px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.success-mark {
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  position: relative;
}

.success-mark img {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), var(--inner-glass);
  animation: logoToCheck 1450ms ease both;
}

.success-mark span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9ffe9, #35d07f);
  position: relative;
  opacity: 0;
  animation: successPop 760ms cubic-bezier(0.2, 0.9, 0.2, 1.25) 760ms both;
}

.success-mark span::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  width: 20px;
  height: 34px;
  border-right: 5px solid #07351d;
  border-bottom: 5px solid #07351d;
  transform: rotate(45deg);
}

.success-mark i {
  position: absolute;
  width: 4px;
  height: 36px;
  background: #7af0ad;
  transform: rotate(var(--r)) translateY(-72px);
  animation: confetti 1100ms ease-out both;
  animation-delay: var(--d);
}

.success-mark i:nth-of-type(1) { --r: 20deg; --d: 80ms; }
.success-mark i:nth-of-type(2) { --r: 78deg; --d: 120ms; }
.success-mark i:nth-of-type(3) { --r: 138deg; --d: 160ms; }
.success-mark i:nth-of-type(4) { --r: 202deg; --d: 200ms; }
.success-mark i:nth-of-type(5) { --r: 266deg; --d: 240ms; }
.success-mark i:nth-of-type(6) { --r: 318deg; --d: 280ms; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 260;
  width: max-content;
  max-width: min(520px, calc(100% - 28px));
  min-height: 58px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(243, 220, 168, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 22, 0.94);
  color: var(--ink);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 34px rgba(217, 173, 104, 0.16);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, 22px) scale(0.96);
  pointer-events: none;
  backdrop-filter: blur(22px) saturate(140%);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 24%, rgba(243, 220, 168, 0.2) 44%, transparent 64% 100%);
  transform: translateX(-115%);
}

.toast.is-visible::before {
  animation: toastShine 1200ms ease-out 90ms both;
}

.toast-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #07111a;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(217, 173, 104, 0.28);
}

.toast.is-visible .toast-icon {
  animation: toastCheck 520ms cubic-bezier(0.2, 0.95, 0.2, 1.35) both;
}

.toast-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: #f6fbff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(-1%, -1%, 0); }
  to { transform: scale(1.08) translate3d(1.5%, 1%, 0); }
}

@keyframes gridSlide {
  from { background-position: 0 0; }
  to { background-position: 88px 88px; }
}

@keyframes ringBreathe {
  0%, 100% { opacity: 0.42; transform: rotate(12deg) scale(var(--s, 1)); }
  50% { opacity: 1; transform: rotate(18deg) scale(calc(var(--s, 1) + 0.035)); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes successPop {
  from { transform: scale(0.2) rotate(-24deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes logoToCheck {
  0% { opacity: 1; transform: scale(1) rotate(0deg); filter: saturate(1); }
  48% { opacity: 1; transform: scale(0.92) rotate(-4deg); filter: saturate(1.15); }
  72% { opacity: 0; transform: scale(0.72) rotate(10deg); filter: saturate(1.4); }
  100% { opacity: 0; transform: scale(0.72) rotate(10deg); }
}

@keyframes confetti {
  from { opacity: 0; transform: rotate(var(--r)) translateY(-24px) scaleY(0.3); }
  60% { opacity: 1; }
  to { opacity: 0; transform: rotate(var(--r)) translateY(-92px) scaleY(1); }
}

@keyframes toastShine {
  from { transform: translateX(-115%); }
  to { transform: translateX(115%); }
}

@keyframes toastCheck {
  0% { transform: scale(0.62) rotate(-16deg); opacity: 0; }
  64% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes sketchSnapPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@keyframes sketchSnapPoint {
  from { stroke-width: 4; }
  to { stroke-width: 7; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111a;
    --paper: rgba(16, 27, 38, 0.72);
    --paper-solid: #101b25;
    --paper-2: rgba(22, 35, 48, 0.82);
    --ink: #f6fbff;
    --ink-2: #e2edf5;
    --text: #d6e3ec;
    --muted: #91a4b3;
    --line: rgba(216, 232, 244, 0.16);
    --steel: #9eb1bf;
    --dark-glass: rgba(8, 14, 22, 0.72);
    --light-glass: rgba(16, 27, 38, 0.72);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 38px 110px rgba(0, 0, 0, 0.42);
    --inner-glass: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body {
    background:
      linear-gradient(115deg, rgba(99, 230, 255, 0.12), transparent 30%),
      linear-gradient(245deg, rgba(217, 173, 104, 0.1), transparent 36%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      var(--bg);
    color: var(--text);
  }

  .hero,
  .measure-promo,
  .measure-page,
  .success-page {
    background:
      linear-gradient(115deg, rgba(99, 230, 255, 0.12), transparent 34%),
      linear-gradient(245deg, rgba(217, 173, 104, 0.12), transparent 42%),
      #07111a;
    color: #ffffff;
  }

  .measure-promo-copy p,
  .measure-hero p,
  .success-card p {
    color: rgba(246, 251, 255, 0.72);
  }

  .measure-promo h2,
  .measure-page h1,
  .success-page h1 {
    color: #ffffff;
  }

  .header-panel,
  body[data-route="catalog"] .header-panel,
  body[data-route="cart"] .header-panel,
  body[data-route="checkout"] .header-panel,
  .store-header.is-solid .header-panel,
  body[data-route="catalog"] .store-header.is-solid .header-panel,
  body[data-route="cart"] .store-header.is-solid .header-panel,
  body[data-route="checkout"] .store-header.is-solid .header-panel {
    border-color: rgba(255, 255, 255, 0.14);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
      rgba(10, 17, 25, 0.78);
    color: #ffffff;
  }

  .nav-links,
  body[data-route="catalog"] .nav-links,
  body[data-route="cart"] .nav-links,
  body[data-route="checkout"] .nav-links {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links a.is-active,
  body[data-route="catalog"] .nav-links a.is-active,
  body[data-route="cart"] .nav-links a.is-active,
  body[data-route="checkout"] .nav-links a.is-active {
    background: #ffffff;
    color: #09121c;
  }

  h2,
  h3,
  .catalog-note strong,
  .product-bottom strong,
  .checkout-form fieldset label {
    color: var(--ink);
  }

  .checkout-card,
  .review-card,
  .product-card,
  .empty-shop,
  .catalog-note,
  .cart-item {
    border-color: rgba(255, 255, 255, 0.14);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
      var(--paper);
  }

  .home-catalog,
  .reviews-section,
  .contacts-section {
    background:
      linear-gradient(180deg, rgba(16, 27, 38, 0.72), rgba(8, 14, 22, 0.88)),
      var(--bg);
  }

  .product-image,
  .product-tags span,
  .category-row button,
  input,
  textarea,
  .ready-trigger,
  .ready-time-control,
  .ready-calendar-head button,
  .ready-calendar-days button,
  .ready-time-control button,
  .checkout-form fieldset,
  .qty-control button,
  .card-qty-control {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
  }

  .ready-calendar {
    border-color: rgba(255, 255, 255, 0.14);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
      rgba(14, 24, 34, 0.94);
  }

  .ready-calendar-days button.is-selected {
    color: #09121c;
  }

  .product-image img {
    filter: none;
  }

  input::placeholder,
  textarea::placeholder {
    color: rgba(214, 227, 236, 0.58);
  }

  .btn-soft {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--ink);
  }

  .btn-primary {
    color: #09121c;
  }

  .add-to-cart,
  .category-row button.is-active {
    border-color: #ffffff;
    background: #ffffff;
    color: #09121c;
  }

  .add-to-cart:hover:not(:disabled) {
    background: var(--gold-2);
    border-color: var(--gold-2);
  }

  .summary-lines div,
  .summary-total {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

body[data-theme="dark"] {
  --bg: #07111a;
  --paper: rgba(16, 27, 38, 0.72);
  --paper-solid: #101b25;
  --paper-2: rgba(22, 35, 48, 0.82);
  --ink: #f6fbff;
  --ink-2: #e2edf5;
  --text: #d6e3ec;
  --muted: #91a4b3;
  --line: rgba(216, 232, 244, 0.16);
  --steel: #9eb1bf;
  --dark-glass: rgba(8, 14, 22, 0.72);
  --light-glass: rgba(16, 27, 38, 0.72);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 38px 110px rgba(0, 0, 0, 0.42);
  --inner-glass: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(115deg, rgba(99, 230, 255, 0.12), transparent 30%),
    linear-gradient(245deg, rgba(217, 173, 104, 0.1), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--bg);
  color: var(--text);
}

body[data-theme="light"] {
  --bg: #f5f7fb;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-solid: #ffffff;
  --paper-2: rgba(241, 246, 250, 0.82);
  --ink: #0d1520;
  --ink-2: #172331;
  --text: #243342;
  --muted: #6c7c8b;
  --line: rgba(128, 153, 170, 0.24);
  --steel: #8099aa;
  --dark-glass: rgba(15, 23, 33, 0.62);
  --light-glass: rgba(255, 255, 255, 0.68);
  --shadow: 0 22px 70px rgba(18, 31, 44, 0.13);
  --shadow-strong: 0 38px 110px rgba(18, 31, 44, 0.24);
  --inner-glass: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body[data-theme="dark"] .hero,
body[data-theme="dark"] .measure-promo,
body[data-theme="dark"] .measure-page,
body[data-theme="dark"] .installer-page,
body[data-theme="dark"] .success-page {
  background:
    linear-gradient(115deg, rgba(99, 230, 255, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(217, 173, 104, 0.12), transparent 42%),
    #07111a;
  color: #ffffff;
}

body[data-theme="dark"] .header-panel,
body[data-theme="dark"][data-route="catalog"] .header-panel,
body[data-theme="dark"][data-route="cart"] .header-panel,
body[data-theme="dark"][data-route="checkout"] .header-panel,
body[data-theme="dark"] .store-header.is-solid .header-panel,
body[data-theme="dark"][data-route="catalog"] .store-header.is-solid .header-panel,
body[data-theme="dark"][data-route="cart"] .store-header.is-solid .header-panel,
body[data-theme="dark"][data-route="checkout"] .store-header.is-solid .header-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(10, 17, 25, 0.78);
  color: #ffffff;
}

body[data-theme="light"][data-route="catalog"] .header-panel,
body[data-theme="light"][data-route="cart"] .header-panel,
body[data-theme="light"][data-route="checkout"] .header-panel {
  border-color: rgba(16, 24, 32, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    var(--light-glass);
  color: var(--ink);
}

body[data-theme="light"][data-route="catalog"] .store-header.is-solid .header-panel,
body[data-theme="light"][data-route="cart"] .store-header.is-solid .header-panel,
body[data-theme="light"][data-route="checkout"] .store-header.is-solid .header-panel {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"][data-route="catalog"] .nav-links,
body[data-theme="light"][data-route="cart"] .nav-links,
body[data-theme="light"][data-route="checkout"] .nav-links {
  border-color: rgba(16, 24, 32, 0.08);
  background: rgba(16, 24, 32, 0.04);
}

body[data-theme="light"][data-route="catalog"] .nav-links a.is-active,
body[data-theme="light"][data-route="cart"] .nav-links a.is-active,
body[data-theme="light"][data-route="checkout"] .nav-links a.is-active,
body[data-theme="light"] .category-row button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

body[data-theme="light"] .checkout-card,
body[data-theme="light"] .review-card,
body[data-theme="light"] .product-card,
body[data-theme="light"] .empty-shop,
body[data-theme="light"] .catalog-note,
body[data-theme="light"] .cart-item {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    var(--paper);
}

body[data-theme="light"] .home-catalog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.74)),
    transparent;
}

body[data-theme="light"] .reviews-section {
  background: #ffffff;
}

body[data-theme="light"] .contacts-section {
  background: transparent;
}

body[data-theme="light"] .product-image {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 244, 248, 0.72)),
    rgba(241, 246, 250, 0.78);
}

body[data-theme="light"] .product-tags span,
body[data-theme="light"] .category-row button,
body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select,
body[data-theme="light"] .qty-control button,
body[data-theme="light"] .card-qty-control {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

body[data-theme="light"] .ready-trigger,
body[data-theme="light"] .ready-time-control {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    var(--paper-2);
  color: var(--ink);
}

body[data-theme="light"] .add-to-cart {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

body[data-theme="dark"] .nav-links,
body[data-theme="dark"][data-route="catalog"] .nav-links,
body[data-theme="dark"][data-route="cart"] .nav-links,
body[data-theme="dark"][data-route="checkout"] .nav-links {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .nav-links a.is-active,
body[data-theme="dark"][data-route="catalog"] .nav-links a.is-active,
body[data-theme="dark"][data-route="cart"] .nav-links a.is-active,
body[data-theme="dark"][data-route="checkout"] .nav-links a.is-active,
body[data-theme="dark"] .add-to-cart,
body[data-theme="dark"] .category-row button.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #09121c;
}

body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] .catalog-note strong,
body[data-theme="dark"] .product-bottom strong,
body[data-theme="dark"] .checkout-form fieldset label {
  color: var(--ink);
}

body[data-theme="dark"] .checkout-card,
body[data-theme="dark"] .review-card,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .empty-shop,
body[data-theme="dark"] .catalog-note,
body[data-theme="dark"] .cart-item {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--paper);
}

body[data-theme="dark"] .installer-draft-meta span,
body[data-theme="dark"] .installer-draft-actions button,
body[data-theme="dark"] .installer-draft-summary {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

body[data-theme="dark"] .home-catalog,
body[data-theme="dark"] .reviews-section,
body[data-theme="dark"] .contacts-section {
  background:
    linear-gradient(180deg, rgba(16, 27, 38, 0.72), rgba(8, 14, 22, 0.88)),
    var(--bg);
}

body[data-theme="dark"] .product-image,
body[data-theme="dark"] .product-tags span,
body[data-theme="dark"] .category-row button,
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] .ready-trigger,
body[data-theme="dark"] .ready-time-control,
body[data-theme="dark"] .ready-calendar-head button,
body[data-theme="dark"] .ready-calendar-days button,
body[data-theme="dark"] .ready-time-control button,
body[data-theme="dark"] .checkout-form fieldset,
body[data-theme="dark"] .qty-control button,
body[data-theme="dark"] .card-qty-control {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: rgba(214, 227, 236, 0.58);
}

body[data-theme="dark"] select,
body[data-theme="light"] select {
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body[data-theme="dark"] .btn-soft {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

body[data-theme="dark"] .btn-primary,
body[data-theme="dark"] .ready-calendar-days button.is-selected {
  color: #09121c;
}

body[data-theme="dark"] .summary-lines div,
body[data-theme="dark"] .summary-total {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 38px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  .hero,
  .cart-grid,
  .checkout-grid,
  .installer-workspace {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .store-header {
    padding: 12px 16px;
  }

  .header-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 12px;
  }

  .header-call {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .bottom-nav {
    display: none;
  }

  h1 {
    font-size: 50px;
    line-height: 0.98;
  }

  h2 {
    font-size: 32px;
  }

  .measure-promo-visual span {
    font-size: 76px;
  }

  .builder-action-panel {
    grid-template-columns: 1fr;
  }

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

  .builder-action-row button {
    min-height: 48px;
  }

  .page-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .review-grid,
  .measure-promo,
  .contacts-section,
  .catalog-bar,
  .shop-title,
  .panel-head,
  .section-title {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .catalog-bar {
    top: 148px;
    gap: 12px;
    padding: 10px;
    border-radius: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .shop-page .product-grid,
  .home-catalog .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-catalog .section-title,
  .home-catalog .preview-grid,
  .home-catalog .center-row,
  .reviews-section .section-title,
  .reviews-section .review-grid,
  .measure-promo,
  .contacts-section {
    width: 100%;
  }

  .category-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-row::-webkit-scrollbar {
    display: none;
  }

  .category-row button {
    flex: 0 0 auto;
  }

  .cart-item {
    grid-template-columns: 86px 1fr;
  }

  .installer-draft-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .cart-item-media {
    width: 86px;
  }

  .qty-control,
  .line-total,
  .installer-draft-actions {
    grid-column: 2;
  }

  .installer-draft-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .toast { bottom: 22px; }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .store-header {
    padding: 10px 12px;
  }

  .header-panel {
    padding: 9px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .instagram-link {
    width: 44px;
    min-height: 42px;
  }

  .hero {
    min-height: 96vh;
    padding-top: 148px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 24px 20px;
  }

  .hero-inner h1 {
    font-size: 32px;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .hero-inner p {
    font-size: 16px;
  }

  .shop-title h1 {
    font-size: 32px;
  }

  .success-card h1 {
    font-size: 28px;
  }

  .shop-title,
  .success-card {
    max-width: calc(100vw - 40px);
    overflow: hidden;
  }

  .shop-title p {
    max-width: 320px;
  }

  .success-card p {
    max-width: 260px;
  }

  .success-card .action-row {
    width: min(100%, 260px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

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

  .btn {
    width: 100%;
  }

  .panel-head {
    display: grid;
  }

  .sketch-actions {
    justify-content: flex-start;
  }

  .sketch-actions button {
    flex: 1 1 auto;
  }

  .sketch-tabs {
    display: grid;
  }

  .sketch-tab-list {
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .sketch-tab {
    min-width: 138px;
  }

  .sketch-remove {
    width: 100%;
    min-height: 46px;
  }

  .sketch-builder {
    margin-inline: -4px;
  }

  .builder-side {
    min-width: 84px;
    padding: 9px 10px;
  }

  .extra-line {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .extra-qty {
    grid-column: 1 / -1;
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
  }

  .builder-action-panel {
    padding: 12px;
    border-radius: 20px;
  }

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

  .builder-action-row button {
    width: 100%;
    min-height: 48px;
  }

  .halo-lines {
    right: -130px;
    top: 110px;
    width: 300px;
    height: 300px;
  }

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

  .shop-page .product-grid,
  .home-catalog .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid {
    max-width: none;
  }

  .product-info {
    padding: 9px;
  }

  .product-image {
    margin: 8px 8px 0;
    border-radius: 18px;
    aspect-ratio: 1 / 0.72;
  }

  .product-image.is-contain img {
    padding: 6px;
  }

  .product-tags span {
    font-size: 10px;
  }

  .product-info h3 {
    min-height: 35px;
    font-size: 13px;
    line-height: 1.25;
  }

  .product-info p {
    min-height: 32px;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .product-bottom strong {
    font-size: 14px;
  }

  .product-info .product-install-note {
    margin-top: -4px;
    margin-bottom: 9px;
    font-size: 9px;
  }

  .measure-promo-visual span {
    font-size: 54px;
  }

  .add-to-cart {
    min-height: 38px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 11px;
  }

  .product-cart-control {
    min-height: 38px;
  }

  .card-qty-control {
    min-height: 38px;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    border-radius: 15px;
  }

  .card-qty-control button,
  .card-qty-control label {
    height: 38px;
  }

  .card-qty-control input {
    height: 32px;
    font-size: 12px;
  }

  .card-qty-control span {
    font-size: 9px;
  }

  .shop-page,
  .cart-page,
  .checkout-page,
  .measure-page,
  .installer-page {
    padding-top: 148px;
  }

  .installer-page.page-section {
    padding-left: 6px;
    padding-right: 6px;
  }

  .installer-page .shop-title {
    padding-left: 12px;
    padding-right: 12px;
  }

  .installer-workspace {
    gap: 16px;
  }

  .success-page {
    padding-top: 112px;
  }

  .checkout-card,
  .review-card,
  .empty-shop,
  .sketch-card {
    padding: 18px;
  }

  .sketch-card {
    padding: 12px 6px 14px;
    border-radius: 30px;
  }

  .sketch-board {
    height: min(78dvh, 720px);
    min-height: 640px;
    margin-inline: -2px;
    padding: 4px;
    border-radius: 28px;
    background-size: 30px 30px;
  }

  .sketch-svg {
    height: 100%;
    min-height: 100%;
  }

  .dimension-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dimension-item {
    min-height: 48px;
    padding: 6px 7px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dimension-item label {
    grid-template-columns: minmax(36px, auto) minmax(92px, 1fr) auto;
  }

  .dimension-item input {
    height: 34px;
    min-width: 92px;
    font-size: 13px;
  }

  .dimension-item button {
    min-height: 30px;
    padding: 5px 7px;
  }

  .material-trigger {
    min-height: 68px;
    grid-template-columns: 48px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 9px 12px 9px 9px;
  }

  .material-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .material-panel {
    position: fixed;
    inset: auto 12px 86px 12px;
    max-height: 72vh;
    border-radius: 22px;
  }

  .material-option {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .success-card {
    max-width: 260px;
    padding: 18px 0;
    overflow: visible;
  }

  .catalog-note {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
