:root {
  --navy: #0b1f3a;
  --blue: #0a6cc9;
  --sky: #3aa0ef;
  --mist: #eef4fa;
  --stone: #f6f5f2;
  --line: #e1e6ee;
  --muted: #5d6a7c;
  --grout: rgba(255,255,255,.75);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16.5px/1.65 var(--font); color: var(--navy); background: #fff; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.eyebrow.light { color: var(--sky); }
.btn { display: inline-block; font: 700 .98rem var(--font); text-decoration: none; background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 999px; padding: 13px 24px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); border-color: var(--mist); color: var(--navy); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* top bar + header */
.topbar { background: var(--navy); color: #d7e3f2; font-size: .82rem; font-weight: 600; }
.topbar-in { display: flex; justify-content: space-between; gap: 6px 20px; padding: 8px 20px; flex-wrap: wrap; }
.topbar-in span::before { content: '✓'; color: var(--sky); margin-right: 7px; }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 30px; height: 78px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); }
.cart { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); color: var(--navy); }
.cart b { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; border-radius: 11px; background: var(--blue); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px; transition: transform .2s; }
.cart b.bump { transform: scale(1.35); }

/* hero */
.hero { padding: 54px 0 80px; background: linear-gradient(180deg, var(--mist), #fff); }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 22px 0 30px; max-width: 32em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.room-wrap { background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 30px 70px rgba(11,31,58,.14); }
.room { position: relative; aspect-ratio: 400 / 330; border-radius: 16px; overflow: hidden; }
.wall { position: absolute; inset: 0; background: var(--pattern, #eee); background-size: var(--psz, var(--sz, 60px 60px)); }
.wall::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, var(--grout) 1.5px, transparent 1.5px), linear-gradient(to bottom, var(--grout) 1.5px, transparent 1.5px); background-size: var(--sz, 60px 60px); }
.fixtures { position: absolute; inset: 0; width: 100%; height: 100%; }
.drops rect { animation: fall 1s linear infinite; }
.drops rect:nth-child(2) { animation-delay: .25s; } .drops rect:nth-child(3) { animation-delay: .5s; } .drops rect:nth-child(4) { animation-delay: .75s; }
@keyframes fall { from { transform: translateY(0); opacity: 1; } to { transform: translateY(190px); opacity: 0; } }
.picker { padding: 16px 6px 4px; }
.picker-title { margin: 0 0 10px; font-weight: 700; font-size: .92rem; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 52px; height: 52px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; background-size: 52px 52px; padding: 0; }
.swatch[aria-checked=true] { box-shadow: 0 0 0 3px var(--blue); }
.swatch:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.tile-info { margin: 12px 0 0; font-size: .92rem; color: var(--muted); min-height: 1.6em; }
.tile-info b { color: var(--navy); }

/* tile patterns */
.p-marble { --grout: rgba(120,128,140,.28); --psz: 100% 100%; --pattern: linear-gradient(128deg, transparent 30%, rgba(150,156,168,.22) 31%, transparent 33%), linear-gradient(118deg, transparent 58%, rgba(140,146,158,.18) 59%, transparent 61.5%), linear-gradient(150deg, transparent 75%, rgba(150,156,168,.14) 76%, transparent 77.5%), linear-gradient(160deg, #fbfbfa, #ebeae6); }
.p-beton { --psz: 100% 100%; --pattern: radial-gradient(circle at 30% 35%, rgba(0,0,0,.06), transparent 45%), radial-gradient(circle at 75% 70%, rgba(255,255,255,.12), transparent 40%), linear-gradient(135deg, #b0b2b4, #9b9ea1); }
.p-antraciet { --pattern: linear-gradient(135deg, #43474e, #2c2f34); }
.p-terrazzo { --grout: rgba(120,110,100,.3); --pattern: radial-gradient(circle at 18% 28%, #c98b6b 3%, transparent 4%), radial-gradient(circle at 68% 18%, #7a8a8f 2.5%, transparent 3.5%), radial-gradient(circle at 48% 64%, #d9b38c 3.5%, transparent 4.5%), radial-gradient(circle at 86% 78%, #5a5f63 2%, transparent 3%), radial-gradient(circle at 26% 84%, #9bb0a8 3%, transparent 4%), radial-gradient(circle at 80% 45%, #e0a98f 2%, transparent 3%), #ece7df; }
.p-zellige { --pattern: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 50%), linear-gradient(135deg, #4b8c78, #2f6b5a); }
.p-hout { --grout: rgba(90,60,30,.35); --pattern: linear-gradient(90deg, rgba(255,255,255,.08), transparent 40%, rgba(0,0,0,.06)), repeating-linear-gradient(0deg, #c2925f 0 3px, #b5844f 3px 5px, #ca9c6b 5px 9px, #b98957 9px 11px); }

/* categories */
.cats { padding: 80px 0; }
.sec-head { max-width: 660px; margin-bottom: 34px; }
.sec-head p { color: var(--muted); margin: 12px 0 0; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; background: var(--stone); border-radius: 20px; padding: 26px 12px 20px; font-weight: 700; font-size: .95rem; transition: background .15s, transform .15s; }
.cat svg { width: 52px; height: 52px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cat:hover { background: var(--mist); transform: translateY(-3px); }

/* calculator */
.calc { background: var(--navy); color: #fff; padding: 90px 0; }
.calc-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.calc-copy p:not(.eyebrow) { color: #b9c9de; margin-top: 18px; }
.calc-form { background: #fff; color: var(--navy); border-radius: 22px; padding: 30px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.calc-form input, .calc-form select { font: inherit; font-weight: 500; color: var(--navy); border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--stone); width: 100%; }
.calc-form input:focus, .calc-form select:focus { outline: none; border-color: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1; font: 600 .88rem var(--font); border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 10px; padding: 9px 10px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed=true] { border-color: var(--blue); background: var(--mist); color: var(--blue); }
.result { margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.result div { background: var(--stone); border-radius: 12px; padding: 12px; }
.result dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.result dd { margin: 2px 0 0; font-weight: 800; font-size: 1.1rem; }
.result .total { background: var(--blue); color: #fff; }
.result .total dt { color: #d4e8fb; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-actions .btn { flex: 1; text-align: center; }
.calc-form .btn-ghost-light { color: var(--navy); border-color: var(--line); }
.calc-form .btn-ghost-light:hover { background: var(--mist); border-color: var(--mist); }

/* products */
.products { padding: 90px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 600 .9rem var(--font); border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 15px; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; animation: up .3s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(6px); } }
.pic { aspect-ratio: 1; border-radius: 14px; background: var(--stone); overflow: hidden; margin-bottom: 14px; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .pic img { transform: scale(1.04); }
.card .cat-l { margin: 0; font-size: .74rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { font-size: 1rem; margin: 4px 0 6px; line-height: 1.3; }
.card .spec { margin: 0 0 14px; font-size: .86rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 800; font-size: 1.25rem; }
.add { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.add:hover { background: var(--navy); }

/* service */
.service { background: var(--stone); padding: 90px 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-grid article { background: #fff; border-radius: 20px; padding: 24px; }
.ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--blue); font-size: 1.4rem; margin-bottom: 16px; }
.svc-grid p { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }
.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--navy); }
.steps li { counter-increment: s; padding: 18px 16px 0 0; display: grid; gap: 2px; }
.steps b::before { content: '0' counter(s) '  '; color: var(--blue); white-space: pre; }
.steps span { color: var(--muted); font-size: .93rem; }

/* faq */
.faq { padding: 90px 0; }
.faq-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.contact { margin-top: 24px; background: var(--mist); border-radius: 18px; padding: 20px 22px; display: grid; gap: 2px; }
.contact a { color: var(--blue); font-weight: 700; }
.contact span { color: var(--muted); font-size: .92rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 700; padding: 18px 36px 18px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-list p { margin: 0 0 18px; color: var(--muted); }

/* footer */
.footer { background: var(--navy); color: #b9c9de; padding: 44px 0; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: center; }
.footer .brand img { height: 58px; }
.slogan { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer nav a:hover { color: #fff; }
.copy { margin: 0; font-size: .85rem; text-align: right; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .3s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1020px) {
  .hero-in, .calc-in, .faq-in { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid, .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-in { justify-content: center; font-size: .75rem; }
  .topbar-in span:nth-child(n+3) { display: none; }
  .nav { display: none; }
  .header-in { justify-content: space-between; height: 66px; }
  .brand img { height: 44px; }
  .hero { padding: 34px 0 60px; }
  .hero-in { gap: 34px; }
  .cats, .products, .service, .faq { padding: 64px 0; }
  .calc { padding: 64px 0; }
  .calc-form { padding: 22px; }
  .result { grid-template-columns: 1fr 1fr; }
  .grid { gap: 10px; }
  .card { padding: 10px; border-radius: 16px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .footer-in { grid-template-columns: 1fr; }
  .slogan, .copy { text-align: left; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .swatch { width: 42px; height: 42px; }
  .swatches { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .drops rect, .card { animation: none; } * { transition: none !important; } }
