/* ===== Переменные тем ===== */
:root,
[data-bs-theme="light"] {
	--k-ink: #273444;
	--k-muted: #5b6673;
	--k-bg1: #e9e9e9;
	--k-bg2: #fcf3ff;
	--k-card: #ffffff;
	--k-chip: #eef3f9;
	--k-link: #0A599D;
	--k-hero1: #0A599D;
	--k-hero2: #0059ff;
	--k-open: #1f9d55;
	--k-shadow: 0 4px 8px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 0, 0, .04);
	--k-amber: #f29d14;
	--k-promo-badge-bg: linear-gradient(135deg, rgba(231, 177, 0, 0.861) 0%, rgb(252, 193, 0) 100%);
	--k-promo-body-bg: rgba(70, 70, 70, 0.352); 
}

[data-bs-theme="dark"] {
	--k-ink: #eef1f5;
	--k-muted: #a9b3bf;
	--k-bg1: #0e1217;
	--k-bg2: #1b1425;
	--k-card: #1d242c;
	--k-chip: #26303b;
	--k-link: #7fb6ee;
	--k-hero1: #08365f;
	--k-hero2: #0b3fb3;
	--k-open: #3ddc84;
	--k-shadow: 0 4px 12px rgba(0, 0, 0, .35);
	--k-promo-badge-bg: linear-gradient(135deg, rgba(244, 186, 0, 0.6) 0%, rgba(252, 192, 0, 0.6) 100%);
	--k-promo-body-bg: rgba(255, 255, 255, 0.05);
}

/* ===== Основа ===== */
html { scroll-padding-top: env(safe-area-inset-top, 0px); }

body {
	font-family: 'Montserrat', system-ui, sans-serif;
	color: var(--k-ink);
	background: linear-gradient(50deg, var(--k-bg1) 0, var(--k-bg2) 100%) fixed;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1, h2 {
	font-family: 'Raleway', system-ui, sans-serif;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .01em;
}

a { color: var(--k-link); }

/* ===== Переключатель темы ===== */
.btn-theme {
	background: var(--k-card);
	color: var(--k-ink);
	border: 1px solid rgba(127, 127, 127, .25);
	box-shadow: var(--k-shadow);
	font-weight: 500;
	font-size: .9rem;
}
.btn-theme:hover,
.btn-theme:focus-visible,
.btn-theme.show {
	background: var(--k-card);
	color: var(--k-ink);
	border-color: var(--k-amber);
}
.theme-menu .dropdown-item i { color: var(--k-muted); }
.theme-menu .dropdown-item.active i { color: inherit; }
.theme-menu .dropdown-item.active { background: var(--k-hero1); color: #fff; }

/* ===== Логотип (две версии под тему) ===== */
.logo-img { width: min(520px, 86%); height: auto; }
.logo-dark { display: none; }
[data-bs-theme="dark"] .logo-light { display: none; }
[data-bs-theme="dark"] .logo-dark { display: block; }

.tagline { color: var(--k-muted); font-weight: 500; }

/* ===== Hero ===== */
.hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(50deg, var(--k-hero1) 0, var(--k-hero2) 100%);
	padding: clamp(28px, 6vw, 60px) clamp(20px, 5vw, 56px);
}
.hero::after {
	content: "";
	position: absolute;
	right: -90px;
	top: -90px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	pointer-events: none;
}
.hero h1 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.1; }
.hero p { opacity: .92; max-width: 46ch; }

.hero .btn { font-weight: 600; padding: .8rem 1.6rem; transition: transform .2s ease; }
.hero .btn:hover { transform: translateY(-3px); }
.btn-amber { background: var(--k-amber); border-color: var(--k-amber); color: #1b1b1b; }
.btn-amber:hover { background: #ffb02e; border-color: #ffb02e; color: #1b1b1b; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--k-ink); }

.loyalty-card {
	position: relative;
	z-index: 1;
	aspect-ratio: 1.6;
	max-width: 340px;
	margin-inline: auto;
	padding: 1rem 1.2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	text-align: center;
	border-radius: 1.25rem;
	color: #fff;
	background: linear-gradient(135deg, #006ad3 0, #318eff 100%);   /* голубой, как в градиенте сайта */
	border: 1px solid rgba(255, 255, 255, .55);
	box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
	transform: rotate(-3deg);
}
.loyalty-card small { font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.loyalty-card .lc-mug { width: clamp(56px, 18%, 72px); height: auto; }
.loyalty-card .lc-bottom {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: .5rem;
	text-align: left;
}
.loyalty-card .lc-bottom span { font-size: .72rem; line-height: 1.3; font-weight: 500; max-width: 52%; }
.loyalty-card .lc-num { width: clamp(64px, 24%, 82px); height: auto; }

/* ===== Магазины ===== */
.section-title h2 {
	position: relative;
	display: inline-block;
	padding-bottom: 1rem;
	color: var(--k-ink);
	font-size: clamp(1.5rem, 4vw, 2.1rem);
}
.section-title h2::after {
	content: "";
	position: absolute;
	left: calc(50% - 22px);
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--k-amber);
}

.store {
	background: var(--k-card);
	color: var(--k-ink);
	box-shadow: var(--k-shadow);
	transition: transform .2s ease;
}
.store:hover { transform: translateY(-3px); }
.store h3 { font-size: 1.1rem; font-weight: 600; }
.store .hours {
	background: var(--k-chip);
	border-radius: 50rem;
	padding: .3rem .9rem;
	font-size: .875rem;
	font-weight: 500;
}
.store .status { font-size: .8rem; font-weight: 600; color: var(--k-muted); }
.store .status .dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: .4rem;
	border-radius: 50%;
	background: #9aa4af;
}
.store .status.is-open { color: var(--k-open); }
.store .status.is-open .dot { background: var(--k-open); box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }

.route-link {
	color: var(--k-link);
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
	border-bottom: 2px solid var(--k-amber);
}
.route-link:hover { color: var(--k-link); }

footer { color: var(--k-muted); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
	.store, .hero .btn { transition: none; }
}

/* ===== Внутренние страницы ===== */
.logo-sm { height: 44px; width: auto; }
.page-card {
	background: var(--k-card);
	color: var(--k-ink);
	box-shadow: var(--k-shadow);
}
.hero-lite {
	color: #fff;
	background: linear-gradient(50deg, var(--k-hero1) 0, var(--k-hero2) 100%);
}
.rules { list-style: none; counter-reset: rule; padding: 0; margin: 0; }
.rules li {
	counter-increment: rule;
	display: flex;
	gap: .9rem;
	align-items: flex-start;
	padding: .7rem 0;
	border-bottom: 1px solid rgba(127, 127, 127, .18);
}
.rules li:last-child { border-bottom: 0; }
.rules li::before {
	content: counter(rule);
	flex: none;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--k-amber);
	color: #1b1b1b;
	font-weight: 700;
	font-size: .85rem;
	display: grid;
	place-items: center;
}
.rules b { color: var(--k-hero1); }
[data-bs-theme="dark"] .rules b { color: var(--k-link); }
.note-chip {
	background: var(--k-chip);
	border-radius: 50rem;
	padding: .45rem 1.1rem;
	font-weight: 600;
	font-size: .9rem;
}
.bonus-card {
	aspect-ratio: 1.6;
	max-width: 340px;
	width: 100%;
	padding: 1.25rem;
	border-radius: 1rem;
	color: #fff;
	background: linear-gradient(50deg, var(--k-hero1), var(--k-hero2));
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--k-shadow);
}
.bonus-card img { width: 78%; height: auto; }
.bonus-card .num { align-self: flex-end; font-family: 'Courier New', monospace; font-size: 1.3rem; letter-spacing: .2em; color: var(--k-amber); }
.form-control, .form-check-input { border-color: rgba(127, 127, 127, .35); }
.form-control:focus { border-color: var(--k-amber); box-shadow: 0 0 0 .2rem rgba(242, 157, 20, .25); }
.form-check-input:checked { background-color: var(--k-hero1); border-color: var(--k-hero1); }
.form-floating > input[type="date"] ~ label { transform: scale(.85) translateY(-.5rem) translateX(.15rem); }
.page-card h1.h3 { font-family: 'Montserrat', system-ui, sans-serif; text-transform: none; letter-spacing: 0; }
.bonus-card { align-items: center; }




/* ===== Блок «Акции» ===== */
.promo-card {
    position: relative;
    background: var(--k-card); 
    color: var(--k-ink);
    box-shadow: var(--k-shadow);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px; 
    padding: 1rem; 
    transition: transform .2s ease;
}
.promo-card:hover { transform: translateY(-3px); }

/* Фоновая картинка на всю карточку */
.promo-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* --- ВЕРХНИЙ ЖЕЛТЫЙ БЕЙДЖ --- */
.promo-badge {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    
    /* Используем вашу переменную (60% прозрачности) */
    background: var(--k-promo-badge-bg); 
    
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #111111;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 1.5rem;
}

.promo-badge .pb-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.promo-badge .pb-subtitle {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- НИЖНИЙ БЛОК --- */
.promo-body {
    position: relative;
    z-index: 1;
    margin-top: auto; 
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1rem;
    padding: 1.25rem 1rem;
    
    /* Используем вашу переменную (5% непрозрачности) */
    background: var(--k-promo-body-bg); 
    
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Текст делаем белым, так как фон почти прозрачный */
.promo-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: #ffffff;
}

.promo-body p {
    font-size: .92rem;
    margin: 0;
    line-height: 1.5;
    color: #f0f0f0;
}

.promo-dates {
    font-size: .8rem;
    color: #ffffff;
}

.promo-link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--k-link);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border-bottom: 2px solid var(--k-amber);
    padding-bottom: 1px;
}
.promo-link:hover { color: var(--k-link); }

@media (prefers-reduced-motion: reduce) {
    .promo-card { transition: none; }
}

/* Адаптация серого фона для темной темы (чтобы текст не сливался) */
[data-bs-theme="dark"] .promo-body {
    background: rgba(40, 45, 50, 0.75);
    color: #eef1f5;
}
[data-bs-theme="dark"] .promo-body h3 { color: #fff; }
[data-bs-theme="dark"] .promo-body p { color: #a9b3bf; }

@media (prefers-reduced-motion: reduce) {
    .promo-card { transition: none; }
}


/* ===== Кнопки внизу страницы: баннер «Получить карту» (вариант G3) ===== */
.page-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	margin: 1.5rem 0 3rem;
}
.page-actions .route-link {
	align-self: center;
	border-bottom: 0;
}
.page-actions .route-link__inner {
	display: inline-block;
	padding-bottom: 1px;
	border-bottom: 2px solid var(--k-amber);
	transition: transform .3s ease, color .3s ease, border-color .3s ease;
}
.page-actions .route-link:hover .route-link__inner,
.page-actions .route-link:focus-visible .route-link__inner {
	color: var(--k-muted);
	border-bottom-color: #7CC623;
	transform: translateX(-5px);
}
.page-actions .route-link:focus-visible {
	outline: 3px solid var(--k-amber);
	outline-offset: 4px;
	border-radius: 4px;
}

.card-cta {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	color: var(--k-ink);
	background: var(--k-card);
	border: 2px solid var(--k-amber);
	border-radius: 1rem;
	box-shadow: 0 5px 14px rgba(242, 157, 20, .2);
	text-decoration: none;
	transition: box-shadow .35s ease, background-color .35s ease, color .35s ease, border-color .35s ease;
}
.card-cta:hover,
.card-cta:focus-visible {
	color: #1b1b1b;
	background-color: #7CC623;
	border-color: #A8E063;
	box-shadow: 0 5px 14px rgba(124, 198, 35, .35);
}
.card-cta:hover .card-cta__text small,
.card-cta:focus-visible .card-cta__text small {
	color: #1b1b1b;
}
.card-cta:focus-visible {
	outline: 3px solid var(--k-amber);
	outline-offset: 3px;
}
.card-cta__text {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	line-height: 1.3;
}
.card-cta__text small {
	display: block;
	margin-top: 2px;
	font-weight: 400;
	font-size: .8rem;
	color: var(--k-muted);
}
.card-cta__go {
	flex: none;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--k-amber);
	color: #1b1b1b;
	transition: background-color .35s ease;
}
.card-cta:hover .card-cta__go,
.card-cta:focus-visible .card-cta__go {
	background: #fff;
	color: #1b1b1b;
}

/* мини-карта с иконкой */
.mini-card {
	position: relative;
	flex: none;
	width: 86px;
	height: 54px;
	border-radius: .6rem;
	background: linear-gradient(135deg, #006ad3, #318eff);
	border: 1px solid rgba(255, 255, 255, .6);
	box-shadow: 0 6px 12px rgba(0, 0, 0, .22);
	transform: rotate(-5deg);
	transition: transform .2s ease;
}
.mini-card img {
	position: absolute;
	left: 8px;
	top: 8px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	/**box-shadow: 0 0 0 1px #fff;**/
}
.mini-card i {
	position: absolute;
	right: 9px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .75);
}
.mini-card i:nth-of-type(1) { top: 16px; width: 20px; }
.mini-card i:nth-of-type(2) { top: 26px; width: 30px; }
.card-cta:hover .mini-card { transform: rotate(0deg) scale(1.04); }

@media (max-width: 575.98px) {
	.page-actions { margin: 1.25rem 0 2rem; }
	.card-cta { gap: 10px; padding: 10px 12px; }
	.mini-card { width: 72px; height: 46px; }
	.mini-card img { left: 6px; top: 6px; width: 32px; height: 32px; }
	.mini-card i { right: 7px; height: 3px; }
	.mini-card i:nth-of-type(1) { top: 14px; width: 16px; }
	.mini-card i:nth-of-type(2) { top: 22px; width: 24px; }
	.card-cta__go { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.card-cta, .mini-card, .page-actions .route-link, .page-actions .route-link__inner { transition: none; }
}


/* ===== Главная: кнопки в синем блоке (вариант 1) ===== */
.hero-actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 440px;
	margin-top: 1.5rem;
}

/* вторая кнопка: контурная на синем фоне */
.card-ghost {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 14px;
	color: #fff;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	border: 2px solid rgba(255, 255, 255, .7);
	border-radius: 1rem;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.card-ghost:hover,
.card-ghost:focus-visible {
	color: #273444;
	background-color: #fff;
	border-color: #fff;
}
.card-ghost:focus-visible {
	outline: 3px solid var(--k-amber);
	outline-offset: 3px;
}
.card-ghost__icon {
	flex: none;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: .6rem;
	background: rgba(255, 255, 255, .18);
	transition: background-color .3s ease, color .3s ease;
}
.card-ghost:hover .card-ghost__icon,
.card-ghost:focus-visible .card-ghost__icon {
	background: #eef3f9;
	color: #0A599D;
}
.card-ghost__text { flex: 1; min-width: 0; }
.card-ghost__go {
	flex: none;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: #0A599D;
	transition: background-color .3s ease, color .3s ease;
}
.card-ghost:hover .card-ghost__go,
.card-ghost:focus-visible .card-ghost__go {
	background: var(--k-amber);
	color: #1b1b1b;
}

@media (max-width: 575.98px) {
	.hero-actions { max-width: none; margin-top: 1.25rem; }
	.card-ghost { gap: 10px; padding: 8px 12px; }
	.card-ghost__go { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.card-ghost, .card-ghost__icon, .card-ghost__go { transition: none; }
}


/* ===== Мобильная карусель акций ===== */
.promo-wrapper {
    position: relative; 
}

/* По умолчанию (на компьютере) СКРЫВАЕМ стрелки */
.promo-nav-btn {
    display: none; 
}

/* Включаем карусель и стрелки ТОЛЬКО на мобильных */
@media (max-width: 768px) {
    #promoList {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    #promoList::-webkit-scrollbar { display: none; }

    #promoList > div {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    /* Показываем и стилизуем стрелки */
    .promo-nav-btn {
        display: flex; /* Включаем отображение */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        align-items: center;
        justify-content: center;
        color: #333;
        cursor: pointer;
        transition: background 0.2s, opacity 0.2s;
    }
    .promo-nav-btn:hover { background: #fff; }
    .promo-nav-btn:active { transform: translateY(-50%) scale(0.95); }
    
    .promo-nav-btn.prev { left: -5px; }
    .promo-nav-btn.next { right: -5px; }
    
    .promo-nav-btn.disabled {
        opacity: 0;
        pointer-events: none;
    }
}