:root { --ink: #23282d; --muted: #6b7680; --soft: #f1f3f5; }
* { box-sizing: border-box; }
body { font-family: Rubik, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #fff; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: var(--brand); }
a:hover { color: var(--brand); filter: brightness(.85); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand); border-color: var(--brand); color: #fff; filter: brightness(.9); }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand) !important; }

.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid #e9ecef; }
.site-header .navbar-brand img { max-height: 56px; max-width: 190px; }
.site-header .nav-link { color: var(--ink); text-transform: uppercase; font-size: .95rem; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand); }
.cart-link { position: relative; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.cart-badge { position: absolute; top: -6px; right: -12px; background: var(--brand); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; padding: 0 5px; text-align: center; }
.site-search { max-width: 320px; }

.hero { background: #d9dde1 center/cover no-repeat; padding: clamp(3rem, 9vw, 9rem) 0; }
.hero-panel { background: rgba(255, 255, 255, .35); padding: clamp(1rem, 3vw, 2rem); height: 100%; }
.hero-text { color: #fff; text-shadow: 2px 3px 4px rgba(0, 0, 0, .55); }
.hero-text .pre { font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 700; }
.hero-text h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.05; }
.hero-text p { font-size: 1.15rem; font-style: italic; font-weight: 600; max-width: 30rem; }
.hero-panel img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.btn-skew { display: inline-block; transform: skewX(-12deg); padding: .85rem 1.9rem; font-weight: 700; font-style: italic; text-transform: uppercase; text-decoration: none; margin: .25rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.btn-skew > span { display: inline-block; transform: skewX(12deg); }
.btn-skew.primary { background: var(--brand); color: #fff; }
.btn-skew.light { background: #fff; color: var(--brand); }

.promo { background: var(--soft); padding: 4rem 0; }
.promo h2 { font-weight: 800; font-style: italic; text-transform: uppercase; color: #777; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.promo p { color: var(--muted); font-style: italic; font-weight: 500; }
.promo img { width: 100%; max-height: 220px; object-fit: cover; }
.info-card { display: block; background: #fff; text-align: center; padding: 2.5rem 1rem; height: 100%; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); text-decoration: none; color: var(--ink); transition: transform .15s; }
.info-card:hover { transform: translateY(-3px); color: var(--ink); filter: none; }
.info-card i { font-size: 3.2rem; color: var(--brand); }
.info-card .title { font-weight: 600; text-transform: uppercase; font-size: 1.2rem; margin-top: .75rem; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .info-card { padding: 1.5rem .5rem; }
    .info-card i { font-size: 2.6rem; }
    .info-card .title { font-size: clamp(.78rem, 4vw, 1rem); }
}
.stats { background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .08); padding: 1.75rem; }
.stats .num { color: var(--brand); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.stats .stat { display: flex; align-items: center; gap: 1rem; min-width: 0; }
@media (max-width: 1199.98px) {
    .stats .stat { flex-direction: column; gap: .4rem; text-align: center; }
}
@media (max-width: 575.98px) {
    .stats { padding: 1.25rem .5rem; }
    .stats .num { font-size: 2.1rem; }
    .stats .stat > span:last-child { font-size: .93rem; line-height: 1.35; overflow-wrap: anywhere; }
}
.about { background: #ebebeb; padding: 2rem clamp(1rem, 4vw, 3rem); }
.about h2, .section-title { text-align: center; font-weight: 700; text-transform: uppercase; color: #414453; }
.contact-box { background: #e8e8e8; padding: 1.5rem; height: 100%; }
.contact-phone { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; font-style: italic; text-decoration: none; }
.map-frame { width: 100%; min-height: 340px; height: 100%; border: 0; }
.brands { background: var(--brand); color: #fff; padding: 2.5rem 0; }
.brands .logo { background: #fff; display: flex; align-items: center; justify-content: center; height: 72px; padding: .75rem; }
.brands .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.site-footer { background: #181818; color: #cfd4d9; padding: 2.5rem 0 1.5rem; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.product-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e6e9ec; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.product-card .photo { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: .75rem; background: #fff; }
.product-card .photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card .photo i { font-size: 3rem; color: #cfd4d9; }
.product-card .body { padding: .9rem; display: flex; flex-direction: column; flex: 1; }
.product-card .name { color: var(--ink); text-decoration: none; font-weight: 500; flex: 1; }
.price { font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.stock-yes { color: #18794e; font-size: .87rem; }
.stock-no { color: var(--muted); font-size: .87rem; }
.cat-chip { display: inline-block; border: 1px solid #dfe3e6; padding: .4rem .9rem; margin: 0 .35rem .5rem 0; text-decoration: none; color: var(--ink); background: #fff; }
.cat-chip:hover { border-color: var(--brand); }
.product-main { border: 1px solid #e6e9ec; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.product-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb { width: 76px; height: 76px; border: 1px solid #dfe3e6; background: #fff; padding: 4px; }
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.rich { overflow-wrap: anywhere; }
.rich img { max-width: 100%; height: auto; }
.rich table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.rich td, .rich th { border: 1px solid #dfe3e6; padding: .4rem .6rem; }
.rich .table-wrap { overflow-x: auto; }
.hp { position: absolute; left: -9999px; }
.breadcrumb a { text-decoration: none; }

/* лента за влязъл служител */
.staff-bar { background: #2f4858; color: #fff; font-size: .9rem; padding: 6px 0; }
.staff-bar a { color: #ffd9a8; }
.staff-bar form { margin: 0; }
.staff-bar button { background: none; border: 0; padding: 0; color: #ffd9a8; text-decoration: underline; }

.contact-box .map-frame { height: 340px; }

.product-card, .post-card { min-width: 0; overflow-wrap: anywhere; }
.product-card .price .text-brand { white-space: normal; }

/* бисквитки */
.cookie-box { position: fixed; left: 20px; bottom: 20px; z-index: 1080; width: min(460px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-top: 4px solid var(--brand); border-radius: 10px; box-shadow: 0 16px 50px rgba(0, 0, 0, .28); padding: 20px 22px; font-size: .95rem; }
.cookie-box[hidden], .cookie-box [hidden] { display: none !important; }
.cookie-box h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.cookie-box h2 i { color: var(--brand); }
.cookie-choices { border-top: 1px solid #e9ecef; margin-bottom: .9rem; }
.cookie-choices label { display: flex; gap: 12px; padding: .6rem 0; border-bottom: 1px solid #e9ecef; cursor: pointer; }
.cookie-choices input { flex: 0 0 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.cookie-choices strong { display: block; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-buttons .btn { flex: 1 1 auto; }
.footer-link { background: none; border: 0; padding: 0; color: #fff; }
.footer-link:hover { text-decoration: underline; }
.map-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; background: #e8ecef; color: var(--muted); text-align: center; padding: 1.5rem; }
.map-gate i { font-size: 2.6rem; color: var(--brand); }
@media (max-width: 575.98px) { .cookie-box { left: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 16px; } .cookie-buttons .btn { flex-basis: 100%; } }

/* блог */
.post-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e6e9ec; border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.post-card:hover { color: var(--ink); filter: none; transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.post-card .photo { aspect-ratio: 16 / 10; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.post-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.post-card .photo i { font-size: 3rem; color: #cfd4d9; }
.post-card .body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.post-card .title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.post-card .text { color: var(--muted); font-size: .93rem; }
.post-card .meta { margin-top: auto; color: var(--muted); font-size: .83rem; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.4rem; background: var(--soft); border-left: 4px solid var(--brand); }
.rich details { border: 1px solid #e6e9ec; border-radius: 10px; margin-bottom: .7rem; background: #fff; }
.rich summary { cursor: pointer; font-weight: 600; padding: .85rem 1rem; }
.rich details[open] summary { color: var(--brand); border-bottom: 1px solid #e6e9ec; }
.rich details > p { padding: .85rem 1rem 0; }
.rich blockquote { border-left: 4px solid var(--brand); background: var(--soft); padding: .9rem 1.1rem; margin: 1.2rem 0; }
.rich blockquote p:last-child { margin-bottom: 0; }
.rich figure { margin: 1.6rem 0; }
.rich figure img { width: 100%; height: auto; }
.rich figcaption { color: var(--muted); font-size: .88rem; margin-top: .4rem; }
article .rich h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; }
article .rich h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5rem; }
