@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f6f5;
  --bg-elevated: #ffffff;
  --ink: #182328;
  --ink-muted: #5b6a70;
  --brand: #1b4f5e;
  --brand-deep: #123842;
  --accent: #c2a46a;
  --line: #d7e0e2;
  --success: #1f7a4d;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(18, 35, 40, 0.08);
  --glow: 0 0 36px color-mix(in srgb, var(--brand) 22%, transparent);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --footer-bg: #123842;
  --input-bg: #ffffff;
  --font: 'Nunito', 'Segoe UI', sans-serif;
}

html.dark {
  --bg: #0f171a;
  --bg-elevated: #182328;
  --ink: #e8eef0;
  --ink-muted: #9aadb4;
  --brand: #1b4f5e;
  --brand-deep: #e8eef0;
  --accent: #d0b27a;
  --line: #2a3a40;
  --success: #4caf7a;
  --danger: #f07167;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 0 40px color-mix(in srgb, var(--brand) 22%, transparent);
  --footer-bg: #0a1215;
  --input-bg: #121b1f;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1700px, calc(100% - 2rem)); margin-inline: auto; }
main { flex: 1; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 55ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px;
  border: 1px solid transparent; font-family: var(--font); font-weight: 600;
  font-size: .95rem; cursor: pointer; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), filter .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  color: #fff;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-secondary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-accent { background: var(--accent); color: #123842; border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.btn-primary:hover,
.btn-secondary:hover {
  background: color-mix(in srgb, var(--brand) 82%, #000);
  border-color: color-mix(in srgb, var(--brand) 82%, #000);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-accent:hover {
  filter: brightness(1.05);
  color: #123842;
  transform: translateY(-2px);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 35%, transparent);
}
header .btn:hover { transform: none; box-shadow: none; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--bg);
  width: 100%;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; min-height: 4.5rem; padding: .55rem 0;
}
.header-brand {
  display: flex; align-items: center; gap: .85rem; min-width: 0; flex: 1 1 auto;
}
.logo { display: flex; align-items: center; max-width: 180px; max-height: 48px; flex-shrink: 0; min-width: 0; }
.logo img { max-height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.logo-text { font-weight: 800; font-size: 1.65rem; color: var(--brand-deep); line-height: 1; }
.logo-tag { display: block; margin-top: .25rem; font-size: .65rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.nav-desktop { display: none; align-items: center; gap: .05rem; min-width: 0; flex: 1 1 auto; }
.nav-desktop a {
  white-space: nowrap; border-radius: 999px; padding: .4rem .55rem;
  font-size: .78rem; font-weight: 600; color: var(--ink-muted);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav-desktop a.active, .nav-desktop a:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), 0 0 22px color-mix(in srgb, var(--brand) 28%, transparent);
}
.header-actions {
  display: flex; align-items: center; gap: .35rem; flex: 0 0 auto;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  margin-right: .65rem;
}
.header-phone { display: none; font-weight: 700; color: var(--brand-deep); white-space: nowrap; font-size: .9rem; }
.header-region {
  display: none;
  align-items: center;
  min-width: 0;
}
.header-region select {
  max-width: 10.5rem;
  width: 10.5rem;
  min-height: 40px;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.header-region-drawer { display: block; }
.header-region-drawer select {
  width: 100%;
  max-width: none;
  border-radius: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.header-search {
  display: flex; align-items: center; height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--input-bg); overflow: hidden;
  min-width: 0; width: 100%;
}
.header-search-desktop {
  display: none;
  min-width: 160px; max-width: 220px; width: auto;
}
.header-mobile-search {
  display: block;
  padding: 0 0 .75rem;
}
.header-mobile-search .header-search { width: 100%; max-width: none; }
.header-search input {
  border: 0; background: transparent; color: var(--ink); font: inherit;
  padding: 0 .9rem; width: 100%; min-width: 0; outline: none; height: 100%;
}
.header-search button {
  border: 0; background: transparent; color: var(--ink-muted); width: 40px; height: 40px;
  cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-search button .icon { width: 1.2rem; height: 1.2rem; }
.header-search-mobile { display: flex !important; max-width: none; width: 100%; min-width: 0; }
.icon {
  width: 1.35rem; height: 1.35rem; display: block; flex-shrink: 0;
  stroke: currentColor; fill: none;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elevated); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; text-decoration: none; color: inherit; flex-shrink: 0;
}
.icon-btn .icon { width: 1.2rem; height: 1.2rem; }
.icon-btn .icon-theme-moon { display: none; }
html.dark .icon-btn .icon-theme-sun { display: none; }
html.dark .icon-btn .icon-theme-moon { display: block; }
.badge-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.burger { display: inline-flex; }
.link-with-icon {
  display: inline-flex; align-items: center; gap: .4rem;
}
.link-with-icon .icon { width: 1rem; height: 1rem; }

@media (max-width: 1023px) {
  .header-actions { gap: .28rem; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn .icon { width: 1.1rem; height: 1.1rem; }
  .logo { max-width: min(148px, 42vw); }
  .logo img { max-height: 40px; }
  .logo-text { font-size: 1.35rem; }
}

@media (min-width: 1024px) {
  .header-region { display: inline-flex; }
  .header-search-desktop { display: inline-flex; min-width: 140px; max-width: 180px; }
  .header-mobile-search { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn .icon { width: 1.25rem; height: 1.25rem; }
  .header-actions { gap: .4rem; }
  .header-tools { gap: .7rem; margin-right: .9rem; }
}

@media (min-width: 1360px) {
  .nav-desktop { display: flex; }
  .burger { display: none; }
  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    text-align: center;
  }
  a.btn-callback-desktop { display: inline-flex !important; }
  .header-search-desktop { min-width: 160px; max-width: 200px; }
  .header-region select { max-width: 12rem; width: 12rem; }
  .header-tools { gap: .85rem; margin-right: 1.15rem; }
}
@media (min-width: 1540px) {
  .logo { max-width: 200px; }
  .nav-desktop { gap: .15rem; }
  .nav-desktop a { padding: .5rem .7rem; font-size: .8125rem; }
  .header-search-desktop { min-width: 200px; max-width: 260px; }
  .header-region select { max-width: 13.5rem; width: 13.5rem; font-size: .85rem; }
  .header-actions { gap: .5rem; }
  .header-tools { gap: 1rem; margin-right: 1.35rem; }
  .header-phone { min-width: 8.5rem; }
}

.mobile-drawer {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer .overlay { position: absolute; inset: 0; background: rgba(18,56,66,.55); opacity: 0; transition: .2s; }
.mobile-drawer.open .overlay { opacity: 1; }
.mobile-drawer aside {
  position: absolute; right: 0; top: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  width: min(100%, 340px);
  background: var(--bg-elevated);
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: .25s;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.mobile-drawer.open aside { transform: none; }
.mobile-drawer a { padding: .75rem 1rem; border-radius: 1rem; font-weight: 500; flex-shrink: 0; }
.mobile-drawer .header-region-drawer { flex-shrink: 0; }
.mobile-drawer .header-search-mobile { flex-shrink: 0; }

.site-footer { margin-top: auto; background: var(--footer-bg); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer .muted { color: rgba(255,255,255,.55); font-size: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .75rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; }

.hero-slider { position: relative; overflow: hidden; }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: auto; display: block; }
.hero-media--classic,
.hero-media--classic img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-media--video {
  position: relative;
  width: 100%;
  background: #0c2a32;
}
.hero-media--classic.hero-media--video {
  aspect-ratio: 21 / 8;
  min-height: 280px;
  overflow: hidden;
}
.hero-media--classic.hero-media--video .hero-poster,
.hero-media--classic.hero-media--video .hero-poster img,
.hero-media--classic.hero-media--video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c2a32;
  opacity: 0;
  transition: opacity .35s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 1;
}
.hero-video.is-ready {
  opacity: 1;
}
.hero-poster {
  z-index: 0;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-color: rgba(6, 18, 24, .42);
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}
.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 24, .22) 0%, transparent 28%, transparent 55%, rgba(6, 18, 24, .38) 100%),
    radial-gradient(ellipse 85% 70% at 50% 45%, transparent 40%, rgba(6, 18, 24, .35) 100%);
}
.hero-mesh--classic {
  z-index: 1;
  background-color: rgba(6, 18, 24, .36);
}
.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.hero-slide--linked { cursor: pointer; }
.hero-caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(18,56,66,.55), transparent 60%);
  color: #fff; pointer-events: none;
  z-index: 4;
}
.hero-caption--on-image {
  background: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25);
}
.hero-caption .container { pointer-events: none; }
.hero-caption .btn { pointer-events: auto; position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin: 0;
  color: #fff;
}
.hero-subtitle {
  max-width: 32rem;
  margin: .75rem 0 0;
  color: #fff;
}
.hero-dots { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; gap: .4rem; z-index: 4; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.active { background: #fff; width: 22px; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
  .hero-media--video .hero-poster,
  .hero-media--video .hero-poster img {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
  }
  .hero-media--classic.hero-media--video {
    aspect-ratio: auto;
    min-height: 0;
  }
}

body.page-home {
  --header-h: 4.75rem;
}
body.page-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  transition: background .28s ease, box-shadow .28s ease, border-color .28s ease, backdrop-filter .28s ease;
}
body.page-home .site-header:not(.is-scrolled) {
  color: #fff;
}
body.page-home .site-header:not(.is-scrolled) .logo-text,
body.page-home .site-header:not(.is-scrolled) .header-phone,
body.page-home .site-header:not(.is-scrolled) .nav-desktop a {
  color: #fff;
}
body.page-home .site-header:not(.is-scrolled) .logo-tag {
  color: rgba(255,255,255,.72);
}
body.page-home .site-header:not(.is-scrolled) .nav-desktop a:hover,
body.page-home .site-header:not(.is-scrolled) .nav-desktop a.active {
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: 0 0 24px rgba(255,255,255,.18), 0 8px 20px rgba(0,0,0,.18);
}
body.page-home .site-header:not(.is-scrolled) .logo-light { display: none; }
body.page-home .site-header:not(.is-scrolled) .logo-dark { display: block; filter: brightness(0) invert(1); }
body.page-home .site-header:not(.is-scrolled) .icon-btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(8px);
}
body.page-home .site-header:not(.is-scrolled) .header-search,
body.page-home .site-header:not(.is-scrolled) .header-region select {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(8px);
}
body.page-home .site-header:not(.is-scrolled) .header-search input,
body.page-home .site-header:not(.is-scrolled) .header-search button {
  color: #fff;
}
body.page-home .site-header:not(.is-scrolled) .header-search input::placeholder {
  color: rgba(255,255,255,.65);
}
body.page-home .site-header:not(.is-scrolled) .header-region select option {
  color: var(--ink);
  background: var(--bg-elevated);
}
body.page-home .site-header:not(.is-scrolled) .btn-callback-desktop {
  background: rgba(255,255,255,.95);
  border-color: transparent;
  color: #123842;
}
body.page-home .site-header:not(.is-scrolled) .btn-callback-desktop:hover {
  background: #fff;
  color: #0c2a32;
}
html.dark body.page-home .site-header:not(.is-scrolled) .btn-callback-desktop {
  background: #fff;
  border-color: transparent;
  color: #123842;
}
html.dark body.page-home .site-header:not(.is-scrolled) .btn-callback-desktop:hover {
  background: #f3f7f8;
  color: #0c2a32;
}
body.page-home .site-header:not(.is-scrolled) .header-mobile-search {
  display: none;
}
body.page-home .site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow);
}
body.page-home .site-header.is-scrolled .logo-dark {
  filter: none;
}
html.dark body.page-home .site-header.is-scrolled .logo-light { display: none; }
html.dark body.page-home .site-header.is-scrolled .logo-dark { display: block; }
html:not(.dark) body.page-home .site-header.is-scrolled .logo-light { display: block; }
html:not(.dark) body.page-home .site-header.is-scrolled .logo-dark { display: none; }

body.page-home main {
  padding-top: 0;
}

.hero-slider--full {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--brand-deep);
}
.hero-slider--full .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  pointer-events: none;
}
.hero-slider--full .hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slider--full .hero-media,
.hero-slider--full .hero-media img,
.hero-slider--full picture.hero-media,
.hero-slider--full .hero-poster,
.hero-slider--full .hero-poster img,
.hero-slider--full .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-slider--full .hero-media img,
.hero-slider--full .hero-video {
  object-fit: cover;
  object-position: center;
  height: 100%;
  max-width: none;
}
.hero-slider--full .hero-mesh {
  z-index: 2;
}
.hero-slider--full .hero-caption {
  z-index: 4;
  padding-top: var(--header-h, 4.75rem);
  box-sizing: border-box;
}
.hero-slider--full .hero-dots {
  z-index: 5;
  bottom: 1.5rem;
  gap: .5rem;
}
.hero-slider--full .hero-dots button {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.45);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: .2s ease;
}
.hero-slider--full .hero-dots button.active {
  width: 28px;
  background: #fff;
}
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

.section-kicker {
  margin: 0 0 .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand-deep);
  margin: 0 0 .5rem;
  line-height: 1.15;
}
.home-popular {
  position: relative;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent 55%);
}
.home-popular-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}
.home-popular-grid { margin-top: 0; }
.home-about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 65%),
    radial-gradient(ellipse 45% 55% at 100% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
}
.home-about .why-box {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--brand) 88%, #000) 0%,
      var(--brand) 55%,
      color-mix(in srgb, var(--brand) 72%, #000) 100%
    );
  box-shadow: var(--glow), 0 24px 50px color-mix(in srgb, var(--brand-deep) 18%, transparent);
}
html.dark .home-about .why-box {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--brand) 35%, var(--bg-elevated)) 0%,
    color-mix(in srgb, var(--brand) 22%, var(--bg-elevated)) 55%,
    var(--bg-elevated) 100%
  );
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
}
.home-about .why-box p { margin: 0; opacity: .95; }
.home-about .why-box p:first-of-type { margin-top: 0; }
.why-kicker {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 70%, var(--brand));
}
.why-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.why-list {
  margin: .25rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.why-list li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(255,255,255,.92);
}
.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 55%, var(--brand));
}
.form-box--home {
  border: 1px solid color-mix(in srgb, var(--line) 70%, var(--brand));
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.form-box-title {
  margin: 0 0 .35rem;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--brand-deep);
}

.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.muted { color: var(--ink-muted); }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.home-catalog {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 0% 50%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 60% at 100% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
}
.home-catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.85rem;
}
.home-catalog-lead { margin: 0; max-width: 32rem; line-height: 1.5; }
.home-catalog-all {
  font-weight: 700;
  color: var(--brand-deep);
  white-space: nowrap;
}
a.home-catalog-all.btn {
  color: #fff;
  gap: .4rem;
}
a.home-catalog-all.btn .icon { width: 1rem; height: 1rem; }
.home-catalog-all:hover { color: var(--brand); }
a.home-catalog-all.btn:hover { color: #fff; }
.home-catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .home-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}
@media (min-width: 1100px) {
  .home-catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.home-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 26px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease-out), border-color .3s ease, box-shadow .35s var(--ease-out);
}
.home-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
  opacity: 1;
  pointer-events: none;
}
.home-cat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 0 36px color-mix(in srgb, var(--brand) 18%, transparent);
}
.home-cat:hover::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent 75%);
}

.home-cat-visual {
  flex-shrink: 0;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  overflow: hidden;
  transition: background .3s ease, color .3s ease;
}
.home-cat-visual .icon { width: 1.5rem; height: 1.5rem; }
.home-cat-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.home-cat:hover .home-cat-visual:not(.has-image) {
  background: var(--brand);
  color: #fff;
}
.home-cat-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.home-cat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.home-cat-name {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--brand-deep);
  line-height: 1.2;
}
.home-cat-meta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.home-cat-go {
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.home-cat-go .icon { width: 1.1rem; height: 1.1rem; }
.home-cat:hover .home-cat-go {
  background: var(--brand);
  color: #fff;
  transform: translateX(2px);
}

.home-cat--photo {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
}
.home-cat--photo::before {
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg-elevated) 92%, transparent) 78%, var(--bg-elevated) 100%);
  z-index: 1;
  opacity: 1;
}
.home-cat--photo .home-cat-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: color-mix(in srgb, var(--brand) 20%, #0c2a32);
  color: #fff;
}
.home-cat--photo .home-cat-visual img { transform: scale(1); }
.home-cat--photo:hover .home-cat-visual img { transform: scale(1.05); }
.home-cat--photo .home-cat-content {
  position: relative;
  z-index: 2;
  padding: 1.05rem 1.15rem 1.2rem;
}
.home-cat--photo .home-cat-name {
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
}

@keyframes home-cat-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .home-cat { animation: none; }
  .home-cat:hover,
  .card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-accent:hover,
  .chip:hover,
  .chip.active { transform: none; box-shadow: none; }
  .card:hover .card-media img,
  .gallery-main:hover img,
  .home-cat--photo:hover .home-cat-visual img { transform: none; }
  .product-info-card:hover,
  .gallery-main:hover { box-shadow: var(--shadow); }
}

.grid-catalog {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; } }
@media (min-width: 1200px) { .grid-catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-catalog-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem;
}
@media (min-width: 700px) { .grid-catalog-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-catalog-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1280px) { .grid-catalog-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid-catalog-compact .card-title { font-size: 1rem; }
.grid-catalog-compact .card-desc { font-size: .8rem; }
.grid-catalog-compact .card-price { font-size: 1.05rem; }
.grid-catalog-compact .card-body { padding: .85rem; }
.grid-catalog-compact .btn { min-height: 40px; padding: .45rem .9rem; font-size: .85rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.admin-form-section {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.admin-form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-form-section h3 {
  margin: 0 0 1rem; font-size: 1.05rem; color: var(--brand-deep);
}
.admin-form-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}

.catalog-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.chip {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .45rem .95rem;
  border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink-muted);
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s ease, box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.chip:hover, .chip.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand) 25%, transparent);
}

.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
  margin: 0 0 1.5rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-elevated);
}
.catalog-search {
  flex: 1; min-width: 180px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem;
  background: var(--input-bg); color: var(--ink); font: inherit;
}
.catalog-search-btn { min-height: 48px; padding: .75rem 1.35rem; }
.catalog-toolbar-meta {
  display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.25rem;
  width: 100%;
}
.catalog-sort-label { display: flex; flex-direction: column; gap: .25rem; min-width: 150px; }
.catalog-sort-caption {
  font-size: .8rem; color: var(--ink-muted); line-height: 1.2;
  text-align: center;
}
.catalog-sort {
  min-height: 48px; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem 1rem; background: var(--input-bg); color: var(--ink); font: inherit;
}
.catalog-count {
  margin: 0; font-size: .9rem; min-height: 48px;
  display: inline-flex; align-items: center;
}
@media (min-width: 768px) {
  .catalog-toolbar-meta { width: auto; margin-left: auto; }
}

.card { position: relative; }
.fav-btn {
  position: absolute; top: .65rem; right: .65rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--ink-muted); cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.fav-btn:hover {
  transform: scale(1.08);
  color: var(--brand-deep);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 18%, transparent);
}
.fav-btn .icon { width: 1.2rem; height: 1.2rem; }
.fav-btn.is-active { color: #c0392b; border-color: color-mix(in srgb, #c0392b 35%, var(--line)); }
.fav-btn.is-active .icon-heart { fill: currentColor; }
.fav-btn-inline.is-active {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 82%, #000);
  border-color: color-mix(in srgb, var(--brand) 82%, #000);
}
.fav-btn-inline.is-active .icon-heart { fill: currentColor; }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.fav-btn-inline {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.fav-btn-inline .icon { width: 1.15rem; height: 1.15rem; }

.card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); background: var(--bg-elevated);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s ease;
  position: relative;
  container-type: inline-size;
  container-name: product-card;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--glow), var(--shadow);
}
.card-media { position: relative; aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-body-row { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; min-width: 0; }
.card-body-main { flex: 1; min-width: 0; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; margin: 0; color: var(--ink-muted); }
.card-title { margin: .35rem 0 0; font-size: 1.15rem; color: var(--brand-deep); line-height: 1.25; overflow-wrap: anywhere; }
.card-body-main .card-price { display: block; margin-top: .45rem; }
.card-desc { margin: .5rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.card-footer { margin-top: auto; padding-top: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: .75rem; flex-wrap: wrap; }
.card-price { font-size: 1.05rem; }

.card-sizes { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.card-size {
  display: inline-flex; padding: .25rem .55rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--ink-muted);
}

.card-spec-badges, .product-spec-badges { display: flex; gap: .35rem; flex-shrink: 0; flex-wrap: wrap; }
.card-spec-badge {
  width: 78px; height: 78px; border-radius: 999px; background: var(--brand); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: .3rem; line-height: 1.1;
  flex: 0 0 auto;
}
.card-spec-badge-label {
  font-size: .64rem; text-transform: lowercase; opacity: .95;
  line-height: 1.05;
  margin-bottom: 0;
  max-width: 5.4em;
}
.card-spec-badge strong {
  font-size: 1.05rem; font-weight: 800; line-height: 1;
  margin-top: .08rem;
}

.product-spec-badges .card-spec-badge {
  width: 96px;
  height: 96px;
  padding: .4rem;
}
.product-spec-badges .card-spec-badge-label { font-size: .72rem; max-width: 5.2em; }
.product-spec-badges .card-spec-badge strong { font-size: 1.18rem; }

.grid-catalog-compact .card-spec-badge {
  width: 68px; height: 68px; padding: .26rem;
}
.grid-catalog-compact .card-spec-badge-label { font-size: .58rem; max-width: 5.4em; }
.grid-catalog-compact .card-spec-badge strong { font-size: .95rem; }

@container product-card (max-width: 280px) {
  .card-spec-badge {
    width: 58px;
    height: 58px;
    padding: .2rem;
  }
  .card-spec-badge-label { font-size: .5rem; }
  .card-spec-badge strong { font-size: .85rem; }
  .card-body-row { gap: .45rem; }
}

@media (max-width: 640px) {
  .card-body-row.has-specs {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
  }
  .card-spec-badges { width: 100%; }
  .grid-catalog .card-spec-badge,
  .grid-catalog-compact .card-spec-badge {
    width: 64px; height: 64px; padding: .26rem;
  }
  .grid-catalog .card-spec-badge-label,
  .grid-catalog-compact .card-spec-badge-label { font-size: .56rem; }
  .grid-catalog .card-spec-badge strong,
  .grid-catalog-compact .card-spec-badge strong { font-size: .92rem; }
  .card-body { padding: .9rem; }
  .card { border-radius: 18px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .grid-catalog-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .card-body { padding: .75rem; }
  .card-spec-badge {
    width: 56px;
    height: 56px;
  }
  .card-spec-badge-label { font-size: .5rem; }
  .card-spec-badge strong { font-size: .82rem; }
}

@media (max-width: 480px) {
  .card-spec-badge { width: 70px; height: 70px; }
  .card-spec-badge-label { font-size: .58rem; line-height: 1.05; }
  .card-spec-badge strong { font-size: .98rem; margin-top: .06rem; }
}

.pill {
  display: inline-flex; border-radius: 999px; padding: .25rem .65rem;
  font-size: .7rem; font-weight: 600;
}
.pill-accent { background: var(--accent); color: #123842; }
.pill-brand { background: color-mix(in srgb, var(--brand) 90%, black); color: #fff; }
.pill-new { background: #3d8b74; color: #fff; }
.pill-sale { background: #c45c3e; color: #fff; }
.pills { position: absolute; left: .75rem; top: .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }

.price-sale {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  line-height: 1.15;
}
.price-old {
  text-decoration: line-through;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: .85em;
}
.price-new { font-weight: 800; color: var(--brand-deep); }
.card-price { font-size: 1.05rem; min-width: 0; }
.card-price .price-sale { gap: .05rem; }
.card-price .price-old { font-size: .8em; }
.card-price .price-new { font-size: 1.05em; }
.product-price {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--brand-deep);
}
.product-price .price-sale { gap: .2rem; }
.product-price .price-old {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.product-price .price-new {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--brand-deep);
  display: block;
}
.product-price-addon,
.product-price-total {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: .15rem;
}
.product-price-total {
  color: var(--brand-deep);
  font-size: 1.15rem;
}

.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field textarea,
.field select {
  width: 100%; min-height: 48px; padding: .65rem .9rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--input-bg); color: var(--ink); font: inherit;
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto; min-height: 0; padding: 0; margin: 0 .4rem 0 0;
  border: none; border-radius: 0; background: transparent;
  vertical-align: middle;
}
.field input[type="file"] {
  width: 100%; min-height: 0; padding: .35rem 0;
  border: 0; border-radius: 0; background: transparent;
}
.field .check-inline {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem; font-weight: 500; font-size: .85rem; cursor: pointer;
}
.field textarea { min-height: 110px; resize: vertical; }
.rich-editor {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: var(--input-bg); box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.rich-editor:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.rich-editor-toolbar {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  padding: .55rem .65rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 82%, var(--brand) 18%);
}
.rich-editor-group {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border-radius: 12px; background: color-mix(in srgb, var(--input-bg) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.rich-editor-toolbar .rich-editor-format {
  width: auto; min-height: 34px; padding: .25rem 1.9rem .25rem .6rem;
  border-radius: 10px; font-size: .82rem; font-weight: 600;
  background-color: var(--input-bg);
}
.rich-editor-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-muted); cursor: pointer;
  transition: background-color .18s, color .18s;
}
.rich-editor-btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.rich-editor-btn[data-command="bold"] svg { stroke-width: 2.2; }
.rich-editor-btn:hover {
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.rich-editor-btn.is-active { background: var(--brand); color: #fff; }
.rich-editor-toolbar .rich-editor-color {
  position: relative;
  display: inline-flex; align-items: flex-end; justify-content: center;
  width: 34px; height: 34px; margin: 0; padding: 0 0 7px;
  border-radius: 10px; overflow: hidden; cursor: pointer; box-sizing: border-box;
}
.rich-editor-color-mark {
  font-weight: 800; font-size: 16px; line-height: 1; pointer-events: none;
  border-bottom: 3px solid currentColor;
}
.rich-editor-toolbar .rich-editor-color:hover {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.rich-editor-toolbar .rich-editor-color input[type="color"] {
  position: absolute; inset: 0; width: 34px; height: 34px; min-height: 0; max-width: 34px;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; opacity: 0; cursor: pointer;
}
.rich-editor-popover {
  position: fixed; z-index: 80; display: grid; gap: .55rem; width: 220px;
  padding: .75rem; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink);
  box-shadow: 0 12px 32px rgba(20, 43, 49, .16);
}
.rich-editor-popover[hidden] { display: none; }
.rich-editor-popover label {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: 0; font-size: .82rem; font-weight: 650;
}
.rich-editor-popover input[type="number"] {
  width: 4.5rem; min-height: 34px; margin: 0; padding: .2rem .45rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; font: inherit;
}
.rich-editor-popover button {
  min-height: 34px; border: 0; border-radius: 10px;
  background: var(--brand, #142b31); color: #fff; font-weight: 700; cursor: pointer;
}
.rich-editor-source-toggle { margin-left: auto; }
.rich-editor-area {
  min-height: 240px; max-height: 60vh; padding: 1.1rem 1.15rem;
  color: var(--ink); line-height: 1.7; outline: none; overflow: auto;
}
.rich-editor-area > :first-child { margin-top: 0; }
.rich-editor-area > :last-child { margin-bottom: 0; }
.rich-editor-area h2, .rich-editor-area h3 {
  margin: 1.4rem 0 .5rem; color: var(--brand-deep); line-height: 1.25;
}
.rich-editor-area strong,
.rich-editor-area b { font-weight: 800; }
.rich-editor-area h2 { font-size: 1.3rem; }
.rich-editor-area h3 { font-size: 1.1rem; }
.rich-editor-area p { margin: 0 0 .85rem; }
.rich-editor-area ul, .rich-editor-area ol { margin: 0 0 .85rem; padding-left: 1.5rem; }
.rich-editor-area li > p { margin: 0; }
.rich-editor-area [align="center"] { text-align: center; }
.rich-editor-area [align="right"] { text-align: right; }
.rich-editor-area [align="left"] { text-align: left; }
.rich-editor-area li { margin: 0; }
.rich-editor-area a { color: var(--brand); text-decoration: underline; }
.rich-editor-area blockquote {
  margin: .8rem 0; padding: .2rem 0 .2rem .9rem;
  border-left: 3px solid var(--brand); color: var(--ink);
}
.rich-editor-area details.promo-spoiler {
  margin: .8rem 0; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px;
}
.rich-editor-area details.promo-spoiler summary { cursor: pointer; font-weight: 700; padding: .7rem 0; }
.rich-editor-area table { width: 100%; border-collapse: collapse; margin: .8rem 0; }
.rich-editor-area th, .rich-editor-area td {
  border: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top;
}
.rich-editor-area hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.rich-editor-source {
  display: none; min-height: 240px; max-height: 60vh; padding: 1.1rem 1.15rem !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: .85rem; line-height: 1.6; resize: vertical;
}
.rich-editor.is-source .rich-editor-area { display: none; }
.rich-editor.is-source .rich-editor-source { display: block; }
.rich-editor-status {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  padding: .5rem .9rem; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  font-size: .72rem; color: var(--ink-muted);
}
.rich-editor-mode { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.form-box {
  border: 1px solid var(--line); background: var(--bg-elevated);
  border-radius: 28px; padding: 1.75rem;
  transition: box-shadow .4s var(--ease-out), border-color .35s ease;
}
.form-box:focus-within {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 0 32px color-mix(in srgb, var(--brand) 12%, transparent);
}
.alert { padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; }
.alert-ok { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.alert-err { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }

.why-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .why-grid { grid-template-columns: 1.1fr .9fr; } }
.why-box { background: var(--brand); color: #fff; border-radius: 28px; padding: 2rem; box-shadow: var(--glow); }
.why-box p { margin: .85rem 0 0; line-height: 1.55; opacity: .95; }
.why-box p:first-of-type { margin-top: 1rem; }
.why-box ul { margin: .65rem 0 0; padding-left: 1.1rem; }
.why-box li { margin: .35rem 0; }

.product-page { position: relative; overflow: hidden; }
.product-page-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, var(--bg)) 0%, var(--bg) 42%);
}
.product-page-inner { position: relative; z-index: 1; }

.product-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem;
  margin: 0 0 1.5rem; font-size: .85rem; color: var(--ink-muted);
}
.product-breadcrumb a { color: var(--brand); font-weight: 600; }
.product-breadcrumb a:hover { text-decoration: underline; }

.product-layout { display: grid; gap: 1.75rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: start; } }

.product-gallery-col { display: flex; flex-direction: column; gap: .85rem; }
.gallery-main {
  aspect-ratio: 4/3; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-elevated); position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow .4s var(--ease-out), border-color .35s ease;
}
.gallery-main:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: var(--glow), var(--shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gallery-main:hover img { transform: scale(1.05); }
.gallery-flags {
  position: absolute; left: .85rem; top: .85rem;
  display: flex; flex-wrap: wrap; gap: .4rem; z-index: 2;
}

.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .55rem; }
.gallery-thumb {
  width: 76px; height: 58px; padding: 0; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.gallery-thumb:hover { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); }

.product-covers-panel,
.product-info-card,
.product-text-panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border-radius: 24px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: box-shadow .4s var(--ease-out), border-color .35s ease;
}
.product-info-card:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  box-shadow: var(--glow), var(--shadow);
}
.product-panel-label {
  margin: 0 0 .55rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.cover-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.cover-btn {
  border: 1px solid var(--line); background: var(--bg-elevated); border-radius: 999px;
  padding: .45rem .9rem; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: .45rem; transition: .2s;
}
.cover-btn:hover { border-color: var(--brand); }
.cover-btn.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.cover-swatch {
  width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0;
}
.instruction-page-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.instruction-page-head { display: flex; flex-direction: column; gap: .65rem; }
.instruction-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.instruction-viewer-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  min-height: min(78vh, 920px);
}
.instruction-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  border: 0;
  background: #525659;
}
.product-assembly { margin-top: 1rem; }
.product-assembly-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.product-assembly-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-weight: 650;
  color: var(--brand-deep);
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.product-assembly-link .icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; color: var(--brand); }
.product-assembly-link:hover {
  border-color: var(--brand);
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 18%, transparent);
}
.product-fabrics-panel { margin-top: 1rem; }
.component-group { margin-top: .85rem; }
.component-group:first-of-type { margin-top: .35rem; }
.component-group-label {
  margin: 0 0 .45rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fabric-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .65rem; }
.textile-group-list { margin-bottom: .65rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.textile-group-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; text-align: center; padding: .55rem .7rem;
}
.textile-group-btn span {
  display: block; white-space: normal; line-height: 1.25; font-weight: 600;
}
.fabric-btn[hidden] { display: none !important; }
.fabric-btn {
  border: 2px solid var(--line); background: var(--bg-elevated); border-radius: 14px;
  padding: .35rem; cursor: pointer; color: var(--ink); font: inherit; text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  min-width: 0;
  overflow: hidden;
}
.fabric-btn:hover { border-color: var(--brand); }
.fabric-btn.active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.fabric-btn:disabled,
.fabric-btn.is-incompatible {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  border-color: #c8c8c8;
  box-shadow: none;
  pointer-events: none;
}
.fabric-btn:disabled:hover,
.fabric-btn.is-incompatible:hover {
  border-color: #c8c8c8;
  transform: none;
}
.fabric-btn.is-incompatible .fabric-btn-price,
.fabric-btn:disabled .fabric-btn-price {
  color: #8a8a8a;
}
.fabric-btn img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: contain;
  object-position: center;
  border-radius: 9px;
  background: transparent;
}
.fabric-btn--no-image span {
  padding: .75rem .45rem .35rem;
}
.fabric-btn span {
  display: block;
  padding: .45rem .4rem .15rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.fabric-btn-price {
  display: block !important;
  padding: 0 .4rem .35rem !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  color: var(--brand);
  line-height: 1.2 !important;
}
.fabric-btn.active .fabric-btn-price { color: inherit; }

.product-info-col { display: flex; flex-direction: column; gap: 1rem; }
.product-info-card { padding: 1.5rem 1.5rem 1.35rem; }
.product-cat {
  margin: 0; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--brand);
}
.product-title {
  margin: .45rem 0 0; font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700; color: var(--brand-deep); line-height: 1.15;
}
.product-sku { margin: .45rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.product-lead { margin: 1rem 0 0; color: var(--ink-muted); font-size: 1rem; line-height: 1.65; }
.product-spec-badges { margin: 1.15rem 0 0; }
.product-sizes-block { margin-top: 1.15rem; }
.product-sizes { margin-top: 0; }
.product-sizes .card-size {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elevated));
  color: var(--brand-deep);
  cursor: pointer;
  font: inherit;
}
.product-sizes .card-size.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.product-buy-bar {
  margin-top: 1.35rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between;
}
.product-price-label {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .2rem;
}
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 0; }
.product-actions .btn-primary {
  min-width: 10rem;
  box-shadow: 0 0 24px color-mix(in srgb, var(--brand) 35%, transparent);
}
.product-actions .btn-primary:hover {
  box-shadow: var(--glow);
}

.product-tabs-panels { display: grid; gap: 1rem; }
.product-text-panel h2 {
  margin: 0 0 .75rem; font-size: 1.15rem; color: var(--brand-deep);
}
.product-text-panel-accent {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 55%),
    var(--bg-elevated);
}
.product-text-panel .prose { max-width: none; }
.product-text-panel .prose p { margin-top: 0; }

.product-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.product-related-head {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}

.admin-layout { display: flex; min-height: 100vh; flex-direction: column; }
@media (min-width: 1024px) { .admin-layout { flex-direction: row; } }
.admin-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .admin-nav { width: 240px; border-bottom: 0; border-right: 1px solid var(--line); min-height: 100vh; }
}
.admin-nav a { display: block; padding: .55rem .75rem; border-radius: 12px; font-size: .9rem; margin-bottom: .2rem; color: var(--ink-muted); }
.admin-nav a.active, .admin-nav a:hover { background: var(--brand); color: #fff; }
.admin-nav-group {
  margin-bottom: .2rem;
  border-radius: 12px;
}
.admin-nav-group > summary {
  list-style: none;
  cursor: pointer;
  padding: .55rem .75rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  user-select: none;
}
.admin-nav-group > summary::-webkit-details-marker { display: none; }
.admin-nav-group > summary::after {
  content: '';
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .7;
  transition: transform .15s ease;
  flex-shrink: 0;
}
.admin-nav-group[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: .2rem;
}
.admin-nav-group > summary:hover,
.admin-nav-group[open] > summary {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-deep);
}
.admin-nav-group.has-active > summary {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-deep);
  font-weight: 700;
}
.admin-nav-sub {
  padding: .15rem 0 .35rem .35rem;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.admin-nav-sub a {
  font-size: .84rem;
  padding: .45rem .7rem;
  margin-bottom: 0;
}
.admin-nav-sub a.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.admin-credit {
  margin: auto 0 0;
  padding-top: 1.25rem;
  font-size: .65rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--ink-muted) 72%, transparent);
  font-weight: 500;
  text-align: left;
}
.admin-credit::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1px;
  margin: 0 0 .65rem;
  background: color-mix(in srgb, var(--line) 85%, transparent);
}
.form-box > .admin-credit {
  margin-top: 1.35rem;
  padding-top: .85rem;
  text-align: center;
  letter-spacing: .06em;
}
.form-box > .admin-credit::before {
  margin-left: auto;
  margin-right: auto;
}
.admin-main { flex: 1; padding: 1.5rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .65rem .4rem; text-align: left; vertical-align: top; }
.checks { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: .75rem; }

.map-box { height: 420px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.store-card { border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem; background: var(--bg-elevated); }
.store-city {
  margin: .75rem 0 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--brand-deep);
}
.store-city span {
  display: block;
  margin-bottom: .15rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.store-address { margin: .35rem 0 0; }
.store-card.active { border-color: var(--brand); box-shadow: var(--shadow); }
.store-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: .34rem .75rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 16%, transparent), transparent 58%),
    linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 68%, #000) 100%);
  color: var(--brand-on, #fff);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, #fff 34%, var(--brand));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--brand) 42%, transparent);
}
.store-brand-badge > span {
  display: block;
  margin-right: -.08em;
  transform: translateY(.08em);
}
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; padding: 1rem; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-elevated); margin-bottom: 1.5rem; }
.filters .field { margin: 0; min-width: 180px; flex: 1; }

.prose { max-width: 48rem; }
.page-lead {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.page-sheet--left,
.page-sheet--center { max-width: 48rem; }
.page-sheet--center { margin-inline: auto; }
.page-sheet--left { margin-left: 0; margin-right: auto; }
.page-sheet--wide { max-width: none; }
.page-sheet .prose,
.page-sheet .page-lead,
.page-sheet .section-title { max-width: none; }
.prose p { color: var(--ink-muted); }
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 40px;
}
.prose li { margin: 0; }
.prose blockquote {
  margin: .8rem 0; padding: .2rem 0 .2rem .9rem;
  border-left: 3px solid var(--brand); color: var(--ink);
}
.prose details.promo-spoiler {
  margin: .8rem 0; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px;
}
.prose details.promo-spoiler summary { cursor: pointer; font-weight: 700; padding: .7rem 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: .8rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.rich-content { color: var(--ink); line-height: 1.7; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 .85rem; color: inherit; }
.rich-content h2,
.rich-content h3 { margin: 1.4rem 0 .5rem; color: var(--brand-deep); line-height: 1.25; }
.rich-content h2 { font-size: 1.3rem; }
.rich-content h3 { font-size: 1.1rem; }
.rich-content strong,
.rich-content b { font-weight: 800; }
.rich-content ul,
.rich-content ol { margin: 0 0 .85rem; padding-left: 1.5rem; }
.rich-content li > p { margin: 0; }
.prose [align="center"] { text-align: center; }
.prose [align="right"] { text-align: right; }
.prose [align="left"] { text-align: left; }
.prose a,
.product-text-panel a,
.muted a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: .15em;
  font-weight: 600;
  transition: color .25s ease;
}
.prose a:hover,
.product-text-panel a:hover,
.muted a:hover { color: var(--brand-deep); }
html.dark .prose a,
html.dark .product-text-panel a,
html.dark .muted a {
  color: #fff;
}
html.dark .prose a:hover,
html.dark .product-text-panel a:hover,
html.dark .muted a:hover {
  color: var(--brand);
}
html.dark .nav-desktop a { color: #fff; }
html.dark .nav-desktop a.active,
html.dark .nav-desktop a:hover { background: var(--brand); color: #fff; }
html.dark .mobile-drawer a { color: #fff; }
html.dark .mobile-drawer a:hover,
html.dark .mobile-drawer a:focus-visible { background: var(--brand); color: #fff; }
.nav-desktop a,
.mobile-drawer a {
  transition: color .25s ease, background-color .25s ease;
}
.hidden { display: none !important; }

.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: .85rem 0 calc(.85rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(18, 35, 40, 0.12);
  backdrop-filter: blur(10px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.25rem;
}
.cookie-banner-text {
  margin: 0;
  flex: 1;
  min-width: min(100%, 16rem);
  font-size: .9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.cookie-banner-text a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .12em;
}
html.dark .cookie-banner {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
}
html.dark .cookie-banner-text a { color: #fff; }

.error-page {
  position: relative;
  isolation: isolate;
  min-height: min(70vh, 40rem);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}
.error-page-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 45% at 90% 75%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    linear-gradient(165deg, color-mix(in srgb, var(--bg-elevated) 80%, var(--brand)) 0%, var(--bg) 45%, var(--bg) 100%);
}
.error-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23123442' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
html.dark .error-page-bg::after { opacity: .2; }
.error-page-inner {
  position: relative;
  max-width: 40rem;
  text-align: center;
  margin-inline: auto;
}
.error-page-code {
  margin: 0 0 .5rem;
  line-height: 1;
}
.error-page-code-num {
  display: inline-block;
  font-size: clamp(5.5rem, 18vw, 9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: error-float 5.5s ease-in-out infinite;
}
.error-page-kicker {
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: error-fade-up .55s ease both;
}
.error-page-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.2;
  animation: error-fade-up .55s .08s ease both;
}
.error-page-text {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  animation: error-fade-up .55s .16s ease both;
}
.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.75rem;
  animation: error-fade-up .55s .24s ease both;
}
@keyframes error-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes error-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .error-page-code-num,
  .error-page-kicker,
  .error-page-title,
  .error-page-text,
  .error-page-actions {
    animation: none;
  }
}

.home-theme--gallery .home-catalog {
  padding-top: 3.25rem;
  padding-bottom: 3.5rem;
}
.home-theme--gallery .home-catalog-grid {
  gap: 1.35rem;
}
@media (min-width: 1100px) {
  .home-theme--gallery .home-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
.home-theme--gallery .home-cat--photo {
  min-height: 18rem;
  border-radius: 18px;
}
.home-theme--gallery .home-popular {
  background: transparent;
}
.home-theme--gallery .home-popular-grid {
  gap: 1.35rem;
}
.home-theme--gallery .home-about {
  background: color-mix(in srgb, var(--brand) 4%, var(--bg));
}
.home-theme--gallery .home-about .why-box {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.home-theme--gallery .why-kicker {
  color: var(--brand);
}
.home-theme--gallery .why-title {
  color: var(--brand-deep);
}
.home-theme--gallery .home-about .why-box p {
  color: var(--ink-muted);
  opacity: 1;
}
.home-theme--gallery .why-list li {
  color: var(--ink-muted);
}
.home-theme--gallery .why-list li::before {
  background: var(--brand);
}
.home-theme--gallery .form-box--home {
  border-radius: 20px;
}

.home-theme--signal .section-kicker {
  letter-spacing: .22em;
}
.home-theme--signal .section-title {
  letter-spacing: -.04em;
}
.home-theme--signal .home-catalog {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
}
.home-theme--signal .home-catalog-grid {
  gap: .85rem;
}
.home-theme--signal .home-cat {
  border-radius: 12px;
  min-height: 5.5rem;
  box-shadow: none;
  border-width: 2px;
}
.home-theme--signal .home-cat--photo {
  border-radius: 12px;
  min-height: 14rem;
}
.home-theme--signal .home-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px color-mix(in srgb, var(--brand) 22%, transparent);
}
.home-theme--signal .home-popular {

  background: var(--footer-bg);
  color: #fff;
}
html.dark .home-theme--signal .home-popular {
  background: color-mix(in srgb, var(--brand) 55%, #050a0c);
}
.home-theme--signal .home-popular .section-kicker {
  color: color-mix(in srgb, var(--accent) 80%, #fff);
}
.home-theme--signal .home-popular .section-title,
.home-theme--signal .home-popular .home-catalog-lead,
.home-theme--signal .home-popular .home-catalog-all,
.home-theme--signal .home-popular .muted {
  color: #fff;
}
.home-theme--signal .home-popular .home-catalog-lead,
.home-theme--signal .home-popular .muted {
  opacity: .82;
}
.home-theme--signal .home-popular .home-catalog-all:hover {
  color: color-mix(in srgb, #fff 80%, var(--accent));
}
.home-theme--signal .home-about {
  background: color-mix(in srgb, var(--brand) 6%, var(--bg));
}
.home-theme--signal .home-about .why-box {
  border-radius: 14px;
  background: var(--brand);
  box-shadow: none;
}
.home-theme--signal .form-box--home {
  border-radius: 14px;
  border-width: 2px;
  border-color: var(--brand);
}
.home-theme--signal .why-grid {
  gap: 1.25rem;
}
