

/* Start:/local/templates/medicinapress/template_styles.css?179318326637027*/
/* ============================================================
   Шаблон «Медицина-пресс» — template_styles.css
   Дизайн 2026: светлая «бумажная» подложка, книжные заголовки (Literata),
   интерфейс (Onest). Шрифты лежат в /local/templates/medicinapress/fonts/
   (свои файлы, без Google Fonts). Палитра — с обложки книги: бордо + сирень.
   ============================================================ */

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/local/templates/medicinapress/fonts/onest-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/local/templates/medicinapress/fonts/onest-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/local/templates/medicinapress/fonts/onest-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("/local/templates/medicinapress/fonts/literata-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("/local/templates/medicinapress/fonts/literata-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--med-wine: #7c2231;
	--med-wine-dark: #4a121d;
	--med-wine-deep: #2c0a11;
	--med-red: #a83a40;
	--med-lilac: #7b6ca8;
	--med-lilac-dark: #5f5187;
	--med-lilac-soft: #eeeaf6;
	--med-rose-soft: #f6e9e6;
	--med-bg: #faf7f4;
	--med-card: #ffffff;
	--med-ink: #1e1418;
	--med-muted: #6c5b61;
	--med-line: #eadfda;
	--med-radius: 16px;
	--med-radius-l: 28px;
	--med-shadow: 0 1px 2px rgba(44, 10, 17, .06), 0 6px 18px rgba(44, 10, 17, .06);
	--med-shadow-m: 0 18px 50px rgba(44, 10, 17, .16);
	--med-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--med-serif: "Literata", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--med-bg);
	color: var(--med-ink);
	font: 400 16px/1.6 var(--med-font);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, .med-footer__logo {
	font-family: var(--med-serif);
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.15;
}

a { color: var(--med-wine); text-underline-offset: 3px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.med-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.med-main { min-height: 60vh; }

/* ---------- Шапка ---------- */
.med-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 247, 244, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--med-line);
}
.med-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}
.med-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--med-ink);
}
.med-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.med-logo-text strong {
	font-family: var(--med-font);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--med-wine);
}
.med-logo-text small { color: var(--med-muted); font-size: 12px; }

.med-nav { display: flex; align-items: center; gap: 4px; }
.med-nav__link {
	padding: 9px 16px;
	border-radius: 999px;
	color: var(--med-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.med-nav__link:hover { background: var(--med-lilac-soft); color: var(--med-lilac-dark); }
.med-nav__link--active { background: var(--med-lilac-soft); color: var(--med-lilac-dark); font-weight: 600; }

.med-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: 10px;
	height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--med-wine);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}
.med-cart:hover { background: var(--med-red); }
.med-cart svg { flex: 0 0 auto; }
.med-cart__count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	margin-right: -8px;
	padding: 0 8px;
	border-radius: 999px;
	background: #fff;
	color: var(--med-wine);
	font-size: 13px;
	font-weight: 700;
}
.med-burger {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--med-line);
	border-radius: 12px;
	background: #fff;
	color: var(--med-ink);
	cursor: pointer;
}

/* ---------- Кнопки ---------- */
.med-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--med-wine);
	color: #fff !important;
	font: 600 15px/1 var(--med-font);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.med-btn:hover { background: var(--med-red); box-shadow: 0 8px 22px rgba(124, 34, 49, .28); }
.med-btn:active { transform: translateY(1px); }
.med-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); }
.med-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }
.med-btn--light { background: #fff; color: var(--med-wine) !important; }
.med-btn--light:hover { background: var(--med-rose-soft); box-shadow: none; }
.med-btn--lilac { background: var(--med-lilac); }
.med-btn--lilac:hover { background: var(--med-lilac-dark); }
.med-btn--outline { background: #fff; border-color: var(--med-line); color: var(--med-ink) !important; }
.med-btn--outline:hover { background: #fff; border-color: var(--med-wine); color: var(--med-wine) !important; box-shadow: none; }
.med-btn--small { height: 40px; padding: 0 20px; font-size: 14px; }
.med-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero: слайдер (шаблон medicinapress_slider, scripts.js) ---------- */
.med-hero { padding-top: 24px; }
.med-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--med-radius-l);
	color: #fff;
	background:
		radial-gradient(70% 90% at 88% 8%, rgba(168, 58, 64, .75) 0%, transparent 60%),
		radial-gradient(50% 70% at 0% 100%, rgba(123, 108, 168, .45) 0%, transparent 65%),
		linear-gradient(135deg, var(--med-wine-deep), var(--med-wine-dark) 55%, var(--med-wine));
}
.med-slide { display: none; }
.med-slide--active { display: block; animation: medSlideIn .55s ease; }
@keyframes medSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.med-slide__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
	min-height: 520px; /* одинаковая высота: слайды не «прыгают» при перелистывании */
	padding: 56px 64px 88px;
}
.med-slide__inner--noimg { grid-template-columns: 1fr; }
.med-slide__inner--noimg .med-slide__text { max-width: 720px; }
.med-slide__kicker {
	display: inline-block;
	margin-bottom: 20px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.med-slide__title {
	margin: 0 0 18px;
	font-size: clamp(32px, 4.4vw, 54px);
	letter-spacing: -.025em;
	line-height: 1.06;
	text-wrap: balance;
}
.med-slide__text { max-width: 520px; margin: 0 0 30px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.med-slide__img { height: 380px; display: flex; align-items: center; justify-content: center; }
.med-slide__img img { max-height: 100%; width: auto; }
/* JPG — обложка книги: рамка, тень, наклон. PNG/SVG — иллюстрация без рамки */
.med-slide__img--cover img { border-radius: 6px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); transform: rotate(2.5deg); }

.med-slider__controls {
	position: absolute;
	left: 64px;
	right: 64px;
	bottom: 28px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.med-slider__dots { display: flex; gap: 8px; }
.med-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .4);
	cursor: pointer;
	transition: width .25s, background .25s;
}
.med-slider__dot--active { width: 30px; background: #fff; }
.med-slider__arrows { display: flex; gap: 10px; }
.med-slider__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background .2s;
}
.med-slider__arrow:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Полоса преимуществ ---------- */
.med-trust { padding: 36px 0 8px; }
.med-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.med-trust__item { display: flex; align-items: center; gap: 14px; }
.med-trust__icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: var(--med-lilac-soft);
	color: var(--med-lilac-dark);
}
.med-trust__item b { display: block; font-size: 15px; line-height: 1.3; }
.med-trust__item span { display: block; font-size: 13.5px; line-height: 1.35; color: var(--med-muted); }

/* ---------- Секции ---------- */
.med-section { padding: 64px 0; }
.med-section--tight { padding: 40px 0 64px; }
.med-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.med-eyebrow { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--med-lilac-dark); }
.med-section__title { margin: 0; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.02em; }
.med-section__link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.med-section__link:hover { text-decoration: underline; }

.med-pagehead { padding: 28px 0 8px; }
.med-pagehead h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.025em; }
.med-pagehead p { max-width: 700px; margin: 14px 0 0; font-size: 18px; color: var(--med-muted); }

.med-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Книги: карточки каталога ---------- */
.med-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.med-book {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--med-line);
	border-radius: var(--med-radius);
	transition: box-shadow .25s, transform .25s, border-color .25s;
}
.med-book:hover { box-shadow: var(--med-shadow-m); transform: translateY(-3px); border-color: transparent; }
.med-book__cover {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 4.4;
	padding: 28px;
	background: linear-gradient(160deg, var(--med-lilac-soft), var(--med-rose-soft));
	text-decoration: none;
}
.med-book__cover img { max-height: 100%; max-width: 76%; border-radius: 4px; box-shadow: 0 16px 36px rgba(44, 10, 17, .3); transition: transform .3s; }
.med-book:hover .med-book__cover img { transform: scale(1.03); }
.med-book__noimg { color: var(--med-muted); font-size: 14px; text-align: center; }
.med-book__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.med-book__meta { font-size: 14px; color: var(--med-muted); }
.med-book__title { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.med-book__title a { color: var(--med-ink); text-decoration: none; }
.med-book__title a:hover { color: var(--med-wine); }
.med-book__extra { display: none; margin: 0; }
.med-book__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.med-price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.med-price__old { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--med-muted); }
.med-soldout { font-weight: 600; color: var(--med-muted); }
.med-empty { color: var(--med-muted); }

/* В сетке кнопка и счётчик компактнее */
.med-book .med-btn { height: 40px; padding: 0 20px; font-size: 14px; }
.med-book .med-qty { height: 40px; }
.med-book .med-qty button { width: 40px; font-size: 20px; }

/* Одна книга в каталоге — крупная горизонтальная карточка */
.med-book:only-child { grid-column: 1 / -1; flex-direction: row; }
.med-book:only-child .med-book__cover { flex: 0 0 42%; aspect-ratio: auto; min-height: 420px; }
.med-book:only-child .med-book__cover img { max-width: 62%; }
.med-book:only-child .med-book__body { justify-content: center; gap: 16px; padding: 44px 48px; }
.med-book:only-child .med-book__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.med-book:only-child .med-book__extra { display: block; max-width: 560px; font-size: 16px; color: var(--med-muted); }
.med-book:only-child .med-book__foot { margin-top: 8px; }
.med-book:only-child .med-price { font-size: 32px; }
.med-book:only-child .med-btn { height: 46px; padding: 0 24px; font-size: 15px; }
.med-book:only-child .med-qty { height: 46px; }
.med-book:only-child .med-qty button { width: 44px; font-size: 22px; }

/* ---------- «Об издательстве» ---------- */
.med-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.med-about__text p { max-width: 520px; margin: 18px 0 0; font-size: 17px; color: var(--med-muted); }
.med-about__list { display: grid; gap: 14px; }
.med-about__row { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: #fff; border: 1px solid var(--med-line); border-radius: var(--med-radius); }
.med-about__row .med-trust__icon { flex-basis: 52px; width: 52px; height: 52px; }
.med-about__row b { display: block; font-size: 16px; }
.med-about__row span { font-size: 14.5px; color: var(--med-muted); }

/* ---------- Полоса-призыв ---------- */
.med-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 44px 56px;
	border-radius: var(--med-radius-l);
	background: linear-gradient(120deg, var(--med-lilac-dark), var(--med-lilac));
	color: #fff;
}
.med-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 32px); }
.med-cta p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- Страница книги ---------- */
.med-crumbs { padding: 22px 0 0; font-size: 14px; color: var(--med-muted); }
.med-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.med-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .55; }
.med-crumbs a { color: var(--med-muted); text-decoration: none; }
.med-crumbs a:hover { color: var(--med-wine); }
.med-crumbs span { color: var(--med-ink); }
.med-product { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 64px; align-items: start; padding: 32px 0 24px; }
.med-product__cover {
	position: sticky;
	top: 104px;
	display: grid;
	place-items: center;
	padding: 56px 40px;
	border-radius: var(--med-radius-l);
	background: linear-gradient(160deg, var(--med-lilac-soft), var(--med-rose-soft));
}
.med-product__cover img { max-width: 82%; border-radius: 5px; box-shadow: 0 26px 60px rgba(44, 10, 17, .34); }
/* Галерея книги: лента миниатюр слева (на телефоне снизу), большое фото справа, просмотр на весь экран */
.med-product__cover.med-gallery { grid-template-columns: 84px minmax(0, 1fr); gap: 20px; place-items: stretch; padding: 32px 28px; }
.med-gallery__nav { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; max-height: 520px; }
.med-gallery__strip { display: flex; min-width: 0; flex-direction: column; gap: 10px; width: 100%; min-height: 0; overflow: hidden; scroll-snap-type: y proximity; }
.med-gallery__thumb { flex: 0 0 auto; display: block; width: 100%; padding: 3px; background: #fff; border: 2px solid transparent; border-radius: 8px; cursor: pointer; scroll-snap-align: start; transition: border-color .15s, box-shadow .15s; }
.med-gallery__thumb:hover { box-shadow: 0 4px 14px rgba(44, 10, 17, .22); }
.med-gallery__thumb.is-active { border-color: var(--med-wine); }
.med-product__cover .med-gallery__thumb img { display: block; width: 100%; max-width: none; height: auto; border-radius: 4px; box-shadow: none; }
.med-gallery__arrow { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 28px; padding: 0; color: var(--med-wine); background: rgba(255, 255, 255, .85); border: 0; border-radius: 999px; cursor: pointer; }
.med-gallery__arrow:hover { background: #fff; box-shadow: 0 2px 8px rgba(44, 10, 17, .2); }
.med-gallery__stage { display: grid; place-items: center; padding: 0; background: none; border: 0; cursor: zoom-in; }
.med-product__cover .med-gallery__stage img { max-width: 100%; max-height: 520px; width: auto; height: auto; }
.med-product__toc { margin: 18px 0 0; }
.med-product__toc .med-btn { gap: 10px; }

/* Просмотр фото на весь экран */
body.med-lightbox-open { overflow: hidden; }
.med-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 56px 72px; background: rgba(20, 6, 10, .92); }
.med-lightbox__img { max-width: calc(100vw - 144px); max-height: calc(100vh - 112px); width: auto; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.med-lightbox__close, .med-lightbox__nav { position: absolute; display: grid; place-items: center; padding: 0; color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; cursor: pointer; transition: background .15s; }
.med-lightbox__close:hover, .med-lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.med-lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.med-lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 38px; line-height: 1; }
.med-lightbox__nav--prev { left: 14px; }
.med-lightbox__nav--next { right: 14px; }
.med-lightbox__count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .8); }

.med-product__title { margin: 0; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.med-product__lead { margin: 16px 0 0; font-size: 18px; color: var(--med-muted); }

.med-specs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	margin: 28px 0 0;
	overflow: hidden;
	background: var(--med-line);
	border: 1px solid var(--med-line);
	border-radius: var(--med-radius);
}
.med-specs div { padding: 16px 20px; background: #fff; }
.med-specs div:first-child { grid-column: 1 / -1; }
.med-specs dt { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--med-muted); }
.med-specs dd { margin: 4px 0 0; font-weight: 600; }

.med-buybox { margin-top: 28px; padding: 28px; background: #fff; border: 1px solid var(--med-line); border-radius: var(--med-radius-l); box-shadow: var(--med-shadow); }
.med-buybox__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.med-buybox .med-price { font-size: 38px; }
.med-buybox__notes { display: grid; gap: 10px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--med-line); list-style: none; font-size: 14.5px; color: var(--med-muted); }
.med-buybox__notes li { display: flex; align-items: center; gap: 12px; }
.med-buybox__notes svg { flex: 0 0 20px; color: var(--med-lilac-dark); }

.med-prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: #3d2f35; }
.med-prose h2 { margin: 0 0 18px; font-size: 28px; }
.med-prose p { margin: 0 0 16px; font-size: 17px; line-height: 1.75; color: #3d2f35; }

/* ---------- Служебные страницы: доставка, оферта, политика, корзина, 404 ---------- */
.med-page { padding: 28px 0 24px; }
.med-page h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.025em; color: var(--med-ink); }
.med-page__lead { max-width: 700px; margin: 0 0 28px; font-size: 18px; color: var(--med-muted); }

.med-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px 0 8px; }
.med-info { padding: 28px; background: #fff; border: 1px solid var(--med-line); border-radius: var(--med-radius); }
.med-info__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.med-info h2 { margin: 0; font-size: 22px; }
.med-info ul { margin: 0; padding: 0; list-style: none; }
.med-info li { position: relative; margin: 0 0 12px; padding-left: 20px; color: #3d2f35; }
.med-info li:last-child { margin-bottom: 0; }
.med-info p { margin: 0 0 12px; color: #3d2f35; }
.med-info a { font-weight: 600; }
.med-info li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--med-lilac); }

.med-note {
	padding: 12px 16px;
	background: var(--med-lilac-soft);
	border-left: 4px solid var(--med-lilac);
	border-radius: 8px;
	font-size: 14.5px;
	color: #463a5e;
}

/* ---------- Контакты и форма (страница /contacts/, шаблон main.feedback) ---------- */
.med-contacts { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; padding: 32px 0 24px; }
.med-cgroup + .med-cgroup { margin-top: 28px; }
.med-cgroup h2 { margin: 0 0 6px; font-size: 22px; }
.med-crow { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--med-line); }
.med-crow:last-child { border-bottom: 0; }
.med-crow .med-trust__icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
.med-crow small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--med-muted); }
.med-crow b, .med-crow a { font-size: 17px; font-weight: 600; color: var(--med-ink); text-decoration: none; }
.med-crow a:hover { color: var(--med-wine); }
.med-crow span { display: block; font-size: 14.5px; color: var(--med-muted); }

.med-formcard {
	position: sticky;
	top: 104px;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--med-line);
	border-radius: var(--med-radius-l);
	box-shadow: var(--med-shadow);
}
.med-formcard h2 { margin: 0 0 6px; font-size: 24px; }
.med-formcard > p { margin: 0 0 22px; font-size: 15px; color: var(--med-muted); }
.med-field { display: block; margin-bottom: 16px; }
.med-field > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.med-field input,
.med-field textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--med-line);
	border-radius: 12px;
	background: var(--med-bg);
	font: 400 16px var(--med-font);
	color: var(--med-ink);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.med-field textarea { min-height: 120px; resize: vertical; }
.med-field input:focus,
.med-field textarea:focus { outline: none; border-color: var(--med-lilac); background: #fff; box-shadow: 0 0 0 4px rgba(123, 108, 168, .18); }
.med-captcha { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.med-captcha__img { flex: 0 0 auto; height: 46px; width: auto; border-radius: 10px; }
.med-captcha .med-field { flex: 1; margin: 0; }
.med-agree { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 13.5px; color: var(--med-muted); }
.med-agree input { margin-top: 3px; accent-color: var(--med-wine); }
.med-btn--block { width: 100%; }

.med-alert { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.med-alert--error { background: #fbeaea; color: #8a1f2b; border: 1px solid #f0c9cc; }
.med-alert--ok { background: #e9f5ee; color: #1f6b3f; border: 1px solid #c6e4d2; }

.med-req { margin-top: 8px; background: #fff; border: 1px solid var(--med-line); border-radius: var(--med-radius); }
.med-req summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 28px;
	font-family: var(--med-serif);
	font-size: 22px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.med-req summary::-webkit-details-marker { display: none; }
.med-req summary::after { content: "+"; display: inline-block; font: 400 28px/1 var(--med-font); color: var(--med-wine); transition: transform .25s; }
.med-req[open] summary::after { transform: rotate(45deg); }
.med-req dl { display: grid; grid-template-columns: 220px 1fr; margin: 0; padding: 0 28px 20px; }
.med-req dt,
.med-req dd { margin: 0; padding: 13px 0; border-top: 1px solid var(--med-line); }
.med-req dt { font-size: 14.5px; color: var(--med-muted); }
.med-req dd { font-weight: 500; }

/* ---------- Корзина / оформление (сторонний компонент TANAiS: только цвета и шрифты) ---------- */
.med-basket-wrap { padding: 28px 30px; font-family: var(--med-font); background: #fff; border: 1px solid var(--med-line); border-radius: var(--med-radius-l); box-shadow: var(--med-shadow); }
.med-basket-wrap table { width: 100%; border-collapse: collapse; }
.med-basket-wrap td, .med-basket-wrap th { padding: 10px 8px; }
.med-basket-wrap .bx-soa-section-title,
.med-basket-wrap .bx-soa-section-title-text,
.med-basket-wrap .basket-item-info-name { font-family: var(--med-font); }
/* Цвета компонента задаются переменными HSL: подставляем фирменные
   (--color-primary-two: бирюзовый → бордовый #7c2231; --color-primary-one: оранжевый → сиреневый #7b6ca8) */
.med-basket-wrap .tanais-order {
	--color-primary-two-h: 351;
	--color-primary-two-s: 56%;
	--color-primary-two-l: 31%;
	--color-primary-one-h: 253;
	--color-primary-one-s: 25%;
	--color-primary-one-l: 55%;
}
.med-basket-wrap .btn { border-radius: 999px; }
/* кнопки без переменных (синие) → бордовые */
.med-basket-wrap button.btn { background: var(--med-wine); border-color: var(--med-wine); color: #fff; }
.med-basket-wrap button.btn:hover { background: var(--med-red); border-color: var(--med-red); }
/* виджет «Почты России» красит свою кнопку принудительно */
.med-basket-wrap .russianpost_link .btn { background: var(--med-wine) !important; border-color: var(--med-wine) !important; color: #fff !important; }

/* ---------- Страница «Заказ оформлен» (confirm.php шаблона tanais + кнопка ЮKassa) ---------- */
.med-basket-wrap .sale_order_full_table:first-of-type { padding: 96px 0 8px !important; font-size: 18px; line-height: 1.6; }
.med-basket-wrap .sale_order_full_table:first-of-type td { padding: 0; }
/* зелёная галочка над текстом (место под неё в шаблоне уже есть) */
.med-basket-wrap .sale_order_full_table:first-of-type:before {
	margin-left: -36px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #2e9e5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.med-basket-wrap .sale_order_full_table.pay,
.med-basket-wrap .sale_order_full_table:last-of-type:not(:first-of-type) {
	max-width: 560px;
	margin-top: 22px;
	padding: 30px 32px;
	text-align: center;
	background: var(--med-cream, #fbf7f5);
	border: 1px solid var(--med-line);
	border-radius: var(--med-radius);
}
/* название способа оплаты: заголовок, логотип и подпись в одну центрированную колонку */
.med-basket-wrap .sale_order_full_table .ps_logo { text-align: center; }
.med-basket-wrap .sale_order_full_table .ps_logo .pay_name { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.med-basket-wrap .sale_order_full_table .ps_logo img { display: block; margin: 0 auto 10px; border-radius: 10px; background: #fff; }
.med-basket-wrap .sale_order_full_table .ps_logo .paysystem_name { display: block; font-size: 15px; color: #6b5a60; }
/* текст ЮKassa и кнопка */
.med-basket-wrap .widget-payment-checkout-info { font-size: 16px; line-height: 1.6; color: #3d2f35; }
.med-basket-wrap .widget-payment-checkout-info + .widget-payment-checkout-info { font-weight: 700; font-size: 20px; color: var(--med-ink); }
.med-basket-wrap .sale_order_full_table .d-flex { display: block; margin: 18px 0 14px; }
.med-basket-wrap .sale_order_full_table .col-auto,
.med-basket-wrap .sale_order_full_table .col { padding: 0; }
.med-basket-wrap .sale_order_full_table a.btn-success {
	display: block;
	width: 100%;
	max-width: 360px;
	margin: 0 auto 12px;
	padding: 16px 28px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--med-wine);
	border: 0;
	border-radius: 999px !important;
	box-shadow: 0 10px 24px rgba(124, 34, 49, .35);
	transition: background .15s, transform .15s, box-shadow .15s;
}
.med-basket-wrap .sale_order_full_table a.btn-success:hover { background: var(--med-red); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(124, 34, 49, .4); }
.med-basket-wrap .sale_order_full_table .col.pr-0 { font-size: 14px; color: #6b5a60; }
.med-basket-wrap .sale_order_full_table .alert-info { margin: 6px 0 0; padding: 12px 16px; font-size: 14px; line-height: 1.5; text-align: left; color: #5a3b43; background: #fff; border: 1px solid var(--med-line); border-left: 4px solid var(--med-wine); border-radius: 10px; }

/* ---------- Юридические страницы: оферта и политика ---------- */
.med-legal { max-width: 820px; padding-bottom: 24px; }
.med-legal h2 { margin: 36px 0 12px; font-size: 24px; }
.med-legal h3 { margin: 28px 0 10px; font-size: 19px; }
.med-legal p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: #3d2f35; }
.med-legal ul { margin: 0 0 14px; padding-left: 22px; color: #3d2f35; line-height: 1.7; }
.med-legal li { margin-bottom: 6px; }
.med-legal .med-lead { font-size: 18px; font-weight: 600; color: var(--med-ink); }

/* ---------- Подвал ---------- */
.med-footer { margin-top: 64px; background: var(--med-wine-deep); color: rgba(255, 255, 255, .8); }
.med-footer a {
	display: block;
	margin: 0;
	padding: 4px 0;
	color: rgba(255, 255, 255, .85);
	font-size: 15px;
	text-decoration: none;
}
.med-footer a:hover { color: #fff; text-decoration: underline; }
.med-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.med-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.med-footer__brand svg { flex: 0 0 auto; }
.med-footer__logo { font-size: 24px; color: #fff; margin: 0; }
.med-footer__title {
	margin-bottom: 14px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}
.med-footer__col p { margin: 0; max-width: 360px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.med-footer__col span { display: block; padding: 4px 0; font-size: 15px; color: rgba(255, 255, 255, .8); }
.med-footer__bottom {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13.5px;
	color: rgba(255, 255, 255, .55);
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
	.med-slide__inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 40px 32px 96px; text-align: center; }
	.med-slide__text { margin-left: auto; margin-right: auto; }
	.med-slide .med-btns { justify-content: center; }
	.med-slide__img { height: 240px; }
	.med-slider__controls { left: 32px; right: 32px; }
	.med-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.med-info-grid { grid-template-columns: 1fr; }
	.med-about, .med-product { grid-template-columns: 1fr; gap: 36px; }
	.med-product__cover { position: static; }
	.med-product > * { min-width: 0; }
	.med-product { grid-template-columns: minmax(0, 1fr); }
	.med-product__cover.med-gallery { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
	.med-gallery__stage { grid-row: 1; min-width: 0; }
	.med-gallery__nav { grid-row: 2; min-width: 0; flex-direction: row; max-height: none; }
	.med-gallery__strip { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	.med-gallery__strip::-webkit-scrollbar { display: none; }
	.med-gallery__thumb { width: 64px; }
	.med-gallery__arrow--prev svg { transform: rotate(-90deg); }
	.med-gallery__arrow--next svg { transform: rotate(-90deg); }
	.med-lightbox { padding: 56px 12px; }
	.med-lightbox__img { max-width: calc(100vw - 24px); }
	.med-lightbox__nav { width: 42px; height: 42px; margin-top: -21px; font-size: 30px; }
	.med-book:only-child { flex-direction: column; }
	.med-book:only-child .med-book__cover { flex-basis: auto; min-height: 320px; }
	.med-book:only-child .med-book__body { padding: 28px; }
	.med-cta { flex-direction: column; align-items: flex-start; padding: 36px 32px; }
	.med-contacts { grid-template-columns: 1fr; gap: 36px; }
	.med-formcard { position: static; }
	.med-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
	.med-burger { display: inline-grid; }
	.med-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 14px 24px 22px;
		background: var(--med-bg);
		border-bottom: 1px solid var(--med-line);
	}
	.med-nav--open { display: flex; }
	.med-nav__link { padding: 12px 16px; }
	.med-cart { margin: 8px 0 0; justify-content: space-between; }
	.med-logo-text small { display: none; }
	.med-section { padding: 48px 0; }
	.med-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
	.med-specs { grid-template-columns: 1fr; }
	.med-req dl { grid-template-columns: 1fr; }
	.med-req dt { border-top: 1px solid var(--med-line); padding-bottom: 0; }
	.med-req dd { border-top: 0; padding-top: 2px; }
	.med-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Корзина: «В корзину» → «− 1 +» (cart.js) ---------- */
.med-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.med-buy--busy { opacity: .6; pointer-events: none; }
.med-buy__go { font-size: 14px; font-weight: 600; }

.med-qty {
	display: inline-flex;
	align-items: stretch;
	height: 46px;
	border: 2px solid var(--med-wine);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.med-qty button {
	width: 44px;
	border: 0;
	background: transparent;
	color: var(--med-wine);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.med-qty button:hover { background: var(--med-wine); color: #fff; }
.med-qty input {
	width: 48px;
	border: 0;
	text-align: center;
	font: 700 16px var(--med-font);
	color: var(--med-ink);
	background: transparent;
}
.med-qty input:focus { outline: none; }

/* ---------- Подвал: нижняя строка (копирайт и создатель сайта) ---------- */
.med-footer__bottomrow { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.med-footer__bottom a { display: inline; padding: 0; font-size: inherit; color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px; }
.med-footer__bottom a:hover { color: #fff; }

/* End */
/* /local/templates/medicinapress/template_styles.css?179318326637027 */
