/*
 * Сучасний вигляд сайту поверх старих стилів (style.css кожної сторінки):
 * шрифт, кольори, тіні, заокруглення, стани кнопок, анімації появи і переходи між сторінками.
 * Підключається останнім, після site-fixes.css і shop.css. Поведінку дає modern.js.
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #008aff;
    --brand-2: #5b5bf6;
    --brand-grad: linear-gradient(135deg, #0a8dff 0%, #3a6cf8 55%, #5b5bf6 100%);
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e7ebf1;
    --surface: #ffffff;
    --bg: #f5f7fb;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
    --shadow-lg: 0 8px 18px rgba(15, 23, 42, .08), 0 24px 48px rgba(15, 23, 42, .10);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Основа ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', 'Roboto', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    animation: pageIn .45s var(--ease) both;
}
button, input, select, textarea, .btn { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
::selection { background: rgba(0, 138, 255, .18); }
a { transition: color .2s ease; }
:focus-visible { outline: 3px solid rgba(0, 138, 255, .35); outline-offset: 2px; border-radius: 6px; }

/* Плавний перехід між сторінками (Chrome, Edge) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease-out both vtOut; }
::view-transition-new(root) { animation: .3s var(--ease) both vtIn; }

/* ---------- Шапка ---------- */
.wrap > #main { background: transparent; }
header { position: relative; }
.top_logo img { transition: transform .3s var(--ease); }
.top_logo a:hover img { transform: scale(1.03); }

#main_menu {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .3s ease, background .3s ease;
}
#main_menu.is-scrolled { background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.top_nav > li > a {
    background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat;
    padding-bottom: 3px;
    transition: background-size .3s var(--ease), color .2s ease;
}
.top_nav > li > a:hover { color: var(--brand); background-size: 100% 2px; text-decoration: none; }

.serch_block .serch, #subscriber-email.serch {
    background: #eef2f7; border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.serch_block .serch:focus, #subscriber-email.serch:focus {
    background: #fff; border-color: rgba(0, 138, 255, .45); box-shadow: 0 0 0 4px rgba(0, 138, 255, .12);
}

.control > li.click_control { border-radius: 10px; transition: background .2s ease; }
.control > li.click_control:hover { background: #eef4ff; }

/* Випадні меню: мова, профіль, кошик, мега-меню */
.control .control_item, .down_block, .category-dropdown {
    border-radius: 14px !important;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg) !important;
}
.control .control_item { animation: dropIn .2s var(--ease); }
.down_block { animation: dropIn .22s var(--ease); }
.control .control_item .lang a { border-radius: 8px; margin: 0 6px; padding: 0 16px !important; transition: background .15s, color .15s; }
.control .control_item .lang a:hover { background: #f1f6ff; color: var(--brand); }
.category-shop-menu-list a, .down_item a { transition: color .15s ease, padding-left .2s var(--ease); }
.category-shop-menu-list a:hover, .down_item a:hover { color: var(--brand); padding-left: 3px; }

.top_phone ul { display: grid; grid-template-columns: auto auto; column-gap: 16px; row-gap: 2px; }
.top_phone ul li { float: none; padding: 2px 0 !important; white-space: nowrap; font-size: 12px; letter-spacing: -.01em; }
.call_back a { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.modal_send, .blue-button, .btn_blue, .bay input, .bt_bay, .filter-apply, .product_add,
.asaid_menu_shopping .btn_blue, .cart_control input, .cart_link {
    background: var(--brand-grad) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(24, 110, 250, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s ease !important;
}
.modal_send:hover, .blue-button:hover, .btn_blue:hover, .bay input:hover, .bt_bay:hover, .filter-apply:hover,
.product_add:hover, .cart_link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(24, 110, 250, .32);
    filter: saturate(1.1);
    text-decoration: none;
}
.modal_send:active, .blue-button:active, .bt_bay:active, .product_add:active, .filter-apply:active { transform: translateY(0); }
.button_broduct a.bt_in_cart { background: #334155 !important; box-shadow: none; }
.button_broduct .bt_absent {
    display: inline-block; padding: 7px 16px; border-radius: 12px; background: #eef2f7 !important;
    color: #94a3b8 !important; box-shadow: none !important; cursor: not-allowed; font-weight: 600; font-size: 14px;
}
.button_broduct .bt_absent:hover { transform: none; box-shadow: none; }
.call_me_product { transition: color .2s ease; }
.call_me_product:hover { color: var(--brand) !important; }
.filter_clear { border-radius: 12px !important; transition: transform .2s var(--ease); }
.filter_clear:hover { transform: translateY(-2px); }

/* ---------- Картки ---------- */
.poruct_block {
    border-radius: var(--radius) !important;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
    overflow: hidden;
}
.poruct_block:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.poruct_block .img_gallary { overflow: hidden; border-radius: 12px; }
.popular_main .slick-list { padding: 10px 0 24px; margin: -10px 0 -24px; }
.popular_main .slick-slide { padding: 0 8px; }
.popular_main .poruct_block, #catalogGrid .poruct_block, #saleGrid .poruct_block { height: auto !important; min-height: 468px; display: flex; flex-direction: column; }
.popular_main .poruct_block > a, #catalogGrid .poruct_block > a, #saleGrid .poruct_block > a { flex: 1; }
.poruct_block .img_gallary img { transition: transform .5s var(--ease); }
.poruct_block:hover .img_gallary img { transform: scale(1.05); }
.poruct_block .info_gallary p { color: var(--ink); font-weight: 600; }
.poruct_block h5 { font-weight: 800; letter-spacing: -.01em; }
.discount_l { background: linear-gradient(135deg, #ff5a5f, #ff2d55) !important; box-shadow: 0 6px 14px rgba(255, 45, 85, .35); }

.stock { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; }
.stock .fas { font-size: 12px; }
.stock_in_stock { color: #16a34a; }
.stock_on_order { color: #d97706; }
.stock_absent { color: #94a3b8; }

.block_services, #services .block_services, .main-page .block_services {
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm) !important;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.block_services:hover, .main-page .block_services:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg) !important; border-color: rgba(0, 138, 255, .25);
}
.block_services img { transition: transform .45s var(--ease); }
.block_services:hover img { transform: scale(1.06) rotate(-1deg); }

.block_loz .img_block img { transition: transform .5s var(--ease); }
.block_loz:hover .img_block img { transform: translateY(-6px) scale(1.05); }

/* Синій блок «Залиште заявку», «Про нас», допомога в послугах */
.send, .about_info, #cart-service .help_service {
    background-color: #1a7cf9 !important;
    background-image: url(icons/palette-decor.svg), var(--brand-grad) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: 62% auto, 100% 100% !important;
    background-position: 135% 130%, 0 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(40, 100, 250, .28);
}
.send button {
    border-radius: 12px !important; font-weight: 700 !important; padding: 0 16px;
    transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease !important;
}
.send button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .18); }
.send button:last-child:not(:first-child) { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .55) !important; }

/* Слайдер на головній і в акціях */
.gallary_main, .gallary_discount {
    border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
    box-shadow: var(--shadow-sm);
}
.gallary_item .gallary_text h5 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.gallery_link a { font-weight: 700; }
.gallery_link a .fas { transition: transform .25s var(--ease); }
.gallery_link a:hover .fas { transform: translateX(4px); }
.popular_main .slick-prev, .popular_main .slick-next { border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.popular_main .slick-prev:hover, .popular_main .slick-next:hover { transform: scale(1.08); box-shadow: var(--shadow); }

/* Бічні меню, фільтри, кошик */
.asaid_menu, .filter, .asaid_menu_shopping, .shopping_items, .cart_menu, .catalog_empty,
.product_photo, .product_buy, .product_description, .sort {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
}
.asaid_menu ul li a { transition: background .2s ease, color .2s ease, padding-left .25s var(--ease); }
.asaid_menu ul li:not(.active) a:hover { padding-left: 26px; color: var(--brand); }
.asaid_menu ul li.active a, .asaid_menu li.active { background: var(--brand-grad) !important; }
.way_pay, .delivery_way { border-radius: var(--radius) !important; }

.nav_page .breadcrumb a { transition: color .2s ease; }
.nav_page .breadcrumb a:hover { color: var(--brand); }

/* Поля форм */
.form-control, .modal_input input, .delivery_face input, .delivery_face select, textarea.comment, .catalog_price input {
    border-radius: var(--radius-sm) !important;
    border: 1px solid #dde3ec !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .modal_input input:focus, .delivery_face input:focus, .delivery_face select:focus,
textarea.comment:focus, .catalog_price input:focus {
    border-color: rgba(0, 138, 255, .6) !important;
    box-shadow: 0 0 0 4px rgba(0, 138, 255, .12) !important;
    outline: none;
}

/* Тумблери замість галочок */
.catalog_checks input[type=checkbox], #callBackFlag {
    -webkit-appearance: none; appearance: none;
    position: relative; flex-shrink: 0; width: 40px !important; height: 22px !important; margin: 0 8px 0 0;
    border-radius: 11px; background: #cbd5e1; cursor: pointer; vertical-align: middle;
    transition: background .2s ease;
}
.catalog_checks input[type=checkbox]::after, #callBackFlag::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s var(--ease);
}
.catalog_checks input[type=checkbox]:checked, #callBackFlag:checked { background: var(--brand); }
.catalog_checks input[type=checkbox]:checked::after, #callBackFlag:checked::after { transform: translateX(18px); }
.catalog_checks label { gap: 0; }

/* ---------- Модальні вікна ---------- */
.modal-content {
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25) !important;
    overflow: hidden;
}
.modal.fade .modal-dialog { transform: translateY(24px) scale(.97); transition: transform .35s var(--ease), opacity .3s ease; }
.modal.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .35; }
.modal-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* ---------- Футер ---------- */
footer {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
    border-top: 1px solid var(--line);
}
.footer_block li a { transition: color .2s ease, padding-left .25s var(--ease); }
.footer_block li a:hover { color: var(--brand); padding-left: 3px; text-decoration: none; }
.icon_social { transition: background .25s ease, transform .25s var(--ease); }
.icon_social:hover { background: var(--brand) !important; transform: translateY(-3px); }
.icon_social:hover i { color: #fff !important; }

/* ---------- Кнопка «Нагору» ---------- */
.to_top {
    position: fixed; right: 20px; bottom: 20px; z-index: 900;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--brand-grad); color: #fff; cursor: pointer;
    box-shadow: 0 10px 24px rgba(24, 110, 250, .35);
    opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
    transition: opacity .3s ease, transform .3s var(--ease);
}
.to_top.show { opacity: 1; transform: none; pointer-events: auto; }
.to_top:hover { transform: translateY(-3px); }
.to_top::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: #fff;
    -webkit-mask: url(icons/chevron-up.svg) center / contain no-repeat; mask: url(icons/chevron-up.svg) center / contain no-repeat;
}

/* ---------- Поява блоків при прокрутці (класи ставить modern.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Смуга прокрутки ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7d0dd; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #a9b5c6; }

/* ---------- Анімації ---------- */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Товар відсутній: головна дія - «Передзвоніть мені» */
.product_absent { color: var(--muted); margin: 4px 0 14px; }
.product_actions[hidden] + .call_me_product {
    display: inline-block; padding: 11px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
    background: var(--brand-grad); color: #fff !important; box-shadow: 0 6px 16px rgba(24, 110, 250, .25);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.product_actions[hidden] + .call_me_product:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(24, 110, 250, .32); }

/* ================= Послуги (services.html, service.html) ================= */
.service_card {
    display: flex; flex-direction: column; height: 100%; margin-bottom: 24px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none !important;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.service_card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 138, 255, .25); color: var(--text); }
.service_card_img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, #f3f8ff, #f6f4ff); }
.service_card_img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.service_card:hover .service_card_img img { transform: scale(1.06); }
/* Фото товарів на білому тлі: білий зливається з фоном картки */
.service_card_img img[src$=".jpg"] { mix-blend-mode: multiply; }
/* Однакова висота фото в усіх картках, якими б не були пропорції картинки */
.service_card_img { position: relative; }
.service_card_img img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); max-width: none; max-height: none; }
.service_card_body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.service_card_body h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.service_card_body p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.service_card_more { margin-top: auto; color: var(--brand); font-weight: 700; font-size: 14px; }
.service_card_more .fas { transition: transform .25s var(--ease); }
.service_card:hover .service_card_more .fas { transform: translateX(4px); }
#servicesGrid > div { margin-bottom: 24px; }

#service { padding-bottom: 48px; }
.notice_admin { margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: #fff7e6; color: #8a5300; }
.service_hero {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center;
    margin: 16px 0 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 24px; box-shadow: var(--shadow);
}
.service_hero_img { display: grid; place-items: center; min-height: 240px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #eef6ff, #f5f3ff); }
.service_hero_img img { max-width: 100%; max-height: 300px; object-fit: contain; }
.service_hero h1.title { margin: 0 0 10px !important; font-size: 32px; line-height: 1.15; }
.service_summary { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.service_cta { display: flex; flex-wrap: wrap; gap: 12px; }
.service_btn {
    padding: 13px 24px; border-radius: 14px; border: 1px solid #d6dde8; background: #fff; color: var(--ink);
    font-weight: 700; font-size: 15px; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, border-color .2s ease;
}
.service_btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.service_btn.primary { background: var(--brand-grad); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(24, 110, 250, .28); }
.service_btn.light { background: #fff; color: var(--brand); border: 0; }
.service_btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.service_phones { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.service_phones a { color: var(--ink); font-weight: 700; white-space: nowrap; }

.service_facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.service_fact { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.service_fact:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service_fact .fact_icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; background: #eaf3ff; color: var(--brand); font-size: 20px; }
.service_fact h3 { font-size: 15px; margin: 0 0 6px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.service_fact p { margin: 0; color: var(--ink); line-height: 1.4; }
.service_fact p span { font-size: 13px; color: var(--muted); }

.service_block { margin-bottom: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.service_block.plain { padding: 0; background: none; border: 0; box-shadow: none; }
.service_block h2 { font-size: 22px; margin: 0 0 16px; }
.service_text p { font-size: 16px; line-height: 1.65; color: var(--text); }
.service_list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.service_list li { position: relative; padding: 12px 14px 12px 42px; border-radius: 12px; background: #f6f9fe; font-weight: 600; }
.service_list li::before {
    content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: #16a34a;
    -webkit-mask: url(icons/circle-check.svg) center / contain no-repeat; mask: url(icons/circle-check.svg) center / contain no-repeat;
}
.service_prices { width: 100%; border-collapse: collapse; }
.service_prices td { padding: 12px 4px; border-bottom: 1px dashed var(--line); }
.service_prices td:last-child { text-align: right; font-weight: 800; white-space: nowrap; color: var(--ink); }
.service_note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.service_callout {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    margin: 8px 0 32px; padding: 28px 32px; border-radius: 24px; color: #fff;
    background: url(icons/palette-decor.svg) no-repeat 105% 140% / 38% auto, var(--brand-grad);
    box-shadow: 0 16px 40px rgba(40, 100, 250, .28);
}
.service_callout h2 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.service_callout p { margin: 0; color: rgba(255, 255, 255, .85); }
.service_links { display: flex; flex-wrap: wrap; gap: 8px; }
.service_links a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.service_links a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); text-decoration: none; }

@media (max-width: 991px) {
    .service_hero { grid-template-columns: 1fr; padding: 20px; }
    .service_facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .service_facts { grid-template-columns: 1fr; }
    .service_hero h1.title { font-size: 24px; }
    .service_block, .service_callout { padding: 20px; }
}

/* ================= Режим редагування сторінки (cms.js, лише адміністратори) ================= */
.cms_bar { position: fixed; left: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: min(420px, calc(100vw - 100px)); }
.cms_toggle {
    padding: 12px 18px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 800; font-size: 14px;
    background: #0f172a; color: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .3);
    transition: transform .2s var(--ease), background .2s ease;
}
.cms_toggle:hover { transform: translateY(-2px); }
.cms_editing .cms_toggle { background: #16a34a; }
.cms_help { padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--text); font-size: 13px; box-shadow: var(--shadow-lg); }
.cms_help a { color: var(--brand); font-weight: 700; }

.cms_editing [data-cms-key] { cursor: text; outline: 1px dashed transparent; outline-offset: 3px; border-radius: 4px; transition: outline-color .15s, background .15s; }
.cms_editing [data-cms-key]:hover { outline-color: rgba(0, 138, 255, .7); background: rgba(0, 138, 255, .05); }
.cms_editing img[data-cms-key] { cursor: pointer; }
.cms_editing img[data-cms-key]:hover { outline: 3px solid rgba(0, 138, 255, .8); filter: brightness(.9); }
.cms_editing .cms_changed { box-shadow: inset 3px 0 0 #f59e0b; }
.cms_active { outline: 2px solid var(--brand) !important; background: #fff !important; color: var(--ink) !important; box-shadow: 0 0 0 6px rgba(0, 138, 255, .12) !important; }
.cms_tools {
    position: absolute; z-index: 2001; display: flex; align-items: center; gap: 4px; padding: 6px;
    background: #0f172a; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .35); animation: dropIn .15s var(--ease);
}
.cms_tools button { border: 0; background: transparent; color: #e2e8f0; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; }
.cms_tools button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cms_tools .save { background: #16a34a; color: #fff; }
.cms_tools .save:hover { background: #15803d; }
.cms_tools .sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .2); margin: 0 4px; }
.cms_toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 2002; padding: 10px 18px; border-radius: 12px; background: #0f172a; color: #fff;
    font-weight: 600; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
}
.cms_toast.show { opacity: 1; transform: translateX(-50%); }
.cms_toast.err { background: #e11d48; }

/* ================= Оформлення замовлення ================= */
#form-checkout { display: grid; gap: 18px; }
.co_section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.co_title { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 0 0 18px; }
.co_num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: 15px; flex-shrink: 0; }
.co_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.co_grid .co_wide { grid-column: 1 / -1; }
.co_section .form-group { margin-bottom: 14px; }
.co_section label { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; display: block; }
.co_section label small { font-weight: 400; color: var(--muted); }
.co_section .form-control { height: auto; padding: 11px 14px; font-size: 15px; }
.co_section .has-error .form-control { border-color: #e11d48 !important; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1) !important; }
.co_section .help-block-error { color: #e11d48; font-size: 13px; margin: 4px 0 0; min-height: 0; }
.co_options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.co_option { position: relative; margin: 0 !important; cursor: pointer; }
.co_option input { position: absolute; opacity: 0; pointer-events: none; }
.co_opt_body {
    display: block; height: 100%; padding: 14px 16px 14px 46px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.co_opt_body::before {
    content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid #c3cbd8; background: #fff; transition: border .2s ease, box-shadow .2s ease;
}
.co_opt_body strong { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.co_opt_body small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--muted); }
.co_option:hover .co_opt_body { border-color: rgba(0, 138, 255, .45); }
.co_option input:checked + .co_opt_body { border-color: var(--brand); background: #f3f8ff; box-shadow: 0 0 0 4px rgba(0, 138, 255, .1); }
.co_option input:checked + .co_opt_body::before { border: 6px solid var(--brand); }
.co_option input:focus-visible + .co_opt_body { outline: 3px solid rgba(0, 138, 255, .35); }
.co_option.is-disabled { cursor: not-allowed; }
.co_option.is-disabled .co_opt_body { opacity: .45; background: #f6f7f9; }
.co_option.is-disabled:hover .co_opt_body { border-color: var(--line); }
.np_mark { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 5px; background: #da291c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.co_np { margin-top: 16px; padding: 18px; border-radius: 16px; background: #fff7f6; border: 1px solid #fbd5d1; animation: dropIn .25s var(--ease); }
.np_combo { position: relative; }
.np_combo .form-control.is-loading { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23da291c' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.np_list {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto;
    margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    animation: dropIn .15s var(--ease);
}
.np_list li { padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.np_list li small { display: block; color: var(--muted); font-size: 12px; }
.np_list li:hover, .np_list li.active { background: #fff1ef; }
.np_list li.empty { cursor: default; color: var(--muted); }
.np_note { margin: 4px 0 0; font-size: 12px; color: #9a3412; }
.help-block-error.is-visible { display: block; }
.co_switch { display: flex !important; align-items: center; gap: 0; font-weight: 600; cursor: pointer; margin: 6px 0 0; }
.review-checkout-block .bay input:disabled { opacity: .5; }
@media (max-width: 767px) {
    .co_grid, .co_options { grid-template-columns: 1fr; }
    .co_section { padding: 18px; }
}

/* ================= Відгуки ================= */
.review_wrap { max-width: 720px; margin: 16px auto 48px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.review_wrap h1.title { margin: 0 0 8px !important; font-size: 28px; }
.review_lead { color: var(--muted); margin-bottom: 18px; }
.review_order { display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 18px; border-radius: 14px; background: #f3f8ff; border: 1px solid #d7e7ff; }
.review_order_label { font-size: 13px; color: var(--muted); }
.review_order strong { color: var(--ink); }
.review_notice { padding: 10px 14px; border-radius: 12px; background: #fff7e6; color: #8a5300; }
.review_label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.field_stars { margin-bottom: 18px; }
.stars_input { display: inline-flex; flex-direction: row-reverse; gap: 4px; vertical-align: middle; }
.stars_input input { position: absolute; opacity: 0; pointer-events: none; }
.stars_input label {
    width: 38px; height: 38px; margin: 0; cursor: pointer; background: #d8dee8;
    -webkit-mask: url(icons/star-filled.svg) center / contain no-repeat; mask: url(icons/star-filled.svg) center / contain no-repeat;
    transition: background .15s ease, transform .15s var(--ease);
}
.stars_input label:hover, .stars_input label:hover ~ label, .stars_input input:checked ~ label { background: #f5b301; }
.stars_input label:hover { transform: scale(1.12); }
.stars_input input:focus-visible + label { outline: 3px solid rgba(0, 138, 255, .35); outline-offset: 2px; }
.stars_label { margin-left: 10px; font-weight: 700; color: #b7791f; vertical-align: middle; }
.review_field { display: block; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.review_field input, .review_field textarea {
    display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid #dde3ec; border-radius: 12px; font: inherit; font-weight: 400;
    transition: border-color .2s, box-shadow .2s;
}
.review_field input:focus, .review_field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 138, 255, .12); }
.review_two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.review_wrap .err { display: block; color: #e11d48; font-size: 13px; font-weight: 500; margin: 4px 0 0; min-height: 0; }
.review_done { text-align: center; padding: 24px 0; animation: dropIn .3s var(--ease); }
.review_done_icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); }
@media (max-width: 600px) { .review_wrap { padding: 20px; } .review_two { grid-template-columns: 1fr; } }

.review_card { padding: 20px 22px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.review_card header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.review_card header strong { color: var(--ink); font-size: 16px; }
.review_card time { margin-left: auto; color: var(--muted); font-size: 13px; }
.review_card p { margin: 0 0 6px; line-height: 1.6; }
.review_stars { display: inline-flex; gap: 2px; font-size: 14px; }
.review_stars .bg_yello { color: #f5b301; }
.review_stars .bg_gray { color: #d8dee8; }
.review_badge { padding: 2px 10px; border-radius: 999px; background: #e8f7ee; color: #15803d; font-size: 12px; font-weight: 700; }
.review_pros b { color: #15803d; }
.review_cons b { color: #b42318; }
.review_empty { padding: 28px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; }
a.review_btn { display: inline-block; padding: 0 22px; text-align: center; text-decoration: none; }
.review_card header { height: auto; }
#reviews .comment_sort, .comment_sort { background: none !important; padding: 0 !important; min-height: 0 !important; }

/* Режим редагування: «Часті питання» розгорнуті, щоб можна було змінити і відповіді */
.cms_editing .question_block .line_p { display: block !important; }

/* ================= Кнопки слайдера на головній і в «Акціях» =================
   Крапки внизу (.slick-dots) і стрілки ‹ › (.slick-prev / .slick-next).
   Щоб змінити анімацію наведення, міняйте змінні нижче. */
.gallary {
    --dot-size: 10px;                 /* розмір крапки */
    --dot-color: var(--brand);        /* колір рамки і активної крапки */
    --dot-hover-scale: 1.4;           /* у скільки разів крапка збільшується при наведенні */
    --dot-active-width: 26px;         /* активна крапка розтягується в «таблетку» */
    --arrow-hover-scale: 1.1;         /* збільшення стрілки при наведенні */
    --slider-anim: .3s cubic-bezier(.2, .8, .2, 1);   /* тривалість і плавність усіх анімацій */
}
.gallary .slick-dots li { width: auto; height: auto; margin: 0 4px; }
.gallary .slick-dots li button {
    width: var(--dot-size); height: var(--dot-size); padding: 0;
    border: 2px solid var(--dot-color); border-radius: 999px; background: transparent;
    transition: transform var(--slider-anim), width var(--slider-anim), background-color var(--slider-anim), box-shadow var(--slider-anim);
}
.gallary .slick-dots li button:hover {
    transform: scale(var(--dot-hover-scale));
    background: color-mix(in srgb, var(--dot-color) 35%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color) 15%, transparent);
}
.gallary .slick-dots li.slick-active button {
    width: var(--dot-active-width);
    background: var(--dot-color);
}
.gallary .slick-dots li.slick-active button:hover { transform: none; }
.gallary .slick-dots li button:focus-visible { outline: 3px solid color-mix(in srgb, var(--dot-color) 40%, transparent); outline-offset: 2px; }

.gallary .slick-arrow {
    box-shadow: var(--shadow);
    transition: opacity var(--slider-anim), transform var(--slider-anim), box-shadow var(--slider-anim), background-color var(--slider-anim);
}
.gallary .slick-arrow:hover { transform: translateY(-50%) scale(var(--arrow-hover-scale)); background: var(--dot-color); box-shadow: var(--shadow-lg); }
.gallary .slick-arrow:hover::before { color: #fff; }

/* Графік роботи («Сьогодні до 17:00») відкривається над липким меню, а не під ним */
.top_adress .work_time .all_time {
    z-index: 1100 !important;
    border: 1px solid var(--line); border-radius: 14px !important; box-shadow: var(--shadow-lg) !important;
    animation: dropIn .2s var(--ease);
}
.top_adress .work_time .all_time { width: auto !important; min-width: 260px; }
.top_adress .work_time li strong { white-space: nowrap; }

/* Відгук: вибір власного виконаного замовлення */
.order_pick { display: grid; gap: 8px; margin-bottom: 18px; }
.order_pick_note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f3f8ff; color: var(--text); font-size: 14px; }
.link_btn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: underline; }
.order_option { position: relative; display: block; margin: 0; cursor: pointer; }
.order_option input { position: absolute; opacity: 0; pointer-events: none; }
.order_option span { display: block; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.order_option span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c3cbd8; transition: border .2s; }
.order_option strong { color: var(--ink); }
.order_option small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.order_option:hover span { border-color: rgba(0, 138, 255, .45); }
.order_option input:checked + span { border-color: var(--brand); background: #f3f8ff; }
.order_option input:checked + span::before { border: 5px solid var(--brand); }
