:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  background: #06182e;
  scroll-behavior: smooth;
  --red: #e31932;
  --red-dark: #a50921;
  --gold: #ffcc73;
  --panel-border: #87b5ff3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 70% 10%, #194c85 0%, transparent 30%),
              linear-gradient(180deg, #071b38, #071329 55%, #0a2344);
}
a { color: inherit; }
p a, .muted a, .legal a, .crumbs a { color: #ffd59a; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1160px; margin: auto; padding: 0 22px; }
.center { text-align: center; }
.muted { font-size: 13px; color: #b2c8e5; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #071b38; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: #06172eee; backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff22; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo img { display: block; height: 56px; width: auto; }
.navlinks { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: #ffb7bc; }
.sal-mini { font-size: 12px; border: 1px solid #ffffff44; padding: 4px 8px; border-radius: 6px; }
.pill, .btn {
  display: inline-block; border: 0; border-radius: 14px; padding: 13px 19px; text-decoration: none;
  background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; font-weight: 800;
  box-shadow: 0 8px 24px #d8173450;
}
.btn:hover, .pill:hover { filter: brightness(1.1); }
.btn.secondary { background: #102d56; border: 1px solid #a3c8ff; box-shadow: none; }
.badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 20px; background: #fff; color: #b0102a; font-size: 13px; text-align: center; }
.deadline { background: linear-gradient(90deg, #0f5132, #146c43, #0f5132); text-align: center; padding: 8px 14px; font-size: 14px; }
.deadline strong { color: #ffe08a; }
.deadline-left { display: inline-block; margin-left: 8px; background: #ffffff22; padding: 2px 10px; border-radius: 20px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 75% 40%, #2a1f5c 0%, transparent 45%), linear-gradient(180deg, #071b38, #0a2650);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero .copy { max-width: 560px; }
.hero-art { width: 100%; border-radius: 22px; box-shadow: 0 20px 50px #0008; border: 1px solid #ffffff22; }
.eyebrow { color: #ffd27b; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(34px, 5.5vw, 64px); line-height: 1.06; margin: 14px 0 20px; letter-spacing: -.03em; }
h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 25px #ff7c33; }
p { line-height: 1.6; color: #d6e4f5; }
.hero p { font-size: 18px; max-width: 480px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 25px 0; }
.features { display: flex; gap: 17px; flex-wrap: wrap; color: #d7e7ff; font-size: 13px; list-style: none; padding: 0; margin: 0; }
.snow {
  pointer-events: none; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(#fff9 1px, transparent 2px), radial-gradient(#fff6 1px, transparent 2px);
  background-size: 57px 59px, 91px 97px;
  animation: snow 18s linear infinite;
}
@keyframes snow { to { background-position: 0 590px, 40px 970px; } }
@media (prefers-reduced-motion: reduce) { .snow { animation: none; } :root { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: 55px 0; }
h2 { font-size: clamp(26px, 3.5vw, 38px); text-align: center; margin: 0 0 12px; }
h2.left, .panel h2 { text-align: left; }
.subtitle { text-align: center; margin: 0 auto 30px; max-width: 650px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.card, .panel {
  border: 1px solid var(--panel-border); border-radius: 18px;
  background: linear-gradient(145deg, #123a68b8, #0c2143e8); box-shadow: 0 14px 30px #0002; overflow: hidden;
}
.service { padding: 24px; text-align: center; }
.service .emoji { font-size: 35px; }
.service h3 { margin: 12px 0 7px; }
.service p { font-size: 14px; margin: 0; }
.panel { padding: 24px; }
.panel h2 { font-size: 27px; }

/* ---------- Products ---------- */
.category-nav { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 20px 0 28px; }
.category-nav a { background: #173c68; padding: 9px 15px; border-radius: 25px; border: 1px solid #7299c777; text-decoration: none; }
.category-nav a:hover { background: #1f4f88; }
.category-title { margin: 30px 0 15px; font-size: 23px; scroll-margin-top: 130px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.product { background: #f6f8ff; color: #11213d; border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .15s, box-shadow .15s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #0006; }
.product img { width: 100%; height: 170px; object-fit: cover; background: #1c3151; display: block; }
.product .info { padding: 13px; display: flex; flex: 1; flex-direction: column; }
.product h4 { font-size: 16px; margin: 0; }
.product h4 a { text-decoration: none; color: inherit; }
.product h4 a:hover { color: #b0102a; }
.product p { color: #425270; font-size: 13px; line-height: 1.4; flex: 1; }
.price-row strong { color: #c20d2b; font-size: 22px; }
.price-row del { font-size: 13px; color: #6b7285; margin-left: 4px; }
.product button { margin-top: 10px; width: 100%; border-radius: 10px; padding: 10px; border: 0; background: #bd0f2a; color: #fff; font-weight: 800; }
.product button:hover { background: #d4142f; }
.tag { position: absolute; top: 9px; right: 9px; z-index: 1; background: #d10c2a; color: #fff; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; }

/* ---------- Product page ---------- */
.crumbs { font-size: 14px; margin-bottom: 18px; color: #b2c8e5; }
.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.product-photo { position: relative; border-radius: 18px; overflow: hidden; background: #1c3151; }
.product-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.product-page h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 0; }
.big-price { font-size: 32px; font-weight: 900; color: var(--gold); margin: 0 0 8px; }
.big-price del { font-size: 18px; color: #9fb3cf; font-weight: 400; }
.product-page form { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: #d6e4f5; }
.related-title { margin-top: 50px; }

/* ---------- Forms ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { display: grid; gap: 6px; margin: 12px 0; }
label { font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #86a6d080; border-radius: 10px; background: #071d3b; color: #fff; }
input:focus, textarea:focus, select:focus { border-color: #f7c57c; outline: 2px solid #f7c57c55; }
[aria-invalid="true"] { border-color: #ff6b7a; }
.error { color: #ff9aa5; font-size: 13px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: #d6e4f5; margin: 14px 0 6px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.price { font-size: 35px; font-weight: 900; color: var(--gold); }
.steps { display: grid; gap: 15px; }
.step { padding: 15px; background: #ffffff0d; border-radius: 12px; }
.step b { color: #ffcb7b; }
.panel .btn { margin-top: 10px; }

/* ---------- Cart ---------- */
.cart-row { display: grid; grid-template-columns: 1fr auto 110px auto; align-items: center; gap: 12px; border-bottom: 1px solid #ffffff20; padding: 12px 0; }
.cart-row form { display: inline; margin: 0; }
.cart-qty { display: inline-flex; align-items: center; gap: 6px; }
.qty { min-width: 26px; text-align: center; font-weight: 700; }
.qty-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #86a6d080; background: #102d56; color: #fff; font-weight: 800; }
.cart-sub { text-align: right; font-weight: 700; }
.small { background: #aa1730; border: 0; border-radius: 8px; color: #fff; padding: 7px 10px; }
.cart-total { font-size: 20px; text-align: right; }
.cart-total strong { color: var(--gold); }
.link-btn { background: none; border: 0; color: #b2c8e5; text-decoration: underline; padding: 0; font-size: 13px; }
.order-form { margin-top: 26px; padding-top: 20px; border-top: 1px solid #ffffff26; max-width: 720px; }
.order-form h3 { margin: 0 0 4px; font-size: 22px; }

.alert { background: #164f43; border: 1px solid #7fe1c4; padding: 12px 14px; border-radius: 12px; margin: 18px 0; }
.alert-err { background: #5a1621; border-color: #ff8a98; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 20px; color: #b5c8e3; border-top: 1px solid #ffffff22; margin-top: 30px; background: #051226; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.footer a { color: #d6e4f5; }
.copyright { text-align: center; font-size: 12px; margin: 24px 0 0; color: #8ea3c2; }
.sal { display: inline-block; margin-top: 8px; text-decoration: none; }
.sal-fallback { display: inline-flex; align-items: center; gap: 8px; width: 250px; height: 50px; padding: 0 10px; background: #fff; color: #003a7a; border-radius: 4px; font-size: 12px; line-height: 1.2; }
.sal-fallback b { background: #003a7a; color: #fff; padding: 4px 6px; border-radius: 3px; }

.legal .panel { max-width: 860px; margin: auto; }
.legal h2 { font-size: 21px; margin-top: 26px; }
.legal li { line-height: 1.6; color: #d6e4f5; margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .product-page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { max-width: 560px; }
  .navlinks { order: 3; width: 100%; justify-content: center; padding-bottom: 12px; }
}
@media (max-width: 550px) {
  .site-header { position: static; }
  .logo img { height: 44px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product img { height: 130px; }
  .cards { gap: 10px; }
  .service { padding: 16px; }
  .navlinks { gap: 12px; font-size: 14px; }
  .section { padding: 40px 0; }
  .grid2, .footer-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 1fr auto; }
  .cart-sub { text-align: left; }
  .deadline { font-size: 13px; }
}

/* ============================================================
   DREAMY SKY — ninsoare pe tot site-ul, aurore, stele, atmosferă
   ============================================================ */

/* Fundal de bază, fix, mai bogat */
html { background: #050d1f; }
body {
  background:
    linear-gradient(180deg, #071226 0%, #0a1f3e 42%, #0b2546 68%, #061125 100%);
  background-attachment: fixed;
}

/* Stratul „cer" acoperă tot ecranul, în spatele conținutului */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky > * { position: absolute; inset: 0; display: block; }

/* Conținutul stă deasupra cerului */
.site-header { z-index: 30; }
main, .footer { position: relative; z-index: 1; }

/* Aurore difuze care plutesc lent */
.sky .aurora {
  background:
    radial-gradient(42% 38% at 16% 20%, rgba(56,163,189,.30), transparent 70%),
    radial-gradient(38% 34% at 84% 26%, rgba(123,86,201,.28), transparent 70%),
    radial-gradient(52% 46% at 72% 82%, rgba(214,118,74,.18), transparent 72%),
    radial-gradient(40% 40% at 24% 78%, rgba(45,129,171,.20), transparent 72%);
  filter: blur(14px);
  transform: translate3d(0,0,0);
  animation: aurora-drift 46s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  to   { transform: translate3d(2%,  2%, 0) scale(1.14); }
}

/* Stele fine care clipesc */
.sky .stars {
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 28% 42%, #cfe3ff, transparent 60%),
    radial-gradient(1.4px 1.4px at 64% 12%, #fff, transparent 60%),
    radial-gradient(1px 1px at 83% 38%, #dbe8ff, transparent 60%),
    radial-gradient(1.2px 1.2px at 46% 66%, #fff, transparent 60%),
    radial-gradient(1px 1px at 74% 72%, #cfe3ff, transparent 60%),
    radial-gradient(1px 1px at 8% 80%, #fff, transparent 60%);
  opacity: .5;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .3; } to { opacity: .6; } }

/* Ninsoare — două straturi, parallax */
.sky .snow-far, .sky .snow-near { will-change: background-position; }
.sky .snow-far {
  background-image:
    radial-gradient(1.5px 1.5px at 40px 20px, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 100px 90px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 135px 150px, rgba(255,255,255,.7), transparent 60%);
  background-size: 170px 190px;
  opacity: .55;
  animation: snow-far 34s linear infinite;
}
.sky .snow-near {
  background-image:
    radial-gradient(3px 3px at 24px 30px, #fff, transparent 60%),
    radial-gradient(2px 2px at 90px 130px, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(2.6px 2.6px at 170px 70px, rgba(255,255,255,.92), transparent 60%);
  background-size: 210px 230px;
  opacity: .8;
  filter: drop-shadow(0 0 6px rgba(188,216,255,.45));
  animation: snow-near 16s linear infinite;
}
@keyframes snow-far  { to { background-position: 170px 190px, 170px 190px, 170px 190px; } }
@keyframes snow-near { to { background-position: 210px 230px, 210px 230px, 210px 230px; } }

@media (prefers-reduced-motion: reduce) {
  .sky .aurora, .sky .stars, .sky .snow-far, .sky .snow-near { animation: none; }
}

/* Mai mult loc pe ecrane mari + atmosferă care umple laturile */
.container { max-width: 1320px; }
@media (min-width: 1700px) { .container { max-width: 1480px; } }

/* Hero-ul lasă aurora să transpară + glow pe imagine */
.hero { background:
    radial-gradient(60% 55% at 78% 38%, rgba(42,31,92,.55), transparent 60%),
    linear-gradient(180deg, rgba(7,27,56,.6), rgba(10,38,80,.45)); }
.hero-art { box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 60px rgba(120,160,255,.18); }

/* Panouri și carduri — sticlă mai luminoasă, relief mai cald */
.card, .panel {
  background: linear-gradient(145deg, rgba(20,58,104,.78), rgba(10,30,60,.9));
  box-shadow: 0 22px 55px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.service { transition: transform .18s ease, box-shadow .18s ease; }
.service:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.45), 0 0 40px rgba(94,150,255,.14); }

/* Titluri cu o aură blândă */
h1 em { text-shadow: 0 0 28px rgba(255,124,51,.55), 0 0 60px rgba(255,170,90,.25); }
h2 { text-shadow: 0 0 34px rgba(125,183,255,.18); }
.eyebrow { text-shadow: 0 0 20px rgba(255,210,123,.35); }

/* Produsele capătă puțin glow la hover */
.product:hover { box-shadow: 0 16px 36px rgba(0,0,0,.5), 0 0 26px rgba(120,160,255,.18); }
