:root {
  --ink: #0b1528;
  --muted: #667085;
  --line: #dfe5ec;
  --surface: #ffffff;
  --canvas: #f3f6f9;
  --red: #fd433d;
  --red-dark: #da2f2a;
  --blue: #2357d8;
  --green: #16845b;
  --shadow: 0 24px 70px rgba(9, 21, 43, .11);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; color: var(--ink); background:
    radial-gradient(circle at 82% -4%, rgba(253,67,61,.11), transparent 27rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 48px; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; }
.brand img { display: block; width: 148px; height: auto; }
.secure-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 999px; color: #3d4b61; font-size: 13px; font-weight: 700; }
.secure-pill span { color: var(--green); font-size: 10px; }
.hero { max-width: 800px; padding: 62px 0 44px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--red); font-style: normal; }
.intro { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.shop { margin-bottom: 28px; }
.shop-heading { align-items: center; margin-bottom: 22px; }
.catalog-tools { display: flex; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; min-width: 220px; height: 44px; padding: 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.search-box span { color: #7c899a; font-size: 22px; transform: rotate(-15deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.catalog-tools select { height: 44px; padding: 0 34px 0 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 650px; padding-right: 6px; overflow: auto; scrollbar-color: #cbd3dd transparent; }
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 92px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.product-info { min-width: 0; }
.product-category { display: block; margin-bottom: 5px; color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { margin: 0; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 1.3; text-overflow: ellipsis; }
.product-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.product-action { text-align: right; }
.product-action strong { display: block; margin-bottom: 8px; font-size: 17px; }
.add-product { min-width: 74px; min-height: 34px; border: 0; border-radius: 9px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 850; transition: background .15s, transform .1s; }
.add-product:hover { background: var(--red); }
.add-product:active { transform: scale(.97); }
.no-products { grid-column: 1 / -1; padding: 50px 20px; color: var(--muted); text-align: center; }
.cart { position: sticky; top: 18px; overflow: hidden; background: #0c172b; border-radius: 20px; box-shadow: 0 20px 50px rgba(8,18,36,.16); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; color: white; }
.cart-head span:first-child { color: #94a3b8; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.cart-head h3 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.03em; }
.cart-count { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--red); border-radius: 50%; font-size: 13px; font-weight: 900; }
.cart-items { max-height: 430px; overflow: auto; padding: 0 14px; }
.empty-cart { margin: 0; padding: 45px 10px; color: #8593a8; text-align: center; font-size: 13px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 8px; border-top: 1px solid rgba(255,255,255,.09); color: white; }
.cart-item h4 { margin: 0; font-size: 13px; line-height: 1.3; }
.cart-item small { display: block; margin-top: 4px; color: #91a0b7; font-size: 10px; }
.cart-item-price { text-align: right; }
.cart-item-price strong { display: block; font-size: 13px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-control button { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 7px; }
.qty-control span { min-width: 15px; text-align: center; font-size: 12px; font-weight: 800; }
.cart-footer { margin-top: 12px; padding: 18px 22px 22px; color: white; background: rgba(255,255,255,.055); }
.cart-footer > div { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.cart-footer span { color: #9ba9bc; font-size: 11px; font-weight: 700; }
.cart-footer strong { font-size: 27px; letter-spacing: -.04em; }
.cart-footer button { width: 100%; min-height: 40px; margin-top: 15px; color: #d1d8e2; background: transparent; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; font-size: 12px; font-weight: 800; }
.cart-footer button:disabled { cursor: not-allowed; opacity: .38; }
.money-input input:read-only { color: #344054; cursor: default; }
.calculator { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); overflow: hidden; background: var(--surface); border: 1px solid rgba(9,21,43,.08); border-radius: 28px; box-shadow: var(--shadow); }
.input-panel { padding: 34px; }
.field-block label, .settings-row label { display: block; margin-bottom: 10px; color: #344054; font-size: 14px; font-weight: 800; }
.money-input { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 82px; padding: 0 22px; border: 2px solid #cfd7e3; border-radius: 18px; transition: border-color .16s, box-shadow .16s; }
.money-input:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(253,67,61,.12); }
.money-input > span { color: var(--red); font-size: 34px; font-weight: 900; }
.money-input input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: clamp(34px, 6vw, 52px); font-weight: 850; letter-spacing: -.04em; }
.money-input strong { color: var(--muted); font-size: 14px; }
.field-block small { display: block; margin-top: 9px; color: #8490a3; font-size: 12px; }
.rate-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px 22px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 18px; }
.rate-label { display: block; color: #5e6b7e; font-size: 13px; font-weight: 700; }
.rate-line { margin: 5px 0 2px; }
.rate-line strong { font-size: 28px; letter-spacing: -.03em; }
.rate-line span { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 800; }
.rate-card small { color: #7a8798; font-size: 11px; }
.icon-button { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #ccd5e1; border-radius: 50%; color: var(--blue); background: #fff; font-size: 25px; transition: transform .16s, border-color .16s; }
.icon-button:hover { border-color: var(--blue); transform: rotate(30deg); }
.icon-button:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(35,87,216,.3); outline-offset: 2px; }
.icon-button.loading { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.manual-rate { margin-top: 14px; border-bottom: 1px solid var(--line); }
.manual-rate summary { width: fit-content; padding: 8px 0 16px; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.manual-row { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 10px; padding: 2px 0 18px; }
.manual-row label { grid-column: 1 / -1; color: #667085; font-size: 12px; font-weight: 700; }
.manual-row > div, .settings-row > div { display: flex; align-items: center; overflow: hidden; border: 1px solid #cfd7e3; border-radius: 10px; background: #fff; }
.manual-row input, .settings-row input { width: 100%; min-width: 0; padding: 11px 12px; border: 0; outline: 0; background: transparent; }
.manual-row span, .settings-row span { padding-right: 12px; color: #667085; font-size: 13px; font-weight: 800; }
.manual-row button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; color: white; background: var(--ink); font-weight: 800; }
.settings-row { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 16px; margin-top: 18px; }
.settings-row label { margin: 0; }
.settings-row label small { display: inline; margin-left: 5px; color: #8490a3; font-size: 11px; font-weight: 650; }
.summary-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px; color: #fff; background: linear-gradient(145deg, #0b172d 0%, #121f38 100%); position: relative; isolation: isolate; }
.summary-panel::after { content: "€"; position: absolute; right: -22px; bottom: -95px; z-index: -1; color: rgba(255,255,255,.045); font-size: 340px; font-weight: 900; line-height: 1; }
.summary-panel > span { color: #aebbd0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.summary-panel > strong { margin: 14px 0 8px; color: white; font-size: clamp(42px, 7vw, 66px); line-height: 1; letter-spacing: -.055em; }
.summary-panel small { color: #93a2b9; font-size: 13px; }
.results { padding: 84px 0 32px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.section-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--muted); line-height: 1.5; }
.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.payment-card { position: relative; overflow: hidden; min-height: 210px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.payment-card:hover { transform: translateY(-3px); border-color: #c5ceda; box-shadow: 0 16px 35px rgba(11,21,40,.08); }
.payment-card.featured { color: white; background: var(--red); border-color: var(--red); }
.payment-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-card h3 { margin: 0; font-size: 17px; }
.cost-badge { padding: 6px 9px; border-radius: 999px; color: var(--red-dark); background: #fff0ef; font-size: 12px; font-weight: 900; }
.featured .cost-badge { color: #fff; background: rgba(255,255,255,.18); }
.monthly { margin: 34px 0 4px; color: var(--muted); font-size: 13px; }
.featured .monthly { color: rgba(255,255,255,.74); }
.monthly strong { display: block; margin-top: 5px; color: var(--ink); font-size: clamp(27px, 3vw, 36px); letter-spacing: -.04em; }
.featured .monthly strong { color: #fff; }
.total { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.featured .total { color: rgba(255,255,255,.76); border-color: rgba(255,255,255,.24); }
.total strong { color: var(--ink); font-size: 15px; }
.featured .total strong { color: #fff; }
.tax-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.featured .tax-line { color: rgba(255,255,255,.76); }
.tax-line strong { color: var(--ink); font-size: 13px; }
.featured .tax-line strong { color: #fff; }
.final-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -12px -12px; padding: 15px 12px; color: #475467; background: #f2f5f8; border-radius: 12px; }
.final-total span { max-width: 74px; font-size: 10px; font-weight: 900; line-height: 1.25; letter-spacing: .08em; }
.final-values { text-align: right; }
.final-total strong { display: block; color: var(--ink); font-size: clamp(21px, 2.5vw, 28px); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.final-total small { display: block; margin-top: 7px; color: #7c899a; font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.featured .final-total { color: rgba(255,255,255,.82); background: rgba(5,15,31,.24); }
.featured .final-total strong { color: #fff; }
.featured .final-total small { color: rgba(255,255,255,.7); }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 28px 0 10px; border-top: 1px solid #dce2e9; color: #7a8798; font-size: 12px; line-height: 1.6; }
footer p { max-width: 700px; margin: 0; }
footer a { color: var(--blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
@media (max-width: 820px) {
  .hero { padding-top: 34px; }
  .calculator { grid-template-columns: 1fr; }
  .summary-panel { min-height: 260px; padding: 34px; }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .shop-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1180px); }
  .topbar { height: 82px; }
  .brand img { width: 118px; }
  .secure-pill { padding: 8px 10px; font-size: 11px; }
  .hero { padding-bottom: 30px; }
  .catalog-tools { width: 100%; flex-direction: column; }
  .search-box { width: 100%; min-width: 0; }
  .catalog-tools select { width: 100%; }
  .product-grid { grid-template-columns: 1fr; max-height: 540px; }
  .input-panel { padding: 20px; }
  .money-input { min-height: 72px; padding: 0 16px; }
  .manual-row { grid-template-columns: 1fr auto; }
  .manual-row button { grid-column: 1 / -1; }
  .settings-row { grid-template-columns: 1fr 105px; }
  .summary-panel { min-height: 220px; padding: 28px 22px; }
  .results { padding-top: 58px; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-card { min-height: 190px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
