/* ==========================================================================
   La Espalda — Design System v2.0
   Палитра: Шалфей #2E6E65 · Пудра #F3DDD6 · Лён #FBF8F5 · Чернила #243230 ·
   Коралл #D96C5F · Туман #E4EEEB
   Типографика: Lora (display) + Manrope (body)
   Фирменный элемент: «мерная лента» — пунктирный разделитель с делениями
   ========================================================================== */

:root {
	--la-sage: #2E6E65;
	--la-sage-dark: #235650;
	--la-sage-soft: #E4EEEB;
	--la-powder: #F3DDD6;
	--la-linen: #FBF8F5;
	--la-ink: #243230;
	--la-coral: #D96C5F;
	--la-muted: #6B7A77;
	--la-border: #DCE5E2;
	--la-radius: 16px;
	--la-radius-sm: 10px;
	--la-shadow: 0 6px 24px rgba(36, 50, 48, .07);
	--la-font-display: "Lora", Georgia, serif;
	--la-font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
	--la-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
	--la-container: 1200px;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	margin: 0;
	font-family: var(--la-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--la-ink);
	background: var(--la-linen);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
	font-family: var(--la-font-display);
	font-weight: 600;
	line-height: 1.25;
	color: var(--la-ink);
	margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-family: var(--la-font-body); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--la-sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--la-sage-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--la-coral); outline-offset: 2px; border-radius: 4px; }

.la-container { max-width: var(--la-container); margin: 0 auto; padding: 0 20px; }
.la-muted { color: var(--la-muted); }
.la-skip-link { position: absolute; left: -9999px; }
.la-skip-link:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Фирменный разделитель ----------
   Тонкая линия с акцентным сегментом — спокойный медицинский акцент. */
.la-tape {
	height: 3px;
	margin: 28px 0;
	border: 0;
	background:
		linear-gradient(to right, var(--la-sage) 0 64px, transparent 64px) left center / 100% 3px no-repeat,
		linear-gradient(to right, var(--la-border), var(--la-border)) left center / 100% 1px no-repeat;
}
.la-tape-vert { display: none; }

/* ---------- Кнопки ---------- */
.la-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 999px;
	font-family: var(--la-font-body);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .18s, color .18s, border-color .18s;
}
.la-btn-primary { background: var(--la-sage); color: #fff; }
.la-btn-primary:hover { background: var(--la-sage-dark); color: #fff; }
.la-btn-ghost { background: transparent; color: var(--la-sage); border-color: var(--la-sage); }
.la-btn-ghost:hover { background: var(--la-sage-soft); color: var(--la-sage-dark); }
.la-btn-mp { font-size: .95rem; padding: 11px 22px; }
.la-btn-ozon { border-color: #005BFF; color: #005BFF; background: #fff; }
.la-btn-ozon:hover { background: #EDF3FF; color: #0046C7; }
.la-btn-wb { border-color: #A73AFD; color: #A73AFD; background: #fff; }
.la-btn-wb:hover { background: #F6EDFF; color: #7E1DD1; }

/* ---------- Шапка ---------- */
.la-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 248, 245, .93);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--la-border);
}
.la-header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.la-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--la-ink); }
.la-logo-mark {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--la-sage); color: var(--la-powder);
	font-family: var(--la-font-display); font-style: italic; font-size: 1.15rem;
}
.la-logo-text { font-family: var(--la-font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.la-nav { margin-left: auto; }
.la-nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.la-nav-list a {
	display: block; padding: 9px 14px; border-radius: 999px;
	text-decoration: none; color: var(--la-ink); font-weight: 600; font-size: .98rem;
}
.la-nav-list a:hover, .la-nav-list .current-menu-item > a { background: var(--la-sage-soft); color: var(--la-sage-dark); }
.la-header-actions { display: flex; align-items: center; gap: 6px; }
.la-header-icon {
	display: grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; color: var(--la-ink); position: relative;
}
.la-header-icon:hover { background: var(--la-sage-soft); color: var(--la-sage-dark); }
.la-cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--la-coral); color: #fff;
	border-radius: 999px; font-size: .7rem; font-weight: 700;
	display: grid; place-items: center;
}
.la-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.la-burger span { width: 24px; height: 2.5px; background: var(--la-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.la-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.la-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.la-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
	.la-burger { display: flex; }
	.la-nav {
		position: fixed; inset: 68px 0 auto 0;
		background: var(--la-linen);
		border-bottom: 1px solid var(--la-border);
		padding: 12px 20px 20px;
		display: none;
	}
	.la-nav.is-open { display: block; }
	.la-nav-list { flex-direction: column; }
	.la-nav-list a { padding: 13px 14px; font-size: 1.05rem; }
}

/* ---------- Секции ---------- */
.la-main { min-height: 60vh; }
.la-section { padding: 56px 0; }
.la-section-tint { background: var(--la-sage-soft); }
.la-section-title { margin-bottom: 28px; }
.la-section-more { margin-top: 22px; font-weight: 600; }
.la-eyebrow {
	font-size: .82rem; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--la-sage); margin-bottom: 10px;
}

/* ---------- Дисклеймер ---------- */
.la-disclaimer {
	max-width: var(--la-container); margin: 32px auto; padding: 16px 20px;
	background: var(--la-powder); border-radius: var(--la-radius-sm);
	font-size: .92rem; color: var(--la-ink);
}

/* ---------- Подвал ---------- */
.la-footer { background: var(--la-sage-dark); color: #E9F1EF; margin-top: 64px; padding: 8px 0 28px; }
.la-footer .la-tape { opacity: .35; filter: brightness(3); }
.la-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 24px 0 32px; }
.la-footer .la-logo-text { color: #fff; }
.la-footer .la-logo-mark { background: var(--la-powder); color: var(--la-sage-dark); }
.la-footer-title { font-weight: 700; margin-bottom: 12px; color: #fff; }
.la-footer ul { list-style: none; margin: 0; padding: 0; }
.la-footer li { margin-bottom: 8px; }
.la-footer a { color: #C9DBD6; text-decoration: none; }
.la-footer a:hover { color: #fff; text-decoration: underline; }
.la-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; font-size: .88rem; color: #B6CCC6; }
.la-footer-disclaimer { font-size: .82rem; }
@media (max-width: 900px) { .la-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .la-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Хлебные крошки ---------- */
.la-breadcrumbs { font-size: .88rem; color: var(--la-muted); margin: 20px 0 6px; }
.la-breadcrumbs a { color: var(--la-muted); text-decoration: none; }
.la-breadcrumbs a:hover { color: var(--la-sage); }

/* ---------- FAQ-аккордеон ---------- */
.la-faq-item {
	background: #fff; border: 1px solid var(--la-border);
	border-radius: var(--la-radius-sm); margin-bottom: 10px; overflow: hidden;
}
.la-faq-item summary {
	padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
	position: relative; padding-right: 48px;
}
.la-faq-item summary::-webkit-details-marker { display: none; }
.la-faq-item summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%;
	transform: translateY(-50%); font-size: 1.4rem; color: var(--la-sage);
}
.la-faq-item[open] summary::after { content: "−"; }
.la-faq-answer { padding: 0 20px 16px; }

/* ---------- Cookie-баннер ---------- */
.la-cookie-banner {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
	max-width: 720px; margin: 0 auto;
	background: #fff; border: 1px solid var(--la-border);
	border-radius: var(--la-radius); box-shadow: var(--la-shadow);
	padding: 20px 22px;
}
.la-cookie-text { font-size: .94rem; margin-bottom: 12px; }
.la-cookie-options { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; margin-bottom: 14px; }
.la-cookie-options label { display: flex; align-items: center; gap: 6px; }
.la-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.la-cookie-actions .la-btn { padding: 10px 18px; font-size: .92rem; }

/* ---------- Таблицы ---------- */
.la-table { border-collapse: collapse; width: 100%; max-width: 560px; margin: 16px 0; }
.la-table th, .la-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--la-border); }
.la-table th { color: var(--la-muted); font-weight: 600; width: 40%; }

/* ---------- Списки-ссылки ---------- */
.la-link-list { list-style: none; margin: 0 0 1em; padding: 0; }
.la-link-list li { padding: 7px 0; border-bottom: 1px dashed var(--la-border); }

/* ---------- Промо подбора размера ---------- */
.la-size-promo {
	display: flex; align-items: center; gap: 16px;
	background: var(--la-powder); border-radius: var(--la-radius);
	padding: 16px 20px; margin: 20px 0; text-decoration: none; color: var(--la-ink);
	transition: transform .15s;
}
.la-size-promo:hover { transform: translateY(-2px); color: var(--la-ink); }
.la-size-promo-icon {
	flex: 0 0 44px; height: 44px; border-radius: 50%;
	background:
		radial-gradient(circle at center, var(--la-sage) 30%, transparent 31%),
		repeating-conic-gradient(var(--la-sage) 0 4deg, transparent 4deg 30deg);
	opacity: .9;
}

/* ---------- Фикс v2.1 ---------- */
/* Size-banner вспомогательное */
.la-size-banner-tape { display: none; }

/* ---------- ИИ-консультант ---------- */
.la-chat-toggle {
	position: fixed; right: 20px; bottom: 20px; z-index: 250;
	width: 58px; height: 58px; border-radius: 50%;
	background: var(--la-sage); color: #fff; border: 0; cursor: pointer;
	display: grid; place-items: center;
	box-shadow: 0 8px 24px rgba(36, 50, 48, .25);
	transition: transform .15s, background .15s;
}
.la-chat-toggle:hover { background: var(--la-sage-dark); transform: scale(1.06); }
.la-chat {
	position: fixed; right: 20px; bottom: 90px; z-index: 250;
	width: min(370px, calc(100vw - 32px));
	height: min(520px, calc(100vh - 130px));
	background: #fff; border: 1px solid var(--la-border);
	border-radius: var(--la-radius); box-shadow: 0 16px 48px rgba(36, 50, 48, .2);
	display: flex; flex-direction: column; overflow: hidden;
}
.la-chat-head {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 18px; background: var(--la-sage); color: #fff; font-weight: 700;
}
.la-chat-head button { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.la-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.la-chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .94rem; line-height: 1.5; }
.la-chat-msg-bot { background: var(--la-sage-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.la-chat-msg-user { background: var(--la-powder); align-self: flex-end; border-bottom-right-radius: 4px; }
.la-chat-msg-bot:first-child { font-size: .82rem; color: var(--la-muted); background: var(--la-linen); border: 1px dashed var(--la-border); }
.la-chat-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.la-chat-links a { font-weight: 600; font-size: .9rem; }
.la-chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.la-chat-quick button {
	background: #fff; border: 1.5px solid var(--la-sage); color: var(--la-sage);
	border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.la-chat-quick button:hover { background: var(--la-sage-soft); }
.la-chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--la-border); }
.la-chat-form input {
	flex: 1; padding: 10px 14px; border: 2px solid var(--la-border);
	border-radius: 999px; font-family: var(--la-font-body); font-size: .95rem;
}
.la-chat-form input:focus { border-color: var(--la-sage); outline: none; }
.la-chat-form .la-btn { padding: 10px 16px; }
.la-checkout-consent { font-size: .9rem; margin: 14px 0; }

/* ФИКС: [hidden] должен перебивать display:flex/block */
.la-chat[hidden],
.la-cookie-banner[hidden] { display: none !important; }

/* Активный статус иконки аккаунта в хедере */
.la-account-page .la-account-link,
.la-account-link.is-active { background: var(--la-sage-soft); color: var(--la-sage-dark); }
