@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/be-vietnam-pro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/be-vietnam-pro-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/be-vietnam-pro-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/be-vietnam-pro-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-800-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-950: #04315f;
  --navy-900: #064b8e;
  --navy-800: #075da8;
  --navy-700: #0877ce;
  --blue-600: #0a84e8;
  --blue-500: #149cf3;
  --cyan-500: #13bedf;
  --cyan-300: #74ddf3;
  --yellow-500: #f5b51b;
  --yellow-600: #d99a08;
  --green-600: #16805b;
  --red-600: #c93636;
  --slate-950: #102f4d;
  --slate-700: #3f5f7b;
  --slate-500: #69859e;
  --slate-300: #cfe2f1;
  --slate-200: #e2f0f9;
  --slate-100: #f2f9fe;
  --white: #fff;
  --gradient-primary: linear-gradient(135deg, #056bdd 0%, #0077b6 100%);
  --gradient-primary-hover: linear-gradient(135deg, #055ec4 0%, #006895 100%);
  --gradient-accent: linear-gradient(135deg, #ffe36d 0%, #ffc928 48%, #f5a800 100%);
  --gradient-accent-hover: linear-gradient(135deg, #ffda47 0%, #ffbd16 50%, #e99a00 100%);
  --gradient-deep: linear-gradient(135deg, #043a71 0%, #0877ce 58%, #0fa6d0 100%);
  --gradient-surface: linear-gradient(135deg, #ffffff 0%, #edf8ff 100%);
  --shadow-sm: 0 3px 14px rgba(8, 119, 206, .08);
  --shadow-md: 0 18px 46px rgba(8, 119, 206, .14);
  --shadow-lg: 0 32px 84px rgba(4, 72, 132, .24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

.site-body {
  --brand-950: #064E3B;
  --brand-900: #065F46;
  --brand-800: #047857;
  --brand-700: #059669;
  --brand-600: #10B981;
  --brand-500: #22C55E;
  --brand-50: #ECFDF5;
  --brand-surface: #F0FDF4;
  --brand-border: #A7F3D0;
  --navy-950: var(--brand-950);
  --navy-900: var(--brand-900);
  --navy-800: var(--brand-800);
  --navy-700: var(--brand-800);
  --blue-600: var(--brand-800);
  --blue-500: var(--brand-600);
  --cyan-500: var(--brand-500);
  --cyan-300: var(--brand-border);
  --green-600: var(--brand-800);
  --slate-950: #123B2F;
  --slate-700: #3F6257;
  --slate-500: #69877D;
  --slate-300: #BBDCCD;
  --slate-200: #D9EFE5;
  --slate-100: var(--brand-surface);
  --gradient-primary: linear-gradient(135deg, #065F46 0%, #047857 100%);
  --gradient-primary-hover: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  --gradient-deep: linear-gradient(135deg, #064E3B 0%, #065F46 58%, #047857 100%);
  --gradient-surface: linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 100%);
  --gradient-header: linear-gradient(110deg, #064E3B 0%, #047857 100%);
  --gradient-hero: radial-gradient(circle at 82% 12%, rgba(34, 197, 94, .38) 0, rgba(16, 185, 129, .16) 24%, transparent 44%), linear-gradient(125deg, #064E3B 0%, #065F46 54%, #047857 100%);
  --gradient-footer: linear-gradient(135deg, #043F2E 0%, #065F46 58%, #047857 100%);
  --shadow-sm: 0 3px 14px rgba(4, 120, 87, .08);
  --shadow-md: 0 18px 46px rgba(4, 120, 87, .14);
  --shadow-lg: 0 32px 84px rgba(6, 78, 59, .24);
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; background: var(--slate-100); color: var(--slate-950); font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
p { color: var(--slate-700); }
code { padding: 2px 6px; border-radius: 6px; background: var(--slate-200); }
:focus-visible { outline: 3px solid rgba(20, 156, 243, .72); outline-offset: 3px; }
.site-body :focus-visible { outline-color: #047857; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 20px; padding: 10px 14px; border-radius: 8px; background: var(--gradient-accent); color: var(--navy-950); font-weight: 800; }
.skip-link:focus { top: 14px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 750; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-accent { border-color: rgba(255, 222, 86, .7); background: var(--gradient-accent); color: var(--navy-950); box-shadow: 0 12px 28px rgba(232, 161, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .48); }
.button-accent:hover { background: var(--gradient-accent-hover); box-shadow: 0 15px 32px rgba(232, 151, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .38); }
.button-secondary { border-color: var(--slate-300); background: var(--white); color: var(--navy-800); }
.button-outline { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); color: var(--white); }
.button-large { min-height: 54px; padding-inline: 24px; }
.button-small { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.button-wide { width: 100%; }
.button-block { width: 100%; }
.button-danger { border-color: #efc4c4; background: #fff4f4; color: var(--red-600); }
.button-danger:hover { background: #ffe5e5; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--yellow-500); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dark { color: #0573c7; }
.site-body .eyebrow-dark { color: var(--brand-800); }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; height: 76px; border-bottom: 1px solid rgba(255, 255, 255, .18); background: var(--gradient-header); color: var(--white); box-shadow: 0 8px 28px rgba(6, 78, 59, .2); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { min-width: 220px; display: inline-flex; align-items: center; gap: 10px; }
.brand-symbol { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; color: var(--yellow-500); }
.site-header .brand-symbol { width: 75px; height: 75px; overflow: hidden; background: #fff; border-radius: 100%; }
.brand-symbol svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.brand-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { display: grid; }
.brand strong { color: inherit; font-size: 15px; line-height: 1.2; text-transform: uppercase; }
.brand small { color: var(--yellow-500); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 2px; margin-left: auto; }
.primary-nav a { padding: 9px 10px; border-radius: 8px; color: #E8FFF4; font-size: 13px; font-weight: 700; white-space: nowrap; }
.primary-nav a:hover { background: rgba(255, 255, 255, .13); color: #D1FAE5; }
.header-cta { white-space: nowrap; }
.mobile-menu { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .18); border-radius: 11px; background: rgba(255, 255, 255, .06); }
.mobile-menu span { width: 20px; height: 2px; display: block; margin: 4px auto; background: var(--white); }
.trust-strip { background: linear-gradient(90deg, #FFFFFF, #ECFDF5 50%, #FFFFFF); border-bottom: 1px solid var(--brand-border); }
.trust-grid { min-height: 46px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-grid span { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--navy-800); font-size: 12px; font-weight: 750; }
.trust-grid span::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--brand-700); border-radius: 50%; box-shadow: 0 0 0 4px rgba(16, 185, 129, .1); }

/* Public */
.hero { overflow: hidden; padding: 72px 0; background: var(--gradient-hero); color: var(--white); }
.hero-grid { min-height: 430px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 54px; }
.hero-copy h1 { max-width: 700px; margin-bottom: 20px; font-size: clamp(42px, 5vw, 68px); }
.hero-copy h1 em { color: var(--yellow-500); font-style: normal; }
.hero-copy > p { max-width: 660px; color: #E8FFF4; font-size: 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 24px 0; }
.hero-points span { color: #F0FDF4; font-size: 13px; font-weight: 700; }
.hero-points span::before { content: "✓"; margin-right: 7px; color: var(--yellow-500); }
.hero-actions { display: flex; gap: 12px; }
.solar-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(167, 243, 208, .38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 58% 25%, rgba(245, 181, 27, .11), transparent 21%),
    radial-gradient(circle at 54% 58%, rgba(34, 197, 94, .22), transparent 34%),
    linear-gradient(145deg, rgba(6, 95, 70, .86), rgba(16, 185, 129, .58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 28px 70px rgba(6, 78, 59, .28);
}
.solar-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(209, 250, 229, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 250, 229, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 76%);
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}
.solar-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -55px;
  bottom: -80px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(167, 243, 208, .14);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(34, 197, 94, .12);
}
.visual-orbits, .energy-flow { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.visual-orbits { fill: none; stroke: rgba(209, 250, 229, .24); stroke-width: 1.2; }
.sun-system {
  --sun-east-x: -210px;
  --sun-noon-x: 20px;
  --sun-west-x: 210px;
  --sun-horizon-y: 102px;
  --sun-noon-y: 24px;
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(calc(var(--sun-east-x) - 50%), var(--sun-horizon-y), 0) scale(.84);
  will-change: transform, opacity;
  animation: sun-east-west 10s cubic-bezier(.45, .05, .55, .95) infinite;
}
.sun-system span { position: absolute; inset: 0; border: 1px solid rgba(245, 181, 27, .42); border-radius: 50%; background: rgba(245, 181, 27, .1); box-shadow: 0 0 0 16px rgba(245, 181, 27, .045), 0 0 45px rgba(245, 181, 27, .25); animation: sun-breathe 3.2s ease-in-out infinite; }
.sun-system svg { width: 34px; height: 34px; fill: none; stroke: #ffd052; stroke-width: 1.7; stroke-linecap: round; }
.compass-axis { position: absolute; z-index: 2; top: 171px; left: 9%; right: 7%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: #BFE8D4; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compass-axis i { height: 1px; background: linear-gradient(90deg, rgba(167, 243, 208, .25), rgba(245, 181, 27, .75), rgba(167, 243, 208, .25)); }
.compass-axis b { color: #DDF8E9; font-weight: inherit; }
.energy-flow { fill: none; stroke-width: 2; }
.energy-track { stroke: rgba(167, 243, 208, .22); }
.energy-pulse { stroke: #ffc436; stroke-linecap: round; stroke-dasharray: 8 13; animation: energy-dash 2.25s linear infinite; }
.energy-pulse-delay { animation-delay: -.75s; }
.energy-pulse-delay-two { animation-delay: -1.45s; }
.solar-visual.is-animation-paused .sun-system,
.solar-visual.is-animation-paused .sun-system span,
.solar-visual.is-animation-paused .energy-pulse,
.solar-visual.is-animation-paused .array-glow,
.solar-visual.is-animation-paused .visual-card {
  animation-play-state: paused !important;
}
.solar-visual.is-animation-paused .sun-system { will-change: auto; }
.solar-array { position: absolute; z-index: 3; top: 235px; left: 53%; width: 245px; height: 128px; transform: translateX(-50%); filter: drop-shadow(0 24px 24px rgba(1, 19, 38, .55)); }
.array-panels { position: relative; z-index: 2; height: 105px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; overflow: hidden; padding: 7px; transform: perspective(440px) rotateX(56deg) rotateZ(-1deg); border: 3px solid rgba(165, 229, 255, .96); border-radius: 4px; background: #052d57; box-shadow: inset 0 0 24px rgba(46, 189, 255, .28), 0 0 24px rgba(91, 221, 255, .38); }
.array-panels i { border: 1px solid rgba(144, 216, 255, .52); background: linear-gradient(150deg, #1677bf, #063766 66%); box-shadow: inset 7px 0 14px rgba(58, 192, 255, .18); }
.array-glow { position: absolute; z-index: 3; top: 3px; left: 8px; width: 48px; height: 90px; transform: skewX(-16deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); filter: blur(2px); animation: panel-scan 3.8s ease-in-out infinite; pointer-events: none; }
.array-leg { position: absolute; z-index: 1; bottom: 6px; width: 3px; height: 39px; background: #8bb9d7; transform: rotate(23deg); transform-origin: top; }
.leg-left { left: 54px; }
.leg-right { right: 54px; transform: rotate(-23deg); }
.visual-card {
  position: absolute;
  z-index: 5;
  min-width: 188px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(167, 243, 208, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 78, 59, .94), rgba(4, 120, 87, .9));
  box-shadow: 0 18px 36px rgba(6, 78, 59, .3);
  backdrop-filter: blur(8px);
  animation: hero-card-enter .58s cubic-bezier(.2, .8, .2, 1) both;
}
.visual-card > span:last-child { display: grid; gap: 2px; }
.visual-card small { color: #B7DDCB; font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.visual-card strong { color: var(--white); font-size: 12px; line-height: 1.25; }
.visual-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(245, 181, 27, .14); color: #ffc436; }
.visual-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-production, .card-efficiency { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .96); box-shadow: 0 18px 42px rgba(0, 20, 42, .22); }
.card-production small, .card-efficiency small { color: #5F786E; }
.card-production strong, .card-efficiency strong { color: var(--navy-800); }
.visual-icon-light { background: #fff5cf; }
.card-production { top: 43px; left: 12px; animation-delay: .08s; }
.card-inverter { top: 190px; right: -2px; animation-delay: .16s; }
.card-efficiency { top: 279px; right: 8px; animation-delay: .24s; }
.card-storage { right: 82px; bottom: 20px; animation-delay: .32s; }
.system-status { position: absolute; z-index: 5; left: 17px; bottom: 22px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(167, 243, 208, .24); border-radius: 99px; background: linear-gradient(135deg, rgba(6, 78, 59, .88), rgba(4, 120, 87, .82)); color: #DDF8E9; font-size: 9px; backdrop-filter: blur(6px); }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #58dec0; box-shadow: 0 0 0 5px rgba(88, 222, 192, .09), 0 0 12px #58dec0; }
.system-status strong { color: var(--white); font-size: 10px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 10px; color: var(--navy-800); font-size: clamp(30px, 4vw, 44px); }
.section-heading p { max-width: 760px; margin-bottom: 0; }
.section-heading.centered { justify-content: center; text-align: center; }
.quote-section, .projects-section, .process-section, .catalog-section, .static-section { padding: 76px 0; }
.quote-section { background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%); }
.wizard { overflow: hidden; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-md); }
.wizard-progress { padding: 20px 24px; border-bottom: 1px solid var(--slate-200); background: linear-gradient(100deg, #F7FFFA 0%, #E8F9EF 52%, #F2FCF6 100%); }
.wizard-progress > div:first-child { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; color: var(--navy-800); }
.wizard-progress span { font-size: 13px; font-weight: 750; }
.progress-track { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--slate-200); }
.progress-track i { height: 100%; display: block; border-radius: inherit; background: var(--gradient-accent); box-shadow: 0 0 14px rgba(245, 168, 0, .3); transition: width .25s ease; }
.wizard-panel { padding: 30px; }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: fade-up .24s ease; }
.wizard-step h3 { margin-bottom: 6px; color: var(--navy-800); font-size: 24px; }
.wizard-step > p { margin-bottom: 22px; }
.wizard-step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.wizard-step-heading h3, .wizard-step-heading p { margin: 0; }
.wizard-step-heading p { margin-top: 3px; }
.step-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 1px solid var(--brand-border); border-radius: 14px; background: linear-gradient(145deg, #F7FFFA, #DDF8E9); color: var(--blue-600); box-shadow: 0 9px 22px rgba(4, 120, 87, .13); }
.step-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.option-grid { display: grid; gap: 12px; }
.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }
.option-grid-4 { grid-template-columns: repeat(4, 1fr); }
.option-grid button { min-height: 76px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 12px; border: 1px solid var(--slate-300); border-radius: 13px; background: var(--gradient-surface); color: var(--navy-800); font-weight: 750; text-align: center; cursor: pointer; touch-action: manipulation; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.option-grid .option-card { min-height: 142px; gap: 5px; }
.option-grid button:hover { transform: translateY(-1px); border-color: #6ED6A7; box-shadow: 0 10px 24px rgba(4, 120, 87, .11); }
.option-grid button:focus-visible { outline: 3px solid rgba(31, 106, 165, .22); outline-offset: 2px; }
.option-grid button.is-selected { border: 2px solid #efb000; background: linear-gradient(145deg, #fffdf4 0%, #fff2ba 100%); box-shadow: 0 0 0 3px rgba(245, 181, 27, .14), 0 12px 28px rgba(214, 148, 0, .12); }
.option-grid button small { color: var(--slate-500); font-size: 11px; font-weight: 600; }
.option-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 2px; border: 1px solid #BCE9D2; border-radius: 14px; background: linear-gradient(145deg, #F4FFF8, #E3F8EC); color: var(--navy-700); transition: color .18s, border-color .18s, background .18s, box-shadow .18s; }
.option-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.option-grid button.is-selected .option-icon { border-color: transparent; background: var(--gradient-accent); color: var(--navy-950); box-shadow: 0 9px 20px rgba(222, 151, 0, .23), inset 0 1px 0 rgba(255, 255, 255, .45); }
.wizard-step[data-key="roofType"] .option-card { min-height: 176px; }
.option-icon.option-icon-3d { width: 82px; height: 82px; margin-bottom: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.option-icon-3d img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(6, 71, 50, .14)); transition: transform .18s ease, filter .18s ease; }
.option-card:hover .option-icon-3d img { transform: translateY(-2px) scale(1.04); filter: drop-shadow(0 10px 10px rgba(6, 71, 50, .18)); }
.option-grid button.is-selected .option-icon-3d { background: transparent; box-shadow: none; }
.option-grid button.is-selected .option-icon-3d img { transform: scale(1.06); filter: drop-shadow(0 10px 10px rgba(214, 148, 0, .22)); }
label { display: grid; gap: 7px; color: var(--navy-800); font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--slate-300); border-radius: 10px; background: var(--white); color: var(--slate-950); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--yellow-500); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); outline: 3px solid rgba(10, 132, 232, .14); }
.site-body input:focus, .site-body select:focus, .site-body textarea:focus { border-color: var(--brand-800); outline-color: rgba(16, 185, 129, .16); }
.field-label { max-width: 430px; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wizard-error { min-height: 26px; padding-top: 12px; color: var(--red-600); font-size: 13px; font-weight: 700; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--slate-200); }
.estimate-result { margin-top: 28px; padding: 30px; border: 1px solid #B9E4CF; border-radius: var(--radius-lg); background: linear-gradient(145deg, #FFFFFF, #F6FFF9); box-shadow: var(--shadow-md); }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.result-heading h2 { margin-bottom: 8px; color: var(--navy-800); font-size: 32px; }
.result-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.result-grid article { min-height: 124px; display: grid; align-content: center; gap: 5px; padding: 18px; border: 1px solid #d6eaf7; border-radius: 14px; background: var(--gradient-surface); }
.result-grid small { color: var(--slate-500); font-weight: 700; }
.result-grid strong { color: var(--navy-800); font-size: 19px; }
.result-grid span { color: var(--slate-500); font-size: 12px; }
.result-primary { background: var(--gradient-primary) !important; box-shadow: 0 16px 34px rgba(4, 120, 87, .22); }
.result-primary small, .result-primary span { color: #E8FFF4; }
.result-primary strong { color: var(--white); font-size: 34px; }
.disclaimer { margin: 0; padding: 14px 16px; border-left: 4px solid var(--brand-600); background: linear-gradient(90deg, #E8F8F0, #F7FFFA); font-size: 13px; }
.lead-card { margin-top: 28px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #F7FFFA 0%, #E9F9F0 100%); border: 1px solid #BDE5D1; box-shadow: var(--shadow-sm); }
.lead-intro h2 { color: var(--navy-800); }
.lead-intro ul { padding-left: 20px; color: var(--slate-700); }
.lead-form { display: grid; gap: 16px; }
.lead-form b { color: var(--red-600); }
.consent { display: grid; grid-template-columns: 22px 1fr; align-items: start; padding: 12px; border: 1px solid var(--slate-300); border-radius: 10px; background: var(--white); line-height: 1.45; }
.consent input { width: 20px; min-height: 20px; margin: 1px 0; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-note { margin: 0; color: var(--slate-500); font-size: 12px; text-align: center; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.notice-success { border: 1px solid #a7dbc7; background: #eefaf5; color: #0d6949; }
.notice-error { border: 1px solid #ecc1c1; background: #fff2f2; color: #a72e2e; }
.projects-section { background: var(--white); }
.services-section { padding: 76px 0; background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%); }
.home-services-grid { grid-template-columns: repeat(3, 1fr); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project-card { overflow: hidden; border: 1px solid var(--slate-300); border-radius: 17px; background: var(--white); box-shadow: var(--shadow-sm); }
.project-card > a { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-card > a span { position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 6px; background: linear-gradient(135deg, rgba(6, 95, 70, .94), rgba(4, 120, 87, .9)); color: var(--white); font-size: 10px; font-weight: 750; }
.project-card > div { padding: 16px; }
.project-image-placeholder { min-height: 190px; display: grid !important; place-items: center; position: static !important; border-radius: 0 !important; background: linear-gradient(135deg, var(--slate-200), var(--slate-100)) !important; color: var(--slate-500) !important; font-size: 12px !important; }
.project-card small { color: var(--brand-800); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.project-card h3 { margin: 7px 0; color: var(--navy-800); font-size: 18px; }
.project-card p { min-height: 44px; margin-bottom: 12px; font-size: 13px; }
.project-card > div > a, .catalog-card a { color: var(--navy-700); font-size: 13px; font-weight: 800; }
.process-section { background: linear-gradient(180deg, #ECFDF5, #F7FCF9); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; list-style: none; }
.process-grid li { min-height: 210px; padding: 22px; border: 1px solid var(--slate-300); border-radius: 16px; background: var(--white); }
.process-grid b { display: inline-grid; width: 40px; height: 40px; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--gradient-primary); color: var(--white); box-shadow: 0 8px 18px rgba(4, 120, 87, .2); }
.process-grid h3 { color: var(--navy-800); font-size: 18px; }
.process-grid p { font-size: 13px; }
.page-hero { padding: 70px 0; background: var(--gradient-deep); color: var(--white); }
.page-hero h1 { max-width: 850px; margin: 0; font-size: clamp(38px, 6vw, 62px); }
.page-hero p { color: #DDF8E9; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-card { overflow: hidden; border: 1px solid var(--slate-300); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.catalog-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.catalog-card:hover { transform: translateY(-3px); border-color: var(--brand-500); box-shadow: var(--shadow-md); }
.catalog-card:focus-within { border-color: var(--brand-600); box-shadow: var(--shadow-md); }
.catalog-card-link:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: -3px; }
.catalog-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.catalog-card-link > div { padding: 20px; }
.catalog-card h2 { margin: 10px 0; color: var(--navy-800); font-size: 21px; }
.catalog-card:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.catalog-card p { min-height: 70px; }
.catalog-card small { display: block; margin-bottom: 14px; color: var(--slate-500); }
.demo-badge, .status-pill, .sqlite-badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: #fff2c3; color: #875800; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.detail-section { padding-block: 60px; }
.detail-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.detail-card, .prose-card { max-width: 820px; margin: 28px auto 0; padding: 28px; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.article-body { margin: 24px 0; color: var(--slate-700); font-size: 16px; line-height: 1.85; }
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.article-body p { margin: 0 0 18px; }
.article-body h2, .article-body h3 { margin: 34px 0 14px; color: var(--navy-800); line-height: 1.35; }
.article-body h2 { font-size: 27px; }
.article-body h3 { font-size: 21px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 25px; }
.article-body li { margin-bottom: 7px; }
.article-body table { width: 100%; max-width: 100%; margin: 22px 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--white); font-size: 14px; line-height: 1.6; }
.article-body th, .article-body td { min-width: 0; padding: 12px 14px; overflow-wrap: anywhere; border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: top; }
.article-body th { background: var(--gradient-surface); color: var(--navy-800); font-weight: 800; }
.article-body th:last-child, .article-body td:last-child { border-right: 0; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--yellow-500); background: #fff9e9; color: var(--navy-700); font-weight: 600; }
.article-body a { color: var(--blue-600); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.article-body figure { margin: 30px 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 16px; background: var(--slate-100); }
.article-body figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: cover; object-position: center; background: var(--slate-200); }
.article-body figcaption { padding: 11px 14px; color: var(--slate-500); font-size: 12px; line-height: 1.55; text-align: center; }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--slate-200); color: var(--navy-800); }
.article-tags > strong { padding-top: 7px; }
.article-tags > div { display: flex; flex: 1 1 260px; flex-wrap: wrap; gap: 8px; }
.article-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border: 1px solid var(--brand-border, var(--slate-300)); border-radius: 999px; background: var(--brand-50, var(--slate-100)); color: var(--brand-800, var(--navy-800)); font-size: 13px; font-weight: 700; line-height: 1.35; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.article-tags a:hover, .article-tags a:focus-visible { border-color: var(--brand-800, var(--green-600)); background: var(--brand-surface, var(--slate-100)); color: var(--brand-950, var(--navy-950)); transform: translateY(-1px); }
.article-tags a:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }
.content-gallery { margin: 34px 0; padding-top: 26px; border-top: 1px solid var(--slate-200); }
.content-gallery h2 { color: var(--navy-800); font-size: 22px; }
.content-gallery > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.content-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--slate-100); }
.gallery-image-button, .media-admin-preview { position: relative; width: 100%; display: block; overflow: hidden; padding: 0; border: 0; background: var(--slate-200); color: var(--white); cursor: pointer; }
.gallery-image-button { aspect-ratio: 16 / 9; }
.gallery-image-button img, .media-admin-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .24s ease, filter .24s ease; }
.gallery-image-button:hover img, .media-admin-preview:hover img { filter: brightness(.84); transform: scale(1.025); }
.gallery-image-button:focus-visible, .media-admin-preview:focus-visible { z-index: 1; outline: 3px solid var(--yellow-500); outline-offset: -3px; }
.gallery-zoom-icon { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .38); border-radius: 12px; background: rgba(6, 78, 59, .82); box-shadow: 0 8px 20px rgba(2, 26, 19, .24); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(8px); }
.gallery-zoom-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.gallery-image-button:hover .gallery-zoom-icon, .gallery-image-button:focus-visible .gallery-zoom-icon, .media-admin-preview:hover .gallery-zoom-icon, .media-admin-preview:focus-visible .gallery-zoom-icon { opacity: 1; transform: translateY(0); }
.content-gallery figcaption { padding: 10px 12px; color: var(--slate-500); font-size: 12px; }
.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: rgba(2, 26, 19, .94); opacity: 0; transition: opacity .18s ease; backdrop-filter: blur(12px); }
.gallery-lightbox.is-open { opacity: 1; }
.gallery-lightbox-shell { width: min(1180px, 100%); color: var(--white); transform: translateY(8px) scale(.99); transition: transform .22s ease; }
.gallery-lightbox.is-open .gallery-lightbox-shell { transform: translateY(0) scale(1); }
.gallery-lightbox-header { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.gallery-lightbox-header > div { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.gallery-lightbox-header h2 { margin: 0; color: var(--white); font-size: 16px; }
.gallery-lightbox-header span { color: #BFE8D4; font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery-lightbox-stage { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 16px; }
.gallery-lightbox-stage figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; background: #021A13; box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }
.gallery-lightbox-stage img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: contain; background: #021A13; }
.gallery-lightbox-stage figcaption { min-height: 48px; display: flex; align-items: center; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .1); color: #E8FFF4; font-size: 13px; line-height: 1.5; }
.gallery-lightbox-control { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(6, 78, 59, .78); color: var(--white); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; backdrop-filter: blur(10px); }
.gallery-lightbox-control:hover { border-color: rgba(255, 255, 255, .55); background: linear-gradient(135deg, #065F46, #047857); transform: translateY(-1px); }
.gallery-lightbox-control:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 3px; }
.gallery-lightbox-control svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.gallery-lightbox-close { width: 44px; height: 44px; flex-basis: 44px; }
.gallery-lightbox-help { margin: 12px 68px 0; color: #BFE8D4; font-size: 11px; text-align: center; }
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.contact-list div { padding: 14px; border: 1px solid var(--slate-200); border-radius: 10px; }
.contact-list dt { color: var(--slate-500); font-size: 12px; }.contact-list dd { margin: 4px 0 0; font-weight: 750; }
.quick-contact { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.quick-contact-link { min-height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: var(--white); box-shadow: 0 14px 28px rgba(6, 78, 59, .28); transition: transform .2s ease, box-shadow .2s ease; }
.quick-contact-call { background: linear-gradient(135deg, #ffd653, #f49a12); color: var(--navy-950); animation: quick-contact-pulse 2.6s ease-in-out infinite; }
.quick-contact-zalo { background: linear-gradient(135deg, #087ce7, #00a7f0); }
.quick-contact-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.quick-contact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.quick-contact-link > span:last-child { display: grid; gap: 2px; line-height: 1.15; }.quick-contact-link strong { font-size: 13px; }.quick-contact-link small { font-size: 11px; font-weight: 750; }
.quick-contact-link:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 18px 32px rgba(6, 78, 59, .34); }.quick-contact-link:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@keyframes quick-contact-pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 193, 44, .16), 0 16px 30px rgba(6, 78, 59, .3); } }
.site-footer { padding-top: 56px; background: var(--gradient-footer); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer-grid h2 { font-size: 14px; }
.footer-grid p { color: #DDF8E9; font-size: 13px; }
.footer-grid a { display: block; margin: 7px 0; color: #E8FFF4; font-size: 13px; }
.footer-brand { display: block; margin-bottom: 10px; color: var(--yellow-500); font-size: 20px; }
.footer-bottom { margin-top: 38px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .16); color: #C7EAD8; font-size: 12px; }

/* Auth */
.admin-body { min-height: 100dvh; background: linear-gradient(145deg, #eef8ff, #f8fcff); }
.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(circle at 72% 16%, rgba(87, 221, 255, .52), transparent 30%), var(--gradient-deep); }
.auth-card { width: min(100%, 480px); padding: 34px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); }
.brand-dark { margin-bottom: 28px; color: var(--navy-900); }
.auth-card h1 { color: var(--navy-800); }
.stack-form { display: grid; gap: 15px; }
.stack-form small { color: var(--slate-500); font-weight: 500; }
.back-link { display: block; margin-top: 18px; color: var(--navy-700); font-size: 13px; font-weight: 750; text-align: center; }

/* Admin */
.admin-app { min-height: 100dvh; display: grid; grid-template-columns: 268px 1fr; }
.admin-sidebar { position: sticky; z-index: 40; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px; background: linear-gradient(180deg, #043a71 0%, #086dbb 58%, #0a8ebc 100%); color: var(--white); }
.admin-sidebar .brand { min-width: 0; margin: 0 6px 24px; }
.admin-sidebar nav { display: grid; gap: 3px; overflow-y: auto; }
.admin-sidebar nav a { min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px; color: #e3f4ff; font-size: 13px; font-weight: 680; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active { background: rgba(255, 255, 255, .1); color: var(--white); }
.admin-sidebar nav a.is-active { box-shadow: inset 3px 0 #8be8fa; }
.admin-sidebar nav b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: linear-gradient(135deg, #9aefff, #ffffff); color: var(--navy-900); font-size: 10px; }
.view-site { margin-top: auto; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; color: #dbe8f4; font-size: 13px; text-align: center; }
.admin-main { min-width: 0; }
.admin-topbar { position: sticky; z-index: 30; top: 0; min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 10px 24px; border-bottom: 1px solid var(--slate-300); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.admin-search { flex: 1; }
.admin-search input { max-width: 470px; background: #f7f9fc; }
.admin-user { display: grid; line-height: 1.2; }
.admin-user b { color: var(--navy-800); font-size: 13px; }.admin-user small { color: var(--slate-500); font-size: 10px; }
.theme-toggle, .admin-menu-button { min-height: 40px; padding: 8px 11px; border: 1px solid var(--slate-300); border-radius: 9px; background: var(--white); color: var(--navy-800); font-size: 12px; font-weight: 750; }
.admin-menu-button { display: none; }
.admin-content { padding: 28px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-heading span:first-child { color: var(--slate-500); font-size: 12px; }.admin-heading h1 { margin: 3px 0 0; color: var(--navy-800); font-size: 32px; }
.admin-heading-actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-heading-actions form, .row-actions form { margin: 0; }
.sqlite-badge { background: #e9f7f1; color: var(--green-600); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-grid article { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--slate-300); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); }
.kpi-grid small, .kpi-grid span { color: var(--slate-500); font-size: 11px; }.kpi-grid strong { color: var(--navy-800); font-size: 34px; font-variant-numeric: tabular-nums; }
.admin-grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.admin-card { min-width: 0; padding: 20px; border: 1px solid var(--slate-300); border-radius: 15px; background: var(--white); box-shadow: var(--shadow-sm); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-heading h2 { margin-bottom: 4px; color: var(--navy-800); font-size: 18px; }.card-heading p, .card-heading span { margin: 0; color: var(--slate-500); font-size: 11px; }
.pipeline-bars { display: grid; gap: 13px; }
.pipeline-bars div { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 9px; font-size: 12px; }
.pipeline-bars i { height: 8px; border-radius: 99px; background: var(--gradient-primary); box-shadow: 0 0 12px rgba(18, 189, 229, .2); }
.pipeline-bars b { text-align: right; }
.task-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.task-list li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--slate-100); }
.task-list b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--gradient-primary); color: var(--white); box-shadow: 0 8px 18px rgba(8, 125, 241, .18); }.task-list span { color: var(--slate-700); font-size: 12px; }
.filter-form { display: flex; gap: 8px; }
.filter-form input { width: 210px; }.filter-form select { width: 190px; }
.table-wrap { overflow-x: auto; }
.admin-content table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 12px; }
.admin-content th { padding: 10px; border-bottom: 1px solid var(--slate-300); color: var(--slate-500); font-size: 10px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.admin-content td { padding: 12px 10px; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
.admin-content td strong, .admin-content td small { display: block; } .admin-content td small { max-width: 220px; margin-top: 3px; color: var(--slate-500); }
.admin-content td select { min-width: 150px; min-height: 38px; padding: 7px; font-size: 11px; }
.content-admin { grid-template-columns: 1.2fr .8fr; }
.content-list { display: grid; gap: 8px; }
.content-list > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 10px; }
.content-list small { color: var(--slate-500); }.content-list .status-pill { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.media-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 9px; }
.media-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }.media-grid figcaption { padding: 7px; overflow: hidden; color: var(--slate-500); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.content-manager { max-width: 1320px; }
.content-table { min-width: 980px; }
.content-title-cell { min-width: 310px; display: flex; align-items: center; gap: 12px; }
.content-title-cell img, .content-placeholder { width: 72px; height: 41px; flex: 0 0 72px; border-radius: 9px; object-fit: cover; }
.content-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--slate-200), var(--slate-100)); color: var(--slate-500); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.seo-missing { color: var(--slate-500); font-size: 11px; }
.status-published { background: #e5f8ef; color: var(--green-600); }
.status-draft { background: var(--slate-200); color: var(--slate-700); }
.media-upload-card, .media-library-card { max-width: 1320px; margin-bottom: 18px; }
.media-upload-form { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 14px; }
.media-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.media-admin-item { min-width: 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--slate-100); }
.media-admin-preview { aspect-ratio: 16 / 9; }
.media-admin-info, .media-alt-form, .media-admin-item > form:last-child { padding: 10px 12px; }
.media-admin-info { display: grid; gap: 2px; }
.media-admin-info strong { overflow: hidden; color: var(--navy-800); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-admin-info small { color: var(--slate-500); font-size: 10px; }
.media-alt-form { display: grid; gap: 8px; border-top: 1px solid var(--slate-200); }
.media-alt-form input { min-height: 40px; padding: 8px 10px; font-size: 12px; }
.media-alt-form label { font-size: 11px; }
.media-admin-item > form:last-child { padding-top: 0; }

/* Content editor */
.content-editor { max-width: 1380px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 18px; }
.editor-main, .editor-sidebar { min-width: 0; display: grid; gap: 18px; }
.editor-sidebar { position: sticky; top: 92px; }
.editor-section { padding: 24px; }
.editor-fields { display: grid; gap: 16px; }
.editor-fields label, .seo-card label, .publish-card label, .inline-upload label { display: grid; gap: 6px; }
.editor-fields label > small, .publish-card > small { color: var(--slate-500); font-size: 11px; font-weight: 500; }
.editor-fields label b { color: var(--red-600); }
.content-body-editor { min-height: 420px; resize: vertical; line-height: 1.75; }
.rich-editor-field { display: grid; gap: 7px; }
.rich-editor-label { color: var(--navy-800); font-size: 13px; font-weight: 750; }
.rich-editor-label b { color: var(--red-600); }
.rich-editor-field > small { color: var(--slate-500); font-size: 11px; font-weight: 500; }
.rich-editor-shell { overflow: hidden; border: 1px solid var(--slate-300); border-radius: 13px; background: var(--white); transition: border-color .18s ease, box-shadow .18s ease; }
.rich-editor-shell:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(10, 132, 232, .14); }
.rich-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px; border-bottom: 1px solid var(--slate-200); background: linear-gradient(180deg, #f9fcff, #eef7fd); }
.rich-toolbar-group { display: flex; align-items: center; gap: 4px; padding-right: 7px; border-right: 1px solid var(--slate-300); }
.rich-toolbar-group:last-child { padding-right: 0; border-right: 0; }
.rich-editor-toolbar button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--navy-800); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; touch-action: manipulation; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.rich-editor-toolbar button:hover { border-color: #b9ddef; background: var(--white); color: var(--blue-600); box-shadow: 0 5px 14px rgba(8, 119, 206, .08); }
.rich-editor-toolbar button:focus-visible { outline: 3px solid rgba(10, 132, 232, .22); outline-offset: 1px; }
.rich-editor-toolbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rich-editor-toolbar .rich-insert-image { padding-inline: 13px; background: linear-gradient(135deg, #fff8dc, #ffefae); color: #825900; }
.rich-editor-surface { min-height: 430px; padding: 22px; color: var(--slate-950); font-size: 16px; font-weight: 450; line-height: 1.75; outline: 0; overflow-wrap: anywhere; }
.rich-editor-surface p { margin: 0 0 16px; }
.rich-editor-surface h2, .rich-editor-surface h3 { margin: 26px 0 12px; color: var(--navy-800); line-height: 1.35; }
.rich-editor-surface h2 { font-size: 25px; }
.rich-editor-surface h3 { font-size: 20px; }
.rich-editor-surface ul, .rich-editor-surface ol { margin: 0 0 18px; padding-left: 26px; }
.rich-editor-surface blockquote { margin: 20px 0; padding: 13px 17px; border-left: 4px solid var(--yellow-500); background: #fff9e9; color: var(--navy-700); }
.rich-editor-surface a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.rich-editor-surface figure { position: relative; margin: 24px 0; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--slate-100); }
.rich-editor-surface figure:focus-within, .rich-editor-surface figure:hover { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(10, 132, 232, .1); }
.rich-editor-surface figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: cover; object-position: center; background: var(--slate-200); }
.rich-editor-surface figcaption { padding: 9px 12px; color: var(--slate-500); font-size: 12px; text-align: center; }
.rich-editor-error { min-height: 18px; margin: 0; color: var(--red-600); font-size: 11px; font-weight: 700; }
.rich-media-dialog { width: min(1060px, calc(100% - 32px)); max-height: min(88dvh, 880px); padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: var(--white); color: var(--slate-950); box-shadow: 0 28px 80px rgba(2, 32, 57, .35); }
.rich-media-dialog::backdrop { background: rgba(2, 25, 46, .62); backdrop-filter: blur(4px); }
.rich-media-dialog-inner { max-height: min(88dvh, 880px); overflow: auto; }
.rich-media-heading { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--slate-200); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.rich-media-heading span { color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rich-media-heading h2 { margin: 4px 0; color: var(--navy-800); font-size: 23px; }
.rich-media-heading p, .rich-media-upload p, .rich-media-library-heading p { margin: 0; color: var(--slate-500); font-size: 11px; }
.rich-media-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--slate-300); border-radius: 11px; background: var(--slate-100); color: var(--navy-800); font-size: 25px; cursor: pointer; }
.rich-media-close:hover { border-color: #e2aaa5; background: #fff2f1; color: var(--red-600); }
.rich-media-upload { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, .8fr) minmax(220px, 1fr) auto; align-items: end; gap: 13px; margin: 20px 22px; padding: 17px; border: 1px solid #b9def3; border-radius: 14px; background: linear-gradient(135deg, #f5fbff, #eaf7ff); }
.rich-media-upload h3, .rich-media-library h3 { margin: 0 0 5px; color: var(--navy-800); font-size: 15px; }
.rich-media-upload label, .rich-media-library-heading label { font-size: 11px; }
.rich-media-upload input { min-height: 44px; padding: 8px 10px; font-size: 12px; }
.rich-media-status { grid-column: 1 / -1; min-height: 16px; margin: 0; color: var(--blue-600); font-size: 11px; font-weight: 700; }
.rich-media-library { padding: 0 22px 24px; }
.rich-media-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.rich-media-library-heading label { width: min(320px, 100%); }
.rich-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rich-media-item { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--slate-100); }
.rich-media-item > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--slate-200); }
.rich-media-item > div { min-width: 0; display: grid; gap: 3px; padding: 9px 10px; }
.rich-media-item strong, .rich-media-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rich-media-item strong { color: var(--navy-800); font-size: 11px; }
.rich-media-item small { color: var(--slate-500); font-size: 9px; }
.rich-media-item button { min-height: 44px; margin-top: auto; border: 0; border-top: 1px solid var(--slate-200); background: linear-gradient(135deg, #fff7d7, #ffe99a); color: #704d00; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.rich-media-item button:hover { background: linear-gradient(135deg, #ffefb5, #ffdc64); }
.slug-field { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.legacy-image-note { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px; border: 1px solid #f2d58a; border-radius: 12px; background: #fff9e8; color: #77540a; font-size: 12px; }
.legacy-image-note img { width: 82px; height: 46px; border-radius: 8px; object-fit: cover; }
.media-picker { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.media-picker legend { color: var(--navy-800); font-size: 14px; font-weight: 800; }
.media-picker > p { margin: 3px 0 10px; font-size: 11px; }
.media-choice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.media-choice-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.media-choice-card:hover { transform: translateY(-1px); }
.media-choice-card.is-selected { border-color: var(--yellow-500); box-shadow: 0 0 0 3px rgba(245, 181, 27, .14); }
.media-choice { position: relative; min-width: 0; flex: 1; overflow: hidden; border: 2px solid transparent; border-radius: 11px 11px 0 0; background: var(--white); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.media-choice:hover { border-color: var(--cyan-300); transform: translateY(-1px); }
.media-choice:has(input:checked) { border-color: var(--yellow-500); }
.media-choice input { position: absolute; z-index: 2; top: 7px; right: 7px; width: 20px; height: 20px; margin: 0; accent-color: var(--yellow-500); }
.media-choice img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.media-choice span { min-height: 42px; display: block; overflow: hidden; padding: 7px 8px; color: var(--slate-700); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; }
.media-choice-empty { min-height: 100%; display: grid; place-items: center; padding: 36px 10px 20px; border-radius: 11px; background: linear-gradient(135deg, var(--slate-100), var(--white)); text-align: center; }
.media-choice-action { min-height: 44px; padding: 8px 9px; border: 0; border-top: 1px solid var(--slate-200); background: var(--slate-100); color: var(--cyan-700); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease; }
.media-choice-action:hover { background: #eaf7ff; }
.media-choice-action.is-remove { background: #fff3f1; color: var(--red-600); }
.media-choice-action.is-remove:hover { background: #ffe6e2; }
.media-choice-action:focus-visible { position: relative; z-index: 3; outline: 3px solid rgba(20, 156, 243, .28); outline-offset: -3px; }
.media-selection-layout { display: grid; gap: 16px; }
.media-selection-block { padding: 16px; border: 1px solid var(--slate-200); border-radius: 14px; background: linear-gradient(145deg, #f7fbff, #fff); }
.media-selection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.media-selection-heading h3 { margin: 0 0 4px; color: var(--navy-800); font-size: 15px; }
.media-selection-heading p { margin: 0; color: var(--slate-500); font-size: 11px; }
.selected-media-preview { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.selected-media-preview-featured { grid-template-columns: minmax(0, 280px); }
.selected-media-card { position: relative; min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 54px 8px 8px; border: 1px solid #f0c45a; border-radius: 11px; background: #fffaf0; box-shadow: 0 5px 15px rgba(245, 181, 27, .1); }
.selected-media-card img { width: 72px; height: 41px; border-radius: 7px; object-fit: cover; background: var(--slate-200); }
.selected-media-card > div { min-width: 0; display: grid; gap: 3px; }
.selected-media-card strong, .selected-media-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-media-card strong { color: var(--navy-800); font-size: 10px; }
.selected-media-card small { color: #85621a; font-size: 9px; }
.selected-media-remove { width: 44px; height: 44px; position: absolute; top: 6px; right: 6px; border: 1px solid #edc5bf; border-radius: 8px; background: #fff3f1; color: var(--red-600); font-size: 18px; line-height: 1; cursor: pointer; }
.selected-media-remove:hover { background: #ffe5e0; }
.selected-media-remove:focus-visible { outline: 3px solid rgba(20, 156, 243, .25); outline-offset: 2px; }
.selected-media-empty { min-height: 90px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 9px; padding: 12px; border: 1px dashed var(--cyan-300); border-radius: 11px; background: rgba(20, 156, 243, .05); }
.selected-media-empty-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #ffd557, #f5a800); color: var(--navy-900); font-size: 22px; font-weight: 500; }
.selected-media-empty strong, .selected-media-empty small { grid-column: 2; }
.selected-media-empty strong { color: var(--navy-800); font-size: 11px; }
.selected-media-empty small { color: var(--slate-500); font-size: 10px; }
.media-picker-dialog { position: fixed; z-index: 120; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; display: grid; place-items: center; padding: 20px; overflow: auto; border: 0; background: rgba(2, 25, 46, .62); color: var(--slate-950); }
.media-picker-dialog[hidden] { display: none; }
.media-picker-open { overflow: hidden; }
.media-picker-dialog::backdrop { background: rgba(2, 25, 46, .62); backdrop-filter: blur(4px); }
.media-picker-dialog-inner { width: min(1050px, 100%); max-height: min(90dvh, 860px); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--white); box-shadow: 0 28px 80px rgba(2, 32, 57, .35); }
.media-picker-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid var(--slate-200); background: linear-gradient(135deg, #f7fcff, #fff); }
.media-picker-dialog-heading span { color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.media-picker-dialog-heading h2 { margin: 4px 0; color: var(--navy-800); font-size: 23px; }
.media-picker-dialog-heading p { margin: 0; color: var(--slate-500); font-size: 11px; }
.media-picker-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--slate-300); border-radius: 11px; background: var(--slate-100); color: var(--navy-800); font-size: 25px; cursor: pointer; }
.media-picker-close:hover { border-color: #e2aaa5; background: #fff2f1; color: var(--red-600); }
.media-picker-tabs { display: flex; gap: 6px; padding: 12px 22px 0; border-bottom: 1px solid var(--slate-200); background: var(--white); }
.media-picker-tab { min-height: 44px; padding: 8px 15px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--slate-500); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.media-picker-tab:hover, .media-picker-tab:focus-visible { color: var(--blue-600); }
.media-picker-tab.is-active { border-bottom-color: var(--yellow-500); color: var(--navy-800); }
.media-picker-panel { min-height: 0; flex: 1; overflow: auto; }
.media-picker-panel[hidden] { display: none; }
.media-picker-library-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px 22px 14px; }
.media-picker-library-toolbar h3 { margin: 0 0 4px; color: var(--navy-800); font-size: 15px; }
.media-picker-library-toolbar p { margin: 0; color: var(--slate-500); font-size: 11px; }
.media-picker-library-toolbar label { width: min(310px, 100%); display: grid; gap: 6px; color: var(--navy-800); font-size: 11px; font-weight: 750; }
.media-picker-library-toolbar input { min-height: 44px; padding: 8px 11px; font-size: 12px; }
.media-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 22px 20px; }
.media-picker-item { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--slate-100); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.media-picker-item:hover { transform: translateY(-1px); border-color: var(--cyan-300); }
.media-picker-item.is-selected { border-color: var(--yellow-500); box-shadow: 0 0 0 3px rgba(245, 181, 27, .16); }
.media-picker-image-button { position: relative; min-height: 44px; padding: 0; overflow: hidden; border: 0; background: var(--slate-200); cursor: pointer; }
.media-picker-image-button:focus-visible { outline: 3px solid rgba(20, 156, 243, .3); outline-offset: -3px; }
.media-picker-image-button img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.media-picker-check { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .9); color: transparent; font-size: 16px; font-weight: 900; box-shadow: 0 3px 9px rgba(0, 0, 0, .16); }
.media-picker-item.is-selected .media-picker-check { background: linear-gradient(135deg, #ffd557, #f5a800); color: var(--navy-900); }
.media-picker-item > div { min-width: 0; display: grid; gap: 3px; padding: 9px 10px 4px; }
.media-picker-item strong, .media-picker-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-picker-item strong { color: var(--navy-800); font-size: 11px; }
.media-picker-item small { color: var(--slate-500); font-size: 9px; }
.media-picker-state { min-height: 25px; display: block; padding: 3px 10px 8px; color: #8a6200; font-size: 9px; font-weight: 800; }
.media-upload-direct { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(220px, .8fr) minmax(240px, 1.1fr); gap: 16px; align-items: center; padding: 22px; }
.media-upload-direct-copy { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 24px; border: 2px dashed var(--cyan-300); border-radius: 15px; background: linear-gradient(145deg, rgba(20, 156, 243, .08), rgba(255, 255, 255, .75)); text-align: center; }
.media-upload-direct-copy h3 { margin: 0; color: var(--navy-800); font-size: 16px; }
.media-upload-direct-copy p { max-width: 250px; margin: 0; color: var(--slate-500); font-size: 11px; line-height: 1.55; }
.media-upload-direct-copy.is-dragging { border-color: var(--yellow-500); background: linear-gradient(145deg, rgba(255, 191, 35, .16), rgba(20, 156, 243, .08)); }
.media-upload-direct-form { display: grid; gap: 12px; }
.media-upload-direct-form label { display: grid; gap: 6px; color: var(--navy-800); font-size: 11px; font-weight: 750; }
.media-upload-direct-form input { min-height: 44px; padding: 8px 10px; font-size: 12px; }
.media-picker-upload-status { min-height: 20px; margin: 0; color: var(--blue-600); font-size: 10px; font-weight: 700; line-height: 1.45; }
.media-picker-upload-list { min-height: 130px; display: grid; align-content: start; gap: 8px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--slate-100); }
.media-picker-upload-list > p { margin: 20px 4px; color: var(--slate-500); font-size: 11px; text-align: center; }
.media-picker-upload-list span { min-width: 0; display: grid; gap: 3px; padding: 8px 10px; border: 1px solid var(--slate-200); border-radius: 9px; background: var(--white); }
.media-picker-upload-list strong, .media-picker-upload-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-picker-upload-list strong { color: var(--navy-800); font-size: 10px; }
.media-picker-upload-list small { color: var(--slate-500); font-size: 9px; }
.media-picker-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; border-top: 1px solid var(--slate-200); background: var(--white); color: var(--slate-500); font-size: 11px; }
.inline-upload { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 14px; padding: 16px; border: 1px solid var(--slate-200); border-radius: 14px; background: var(--slate-100); }
.image-dropzone { min-height: 228px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; border: 2px dashed var(--cyan-300); border-radius: 13px; background: linear-gradient(145deg, rgba(20, 156, 243, .07), rgba(255, 255, 255, .72)); color: var(--navy-800); text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.image-dropzone:hover, .image-dropzone.is-dragging { border-color: var(--yellow-500); background: linear-gradient(145deg, rgba(255, 191, 35, .15), rgba(20, 156, 243, .08)); box-shadow: 0 12px 30px rgba(5, 111, 180, .10); transform: translateY(-1px); }
.image-dropzone:focus-visible { outline: 3px solid rgba(20, 156, 243, .3); outline-offset: 3px; }
.image-dropzone.has-files { border-style: solid; }
.dropzone-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #ffd557, #f5a800); color: var(--navy-900); box-shadow: 0 10px 22px rgba(245, 168, 0, .22); }
.dropzone-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.image-dropzone strong { font-size: 14px; }
.image-dropzone > span:not(.dropzone-icon) { color: var(--slate-500); font-size: 12px; }
.image-dropzone small { color: var(--slate-500); font-size: 10px; }
.dropzone-browse { min-height: 44px; padding: 7px 6px; border: 0; background: transparent; color: var(--cyan-700); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.upload-preview-panel { min-width: 0; padding: 13px; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--white); }
.upload-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--slate-200); color: var(--navy-800); font-size: 12px; }
.upload-preview-heading span { color: var(--slate-500); font-size: 10px; font-weight: 700; }
.upload-preview-list { max-height: 292px; display: grid; gap: 8px; overflow: auto; padding-top: 10px; }
.upload-preview-item { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--slate-200); border-radius: 10px; background: var(--slate-100); }
.upload-preview-item img { width: 58px; height: 33px; border-radius: 7px; object-fit: cover; }
.upload-preview-item div { min-width: 0; display: grid; gap: 3px; }
.upload-preview-item strong { overflow: hidden; color: var(--navy-800); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-item small { color: var(--slate-500); font-size: 9px; }
.upload-preview-item button { width: 44px; height: 44px; border: 1px solid #f0c7c2; border-radius: 9px; background: #fff3f1; color: var(--red-600); font-size: 21px; cursor: pointer; }
.upload-preview-item button:hover { background: #ffe4df; }
.upload-empty { margin: 18px 4px; color: var(--slate-500); font-size: 11px; line-height: 1.6; text-align: center; }
.upload-status { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff3f1; color: var(--red-600); font-size: 10px; line-height: 1.45; }
.upload-alt-field, .check-row, .upload-library-note { grid-column: 1 / -1; }
.upload-library-note { margin: -2px 0 0; color: var(--slate-500); font-size: 10px; }
.check-row { grid-column: 1 / -1; display: flex !important; align-items: center; grid-template-columns: auto 1fr; font-size: 12px; }
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--yellow-500); }
.publish-card .button { margin: 14px 0 10px; }
.seo-card { display: grid; gap: 14px; }
.seo-preview { overflow: hidden; padding: 14px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-100); }
.seo-preview span { display: block; overflow: hidden; color: var(--green-600); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.seo-preview strong { display: block; margin: 5px 0; color: #1557a0; font-size: 17px; line-height: 1.35; }
.seo-preview p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--slate-700); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.seo-card label { font-size: 12px; }
.seo-card label small { color: var(--slate-500); font-size: 10px; text-align: right; }
.structured-card pre { max-height: 320px; overflow: auto; margin: 0; padding: 13px; border-radius: 10px; background: #08243d; color: #d8f3ff; font: 11px/1.65 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.settings-editor { max-width: 1180px; display: grid; gap: 18px; }
.settings-card { max-width: none; }
.settings-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.settings-form label, .settings-seo-fields label { display: grid; gap: 6px; }
.settings-form.one-column { grid-template-columns: 1fr; }
.settings-form .field-span-2 { grid-column: 1 / -1; }
.settings-seo-card { display: grid; gap: 22px; }
.settings-seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr); align-items: start; gap: 18px; }
.settings-seo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.settings-seo-fields label:nth-child(-n+2) { grid-column: 1 / -1; }
.settings-seo-fields small { color: var(--slate-500); font-size: 10px; text-align: right; }
.home-seo-preview { position: sticky; top: 92px; }
.homepage-media-picker { margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--slate-200); }
.homepage-media-selection { min-height: 148px; }
.homepage-media-selection .selected-media-preview-featured { grid-template-columns: minmax(0, 360px); }
.settings-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.settings-submit span { max-width: 680px; color: var(--slate-500); font-size: 11px; line-height: 1.6; }
.settings-submit .button { flex: 0 0 auto; }
.empty-state { padding: 28px; color: var(--slate-500); text-align: center; }
.admin-dark { --slate-100: #0c1b2a; --white: #11263a; --slate-950: #e9f1f8; --slate-700: #b6c6d5; --slate-500: #8da4b8; --slate-300: #2b4257; --slate-200: #1e364a; background: #081522; color: #e9f1f8; }
.admin-dark .admin-topbar { background: rgba(12, 27, 42, .95); }
.admin-dark input, .admin-dark select, .admin-dark textarea, .admin-dark .theme-toggle { background: #0b1d2d; color: #e9f1f8; }
.admin-dark .admin-card, .admin-dark .kpi-grid article { box-shadow: none; }

.notification-settings { display: grid; gap: 18px; }
.notification-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.notification-channel-card:first-child { grid-column: 1 / -1; }
.notification-toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.notification-toggle { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--slate-300); border-radius: 14px; background: var(--slate-50); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.notification-toggle:has(input:checked) { border-color: #f7b61e; background: linear-gradient(135deg, #fff9da, #fff0a8); box-shadow: 0 10px 24px rgba(244, 170, 17, .16); }
.notification-toggle:hover { transform: translateY(-1px); }
.notification-toggle input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #f3a712; }
.notification-toggle span { display: grid; gap: 4px; }
.notification-toggle strong { color: var(--navy-900); }
.notification-toggle small, .channel-help { color: var(--slate-600); }
.notification-channel-card { display: grid; align-content: start; gap: 16px; }
.notification-secret-state { color: #0d7d56 !important; font-weight: 700; }
.field-error { color: #b42318 !important; font-weight: 700; }
.notification-key-warning code { padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.75); }
.notification-save-bar { margin-top: 0; border: 1px solid #f5c241; border-radius: 14px; background: linear-gradient(135deg, #fff9df, #fff2bd); }
.notification-test-card { display: grid; gap: 14px; margin-top: 18px; }
.notification-test-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notification-status-list { display: grid; gap: 5px; min-width: 112px; }
.notification-status { width: max-content; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.notification-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.notification-status.is-success { background: #e8f8f1; color: #087553; }
.notification-status.is-failed { background: #fff0f0; color: #b42318; }
.notification-status.is-pending { background: #edf3f9; color: #62748a; }
.admin-dark .notification-toggle { background: rgba(255,255,255,.04); }
.admin-dark .notification-toggle:has(input:checked), .admin-dark .notification-save-bar { background: linear-gradient(135deg, rgba(255,193,44,.18), rgba(255,158,18,.1)); }

@media (max-width: 900px) {
  .notification-settings-grid, .notification-toggle-grid { grid-template-columns: 1fr; }
  .notification-channel-card:first-child { grid-column: auto; }
}
.admin-dark .media-choice, .admin-dark .media-choice-card, .admin-dark .media-admin-item, .admin-dark .seo-preview, .admin-dark .inline-upload, .admin-dark .upload-preview-panel, .admin-dark .media-selection-block, .admin-dark .media-picker-item, .admin-dark .media-picker-upload-list { background: var(--slate-100); }
.admin-dark .rich-editor-shell, .admin-dark .rich-editor-surface, .admin-dark .rich-media-dialog, .admin-dark .rich-media-item { background: var(--white); color: var(--slate-950); }
.admin-dark .rich-editor-toolbar { background: #0b1d2d; }
.admin-dark .rich-media-heading { background: rgba(17, 38, 58, .96); }
.admin-dark .rich-media-upload { border-color: #25506d; background: linear-gradient(135deg, #0b1d2d, #102d42); }
.admin-dark .media-picker-dialog, .admin-dark .media-picker-dialog-heading, .admin-dark .media-picker-tabs, .admin-dark .media-picker-dialog-footer, .admin-dark .media-picker-upload-list span { background: var(--white); }
.admin-dark .media-picker-dialog-heading { background: rgba(17, 38, 58, .96); }
.admin-dark .media-upload-direct-copy { background: linear-gradient(145deg, rgba(20, 156, 243, .13), rgba(12, 27, 42, .8)); }
.admin-dark .selected-media-card { background: #2a261b; }
.admin-dark .selected-media-empty { background: rgba(20, 156, 243, .1); }

@keyframes fade-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes energy-dash { to { stroke-dashoffset: -42; } }
@keyframes panel-scan {
  0%, 16% { opacity: 0; transform: translateX(0) skewX(-16deg); }
  42%, 62% { opacity: .75; }
  84%, 100% { opacity: 0; transform: translateX(174px) skewX(-16deg); }
}
@keyframes hero-card-enter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sun-breathe {
  0%, 100% { opacity: .72; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes sun-east-west {
  0%, 100% { opacity: 0; transform: translate3d(calc(var(--sun-east-x) - 50%), var(--sun-horizon-y), 0) scale(.84); }
  10% { opacity: 1; transform: translate3d(calc(var(--sun-east-x) - 50%), var(--sun-horizon-y), 0) scale(1); }
  42%, 58% { opacity: 1; transform: translate3d(calc(var(--sun-noon-x) - 50%), var(--sun-noon-y), 0) scale(1.05); }
  72% { opacity: 1; transform: translate3d(calc(var(--sun-west-x) - 50%), var(--sun-horizon-y), 0) scale(1); }
  82% { opacity: 0; transform: translate3d(calc(var(--sun-west-x) - 50%), var(--sun-horizon-y), 0) scale(.84); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .energy-pulse { stroke-dashoffset: 0; }
  .sun-system {
    opacity: 1;
    transform: translate3d(calc(var(--sun-noon-x) - 50%), var(--sun-noon-y), 0) scale(1);
    animation: none !important;
    will-change: auto;
  }
  .sun-system span { animation: none !important; }
}
@media (max-width: 1100px) {
  .primary-nav a { padding-inline: 7px; font-size: 11px; }
  .header-cta { display: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-primary { grid-row: auto; }
  .admin-app { grid-template-columns: 76px 1fr; }
  .admin-sidebar .brand > span:last-child, .admin-sidebar nav a { font-size: 0; }
  .admin-sidebar nav a { justify-content: center; }
  .admin-sidebar nav a::first-letter { font-size: 13px; }
}
@media (max-width: 900px) {
  .site-header { height: 85px; }
  .site-body .primary-nav { position: fixed; top: 0; right: 0; width: min(330px, 88vw); height: 100dvh; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; padding: 76px 14px 14px; background: linear-gradient(180deg, #064E3B, #047857); box-shadow: -18px 0 48px rgba(6, 78, 59, .3); transform: translateX(105%); transition: transform .22s ease; }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { min-height: 46px; padding: 11px 13px; font-size: 14px; }
  .mobile-menu { z-index: 2; display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .solar-visual { max-width: 690px; width: 100%; margin-inline: auto; }
  .option-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lead-card { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-app { display: block; }
  .admin-sidebar { position: fixed; left: 0; top: 0; width: 268px; transform: translateX(-105%); transition: transform .2s ease; }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar .brand > span:last-child { display: grid; }
  .admin-sidebar nav a { justify-content: space-between; font-size: 13px; }
  .admin-menu-button { display: block; }
  .admin-search { display: none; }
  .admin-grid-2, .content-admin { grid-template-columns: 1fr; }
  .content-editor { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; }
  .settings-seo-grid { grid-template-columns: 1fr; }
  .home-seo-preview { position: static; }
  .rich-media-upload { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rich-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .media-upload-direct { grid-template-columns: 1fr 1fr; }
  .media-upload-direct-copy { grid-row: span 2; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand { min-width: 0; }
  .brand strong { max-width: 190px; overflow: hidden; font-size: 15px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
  .trust-grid { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; padding: 8px 0; }
  .trust-grid span { min-width: 0; align-items: flex-start; justify-content: flex-start; gap: 6px; font-size: 9.5px; line-height: 1.25; }
  .trust-grid span::before { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 2px; border-width: 1.5px; box-shadow: 0 0 0 3px rgba(16, 185, 129, .09); }
  .hero { padding: 48px 0; }
  .hero-grid { min-height: auto; gap: 32px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy > p { font-size: 16px; }
  .hero-points { gap: 8px 12px; }
  .hero-points span { font-size: 12px; }
  .hero-points span::before { margin-right: 5px; }
  .hero-actions { display: grid; }
  .solar-visual { min-height: 410px; border-radius: 22px; }
  .sun-system {
    --sun-east-x: -126px;
    --sun-noon-x: 36px;
    --sun-west-x: 126px;
    --sun-horizon-y: 100px;
    --sun-noon-y: 24px;
    top: 0;
    left: 50%;
    width: 62px;
    height: 62px;
  }
  .compass-axis { top: 150px; left: 7%; right: 6%; }
  .solar-array { top: 204px; left: 51%; width: 212px; }
  .visual-card { min-width: 164px; gap: 7px; padding: 8px 9px; }
  .visual-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
  .visual-icon svg { width: 17px; height: 17px; }
  .visual-card small { font-size: 8px; }
  .visual-card strong { font-size: 10px; }
  .card-production { top: 21px; left: 6px; }
  .card-inverter { top: 163px; right: 3px; }
  .card-efficiency { top: 246px; right: 3px; }
  .card-storage { right: 14px; bottom: 13px; }
  .system-status { left: 8px; bottom: 15px; max-width: 185px; flex-wrap: wrap; gap: 5px; border-radius: 14px; line-height: 1.25; }
  .quote-section, .projects-section, .services-section, .process-section, .catalog-section, .static-section { padding: 52px 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .wizard-panel, .estimate-result, .lead-card { padding: 18px 14px; }
  .wizard-step-heading { align-items: flex-start; }
  .option-grid .option-card { min-height: 120px; }
  .wizard-step[data-key="roofType"] .option-card { min-height: 154px; }
  .option-icon.option-icon-3d { width: 68px; height: 68px; }
  .option-grid-2, .option-grid-3, .option-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .wizard-step[data-key="billBand"] .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-heading { flex-direction: column; }
  .result-grid { grid-template-columns: 1fr; }
  .result-primary { grid-row: auto; }
  .project-grid, .process-grid, .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .quick-contact {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 -8px 24px rgba(6, 78, 59, .1);
    backdrop-filter: blur(12px);
  }
  .quick-contact-link {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    justify-content: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(6, 78, 59, .2);
  }
  .quick-contact-icon { width: 36px; height: 36px; flex: 0 0 36px; }
  .quick-contact-link > span:last-child { min-width: 0; }
  .quick-contact-link strong { font-size: 12px; }
  .quick-contact-link small { font-size: 10px; white-space: nowrap; }
  .admin-topbar { flex-wrap: wrap; padding: 9px 12px; }
  .admin-user { margin-left: auto; }
  .admin-user small { display: none; }
  .admin-content { padding: 18px 12px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid article { padding: 14px; }
  .kpi-grid strong { font-size: 27px; }
  .card-heading { align-items: stretch; flex-direction: column; }
  .filter-form { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-form input, .filter-form select { width: 100%; }
  .settings-form { grid-template-columns: 1fr; }
  .settings-seo-fields { grid-template-columns: 1fr; }
  .settings-seo-fields label { grid-column: auto !important; }
  .settings-submit { align-items: stretch; flex-direction: column; }
  .settings-submit .button { width: 100%; }
  .rich-editor-toolbar { align-items: stretch; flex-wrap: nowrap; overflow-x: auto; }
  .rich-toolbar-group { flex: 0 0 auto; }
  .rich-editor-surface { min-height: 380px; padding: 16px; }
  .rich-media-dialog { width: calc(100% - 16px); max-height: 94dvh; border-radius: 16px; }
  .rich-media-dialog-inner { max-height: 94dvh; }
  .rich-media-heading { padding: 16px; }
  .rich-media-heading h2 { font-size: 19px; }
  .rich-media-upload { grid-template-columns: 1fr; margin: 14px 16px; padding: 14px; }
  .rich-media-status { grid-column: auto; }
  .rich-media-library { padding: 0 16px 18px; }
  .rich-media-library-heading { align-items: stretch; flex-direction: column; }
  .rich-media-library-heading label { width: 100%; }
  .rich-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-picker-dialog { padding: 8px; }
  .media-picker-dialog-inner { max-height: 94dvh; border-radius: 16px; }
  .media-picker-dialog-heading { padding: 16px; }
  .media-picker-dialog-heading h2 { font-size: 19px; }
  .media-picker-tabs { padding-inline: 16px; }
  .media-picker-library-toolbar { align-items: stretch; flex-direction: column; padding: 16px 16px 12px; }
  .media-picker-library-toolbar label { width: 100%; }
  .media-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 16px; }
  .media-upload-direct { grid-template-columns: 1fr; padding: 16px; }
  .media-upload-direct-copy { grid-row: auto; min-height: 210px; }
  .media-picker-dialog-footer { padding-inline: 16px; }
  .selected-media-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-media-preview-featured { grid-template-columns: minmax(0, 1fr); }
  .homepage-media-picker .media-selection-heading { align-items: stretch; flex-direction: column; }
  .homepage-media-picker .media-selection-heading .button { width: 100%; min-height: 46px; }
  .media-upload-form, .inline-upload { grid-template-columns: 1fr; }
  .check-row { grid-column: auto; }
  .upload-alt-field, .upload-library-note { grid-column: auto; }
  .media-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slug-field { grid-template-columns: 1fr; }
  .slug-field .button { width: max-content; }
  .content-gallery > div { grid-template-columns: 1fr; }
  .gallery-lightbox { padding: 8px; }
  .gallery-lightbox-header { margin-inline: 6px; }
  .gallery-lightbox-header h2 { font-size: 14px; }
  .gallery-lightbox-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 7px; }
  .gallery-lightbox-control { width: 44px; height: 44px; border-radius: 12px; }
  .gallery-lightbox-stage figure { border-radius: 13px; }
  .gallery-lightbox-stage figcaption { min-height: 44px; padding: 10px 12px; font-size: 12px; }
  .gallery-lightbox-help { margin-inline: 52px; }
}
@media (max-width: 390px) {
  .brand small { display: none; }
  .hero-copy h1 { font-size: 36px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid span { font-size: 9px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .media-admin-grid, .media-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-media-preview { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-image-button img, .media-admin-preview img, .gallery-zoom-icon, .gallery-lightbox, .gallery-lightbox-shell, .gallery-lightbox-control { transition: none; }
  .quick-contact-call { animation: none; }
  .quick-contact-link { transition: none; }
  .partners-track { animation-play-state: paused; }
}

/* Partner logos */
.partners-section {
  overflow: hidden;
  padding: 72px 0 80px;
  background: #fff;
}
.partners-heading {
  margin-bottom: 32px;
  text-align: center;
}
.partners-heading h2 {
  margin: 8px 0 10px;
}
.partners-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}
.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.partners-marquee::before,
.partners-marquee::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: min(9vw, 120px);
  content: "";
  pointer-events: none;
}
.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}
.partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}
.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 42s linear infinite;
  will-change: transform;
}
.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}
.partners-list {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
  padding-right: 22px;
}
.partner-logo-card {
  display: grid;
  width: 190px;
  height: 112px;
  flex: 0 0 190px;
  place-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(20, 91, 58, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 60, 40, 0.08);
}
.partner-logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@keyframes partners-scroll {
  to { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .partners-section { padding: 52px 0 60px; }
  .partners-heading { margin-bottom: 24px; padding-inline: 20px; }
  .partners-list { gap: 14px; padding-right: 14px; }
  .partner-logo-card { width: 154px; height: 94px; flex-basis: 154px; padding: 14px 18px; border-radius: 14px; }
  .partners-track { animation-duration: 34s; }
}
