/* ============================================================
   Promokodos — main styles (дизайн-система, зелёный «маркет»)
   ============================================================ */

:root {
	--green: #30a83c;
	--green-strong: #197e25;
	--green-soft: #e8f1e9;
	--hot: #ce1736;
	--cold: #034eb1;
	--warm: #fb6001;
	--gold: #f5a623;
	--canvas: #f3f5f7;
	--surface: #ffffff;
	--ink: #111111;
	--body: #5c5f63;
	--muted: #a7a9ac;
	--hairline: #e4e7ea;
	--radius: 14px;
	--pill: 540px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	background: var(--canvas);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input::placeholder,
textarea::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--hairline);
	position: sticky; top: 0; z-index: 100;
	transition: box-shadow .3s ease;
}
.site-header.is-stuck {
	box-shadow: 0 10px 30px -18px rgba(0,0,0,.28);
	animation: headerStick .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes headerStick {
	from { transform: translateY(-8px); }
	to { transform: translateY(0); }
}
.topbar { display: flex; align-items: center; gap: 14px; height: 64px; min-width: 0; }
.brand {
	font-size: 22px; font-weight: 800; letter-spacing: -.02em;
	white-space: nowrap; flex-shrink: 0;
	display: inline-flex; align-items: baseline; color: var(--ink);
}
.brand b { color: var(--green); font-weight: 800; }

.topbar .search {
	position: relative;
	flex: 1; min-width: 0; max-width: 340px;
	display: flex; align-items: center;
	background: var(--canvas); border-radius: var(--pill);
	padding: 6px 6px 6px 16px; gap: 8px;
	transition: box-shadow .2s ease;
}
.topbar .search:focus-within { box-shadow: 0 0 0 3px var(--green-soft); }
.topbar .search input {
	flex: 1; min-width: 0; border: 0; background: transparent;
	font: inherit; font-size: 15px; outline: none; color: var(--ink);
}
.topbar .search .go {
	background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
	padding: 10px 18px; border-radius: var(--pill); white-space: nowrap; flex-shrink: 0;
	border: 0; cursor: pointer; transition: background .2s ease, transform .1s ease;
}
.topbar .search .go:hover { background: var(--green-strong); }
.topbar .search .go:active { transform: scale(.97); }

/* Живой поиск */
.search-live {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 300;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
	box-shadow: 0 18px 40px -18px rgba(0,0,0,.28);
	padding: 6px; display: none; max-height: 380px; overflow: auto;
}
.search-live.show { display: block; }
.search-live-item {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
	transition: background .15s ease;
}
.search-live-item:hover { background: var(--canvas); }
.sl-logo {
	width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
	background: #fff; border: 1px solid var(--hairline);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sl-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; border-radius: 9px; }
.sl-letter {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 800; font-size: 16px;
}
.sl-text { flex: 1; min-width: 0; }
.sl-title {
	display: block; font-weight: 700; font-size: 14px; color: var(--ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-meta {
	display: block; font-size: 12px; color: var(--muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-type {
	font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
	flex-shrink: 0;
}
.search-live-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }

.main-nav { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 15px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--body); transition: color .2s ease; }
.main-nav ul a:hover { color: var(--ink); }
.header-add {
	font-weight: 700; font-size: 14px; color: var(--green);
	border: 1.5px solid var(--green); padding: 8px 14px; border-radius: var(--pill);
	white-space: nowrap; flex-shrink: 0; transition: background .2s ease, color .2s ease;
}
.header-add:hover { background: var(--green); color: #fff; }
.header-favorites {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; flex-shrink: 0;
	border: 1px solid var(--hairline); border-radius: 50%;
	background: var(--surface); color: var(--body);
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.header-favorites svg { display: block; width: 18px; height: 18px; }
.header-favorites:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-strong); }
.header-favorites.has-items { border-color: #f2c4cd; background: #fdecef; color: var(--hot); }
.header-favorites.has-items svg { fill: currentColor; }
.header-favorites-text { display: none; }
.header-favorites-count {
	position: absolute; top: -5px; right: -5px;
	min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 99px; background: var(--hot); color: #fff;
	font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
	box-shadow: 0 0 0 2px var(--surface);
}
.header-favorites-count[hidden] { display: none; }
.header-login { font-weight: 700; font-size: 15px; color: var(--body); white-space: nowrap; flex-shrink: 0; transition: color .2s ease; }
.header-login:hover { color: var(--green); }
.header-logout { font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; flex-shrink: 0; transition: color .2s ease; }
.header-logout:hover { color: var(--hot); }

/* Выпадающие меню в шапке */
.menu-item-has-dropdown { position: static; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-dropdown-toggle::after {
	content: ''; width: 6px; height: 6px; flex-shrink: 0;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform .2s ease;
}
.menu-item-has-dropdown.open .nav-dropdown-toggle::after { transform: rotate(-135deg) translate(-2px, -2px); }
.nav-dropdown {
	position: absolute; z-index: 250;
	top: calc(100% + 1px); left: 50%;
	width: min(960px, calc(100vw - 48px));
	padding: 22px 24px;
	background: var(--surface);
	border: 1px solid var(--hairline); border-top: 0;
	border-radius: 0 0 18px 18px;
	box-shadow: 0 28px 50px -28px rgba(0,0,0,.28);
	max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translate(-50%, 8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.menu-item-has-dropdown.open .nav-dropdown {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translate(-50%, 0);
}
.nav-dropdown-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.nav-dropdown-head strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.nav-dropdown-head span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.main-nav .nav-dropdown .nav-dropdown-all { padding: 0; border: 0; font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
.main-nav .nav-dropdown .nav-dropdown-all:hover { color: var(--green-strong); }
.nav-dropdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.nav-dropdown--collections { width: min(560px, calc(100vw - 48px)); }
.nav-dropdown-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-dropdown-collection .collection-nav-icon {
	width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--green-soft); color: var(--green-strong);
}
.nav-dropdown-collection .collection-nav-icon svg { width: 20px; height: 20px; display: block; }
.main-nav .nav-dropdown a.nav-dropdown-item {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 10px; border: 0; min-width: 0;
	color: var(--ink);
	transition: background .15s ease;
}
.main-nav .nav-dropdown a.nav-dropdown-item:hover { background: var(--canvas); color: var(--ink); }
.nav-dropdown-item .store-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 15px; flex-shrink: 0; }
.nav-dropdown-cat .cat-icon { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.nav-dropdown-cat .cat-icon .cat-emoji { font-size: 20px; }
.nav-dropdown-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-dropdown-name { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-dropdown-cnt { font-size: 12px; color: var(--muted); }

.burger {
	display: none; flex-direction: column; justify-content: center; gap: 4px;
	background: none; border: 0; cursor: pointer; padding: 8px; flex-shrink: 0;
}
.burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 44px 0 28px; background: var(--surface); }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 780px; }
.hero p { font-size: 17px; color: var(--body); margin-top: 12px; max-width: 560px; }
.hero .search { max-width: 640px; margin-top: 24px; border: 1px solid var(--hairline); }
.cats-wrap { position: relative; margin-top: 20px; }
.cats-wrap::after {
	content: ''; position: absolute; top: 0; right: 0; z-index: 1;
	width: 96px; height: 100%; pointer-events: none;
	background: linear-gradient(90deg, rgba(255,255,255,0), var(--surface) 86%);
	opacity: 0; transition: opacity .2s ease;
}
.cats-wrap.has-overflow:not(.at-end)::after { opacity: 1; }
.cats {
	display: flex; gap: 8px; flex-wrap: nowrap;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth;
	padding: 2px 0 16px;
	scrollbar-width: none; -ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab; user-select: none;
}
.cats.is-dragging { scroll-behavior: auto; cursor: grabbing; }
.cats::-webkit-scrollbar { display: none; }
.cats-scrollbar {
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 8px; border-radius: 999px;
	background: var(--canvas);
	opacity: 0; pointer-events: none; z-index: 2;
	transition: opacity .22s ease;
}
.cats-wrap:hover .cats-scrollbar,
.cats-wrap:focus-within .cats-scrollbar,
.cats-wrap.is-scrollbar-drag .cats-scrollbar {
	opacity: 1; pointer-events: auto;
}
.cats-wrap.no-overflow .cats-scrollbar {
	opacity: 0; pointer-events: none;
}
.cats-scrollbar-thumb {
	position: absolute; left: 0; top: 0;
	width: 0; height: 100%; min-width: 32px;
	border-radius: inherit;
	background: rgba(48,168,60,.45);
	cursor: grab;
	transition: background .2s ease;
}
.cats-scrollbar-thumb:hover,
.cats-wrap.is-scrollbar-drag .cats-scrollbar-thumb {
	background: var(--green);
}
.cats-wrap.is-scrollbar-drag .cats-scrollbar-thumb {
	cursor: grabbing;
}
.cats a {
	flex: 0 0 auto; white-space: nowrap;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--pill);
	padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--body);
	transition: border-color .2s ease, color .2s ease, transform .15s ease;
	-webkit-user-drag: none; user-select: none;
}
.cats a:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ============================================================
   Sections & headings
   ============================================================ */
.section { padding: 32px 0; }
.h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.h2 small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 10px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-head .more { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.tab {
	appearance: none; -webkit-appearance: none;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--pill);
	padding: 9px 18px; font-size: 14px; font-weight: 700; color: var(--body);
	text-align: center; line-height: 1.5; cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab.on, .tab:hover { background: var(--green); border-color: var(--green); color: #fff; }
.tab-count { font-size: 12px; font-weight: 500; color: var(--muted); }
.tab.on .tab-count, .tab:hover .tab-count { color: rgba(255, 255, 255, .72); }

.tabs,
.shop-apply-tabs {
	flex-wrap: nowrap;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	padding-bottom: 2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	user-select: none;
}

.tabs.is-dragging,
.shop-apply-tabs.is-dragging {
	scroll-behavior: auto;
	cursor: grabbing;
}

.tabs.is-dragging .tab,
.shop-apply-tabs.is-dragging .tab { cursor: grabbing; }

.tabs.is-scrollable:not(.is-at-end),
.shop-apply-tabs.is-scrollable:not(.is-at-end) {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

.tabs .tab,
.shop-apply-tabs .tab {
	flex: 0 0 auto;
	white-space: nowrap;
}

.tabs::-webkit-scrollbar,
.shop-apply-tabs::-webkit-scrollbar { display: none; }

/* ============================================================
   Coupon ticket card
   ============================================================ */
.coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }

.load-more-wrap {
	display: flex; justify-content: center; margin-top: 24px;
	transition: opacity .25s ease, transform .25s ease;
}
.load-more-wrap.is-hiding { opacity: 0; transform: translateY(8px); pointer-events: none; }
.load-more-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 220px; padding: 12px 28px;
	border: 1.5px solid var(--green); border-radius: var(--pill);
	background: var(--surface); color: var(--green-strong);
	font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.load-more-btn:hover { background: var(--green); color: #fff; }
.load-more-btn:disabled { opacity: .75; cursor: default; }
.load-more-btn:disabled:hover { background: var(--surface); color: var(--green-strong); }
.load-more-btn.is-loading::before {
	content: ''; width: 14px; height: 14px; flex-shrink: 0;
	border: 2px solid rgba(48,168,60,.3); border-top-color: var(--green);
	border-radius: 50%; animation: loadMoreSpin .7s linear infinite;
}
@keyframes loadMoreSpin { to { transform: rotate(360deg); } }

.coupon-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.coupon-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(25,126,37,.45); border-color: var(--green); }

.card-top { display: flex; align-items: center; gap: 11px; }
.card-top .store-logo { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }
.store-logo {
	width: 48px; height: 48px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 19px; color: #fff; flex-shrink: 0; background: var(--green);
}
.store-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; padding: 3px; }
.store-logo.has-img { background: #fff; border: 1px solid var(--hairline); overflow: hidden; }
.store-logo-link { display: flex; flex-shrink: 0; }
.store-name { font-weight: 700; font-size: 15px; }
.rate { font-size: 13px; color: var(--gold); font-weight: 700; }
.rate .dim { color: var(--muted); font-weight: 500; }
.type-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; z-index: 2; }
.coupon-card .type-tag { position: absolute; top: 12px; right: 54px; }
.coupon-card > .favorite-btn--card {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	width: 32px; height: 32px;
	background: rgba(255,255,255,.96);
	box-shadow: 0 2px 8px -4px rgba(0,0,0,.18);
}
.coupon-item .type-tag { position: static; flex-shrink: 0; }
.type-tag.exc { background: var(--green-soft); color: var(--green-strong); }
.type-tag.new { background: #eef2f7; color: var(--cold); }

.discount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--green-strong); line-height: 1; }
.discount small { font-size: 14px; font-weight: 600; color: var(--body); }

.coupon-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.32; min-height: 41px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 600; color: var(--body); background: var(--canvas); padding: 4px 10px; border-radius: 99px; }
.badge.purple { background: #f3ebfa; color: #7a3eb1; }
.meta { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.meta .exp { color: var(--warm); font-weight: 700; }
.c-trust { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.c-trust svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.c-trust-check { color: var(--green-strong); }
.c-trust-days { color: var(--warm); }
.c-trust-uses { color: var(--body); }

/* Раскрывающийся блок «Описания и условия» в карточке */
.coupon-details {
	margin-top: 12px;
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid #d7dadd;
	border-radius: 12px;
}
.coupon-details-toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; padding: 0; background: none; border: 0; cursor: pointer;
	font: inherit; font-size: 13px; font-weight: 700; color: var(--green-strong); text-align: left;
}
.coupon-details-toggle:focus { outline: none; }
.coupon-details-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.coupon-details-chevron {
	display: inline-flex; align-items: center; justify-content: center;
	width: 14px; height: 14px; flex-shrink: 0;
	transition: transform .2s ease;
}
.coupon-details-chevron svg { width: 14px; height: 14px; display: block; }
.coupon-details.open .coupon-details-chevron { transform: rotate(180deg); }
.coupon-details-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.coupon-details.open .coupon-details-body { grid-template-rows: 1fr; }
.coupon-details-inner { overflow: hidden; }
.coupon-details-text { padding-top: 8px; font-size: 13px; line-height: 1.55; color: var(--body); }
.coupon-details-conditions { margin-top: 8px; font-size: 13px; color: var(--body); }
.coupon-details-conditions strong { display: block; margin-bottom: 4px; color: var(--ink); }
.coupon-details-conditions ul { margin: 0; padding-left: 18px; }

/* ============================================================
   Кнопка «Показать промокод» — стиль Promokodus (1:1)
   ============================================================ */
.card-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }

.card-actions > .cta { flex: 1 1 auto; width: auto; min-width: 0; }
.card-actions > .cta.coupon-btn-code { width: auto; }

/* Избранное */
.favorite-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	width: 40px; height: 40px; padding: 0; flex-shrink: 0;
	border: 1px solid var(--hairline); border-radius: 50%;
	background: var(--surface); color: var(--body);
	font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.favorite-btn svg { display: block; width: 18px; height: 18px; }
.favorite-btn:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-strong); transform: translateY(-1px); }
.favorite-btn.is-active { border-color: #f2c4cd; background: #fdecef; color: var(--hot); }
.favorite-btn.is-active svg { fill: currentColor; }
.favorite-btn:disabled { opacity: .6; cursor: default; transform: none; }
.favorite-btn--item { width: 36px; height: 36px; align-self: flex-end; }
.favorite-btn--shop { width: auto; height: 40px; padding: 0 16px; border-radius: var(--pill); }
.favorite-btn--shop .favorite-label { white-space: nowrap; }
.favorite-btn--account { width: 34px; height: 34px; }

/* Обычная зелёная кнопка (акция без кода) */
.cta {
	display: inline-block;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: var(--green);
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 40px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: box-shadow .3s ease-in-out;
}
.cta:hover { box-shadow: 0 3px 8px 0 rgba(38,38,50,.3); }

/* Кнопка с промокодом */
.cta.coupon-btn-code {
	display: inline-block;
	width: 100%;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	background: #ededed;
	overflow: hidden;
	position: relative;
	line-height: 40px;
	white-space: normal;
	box-shadow: none;
}
.cta.coupon-btn-code:hover { box-shadow: 0 3px 8px 0 rgba(38,38,50,.3); }

/* Замаскированный код справа (видно последние символы) */
.coupon-btn-code .code-part {
	position: absolute;
	z-index: 1;
	color: #7b7b93;
	right: 0;
	pointer-events: none;
	top: 0;
	font-weight: 700;
	font-size: 16px;
	padding-right: 7px;
	background-color: #ededed;
	line-height: 40px;
}

/* Зелёная плашка, которая уезжает влево при наведении */
.coupon-btn-code-inner {
	border-radius: 4px 0 0 4px;
	background: var(--green);
	position: absolute;
	left: 0;
	top: 0;
	right: 17px;
	bottom: 0;
	z-index: 2;
	transition: .3s ease-in-out;
	color: #fff;
	font-size: 16px;
	text-align: center;
	line-height: 40px;
}
.cta.coupon-btn-code:hover .coupon-btn-code-inner { right: 30px; }

/* Фигурный (волнистый) правый край */
.coupon-btn-code-inner::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 17px;
	background: url('../img/corner.png') no-repeat right bottom;
	background-size: contain;
	z-index: 1;
}

.code-label { white-space: nowrap; }
.cta.copied { animation: checkPop .3s ease; }


.vote { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.vote b { color: var(--body); font-weight: 600; }
.vote button {
	font-weight: 700; font-size: 12.5px; border: 1px solid var(--hairline);
	background: var(--surface); color: var(--body); padding: 3px 11px; border-radius: 99px; cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.vote button:hover { border-color: var(--green); color: var(--green); }
.vote button:active { animation: popIn .3s ease; }

/* Рейтинг звёздами + счётчики голосов */
.stars { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.stars .star { background: none; border: 0; padding: 0; cursor: default; font-size: 15px; line-height: 1; color: var(--hairline); transition: color .15s ease, transform .1s ease; }
.stars .star.filled { color: var(--gold); }
.stars[data-interactive="1"] .star { cursor: pointer; }
.stars[data-interactive="1"] .star.preview { color: var(--gold); }
.stars[data-interactive="1"] .star:hover { transform: scale(1.15); }
.stars[data-interactive="1"].previewing .star.filled:not(.preview) { color: var(--hairline); }
.stars .stars-value { font-weight: 700; font-size: 14px; margin-left: 4px; color: var(--ink); }
.stars .stars-count { font-size: 13px; color: var(--muted); }
.rate-stars { color: var(--gold); letter-spacing: 1px; }
.v-count { font-weight: 700; opacity: .75; }
.vote button.voted { border-color: var(--green); color: var(--green); opacity: .8; }
.vote button:disabled { cursor: default; opacity: .6; }
.stars.voted .star { cursor: default; }
.inline-msg { font-size: 12px; color: var(--warm); margin-left: 6px; }

/* ============================================================
   Модальное окно промокода
   ============================================================ */
.modal-backdrop {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(17,17,17,.55);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
	background: var(--surface); border-radius: 18px; padding: 28px;
	width: 100%; max-width: 420px; text-align: center;
	max-height: calc(100vh - 40px); overflow-y: auto;
	transform: translateY(24px) scale(.94);
	transition: transform .42s cubic-bezier(.34,1.56,.64,1);
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.modal-backdrop.show .modal { transform: translateY(0) scale(1); }
.modal .m-logo {
	width: 96px; height: 96px; border-radius: 22px; margin: 4px auto 14px;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 36px; color: #fff; background: var(--green);
	border: 1px solid var(--hairline);
	box-shadow: 0 14px 28px -16px rgba(0,0,0,.35);
	overflow: hidden;
}
.modal .m-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 21px; padding: 10px; }
.modal h3 { font-size: 19px; font-weight: 800; }
.modal .m-store { font-size: 14px; color: var(--body); margin-top: 3px; }
.modal .m-trust { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.modal .m-details {
	margin: 14px 0 4px; padding: 10px 0;
	border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
	text-align: left;
}
.modal .m-details[hidden] { display: none; }
.modal .m-details-toggle {
	display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px;
	width: auto; padding: 0; background: none; border: 0; cursor: pointer;
	font: inherit; font-size: 13px; font-weight: 700; color: var(--green-strong); text-align: left;
}
.modal .m-details-toggle:focus { outline: none; }
.modal .m-details-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.modal .m-details-chevron {
	display: inline-flex; align-items: center; justify-content: center;
	width: 14px; height: 14px; flex-shrink: 0;
	transition: transform .2s ease;
}
.modal .m-details-chevron svg { width: 14px; height: 14px; display: block; }
.modal .m-details.open .m-details-chevron { transform: rotate(180deg); }
.modal .m-details-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.modal .m-details.open .m-details-body { grid-template-rows: 1fr; }
.modal .m-details-inner { overflow: hidden; }
.modal .m-details-text {
	padding-top: 8px; font-size: 13px; line-height: 1.55; color: var(--body);
	white-space: pre-line; max-height: 220px; overflow-y: auto;
}
.modal .m-details-conditions { margin-top: 10px; font-size: 13px; color: var(--body); }
.modal .m-details-conditions strong { display: block; margin-bottom: 4px; color: var(--ink); }
.modal .m-details-conditions ul { margin: 0; padding-left: 18px; }
.modal .m-code {
	display: block; margin: 18px 0; font-weight: 800; font-size: 24px; letter-spacing: .16em;
	background: var(--green-soft); color: var(--green-strong);
	padding: 16px; border-radius: 12px; border: 2px dashed var(--green);
	word-break: break-all; cursor: pointer; transition: background .2s ease;
}
.modal .m-code:hover { background: #d7e7da; }
.modal .m-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.modal.is-action .m-note {
	font-size: 14px; color: var(--body); text-align: center;
	margin: 14px 0 18px; line-height: 1.5;
}
.modal .m-actions { display: flex; flex-direction: column; gap: 10px; }
.modal .m-btn {
	display: block; font-weight: 700; font-size: 15px; padding: 13px; border-radius: var(--pill);
	border: 0; cursor: pointer; transition: background .2s ease, transform .1s ease;
}
.modal .m-btn.primary { background: var(--green); color: #fff; }
.modal .m-btn.primary:hover { background: var(--green-strong); }
.modal .m-btn.gray { background: var(--canvas); color: var(--ink); }
.modal .m-btn:active { transform: scale(.98); }
.modal .m-close {
	position: absolute; top: 14px; right: 16px; background: none; border: 0;
	font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal { position: relative; }

/* Report modal */
.report-modal { max-width: 480px; text-align: left; }
.report-modal h3 { text-align: left; }
.report-sub { margin: 6px 0 16px; font-size: 13px; color: var(--body); }
.report-field { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--body); }
.report-field > span { display: block; margin-bottom: 6px; }
.report-field small { font-weight: 400; color: var(--muted); }
.report-field select,
.report-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px;
	background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; outline: none;
}
.report-field select:focus,
.report-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(48, 168, 60, .12); }
.report-field textarea { min-height: 90px; resize: vertical; }
.report-actions { display: flex; gap: 10px; margin-top: 16px; }
.report-actions .m-btn { flex: 1; margin: 0; }
.report-status { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--green-strong); }
.report-status.is-error { color: var(--warm); }

@media (max-width: 640px) {
	.modal { padding: 24px 20px; }
	.modal .m-logo { width: 84px; height: 84px; border-radius: 20px; font-size: 32px; }
	.modal .m-logo img { border-radius: 19px; padding: 9px; }
}

/* ============================================================
   Уведомление о копировании (toast)
   ============================================================ */
.toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 2000;
	display: flex; align-items: center; gap: 9px;
	background: var(--green-strong); color: #fff;
	font-size: 14px; font-weight: 600;
	padding: 12px 18px; border-radius: 12px;
	box-shadow: 0 14px 34px -14px rgba(0,0,0,.5);
	opacity: 0; pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .25s ease, transform .25s cubic-bezier(.22,.61,.36,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; border-radius: 50%;
	background: rgba(255,255,255,.18); font-size: 12px; font-weight: 800;
}

/* Кнопка «Наверх» */
.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 900;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--green); color: #fff; border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 24px -10px rgba(24,120,36,.55);
	opacity: 0; visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .28s ease, transform .28s cubic-bezier(.22,.61,.36,1), visibility .28s, background .2s ease, box-shadow .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--green-strong); box-shadow: 0 14px 28px -12px rgba(24,120,36,.65); transform: translateY(-2px) scale(1.04); }
.to-top:active { transform: scale(.96); }
@media (max-width: 640px) {
	.to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ============================================================
   Expiring strip
   ============================================================ */
.expiring { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.exp-card {
	position: relative;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
	padding: 14px; display: flex; flex-direction: column; gap: 10px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.favorite-btn--exp { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; }
.exp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.2); }
.exp-card .t { font-size: 12px; font-weight: 800; color: var(--hot); background: #fdecef; padding: 3px 9px; border-radius: 99px; align-self: flex-start; }
.exp-card .row { display: flex; align-items: center; gap: 9px; }
.exp-card .store-logo { width: 72px; height: 72px; border-radius: 15px; font-size: 24px; }
.exp-card .s { font-size: 13px; font-weight: 700; }
.exp-card h4 { font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 36px; }
.exp-card .go { color: var(--green); font-weight: 700; font-size: 13px; }

/* ============================================================
   Product deals
   ============================================================ */
.prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.prod { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -16px rgba(0,0,0,.2); }
.prod .img { height: 130px; display: flex; align-items: center; justify-content: center; position: relative; }
.prod .temp { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; color: #fff; }
.temp.hot { background: var(--hot); }
.temp.warm { background: var(--warm); }
.prod .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.prod h4 { font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 38px; }
.prod .price { font-size: 17px; font-weight: 800; }
.prod .old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 500; }
.prod .shop { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.prod .shop .store-logo { width: 20px; height: 20px; border-radius: 5px; font-size: 9px; }

/* ============================================================
   Stores grid
   ============================================================ */
.stores { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.store {
	background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
	padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.store:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 10px 22px -14px rgba(0,0,0,.2); }
.store .store-logo { width: 80px; height: 80px; border-radius: 18px; font-size: 28px; }
.cat-icon {
	width: 48px; height: 48px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--green-soft); flex-shrink: 0; overflow: hidden;
}
.cat-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cat-icon .cat-emoji { font-size: 24px; line-height: 1; }
.cats a .cat-emoji { font-size: 14px; margin-right: 3px; }
.store .nm { font-size: 13px; font-weight: 600; color: var(--body); text-align: center; }
.store .cnt { font-size: 12px; color: var(--muted); }

/* ============================================================
   Алфавитный список магазинов
   ============================================================ */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.alpha-nav a {
	min-width: 36px; text-align: center; background: var(--surface); border: 1px solid var(--hairline);
	border-radius: 9px; padding: 8px 6px; font-weight: 700; font-size: 14px; color: var(--body);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.alpha-nav a:hover, .alpha-nav a.on { background: var(--green); border-color: var(--green); color: #fff; }
.alpha-group { margin-top: 24px; }
.alpha-group .letter { font-size: 24px; font-weight: 800; color: var(--green); border-bottom: 2px solid var(--hairline); padding-bottom: 8px; margin-bottom: 14px; }
.alpha-group .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alpha-store {
	display: flex; align-items: center; gap: 12px; background: var(--surface);
	border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px;
	transition: border-color .2s ease, transform .15s ease;
}
.alpha-store:hover { border-color: var(--green); transform: translateX(3px); }
.alpha-store .store-logo { width: 38px; height: 38px; border-radius: 9px; font-size: 15px; }
.alpha-store .nm { font-size: 14px; font-weight: 600; }
.alpha-store .cnt { font-size: 12px; color: var(--muted); display: block; }

/* ============================================================
   How / steps
   ============================================================ */
.how { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.step { background: var(--canvas); border-radius: var(--radius); padding: 24px; transition: transform .2s ease; }
.step:hover { transform: translateY(-3px); }
.step .n { font-size: 40px; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.step h4 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.step p { color: var(--body); font-size: 15px; margin-top: 6px; }

/* ============================================================
   Stats
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.stat { background: var(--green-strong); color: #fff; border-radius: var(--radius); padding: 28px 24px; transition: transform .2s ease; }
.stat:hover { transform: translateY(-3px); }
.stat .v { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: 15px; opacity: .85; margin-top: 4px; }

/* ============================================================
   SEO / about block
   ============================================================ */
.seo { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--hairline); padding: 32px; margin-top: 18px; }
.seo h3 { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.seo h3:first-child { margin-top: 0; }
.seo p { color: var(--body); font-size: 15px; line-height: 1.6; }
.seo ul { margin: 8px 0 0 20px; color: var(--body); font-size: 15px; }
.seo li { margin-bottom: 6px; }

/* FAQ */
.faq { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--hairline); overflow: hidden; }
.faq-q {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 20px; font-weight: 700; font-size: 16px; color: var(--ink); font-family: inherit;
}
.faq-q-text { flex: 1; min-width: 0; }
.faq-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; flex-shrink: 0;
	border-radius: 50%; border: 1px solid var(--hairline);
	background: var(--canvas); color: var(--body);
	transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.faq-toggle svg { width: 16px; height: 16px; display: block; }
.faq-item.open .faq-toggle { transform: rotate(180deg); background: var(--green-soft); border-color: var(--green-soft); color: var(--green-strong); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; color: var(--body); font-size: 15px; line-height: 1.6; }

/* ============================================================
   Subscribe
   ============================================================ */
.sub {
	background: var(--green); border-radius: var(--radius); padding: 36px 40px; margin-top: 28px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sub h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.sub p { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 6px; }
.sub form { display: flex; gap: 8px; flex-shrink: 0; }
.sub input { border: 0; border-radius: 99px; padding: 13px 18px; font: inherit; font-size: 15px; min-width: 260px; outline: none; }
.sub button { background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 13px 26px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s ease; }
.sub button:hover { background: #000; }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span { color: var(--body); }

/* ============================================================
   Store page
   ============================================================ */
.store-hero {
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
	padding: 28px; margin-top: 16px; display: flex; gap: 24px; align-items: flex-start;
}
.sh-logo {
	width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 44px; color: #fff; background: var(--green); overflow: hidden;
}
.sh-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sh-logo.has-img { background: #fff; border: 1px solid var(--hairline); }
.sh-info h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sh-meta { font-size: 14px; color: var(--body); margin-top: 8px; }
.sh-meta .r { color: var(--gold); font-weight: 700; }
.sh-meta a { color: var(--green); }
.sh-desc { font-size: 15px; color: var(--body); margin-top: 12px; max-width: 720px; line-height: 1.6; }
.sh-desc p + p { margin-top: 8px; }
.sh-desc-inner { position: relative; max-height: none; overflow: visible; transition: max-height .45s cubic-bezier(.22,.61,.36,1); }
.sh-desc.is-collapsible .sh-desc-inner { max-height: var(--desc-collapsed-height, 5.2em); overflow: hidden; }
.sh-desc.is-collapsible .sh-desc-inner::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.8em;
	background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface) 90%);
	pointer-events: none; opacity: 1; transition: opacity .3s ease;
}
.sh-desc.is-open .sh-desc-inner::after { opacity: 0; }
.sh-desc.is-open .sh-desc-inner { max-height: var(--desc-open-height, 1200px); }
.sh-desc-toggle {
	display: none; align-items: center; gap: 5px;
	margin-top: 8px; padding: 0; border: 0; background: none;
	color: var(--green-strong); font: inherit; font-size: 13px; font-weight: 700;
	cursor: pointer; text-align: left;
}
.sh-desc.is-collapsible .sh-desc-toggle { display: inline-flex; }
.sh-desc-toggle:hover { color: var(--green); }
.sh-desc-toggle-icon { display: inline-flex; transition: transform .25s ease; }
.sh-desc-toggle-icon svg { width: 14px; height: 14px; display: block; }
.sh-desc.is-open .sh-desc-toggle-icon { transform: rotate(180deg); }
.sh-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sh-btn { background: var(--green); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: var(--pill); border: 0; cursor: pointer; white-space: nowrap; transition: background .2s ease; }
.sh-btn:hover { background: var(--green-strong); }
.sh-btn.gray { background: var(--canvas); color: var(--ink); }
.sh-site-link { background: none; border: 0; padding: 0; color: var(--green); font: inherit; cursor: pointer; }
.sh-site-link:hover { text-decoration: underline; }

.shop-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
	margin-top: 16px; background: var(--hairline); border: 1px solid var(--hairline);
	border-radius: var(--radius); overflow: hidden;
}
.shop-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; background: var(--surface); }
.shop-stat-value {
	font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
	color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-stat-label { font-size: 10.5px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 560px) {
	.shop-stat { padding: 12px; }
	.shop-stat-value { font-size: 16px; }
}

/* Best offer */
.best-offer {
	position: relative; display: flex; align-items: center; gap: 18px;
	margin-top: 20px; padding: 22px;
	background: linear-gradient(135deg, #f1faf2 0%, var(--surface) 58%);
	border: 1px solid var(--green); border-radius: var(--radius);
	box-shadow: 0 14px 34px -28px rgba(48, 168, 60, .55);
}
.best-offer-label {
	position: absolute; top: -11px; left: 18px;
	padding: 5px 10px; border-radius: 99px; background: var(--green); color: #fff;
	font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: .05em; text-transform: uppercase;
}
.best-offer-logo { flex-shrink: 0; }
.best-offer-logo .store-logo { width: 76px; height: 76px; border-radius: 18px; font-size: 28px; }
.best-offer-main { flex: 1; min-width: 0; }
.best-offer-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.best-offer-store { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--green-strong); }
.best-offer-discount { padding: 3px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green-strong); font-size: 12px; font-weight: 800; }
.best-offer-main h3 { margin-top: 6px; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.best-offer-desc { margin-top: 6px; max-width: 720px; font-size: 14px; line-height: 1.55; color: var(--body); }
.best-offer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.best-offer-action { flex-shrink: 0; width: 230px; }
.best-offer-action .cta { width: 100%; }
.best-offer-favorite { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.favorite-btn--best { width: 34px; height: 34px; }

@media (max-width: 800px) {
	.best-offer { flex-wrap: wrap; align-items: flex-start; padding: 20px 18px 18px; }
	.best-offer-main { flex: 1 1 calc(100% - 90px); }
	.best-offer-action { width: 100%; }
	.best-offer-logo .store-logo { width: 64px; height: 64px; border-radius: 15px; font-size: 24px; }
}
@media (max-width: 560px) {
	.best-offer-main { flex-basis: calc(100% - 76px); }
	.best-offer-main h3 { font-size: 17px; }
	.best-offer-desc { font-size: 13.5px; }
}

/* How to apply */
.shop-apply {
	margin-top: 32px; padding: 22px;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
	scroll-margin-top: 90px;
}
.shop-apply .h2 { font-size: 22px; }
.shop-apply-tabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: nowrap; }
.shop-apply-tabs .tab { display: inline-flex; align-items: center; gap: 7px; }
.shop-apply-tabs .tab svg { display: block; width: 16px; height: 16px; flex-shrink: 0; }
.shop-apply-panel { margin-top: 16px; }
.shop-apply-panel ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.shop-apply-panel li { padding-left: 4px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.shop-apply-panel li::marker { color: var(--green); font-weight: 800; }
.shop-apply-note {
	margin-top: 18px; padding: 14px 16px; border-radius: 12px;
	background: var(--green-soft); font-size: 13.5px; color: var(--body);
}
.shop-apply-note strong { display: block; margin-bottom: 6px; color: var(--ink); }
.shop-apply-note ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.shop-apply-video { margin-top: 18px; }
.shop-apply-video-title { margin-bottom: 8px; font-size: 16px; font-weight: 800; }
.shop-apply-video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.shop-apply-video-link {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
	border-radius: 99px; background: var(--green); color: #fff;
	font-size: 13px; font-weight: 700; transition: background .2s ease;
}
.shop-apply-video-link:hover { background: var(--green-strong); }

@media (max-width: 560px) {
	.shop-apply { padding: 18px; }
	.shop-apply .h2 { font-size: 19px; }
	.shop-apply-panel li { font-size: 14px; }
}

.shop-no-promo {
	margin-top: 32px; padding: 22px;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.shop-no-promo .h2 { font-size: 22px; }
.shop-no-promo-intro { max-width: 760px; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.no-promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.no-promo-item { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--canvas); }
.no-promo-icon {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-strong);
}
.no-promo-icon svg { width: 16px; height: 16px; display: block; }
.no-promo-body h3 { font-size: 15px; font-weight: 800; line-height: 1.3; }
.no-promo-body p { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--body); }

@media (max-width: 700px) {
	.shop-no-promo { padding: 18px; }
	.shop-no-promo .h2 { font-size: 19px; }
	.no-promo-grid { grid-template-columns: 1fr; }
}

.shop-faq { margin-top: 32px; }
.shop-faq .h2 { margin-bottom: 8px; font-size: 22px; }
.shop-faq .faq { margin-top: 14px; }

@media (max-width: 560px) {
	.shop-faq .h2 { font-size: 19px; }
}

/* Shop reviews */
.shop-reviews {
	margin-top: 32px; padding: 22px;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.shop-reviews-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-reviews-head .h2 { font-size: 22px; }
.shop-reviews-sub { margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.review-cta {
	display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px;
	border-radius: 9px; background: var(--green); color: #fff; font-size: 13.5px; font-weight: 700;
	white-space: nowrap; transition: background .2s ease, transform .2s ease;
}
.review-cta:hover { background: var(--green-strong); transform: translateY(-1px); }

.review-summary {
	display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px;
	gap: 18px; align-items: center; margin-top: 18px; padding: 16px 18px;
	background: var(--canvas); border-radius: 12px;
}
.review-score { display: flex; flex-direction: column; gap: 3px; }
.review-score-value { color: var(--ink); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.review-score-stars { color: var(--gold); font-size: 17px; letter-spacing: 2px; }
.review-score-count { color: var(--muted); font-size: 12.5px; }
.review-bars { display: grid; gap: 5px; }
.review-bar-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 28px; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.review-bar-label { color: var(--body); font-weight: 700; text-align: right; }
.review-bar-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e6ebe6; }
.review-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.review-bar-count { text-align: right; }
.review-summary-note { color: var(--muted); font-size: 12px; line-height: 1.45; }

.review-list { margin-top: 6px; }
.review-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.review-item:last-child { padding-bottom: 0; border-bottom: 0; }
.review-avatar {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 800;
}
.review-main { flex: 1; min-width: 0; }
.review-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.review-author { color: var(--ink); font-size: 14px; font-weight: 800; }
.review-date { color: var(--muted); font-size: 12px; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green-strong); font-size: 11.5px; font-weight: 600; }
.review-verified svg { display: block; width: 13px; height: 13px; }
.review-item-stars { margin-top: 3px; color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.review-text { margin-top: 6px; color: var(--body); font-size: 14px; line-height: 1.6; }
.review-pros-cons { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--body); font-size: 12.5px; line-height: 1.5; }
.review-pros b { color: var(--green-strong); }
.review-cons b { color: var(--warm); }
.review-more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.review-load-more { min-width: 200px; }
.review-empty { margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--canvas); color: var(--body); font-size: 14px; }

.review-user-note {
	display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 12px 14px;
	border-radius: 10px; background: var(--green-soft); color: var(--green-strong); font-size: 13px; line-height: 1.5;
}
.review-user-note svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }

.review-login {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin-top: 18px; padding: 14px 16px; border-radius: 11px; background: var(--canvas);
	color: var(--body); font-size: 13.5px;
}
.review-login-actions { display: flex; align-items: center; gap: 12px; }
.review-login-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px;
	border-radius: 8px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
}
.review-login-btn:hover { background: var(--green-strong); }
.review-register-link { color: var(--green-strong); font-weight: 700; }
.review-register-link:hover { color: var(--green); }

.shop-review-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.shop-review-form h3 { font-size: 18px; font-weight: 800; }
.review-form-sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.review-form-rating { margin-top: 14px; padding: 0; border: 0; }
.review-form-rating legend { color: var(--ink); font-size: 13px; font-weight: 700; }
.review-stars-input { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 1px; margin-top: 4px; }
.review-stars-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.review-stars-input label { color: var(--hairline); cursor: pointer; font-size: 28px; line-height: 1; transition: color .15s ease, transform .15s ease; }
.review-stars-input label:hover,
.review-stars-input label:hover ~ label,
.review-stars-input input:checked ~ label { color: var(--gold); }
.review-stars-input label:active { transform: scale(.92); }
.review-stars-input input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }

.review-field { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.review-field > span { color: var(--ink); font-size: 13px; font-weight: 700; }
.review-field small { color: var(--muted); font-weight: 500; }
.review-field textarea {
	width: 100%; min-height: 90px; padding: 10px 12px;
	border: 1px solid var(--hairline); border-radius: 10px;
	background: #fff; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5;
	resize: vertical; transition: border-color .2s ease, box-shadow .2s ease;
}
.review-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.review-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-form-row .review-field textarea { min-height: 72px; }
.review-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.review-submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px;
	border: 0; border-radius: 9px; background: var(--green); color: #fff;
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}
.review-submit:hover { background: var(--green-strong); }
.review-submit:disabled { opacity: .65; cursor: default; }
.review-form-status { color: var(--warm); font-size: 13px; }
.review-form-status.is-success { color: var(--green-strong); }
.review-form-success {
	display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 10px;
	background: var(--green-soft); color: var(--green-strong); font-size: 13.5px; line-height: 1.5;
}
.review-form-success svg { flex-shrink: 0; width: 18px; height: 18px; }

@media (max-width: 900px) {
	.review-summary { grid-template-columns: 150px minmax(0, 1fr); }
	.review-summary-note { display: none; }
}
@media (max-width: 760px) {
	.shop-reviews { padding: 18px; }
	.shop-reviews-head .h2 { font-size: 19px; }
	.review-summary { grid-template-columns: 1fr; gap: 12px; }
	.review-score { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
	.review-score-value { font-size: 30px; }
	.review-score-count { margin-left: auto; }
	.review-form-row { grid-template-columns: 1fr; }
	.review-item { gap: 10px; }
	.review-avatar { width: 34px; height: 34px; font-size: 14px; }
	.review-login { align-items: flex-start; }
}

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 24px; align-items: start; }
.layout > * { min-width: 0; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.side-block { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px; }
.side-block h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.side-block p { font-size: 14px; color: var(--body); line-height: 1.6; }
.side-block p a { color: var(--green-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.side-block p a:hover { color: var(--green); }
.side-cta { background: linear-gradient(135deg, #f1faf2 0%, var(--surface) 70%); border-color: var(--green); }
.side-cta p { margin-bottom: 14px; }
.side-cta-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	padding: 9px 14px; border-radius: 99px; background: var(--green); color: #fff;
	font-size: 13px; font-weight: 700; text-align: center; transition: background .2s ease;
}
.side-cta-btn:hover { background: var(--green-strong); }

/* Мнение редактора / эксперта */
.side-expert {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, #f1faf2 0%, var(--surface) 64%);
	border-color: var(--hairline); border-radius: 18px; color: var(--ink);
	box-shadow: 0 20px 44px -34px rgba(0,0,0,.2);
}
.side-expert::before {
	content: '“'; position: absolute; right: 12px; top: -24px;
	color: rgba(48,168,60,.08); font-size: 120px; line-height: 1;
	pointer-events: none;
}
.side-expert-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-expert-head h4 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.side-expert-badge {
	display: inline-flex; align-items: center; flex-shrink: 0;
	padding: 4px 9px; border-radius: 99px; background: var(--green); color: #fff;
	font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.side-expert-person { position: relative; display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.side-expert-avatar {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 52px; height: 52px; overflow: hidden;
	border: 2px solid #fff; border-radius: 50%;
	background: var(--green); color: #fff; font-size: 20px; font-weight: 800;
	box-shadow: 0 0 0 1px var(--hairline);
}
.side-expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-expert-info { min-width: 0; }
.side-expert-name { display: block; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.25; }
.side-expert-name:hover { color: var(--green-strong); text-decoration: underline; }
.side-expert-role { display: block; margin-top: 2px; color: var(--green-strong); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.side-expert .side-expert-quote { position: relative; margin-top: 13px; color: var(--body); font-size: 13px; line-height: 1.55; }
.side-expert-exp { position: relative; margin-top: 12px; color: var(--body); font-size: 12px; }
.side-expert-exp strong { color: var(--ink); }
.side-expert-link {
	position: relative; display: inline-flex; align-items: center; gap: 4px;
	margin-top: 12px; padding-bottom: 1px;
	border-bottom: 1px solid rgba(48,168,60,.35);
	color: var(--green-strong); font-size: 12.5px; font-weight: 700;
}
.side-expert-link:hover { border-color: var(--green); color: var(--green); }

/* Инфо о магазине */
.side-info { padding: 18px; }
.side-info-head { margin-bottom: 14px; }
.side-info-head h4 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 800; }
.side-info-list { display: flex; flex-direction: column; gap: 9px; }
.side-info-row { display: flex; align-items: flex-start; gap: 9px; }
.side-info-icon {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 24px; height: 24px; border-radius: 7px;
	background: var(--canvas); color: var(--green-strong);
}
.side-info-icon svg { width: 14px; height: 14px; display: block; }
.side-info-row-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.side-info-label { color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.side-info-value { color: var(--body); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.side-info-value a { color: var(--green-strong); font-weight: 600; }
.side-info-value a:hover { color: var(--green); }
.side-info-email { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.side-info-email-toggle {
	padding: 0; border: 0; background: none;
	color: var(--green-strong); font: inherit; font-size: 12.5px; font-weight: 600;
	cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.side-info-email-toggle:hover { color: var(--green); }
.side-info-email-link { color: var(--green-strong); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.side-info-email-link[hidden] { display: none; }
.side-info-socials { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.side-info-social-label { color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.side-info-social-links { display: inline-flex; align-items: center; gap: 6px; }
.side-info-social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border: 1px solid var(--hairline); border-radius: 50%;
	background: var(--surface); color: var(--green-strong);
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.side-info-social svg { width: 15px; height: 15px; display: block; }
.side-info-social:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-1px); }
.side-info-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.side-info-section-title { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--ink); font-size: 12.5px; font-weight: 800; }
.side-info-section-title span { display: inline-flex; color: var(--green-strong); }
.side-info-section-title svg { width: 15px; height: 15px; display: block; }
.side-info-items { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-info-items li { position: relative; padding-left: 12px; color: var(--body); font-size: 12.5px; line-height: 1.45; }
.side-info-items li::before { content: ''; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.side-info-return { margin: 0; color: var(--body); font-size: 12.5px; line-height: 1.5; }
.side-info-checked { display: flex; align-items: center; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 11px; }
.side-info-checked svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--green-strong); }

.side-store { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.side-store:last-child { border-bottom: 0; }
.side-store .store-logo { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }
.side-store span { font-size: 13.5px; font-weight: 600; }
.side-store small { font-size: 12px; color: var(--muted); display: block; }
.side-all-link { display: inline-flex; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--green-strong); }
.side-all-link:hover { color: var(--green); }

/* Coupon list (horizontal) */
.coupon-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; transition: opacity .2s ease; }
.coupon-list.is-loading { opacity: .45; pointer-events: none; }
.coupon-item {
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
	padding: 18px; display: flex; gap: 16px; align-items: center; position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
}
.coupon-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(0,0,0,.2); }
.coupon-item .store-logo { width: 72px; height: 72px; border-radius: 16px; font-size: 26px; }
.c-item-discount {
	grid-area: logo;
	width: 80px; min-height: 80px; height: auto; border-radius: 18px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--green-soft); color: var(--green-strong);
	font-size: 13px; font-weight: 800; line-height: 1.15; text-align: center;
	padding: 8px; overflow-wrap: break-word; word-break: normal;
}
.c-item-discount.long { font-size: 11.5px; }
.c-item-main { flex: 1; min-width: 0; }
.c-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-item-main h3 { font-size: 16px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.c-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.c-item-meta .exp { color: var(--warm); font-weight: 700; }
.c-item-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.c-item-right .discount { font-size: 24px; font-weight: 800; color: var(--green-strong); }
.c-item-right .cta { margin-top: 0; width: 196px; max-width: 100%; }

/* Popular promo codes table */
.shop-codes { margin-top: 32px; }
.shop-codes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-codes-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.shop-codes-scroll {
	margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.shop-codes-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.shop-codes-table th {
	text-align: left; padding: 11px 16px; font-size: 11.5px; line-height: 1.4;
	letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
	background: var(--canvas); border-bottom: 1px solid var(--hairline); font-weight: 700;
}
.shop-codes-table th:nth-child(1) { width: 170px; }
.shop-codes-table th:nth-child(3) { width: 130px; white-space: nowrap; }
.shop-codes-table th:nth-child(4) { width: 180px; }
.shop-codes-table td { padding: 13px 16px; border-bottom: 1px solid var(--hairline); vertical-align: middle; font-size: 14px; color: var(--ink); }
.shop-codes-table tbody tr:last-child td { border-bottom: 0; }
.shop-codes-table tbody tr:hover { background: #fbfdfb; }
.shop-code-cell { display: flex; align-items: center; gap: 8px; }
.shop-code-mask {
	display: inline-block; padding: 5px 9px; border-radius: 7px;
	background: var(--green-soft); color: var(--green-strong);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.favorite-btn--code { width: 32px; height: 32px; }
.favorite-btn--code svg { width: 16px; height: 16px; }
.shop-code-title { font-weight: 600; color: var(--ink); }
.shop-code-date { color: var(--muted); white-space: nowrap; }
.shop-code-btn {
	appearance: none; -webkit-appearance: none; border: 0;
	background: var(--green); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
	padding: 9px 14px; border-radius: 99px; cursor: pointer; white-space: nowrap;
	transition: background .2s ease, transform .2s ease;
}
.shop-code-btn:hover { background: var(--green-strong); transform: translateY(-1px); }
.shop-code-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Expired coupons — collapsible and muted until hover */
.shop-expired { margin-top: 28px; }
.shop-expired details { border: 0; background: transparent; }
.shop-expired summary {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 16px;
	background: #fbfcfb; border: 1px solid var(--hairline); border-radius: var(--radius);
	list-style: none; cursor: pointer; color: #8e958f;
	transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.shop-expired summary::-webkit-details-marker { display: none; }
.shop-expired summary:hover,
.shop-expired summary:focus-visible {
	background: var(--surface); border-color: var(--green); color: var(--green-strong);
	box-shadow: 0 10px 24px -16px rgba(25,126,37,.35);
}
.shop-expired summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.shop-expired-summary-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.shop-expired-summary-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.shop-expired-hint { color: #b1b6b0; font-size: 12px; font-weight: 500; transition: color .2s ease; }
.shop-expired summary:hover .shop-expired-hint,
.shop-expired summary:focus-visible .shop-expired-hint { color: var(--muted); }
.shop-expired-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px;
	background: var(--canvas); color: #9aa09a; font-size: 12px; font-weight: 700;
	transition: background .2s ease, color .2s ease;
}
.shop-expired summary:hover .shop-expired-count,
.shop-expired summary:focus-visible .shop-expired-count { background: var(--green-soft); color: var(--green-strong); }
.shop-expired-chevron { display: inline-flex; color: #b1b6b0; transition: transform .2s ease, color .2s ease; }
.shop-expired-chevron svg { display: block; width: 16px; height: 16px; }
.shop-expired summary:hover .shop-expired-chevron,
.shop-expired summary:focus-visible .shop-expired-chevron { color: var(--green-strong); }
.shop-expired details[open] .shop-expired-chevron { transform: rotate(180deg); }

.shop-expired-list { margin-top: 12px; }
.shop-expired-list .coupon-item {
	opacity: .5; filter: grayscale(.65);
	transition: opacity .2s ease, filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.shop-expired-list .coupon-item:hover,
.shop-expired-list .coupon-item:focus-within { opacity: 1; filter: none; }
.shop-expired-list .coupon-item:hover { border-color: var(--green); }
.shop-expired-more { margin-top: 10px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 640px) {
	.shop-expired { margin-top: 24px; }
	.shop-expired summary { gap: 9px; padding: 12px 14px; }
	.shop-expired-summary-main { flex-direction: column; align-items: flex-start; gap: 3px; }
	.shop-expired-hint { font-size: 11.5px; }
	.shop-expired-list { margin-top: 10px; }
	.shop-expired-list .coupon-item { opacity: .62; filter: grayscale(.5); }
}

/* Category page head */
.page-head { padding: 28px 0 0; }
.page-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-head p { font-size: 16px; color: var(--body); margin-top: 10px; max-width: 760px; line-height: 1.6; }
.subcats { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.subcat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--body); transition: border-color .2s ease, color .2s ease; }
.subcat:hover { border-color: var(--green); color: var(--green); }
.about { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.about h3 { font-size: 19px; font-weight: 700; margin: 16px 0 8px; }
.about h3:first-child { margin-top: 0; }
.about p { font-size: 15px; color: var(--body); line-height: 1.7; }
.about ul { margin: 8px 0 0 20px; color: var(--body); font-size: 15px; }
.about li { margin-bottom: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0f1110; color: #cfd2d0; padding: 48px 0; margin-top: 40px; }
.site-footer .brand { font-size: 26px; color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-top: 32px; }
.site-footer h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 14px; color: #8f9490; margin-bottom: 8px; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .disc { width: 100%; max-width: none; margin-top: 32px; font-size: 12.5px; color: #6b706c; line-height: 1.6; text-align: center; }
.site-footer .disc + .disc { margin-top: 10px; }
.site-footer .disc a { display: inline; margin: 0; color: #9fe3a8; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer p { font-size: 14px; color: #8f9490; line-height: 1.6; }

/* ============================================================
   Pagination / misc
   ============================================================ */
.pagination { display: flex; gap: 8px; margin-top: 24px; }
.pagination .page-numbers { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--body); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--green); border-color: var(--green); color: #fff; }
.not-found { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 48px; text-align: center; margin-top: 24px; }
.not-found h1 { font-size: 28px; margin-bottom: 12px; }

/* ============================================================
   404 — страница не найдена
   ============================================================ */
.error-page { padding-top: 28px; padding-bottom: 56px; }
.error-hero {
	position: relative; overflow: hidden;
	background: var(--surface); border: 1px solid var(--hairline);
	border-radius: 22px; padding: 56px 32px 46px; text-align: center;
	box-shadow: 0 24px 48px -36px rgba(0,0,0,.3);
}
.error-hero::before {
	content: ''; position: absolute; left: 50%; top: -180px;
	width: 640px; height: 340px; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(48,168,60,.18), transparent 72%);
	pointer-events: none;
}
.error-badge {
	position: relative;
	font-size: clamp(76px, 13vw, 132px); font-weight: 900; line-height: .9;
	letter-spacing: -.05em; color: var(--green);
	margin-bottom: 6px;
	animation: popIn .5s cubic-bezier(.22,.61,.36,1) both;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
	.error-badge {
		background: linear-gradient(135deg, var(--green) 10%, #82e08b 90%);
		-webkit-background-clip: text; background-clip: text;
		-webkit-text-fill-color: transparent; color: transparent;
	}
}
.error-title { position: relative; font-size: clamp(23px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.error-lead { position: relative; max-width: 560px; margin: 0 auto 26px; color: var(--body); font-size: 15px; line-height: 1.6; }
.error-search {
	position: relative; display: flex; align-items: center; gap: 6px;
	max-width: 540px; margin: 0 auto;
	background: var(--canvas); border: 1px solid var(--hairline);
	border-radius: var(--pill); padding: 6px 6px 6px 20px;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.error-search:focus-within { background: var(--surface); border-color: var(--green); box-shadow: 0 0 0 4px rgba(48,168,60,.12); }
.error-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: 15px; color: var(--ink); padding: 9px 0; }
.error-search input::placeholder { color: var(--muted); }
.error-search button {
	flex-shrink: 0; border: 0; border-radius: var(--pill);
	background: var(--green); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 22px;
	transition: background .2s ease, transform .1s ease;
}
.error-search button:hover { background: var(--green-strong); }
.error-search button:active { transform: scale(.97); }
.error-links { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.error-links a {
	border: 1px solid var(--hairline); border-radius: var(--pill);
	padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--body);
	background: var(--surface);
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.error-links a:hover { border-color: var(--green); color: var(--green-strong); background: var(--green-soft); }
.error-section { margin-top: 38px; }
@media (max-width: 640px) {
	.error-page { padding-top: 18px; padding-bottom: 40px; }
	.error-hero { padding: 38px 20px 32px; border-radius: 18px; }
	.error-lead { font-size: 14px; margin-bottom: 20px; }
	.error-search { padding: 5px 5px 5px 16px; }
	.error-search input { font-size: 14px; }
	.error-search button { padding: 10px 16px; }
	.error-links { gap: 8px; margin-top: 18px; }
	.error-links a { padding: 8px 14px; font-size: 13px; }
	.error-section { margin-top: 30px; }
}

/* ============================================================
   Страница поиска
   ============================================================ */
.search-page { padding-top: 28px; padding-bottom: 56px; }
.search-hero {
	position: relative; overflow: hidden;
	background: var(--surface); border: 1px solid var(--hairline);
	border-radius: 22px; padding: 40px 36px 36px;
	box-shadow: 0 24px 48px -36px rgba(0,0,0,.3);
}
.search-hero::before {
	content: ''; position: absolute; right: -80px; top: -120px;
	width: 420px; height: 300px;
	background: radial-gradient(closest-side, rgba(48,168,60,.16), transparent 72%);
	pointer-events: none;
}
.search-kicker {
	position: relative; display: inline-flex; align-items: center;
	background: var(--green-soft); color: var(--green-strong);
	font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	padding: 6px 12px; border-radius: var(--pill);
}
.search-title { position: relative; margin-top: 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.search-sub { position: relative; margin-top: 10px; color: var(--body); font-size: 15px; }
.search-sub strong { color: var(--ink); }
.search-hero .error-search { position: relative; margin: 22px 0 0; max-width: 620px; }
.search-page .search-results { margin-top: 36px; }
.search-page .search-section { margin-top: 36px; }
.search-page .search-results .search-section:first-child { margin-top: 0; }
.search-shops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.search-shop {
	display: flex; align-items: center; gap: 14px;
	background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
	padding: 14px 16px;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.search-shop:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0,0,0,.2); }
.search-shop .store-logo { width: 56px; height: 56px; border-radius: 13px; font-size: 22px; flex-shrink: 0; }
.search-shop-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-shop-info b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-shop-info span { font-size: 13px; color: var(--muted); }
.search-shop-arrow { margin-left: auto; color: var(--green); font-weight: 800; font-size: 18px; transition: transform .2s ease; }
.search-shop:hover .search-shop-arrow { transform: translateX(3px); }
.search-articles { display: grid; gap: 12px; margin-top: 18px; }
.search-article { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 20px; transition: border-color .2s ease, box-shadow .2s ease; }
.search-article:hover { border-color: var(--green); box-shadow: 0 10px 22px -16px rgba(0,0,0,.2); }
.search-article h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.search-article h3 a:hover { color: var(--green-strong); }
.search-article p { font-size: 14px; color: var(--body); }
.search-empty {
	background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px;
	padding: 42px 28px 36px; text-align: center; margin-top: 28px;
}
.search-empty-ico {
	width: 64px; height: 64px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--green-soft); color: var(--green-strong);
	font-size: 30px; font-weight: 700; margin: 0 auto 16px;
}
.search-empty h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.search-empty p { max-width: 540px; margin: 10px auto 22px; color: var(--body); font-size: 15px; }
.search-similar-note {
	margin: 42px 0 16px; font-size: 12px; font-weight: 800;
	letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 760px) {
	.search-shops { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.search-page { padding-top: 18px; padding-bottom: 40px; }
	.search-hero { padding: 28px 20px 26px; border-radius: 18px; }
	.search-sub { font-size: 14px; }
	.search-hero .error-search { margin-top: 18px; }
	.search-page .search-results { margin-top: 28px; }
	.search-page .search-section { margin-top: 28px; }
	.search-empty { padding: 32px 20px 28px; border-radius: 18px; }
	.search-empty p { font-size: 14px; }
}

/* ============================================================
   Блог
   ============================================================ */
.blog-page, .blog-single { padding-top: 28px; padding-bottom: 56px; }
.blog-hero {
	position: relative; overflow: hidden;
	background: var(--surface); border: 1px solid var(--hairline);
	border-radius: 22px; padding: 38px 36px 34px;
	box-shadow: 0 24px 48px -36px rgba(0,0,0,.3);
}
.blog-hero::before {
	content: ''; position: absolute; right: -60px; top: -140px;
	width: 420px; height: 320px;
	background: radial-gradient(closest-side, rgba(48,168,60,.16), transparent 72%);
	pointer-events: none;
}
.blog-hero-title { position: relative; margin-top: 14px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.blog-hero--plain .blog-hero-title { margin-top: 0; }
.blog-hero-sub { position: relative; margin-top: 10px; max-width: 640px; color: var(--body); font-size: 15px; line-height: 1.6; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 30px; align-items: start; }
.blog-main { min-width: 0; }
.article-main { min-width: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 18px 34px -24px rgba(0,0,0,.28); }
.blog-card-media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--green-soft); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.blog-card-cat { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--green-strong); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 99px; }
.blog-card-body { padding: 18px 20px 20px; }
.blog-card-body h2 { font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.blog-card-body h2 a:hover { color: var(--green-strong); }
.blog-card-body p { margin-top: 8px; font-size: 14px; color: var(--body); line-height: 1.55; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.blog-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-card-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--green); }
.blog-sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.blog-widget { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px; }
.blog-widget-title { margin-bottom: 10px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.blog-cats { list-style: none; display: flex; flex-direction: column; }
.blog-cats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--body); transition: background .15s ease, color .15s ease; }
.blog-cats a:hover { background: var(--green-soft); color: var(--green-strong); }
.blog-cats .count { font-size: 12px; color: var(--muted); }
.blog-shop-cats { list-style: none; display: flex; flex-direction: column; }
.blog-shop-cats a { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; transition: background .15s ease; }
.blog-shop-cats a:hover { background: var(--canvas); }
.blog-shop-cats .cat-icon { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }
.blog-shop-cats .cat-icon .cat-emoji { font-size: 14px; }
.blog-shop-cats .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--body); }
.blog-shop-cats .count { font-size: 12px; color: var(--muted); }
.blog-widget-empty { font-size: 13px; color: var(--muted); }
.blog-widget-cta { background: linear-gradient(145deg, var(--green-strong), #35b545); border: 0; color: #fff; }
.blog-widget-cta strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; }
.blog-widget-cta p { margin: 6px 0 12px; font-size: 13px; opacity: .9; }
.blog-widget-cta a { display: inline-block; background: #fff; color: var(--green-strong); font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: var(--pill); }

/* Прогресс чтения */
.reading-progress { position: fixed; left: 0; right: 0; top: 65px; height: 3px; z-index: 90; pointer-events: none; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--green); box-shadow: 0 0 10px rgba(48,168,60,.6); transition: width .12s linear; }

/* Статья */
.article-crumbs { padding-top: 0; }
.article-head { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 32px 34px; }
.article-cat { display: inline-flex; background: var(--green-soft); color: var(--green-strong); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 6px 12px; border-radius: var(--pill); }
.article-head h1 { margin-top: 14px; font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.14; }
.article-lead { margin-top: 12px; font-size: 17px; color: var(--body); line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--green); }
.article-meta-author { color: var(--ink); font-weight: 700; }
.article-meta-author-link, .article-meta-author-inner { display: inline-flex; align-items: center; gap: 7px; }
.article-meta-author-link:hover { color: var(--green-strong); }
.article-meta img, .article-meta-initial { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-meta-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; }
.article-shop { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 12px 14px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 14px; transition: border-color .2s ease, background .2s ease; }
.article-shop:hover { border-color: var(--green); background: var(--green-soft); }
.article-shop .store-logo { width: 52px; height: 52px; border-radius: 12px; font-size: 20px; flex-shrink: 0; }
.article-shop-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.article-shop-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.article-shop-text strong { font-size: 16px; color: var(--ink); }
.article-shop-cnt { font-size: 12px; color: var(--muted); }
.article-shop-arrow { margin-left: auto; color: var(--green); font-size: 20px; font-weight: 800; }
.article-cover { margin: 20px 0 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--hairline); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body { margin-top: 20px; padding: 34px 36px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; font-size: 16px; line-height: 1.75; color: #2a2d31; }
.article-body > * + * { margin-top: 16px; }
.article-body h2 { margin-top: 34px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.article-body h3 { margin-top: 26px; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.article-body p { margin: 0; }
.article-body ul, .article-body ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.article-body li::marker { color: var(--green); font-weight: 700; }
.article-body a { color: var(--green-strong); text-decoration: underline; text-decoration-color: rgba(48,168,60,.45); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--green); }
.article-body strong { color: var(--ink); }
.article-body blockquote { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 12px 12px 0; color: var(--green-strong); font-weight: 500; }
.article-body blockquote p { margin: 0; }
.article-body figure { margin: 24px 0; }
.article-body figure img { width: 100%; border-radius: 14px; border: 1px solid var(--hairline); }
.article-body figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.article-body .note { margin: 22px 0; padding: 15px 18px; background: var(--canvas); border: 1px solid var(--hairline); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; font-size: 14px; line-height: 1.65; }
.article-body .note strong { display: block; margin-bottom: 3px; }
.article-body .table-scroll { margin: 22px 0; overflow-x: auto; border: 1px solid var(--hairline); border-radius: 12px; }
.article-body table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.article-body th, .article-body td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.article-body th { background: var(--canvas); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--body); }
.article-body tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) { background: #fafbfc; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; }
.article-share > span { margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--body); }
.shop-share { margin-top: 24px; margin-bottom: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: var(--pill); padding: 8px 14px; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.share-btn svg { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.share-btn.vk { background: #0077ff; }
.share-btn.tg { background: #2aabee; }
.share-btn.ok { background: #ee8208; }
.share-btn.copy { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(0,0,0,.35); }
.article-author { display: flex; gap: 16px; margin-top: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; }
.article-author img, .author-initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-initials { display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-size: 22px; font-weight: 800; }
.article-author-name { font-size: 17px; font-weight: 800; }
.article-author-name a:hover { color: var(--green-strong); }
.article-author-role { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--green-strong); }
.article-author-bio { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }
.article-author-link { display: inline-flex; margin-top: 8px; color: var(--green-strong); font-size: 13px; font-weight: 700; }
.article-author-link:hover { color: var(--green); }
.article-faq { margin-top: 20px; padding: 26px 30px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; }
.article-faq h2 { margin-bottom: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.article-faq .faq-item { background: transparent; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; }
.article-faq .faq-item:last-child { border-bottom: 0; }
.article-faq .faq-q { padding: 16px 0; }
.article-related { margin-top: 22px; }
.article-related h2 { margin-bottom: 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 12px 24px -18px rgba(0,0,0,.25); }
.related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.related-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--green-soft); font-size: 28px; }
.related-card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.related-card-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green-strong); }
.related-card strong { font-size: 14px; font-weight: 700; line-height: 1.35; }
.related-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--muted); }
.related-meta span { display: inline-flex; align-items: center; gap: 4px; }
.related-meta svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--green); }
@media (max-width: 1120px) {
	.blog-layout { grid-template-columns: 1fr; }
	.blog-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.blog-grid { grid-template-columns: 1fr; }
	.blog-hero { padding: 28px 20px 24px; border-radius: 18px; }
	.article-head, .article-body, .article-faq { padding: 22px 18px; border-radius: 16px; }
	.article-body { font-size: 15px; }
	.article-body h2 { font-size: 22px; }
	.article-body h3 { font-size: 18px; }
	.article-meta { gap: 8px 12px; }
	.article-share { gap: 6px; padding: 12px; }
	.share-btn { padding: 7px 11px; font-size: 12px; }
	.article-author { padding: 18px; }
	.related-grid { grid-template-columns: 1fr; }
	.blog-sidebar { grid-template-columns: 1fr; }
	.article-crumbs { font-size: 12px; }
}
@media (max-width: 640px) {
	.reading-progress { top: 60px; }
}

/* Подборки */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.collection-card {
	position: relative; overflow: hidden; display: flex; flex-direction: column;
	min-height: 230px; padding: 24px; border-radius: 22px; color: #fff;
	background: linear-gradient(135deg, #0b120d 0%, #12351c 52%, #197e25 100%);
	background-size: cover; background-position: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.collection-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(0,0,0,.55); }
.collection-card::after {
	content: '%'; position: absolute; right: 18px; top: -35px;
	color: rgba(255,255,255,.08); font-size: 180px; font-weight: 800;
	line-height: 1; pointer-events: none;
}
.collection-card-badge, .collection-badge {
	position: relative; z-index: 1; align-self: flex-start;
	display: inline-flex; align-items: center; padding: 5px 10px;
	border: 1px solid rgba(255,255,255,.25); border-radius: 99px;
	background: rgba(255,255,255,.14); color: #fff;
	font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.collection-card-title {
	position: relative; z-index: 1; margin-top: 16px;
	font-size: clamp(25px, 3.2vw, 38px); font-weight: 800;
	letter-spacing: -.03em; line-height: 1.05;
}
.collection-card-desc { position: relative; z-index: 1; max-width: 660px; margin-top: 10px; color: rgba(255,255,255,.82); font-size: 14.5px; line-height: 1.55; }
.collection-card-meta { position: relative; z-index: 1; margin-top: 14px; color: rgba(255,255,255,.62); font-size: 12.5px; }
.collection-card-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 20px; color: #fff; font-size: 13px; font-weight: 800; }
.collection-card-link::after { content: '→'; transition: transform .2s ease; }
.collection-card:hover .collection-card-link::after { transform: translateX(3px); }

.collection-page, .collection-archive { padding-top: 0; padding-bottom: 56px; }
.collection-hero {
	position: relative; overflow: hidden; margin-top: 16px; padding: 38px;
	border-radius: 24px; color: #fff;
	background: linear-gradient(135deg, #0b120d 0%, #12351c 50%, #197e25 100%);
	background-size: cover; background-position: center;
}
.collection-hero::after {
	content: '%'; position: absolute; right: 30px; top: -50px;
	color: rgba(255,255,255,.07); font-size: 220px; font-weight: 800;
	line-height: 1; pointer-events: none;
}
.collection-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.collection-hero h1 { margin-top: 16px; font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.collection-sub { max-width: 720px; margin-top: 14px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: rgba(255,255,255,.65); font-size: 13px; }
.collection-coupons { margin-top: 30px; }
.collection-count { color: var(--muted); font-size: 13px; }
.collection-shops { margin-top: 32px; }
.collection-shops .stores { margin-top: 16px; }
.collection-about { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--body); font-size: 15px; line-height: 1.7; }
.collection-about > * + * { margin-top: 14px; }
.collection-about h2 { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.collection-about h3 { color: var(--ink); font-size: 19px; font-weight: 800; }
.collection-about a { color: var(--green-strong); text-decoration: underline; text-underline-offset: 3px; }

.collection-archive-head {
	position: relative; overflow: hidden; margin-top: 16px; padding: 32px;
	border: 1px solid var(--green); border-radius: 24px; color: var(--ink);
	background: linear-gradient(135deg, #f1faf2 0%, var(--surface) 64%);
}
.collection-archive-head .collection-badge { border-color: var(--green); background: var(--green); color: #fff; }
.collection-archive-head::after {
	content: '%'; position: absolute; right: 24px; top: -40px;
	color: rgba(48,168,60,.08); font-size: 180px; font-weight: 800; line-height: 1; pointer-events: none;
}
.collection-archive-head h1 { position: relative; z-index: 1; margin-top: 0; color: var(--ink); font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.collection-archive-head p { position: relative; z-index: 1; max-width: 720px; margin-top: 10px; color: var(--body); font-size: 15px; line-height: 1.6; }
.collection-archive .collection-grid { margin-top: 22px; }

@media (max-width: 760px) {
	.collection-grid { grid-template-columns: 1fr; }
	.collection-card { min-height: 210px; padding: 20px; }
	.collection-card::after { right: 10px; top: -20px; font-size: 130px; }
	.collection-hero, .collection-archive-head { padding: 24px 20px; border-radius: 18px; }
	.collection-hero::after, .collection-archive-head::after { right: 10px; top: -30px; font-size: 140px; }
	.collection-about { padding: 18px; }
}

/* Страница автора / эксперта */
.author-page { padding-top: 0; padding-bottom: 56px; }
.author-hero {
	position: relative; overflow: hidden;
	display: flex; align-items: flex-start; gap: 24px;
	margin-top: 16px; padding: 30px;
	background: linear-gradient(135deg, #f1faf2 0%, var(--surface) 64%);
	border: 1px solid var(--green); border-radius: 24px;
	box-shadow: 0 20px 44px -34px rgba(48,168,60,.55);
}
.author-hero::after {
	content: '“'; position: absolute; right: 22px; top: -28px;
	color: rgba(48,168,60,.08); font-size: 180px; line-height: 1;
	pointer-events: none;
}
.author-hero-avatar {
	position: relative; z-index: 1; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	width: 128px; height: 128px; overflow: hidden;
	border: 4px solid #fff; border-radius: 50%;
	background: var(--green); color: #fff; font-size: 44px; font-weight: 800;
	box-shadow: 0 0 0 1px var(--hairline);
}
.author-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-hero-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.author-expert-badge {
	display: inline-flex; align-items: center; padding: 4px 10px;
	border-radius: 99px; background: var(--green); color: #fff;
	font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.author-hero h1 { margin-top: 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.author-position { margin-top: 4px; color: var(--green-strong); font-size: 15px; font-weight: 700; }
.author-bio { max-width: 760px; margin-top: 10px; color: var(--body); font-size: 15px; line-height: 1.65; }
.author-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--body); font-size: 13px; }
.author-fact strong { color: var(--ink); }
.author-socials-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.author-socials-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.author-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.author-social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--surface); border: 1px solid var(--hairline);
	color: var(--green-strong);
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.author-social svg { display: block; width: 18px; height: 18px; }
.author-social:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.author-social.is-empty { background: var(--canvas); color: var(--muted); cursor: default; opacity: .65; }
.author-social.is-empty:hover { background: var(--canvas); border-color: var(--hairline); color: var(--muted); transform: none; }
.author-layout { margin-top: 24px; }
.author-articles-title { margin-bottom: 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

@media (max-width: 760px) {
	.author-page { padding-top: 0; padding-bottom: 44px; }
	.author-hero { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 16px; padding: 22px 20px; border-radius: 20px; }
	.author-hero::after { right: 8px; top: -16px; font-size: 130px; }
	.author-hero-avatar { width: 96px; height: 96px; font-size: 34px; }
	.author-socials-wrap { align-items: flex-start; }
	.author-articles-title { font-size: 20px; }
}

/* ============================================================
   Личный кабинет и формы
   ============================================================ */
.auth-page { padding-top: 36px; padding-bottom: 56px; }
.auth-card { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 32px; box-shadow: 0 24px 48px -36px rgba(0,0,0,.3); }
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth-sub { margin-top: 8px; color: var(--body); font-size: 14px; line-height: 1.55; }
.pk-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.pk-field { display: flex; flex-direction: column; gap: 6px; }
.pk-label { font-size: 13px; font-weight: 700; color: var(--body); }
.pk-input, .pk-select, .pk-textarea { width: 100%; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); padding: 11px 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.pk-input:focus, .pk-select:focus, .pk-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(48,168,60,.12); }
.pk-textarea { min-height: 90px; resize: vertical; }
.pk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.pk-check input { accent-color: var(--green); }
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--pill); padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .1s ease; }
.pk-btn--primary { background: var(--green); color: #fff; }
.pk-btn--primary:hover { background: var(--green-strong); }
.pk-btn--ghost { background: var(--canvas); color: var(--ink); }
.pk-btn:active { transform: scale(.98); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-small { font-size: 13px; color: var(--green-strong); font-weight: 600; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--body); }
.auth-alt a { color: var(--green-strong); font-weight: 700; }
.pk-notice { margin: 16px 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.pk-notice--success { background: var(--green-soft); color: var(--green-strong); }
.pk-notice--error { background: #fdecef; color: var(--hot); }
.pk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.account-page, .add-coupon-page { padding-top: 28px; padding-bottom: 56px; }
.account-head { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 26px 28px; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.account-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.account-head p { margin-top: 4px; color: var(--body); font-size: 14px; }
.account-head .pk-btn { margin-left: auto; flex-shrink: 0; }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.account-stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.account-stat strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.account-stat span { font-size: 12px; color: var(--muted); }
.account-title { margin-top: 28px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.account-quick-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; font-weight: 700; }
.account-quick-links a { color: var(--green-strong); }
.account-quick-links a:hover { color: var(--green); }
.account-quick-links .account-title-count { margin-left: 6px; }
#account-coupons, #account-favorites, #account-reviews { scroll-margin-top: 84px; }
.sub-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sub-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 18px; }
.sub-shop { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.sub-shop .store-logo { width: 44px; height: 44px; border-radius: 11px; font-size: 17px; flex-shrink: 0; }
.sub-shop > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sub-shop a { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-shop-label { font-size: 11px; color: var(--muted); }
.sub-main { flex: 1; min-width: 0; }
.sub-main h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sub-main p { margin-top: 4px; font-size: 13px; color: var(--body); }
.sub-main code { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.sub-status { flex-shrink: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.sub-status--pending { background: #fff4d6; color: #9a6700; }
.sub-status--publish { background: var(--green-soft); color: var(--green-strong); }
.sub-status--draft { background: #fdecef; color: var(--hot); }
.sub-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 13px; }
.sub-actions a { color: var(--green-strong); font-weight: 700; white-space: nowrap; }
.sub-actions form { margin: 0; }
.sub-actions button { border: 0; background: none; color: var(--hot); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.account-empty { margin-top: 14px; background: var(--surface); border: 1px dashed var(--hairline); border-radius: 18px; padding: 42px 24px; text-align: center; }
.account-empty strong { display: block; font-size: 18px; font-weight: 800; }
.account-empty p { max-width: 480px; margin: 6px auto 16px; color: var(--body); font-size: 14px; }

.account-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.account-title-row .account-title { margin-top: 0; }
.account-title-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 24px; height: 24px; padding: 0 8px; margin-left: 8px;
	border-radius: 99px; background: var(--canvas); color: var(--body);
	font-size: 12px; font-weight: 700; vertical-align: middle;
}
.account-title-link { color: var(--green-strong); font-size: 13px; font-weight: 700; white-space: nowrap; }
.account-title-link:hover { color: var(--green); }
.account-reviews-list .sub-card { align-items: flex-start; }
.account-review-rating { color: var(--gold); font-size: 15px; line-height: 1; letter-spacing: 1px; }
.account-review-card .account-review-text { margin-top: 4px; color: var(--body); font-size: 13.5px; line-height: 1.5; }
.account-review-card .sub-status,
.account-review-card .sub-actions { margin-top: 1px; }
.account-reviews-empty { margin-top: 14px; }

.account-favorites { margin-top: 14px; }
.account-fav-tabs { margin-top: 0; }
.account-fav-panel { margin-top: 14px; }
.account-favorites .coupon-list { margin-top: 0; }
.favorite-shops-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.favorite-shop-card {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px; background: var(--surface);
	border: 1px solid var(--hairline); border-radius: 14px;
}
.favorite-shop-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.favorite-shop-card .store-logo { width: 44px; height: 44px; border-radius: 11px; font-size: 17px; }
.favorite-shop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.favorite-shop-name { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.favorite-shop-meta { color: var(--muted); font-size: 11.5px; }
.favorites-empty { padding: 18px; border-radius: 12px; background: var(--canvas); color: var(--body); font-size: 14px; }
.account-favorites-empty { margin-top: 14px; }

.add-coupon-page .page-head { padding-top: 0; }
.add-coupon-page .page-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.form-card { margin-top: 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px; }
.coupon-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coupon-form-grid .full { grid-column: 1 / -1; }
.coupon-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.form-hint { font-size: 12px; color: var(--muted); }
.pk-radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pk-radio { display: inline-flex; align-items: center; gap: 7px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--pill); padding: 8px 14px; font-size: 14px; cursor: pointer; }
.pk-radio input { accent-color: var(--green); }
@media (max-width: 900px) {
	.sub-card { flex-wrap: wrap; }
	.sub-shop { min-width: 0; flex: 1 1 100%; }
	.sub-actions { margin-left: auto; }
}
@media (max-width: 760px) {
	.account-head { flex-wrap: wrap; padding: 22px 20px; }
	.account-head .pk-btn { margin-left: 0; width: 100%; }
	.account-stats { grid-template-columns: repeat(2, 1fr); }
	.coupon-form-grid { grid-template-columns: 1fr; }
	.form-card { padding: 20px 18px; }
	.auth-card { padding: 24px 20px; }
	.sub-card { padding: 14px; }
	.account-review-card .sub-main { flex: 1 1 100%; }
	.account-review-card .sub-status { margin-left: auto; }
	.favorite-shops-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes peekIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes checkPop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Появление при скролле — заметное, сдвиг 30px */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Ступенчатое появление карточек (stagger) */
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--i, 0) * 60ms); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1120px) {
	.burger { display: flex; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: var(--surface);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		border-top: 1px solid var(--hairline);
		box-shadow: 0 16px 30px -18px rgba(0,0,0,.2);
	}
	.main-nav.open { display: flex; animation: slideDown .25s ease; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav ul a { display: block; padding: 14px 24px; color: var(--ink); border-bottom: 1px solid var(--hairline); }
	.main-nav .nav-dropdown-toggle { display: flex; justify-content: space-between; width: 100%; }
	.nav-dropdown {
		position: static; width: auto; transform: none;
		opacity: 1; visibility: visible; pointer-events: auto;
		display: none;
		padding: 10px 24px 14px;
		background: var(--canvas);
		border: 0; border-radius: 0; box-shadow: none;
		max-height: 55vh; overflow: auto;
	}
	.menu-item-has-dropdown.open .nav-dropdown { display: block; transform: none; }
	.nav-dropdown-grid { grid-template-columns: 1fr; gap: 2px; }
	.main-nav .nav-dropdown a.nav-dropdown-item { padding: 8px; }
	.nav-dropdown-head { margin-bottom: 10px; align-items: flex-start; }
	.header-add, .header-login, .header-logout { display: block; padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--hairline); }
	.header-add { border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; }
	.header-favorites {
		width: auto; height: auto; justify-content: flex-start; gap: 10px;
		padding: 14px 24px; border: 0; border-bottom: 1px solid var(--hairline);
		border-radius: 0; background: transparent; color: var(--ink);
		font-size: 16px; font-weight: 700;
	}
	.header-favorites:hover { background: transparent; color: var(--green); }
	.header-favorites.has-items { background: transparent; border-color: var(--hairline); color: var(--ink); }
	.header-favorites.has-items svg { fill: var(--hot); color: var(--hot); }
	.header-favorites-text { display: inline; }
	.header-favorites-count {
		position: static; min-width: 22px; height: 22px; margin-left: auto; padding: 0 7px;
		background: var(--canvas); color: var(--body); font-size: 11px; line-height: 22px;
		box-shadow: none;
	}
	.header-favorites.has-items .header-favorites-count { background: var(--hot); color: #fff; }
}
@media (max-width: 1024px) {
	.coupon-grid { grid-template-columns: repeat(2, 1fr); }
	.expiring, .prods { grid-template-columns: repeat(2, 1fr); }
	.stores { grid-template-columns: repeat(4, 1fr); }
	.alpha-group .rows { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.layout { grid-template-columns: 1fr; }
	.side { position: static; }
}
@media (max-width: 800px) {
	.brand { font-size: 19px; }
}
@media (max-width: 640px) {
	.topbar { gap: 8px; height: 60px; }
	.brand { font-size: 16px; flex-shrink: 0; }
	.topbar .search { flex: 1 1 auto; min-width: 0; max-width: none; padding: 5px 5px 5px 12px; }
	.topbar .search input { font-size: 14px; }
	.topbar .search .go { padding: 8px 13px; font-size: 13px; }
	.coupon-grid, .expiring, .prods { grid-template-columns: 1fr; }
	.stores { grid-template-columns: repeat(2, 1fr); }
	.alpha-group .rows { grid-template-columns: 1fr; }
	.steps, .stats { grid-template-columns: 1fr; }
	.sub { flex-direction: column; align-items: stretch; }
	.sub form { flex-direction: column; }
	.sub input { min-width: 0; }
	.site-footer .cols { grid-template-columns: 1fr; }
	.store-hero { flex-direction: column; }
	.sh-logo { width: 72px; height: 72px; font-size: 32px; }
	.coupon-item {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-areas:
			"logo main"
			"right right";
		gap: 10px 12px;
		align-items: start;
		padding: 14px;
	}
	.coupon-item .favorite-btn--item {
		position: absolute;
		top: 14px;
		right: 14px;
		align-self: auto;
		z-index: 3;
	}
	.c-item-top { padding-right: 42px; }
	.coupon-item .store-logo { grid-area: logo; width: 56px; height: 56px; border-radius: 12px; font-size: 20px; }
	.c-item-discount { width: 56px; min-height: 56px; font-size: 11.5px; border-radius: 12px; padding: 4px; }
	.c-item-discount.long { font-size: 10.5px; }
	.c-item-main { grid-area: main; min-width: 0; }
	.c-item-right {
		grid-area: right;
		display: flex; flex-direction: column; align-items: stretch; gap: 10px;
	}
	.c-item-right .discount { align-self: flex-start; font-size: 22px; }
	.c-item-right .cta { width: 100%; }
	.c-item-right .vote { justify-content: flex-start; flex-wrap: wrap; }
	.hero h1 { font-size: 30px; }
	.page-head h1 { font-size: 26px; }
}
