/* ===========================================================
   ШИХОН: система оформления сайта.
   Основа -- те же правила, что в панели управления: чёрный и белый,
   фирменный синий из логотипа, тёплые нейтральные серые, шрифт Manrope,
   скругления 8 / 10 / 20 и «пилюли» для кнопок, вкладок и меток.
   Все цвета, радиусы и тени берутся отсюда; в остальных файлах темы -- только переменные.
   =========================================================== */

:root {
	/* цвет */
	--ink: #0b0b0b;
	--ink-2: #26262a;
	--muted: #6b6b6b;
	--muted-2: #8a8a85;
	--line: #e6e6e2;
	--line-strong: #bdbdb4;
	--bg: #ffffff;
	--panel: #f4f4f1;
	--panel-2: #f8f8f6;
	--field: #fbfbf9;
	--brand: #2868a8;
	--brand-dark: #1f5489;
	--brand-light: #5098d0;
	--brand-soft: #e4eef9;
	/* оттенки под фирменный синий: глубокий тёмно-синий, тёплый янтарный акцент (дополнительный к синему, для акций и «Хитов») и тихие тона плиток */
	--navy: #11304f;
	--accent-warm: #e8912d;
	--accent-warm-soft: #fdf0dc;
	--tint-blue: #e4eef9;
	--tint-sand: #f5efe4;
	--tint-mint: #e5f1ee;
	--tint-mist: #eceff4;
	--success: #2e9e5b;
	--success-soft: #e5f7ec;
	--danger: #c0392b;
	--danger-soft: #fbeaea;
	--warning: #b7791f;
	--warning-soft: #fcefdc;

	/* форма */
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--r-xl: 20px;
	--r-pill: 999px;
	--shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 1px 1px rgba(20, 20, 30, .04);
	--shadow-card: 0 1px 2px rgba(20, 20, 30, .04), 0 10px 24px -12px rgba(20, 20, 30, .12);
	--shadow-hover: 0 1px 2px rgba(20, 20, 30, .05), 0 18px 36px -16px rgba(20, 20, 30, .22);
	--focus-ring: 0 0 0 3px rgba(40, 104, 168, .18);

	/* шрифт и шкала отступов */
	--font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--s1: 4px;
	--s2: 8px;
	--s3: 12px;
	--s4: 16px;
	--s5: 24px;
	--s6: 32px;
	--s7: 48px;
	--s8: 64px;

	/* прежние имена переменных темы и общего css сайта -> новые значения */
	--site-accent: var(--brand);
	--site-accent-dark: var(--brand-dark);
	--site-accent-soft: var(--brand-soft);
	--site-text: var(--ink);
	--site-text-muted: var(--muted);
	--site-border: var(--line);
	--site-bg-alt: var(--panel);
	--site-font: var(--font);
	--site-success: var(--success);
	--site-danger: var(--danger);
	--sh-ink: var(--ink);
	--sh-blue: var(--brand);
	--sh-sky: var(--brand-light);
	--sh-beige: var(--panel);
	--sh-line: var(--line);
	--sh-head-font: var(--font);

	/* личный кабинет и оформление заказа */
	--cab-accent: var(--brand);
	--cab-accent-hover: var(--brand-dark);
	--cab-heading: var(--ink);
	--cab-font: var(--font);
	--cab-heading-font: var(--font);
	--cab-soft-bg: var(--panel-2);
	--cab-info-bg: var(--brand-soft);
	--cab-focus-ring: rgba(40, 104, 168, .18);
	--cab-input-bg: var(--field);
	--cab-input-border: var(--line-strong);
	--cab-input-text: var(--ink);
	--cab-card-border: var(--line);
	--cab-danger: var(--danger);
	--cab-danger-bg: var(--danger-soft);
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; font-weight: 700; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: none; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
img { max-width: 100%; }

@media (max-width: 767.98px) {
	h1 { font-size: 26px; }
	h2 { font-size: 21px; }
	h3 { font-size: 17px; }
}

/* ---- Кнопки: основная -- чёрная «пилюля», как в панели управления ---- */
.btn, .sh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
	min-height: 44px; padding: 0 var(--s5); border: 1px solid transparent; border-radius: var(--r-pill);
	font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2a2e; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-soft { background: var(--panel); color: var(--ink); }
.btn-soft:hover { background: #ebebe6; color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 var(--s4); font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---- Поля ---- */
.sh-input, .site-form input[type="text"], .site-form input[type="tel"], .site-form input[type="email"], .site-form textarea,
.sh-cart .mod_contact_right input[type="text"], .sh-cart .mod_contact_right input[type="email"], .sh-cart .mod_contact_right input[type="tel"], .sh-cart .mod_contact_right input[type="number"], .sh-cart .mod_contact_right select, .sh-cart .mod_contact_right textarea {
	padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field); font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.sh-input:focus, .site-form input:focus, .site-form textarea:focus, .sh-cart .mod_contact_right input:focus, .sh-cart .mod_contact_right select:focus, .sh-cart .mod_contact_right textarea:focus {
	background: #fff; border-color: var(--brand); box-shadow: var(--focus-ring); outline: none;
}

/* ---- Карточка-панель и метка ---- */
.sh-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.sh-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill); background: var(--panel); font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sh-badge--brand { background: var(--brand-soft); color: var(--brand-dark); }
