

/* Start:/local/templates/medicinapress/template_styles.css?179016155014113*/
/* ============================================================
   Шаблон «Медицина-пресс» — template_styles.css
   Палитра взята с обложки книги: бордо + сиреневый + кремовый
   ============================================================ */

:root {
	--med-wine: #7c2231;
	--med-wine-dark: #5c1622;
	--med-red: #a83a40;
	--med-lilac: #7b6ca8;
	--med-lilac-dark: #5f5187;
	--med-bg: #f6f1ec;
	--med-card: #ffffff;
	--med-ink: #2a1e22;
	--med-muted: #6f5a60;
	--med-line: #e6d9d3;
	--med-radius: 14px;
	--med-shadow: 0 10px 30px rgba(92, 22, 34, .12);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--med-bg);
	color: var(--med-ink);
	font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, .med-footer__logo {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.2;
}

a { color: var(--med-wine); }

.med-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

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

/* ---------- Шапка ---------- */
.med-header {
	background: #fff;
	border-bottom: 3px solid var(--med-wine);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 14px rgba(92, 22, 34, .08);
}
.med-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 74px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}
.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.25; }
.med-logo-text strong {
	font-family: Georgia, serif;
	font-size: 21px;
	letter-spacing: .3px;
	color: var(--med-wine);
}
.med-logo-text small { color: var(--med-muted); font-size: 12px; }

.med-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.med-nav__link {
	text-decoration: none;
	color: var(--med-ink);
	font-weight: 500;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}
.med-nav__link:hover { color: var(--med-wine); }
.med-nav__link--active { color: var(--med-wine); border-bottom-color: var(--med-lilac); }

.med-cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #fff;
	background: var(--med-wine);
	border-radius: 999px;
	padding: 9px 16px;
	font-weight: 600;
}
.med-cart:hover { background: var(--med-red); }
.med-cart__count {
	background: var(--med-lilac);
	border-radius: 999px;
	min-width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	padding: 0 6px;
}

/* ---------- Слайдер ---------- */
.med-slider {
	position: relative;
	overflow: hidden;
	background: linear-gradient(130deg, var(--med-wine-dark) 0%, var(--med-wine) 45%, var(--med-red) 100%);
	color: #fff;
}
.med-slider::before,
.med-slider::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(123, 108, 168, .35);
	pointer-events: none;
}
.med-slider::before { width: 340px; height: 340px; right: -90px; top: -120px; }
.med-slider::after { width: 220px; height: 220px; left: -70px; bottom: -90px; background: rgba(123, 108, 168, .22); }

.med-slide {
	display: none;
	animation: medFade .6s ease;
}
.med-slide--active { display: block; }
@keyframes medFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.med-slide__inner {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 40px;
	align-items: center;
	padding: 56px 20px 64px;
	max-width: 1120px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	min-height: 500px; /* фиксированная высота: слайды не «прыгают» при перелистывании */
}
.med-slide__kicker {
	display: inline-block;
	background: var(--med-lilac);
	color: #fff;
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.med-slide__title {
	font-size: clamp(26px, 4vw, 42px);
	margin: 0 0 14px;
}
.med-slide__text { font-size: 17px; opacity: .92; margin: 0 0 24px; max-width: 560px; }
.med-slide__img {
	height: 380px; /* одинаковая высота блока картинки во всех слайдах */
	display: flex;
	align-items: center;
	justify-content: center;
}
.med-slide__img img,
.med-slide__img svg {
	max-width: 100%;
	max-height: 100%;
	width: auto;
}
.med-slide__img img {
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	transform: rotate(2deg);
}

.med-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	transition: background .2s;
}
.med-slider__arrow:hover { background: var(--med-lilac); }
.med-slider__arrow--prev { left: 14px; }
.med-slider__arrow--next { right: 14px; }

.med-slider__dots {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}
.med-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
}
.med-slider__dot--active { background: #fff; transform: scale(1.25); }

/* ---------- Кнопки ---------- */
.med-btn {
	display: inline-block;
	background: var(--med-wine);
	color: #fff !important;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, transform .15s;
}
.med-btn:hover { background: var(--med-red); transform: translateY(-1px); }
.med-btn--ghost {
	background: transparent;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, .7);
	padding: 10px 24px;
}
.med-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.med-btn--lilac { background: var(--med-lilac); }
.med-btn--lilac:hover { background: var(--med-lilac-dark); }
.med-btn--small { padding: 9px 18px; font-size: 14px; }
.med-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Секции ---------- */
.med-section { padding: 52px 0; }
.med-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	flex-wrap: wrap;
}
.med-section__title {
	font-size: 30px;
	margin: 0;
	color: var(--med-wine-dark);
	position: relative;
	padding-bottom: 10px;
}
.med-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--med-lilac);
}
.med-section__link { font-weight: 600; text-decoration: none; transition: color .2s; }
.med-section__link:hover { color: var(--med-red); text-decoration: underline; }

/* ---------- Карточки товаров ---------- */
.med-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
}
.med-card {
	background: var(--med-card);
	border-radius: var(--med-radius);
	box-shadow: var(--med-shadow);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform .2s;
}
.med-card:hover { transform: translateY(-4px); }
.med-card-cover {
	display: block;
	background: linear-gradient(160deg, #f2e7e2, #e7d8d4);
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}
.med-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.med-card-noimg {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: var(--med-muted);
	font-size: 14px;
	padding: 10px;
	text-align: center;
}
.med-card-title { font-size: 17px; margin: 0; flex-grow: 1; }
.med-card-title a { color: var(--med-ink); text-decoration: none; }
.med-card-title a:hover { color: var(--med-wine); }
.med-card-price { font-size: 20px; font-weight: 700; color: var(--med-wine); }
.med-empty { color: var(--med-muted); }

/* ---------- Преимущества ---------- */
.med-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.med-feature {
	background: #fff;
	border-radius: var(--med-radius);
	padding: 26px;
	border-top: 4px solid var(--med-lilac);
	box-shadow: var(--med-shadow);
}
.med-feature h3 { margin: 0 0 8px; color: var(--med-wine-dark); font-size: 19px; }
.med-feature p { margin: 0; color: var(--med-muted); }

/* ---------- Страница товара ---------- */
.med-product {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 44px;
	align-items: start;
}
.med-product__cover img {
	width: 100%;
	border-radius: 8px;
	box-shadow: var(--med-shadow);
	display: block;
}
.med-product__title { font-size: 32px; margin: 0 0 6px; color: var(--med-wine-dark); }
.med-product__subtitle { color: var(--med-muted); margin: 0 0 20px; }
.med-product__price {
	font-size: 30px;
	font-weight: 700;
	color: var(--med-wine);
	margin: 18px 0;
}
.med-product__meta {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 22px;
	font-size: 15px;
}
.med-product__meta th {
	text-align: left;
	color: var(--med-muted);
	font-weight: 500;
	padding: 8px 14px 8px 0;
	border-bottom: 1px dashed var(--med-line);
	white-space: nowrap;
	vertical-align: top;
}
.med-product__meta td { padding: 8px 0; border-bottom: 1px dashed var(--med-line); }
.med-product__text h3 { font-size: 20px; color: var(--med-wine-dark); margin: 26px 0 10px; }
.med-backlink { display: inline-block; margin-bottom: 18px; text-decoration: none; font-weight: 600; }

/* ---------- Инфостраницы ---------- */
.med-page { padding: 44px 0 60px; }
.med-page h1 { font-size: 34px; color: var(--med-wine-dark); margin: 0 0 8px; }
.med-page__lead { color: var(--med-muted); margin: 0 0 30px; max-width: 760px; }
.med-infocard {
	background: #fff;
	border-radius: var(--med-radius);
	box-shadow: var(--med-shadow);
	padding: 28px 30px;
	margin-bottom: 22px;
}
.med-infocard h2 {
	font-size: 23px;
	margin: 0 0 14px;
	color: var(--med-wine);
	display: flex;
	align-items: center;
	gap: 10px;
}
.med-infocard h2::before {
	content: "";
	width: 10px;
	height: 26px;
	border-radius: 3px;
	background: var(--med-lilac);
	flex: 0 0 auto;
}
.med-infocard ul { margin: 0; padding-left: 20px; }
.med-infocard li { margin-bottom: 8px; }
.med-infocard p { margin: 0 0 10px; }
.med-note {
	background: #f3eef8;
	border-left: 4px solid var(--med-lilac);
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 14.5px;
	color: #463a5e;
}

/* ---------- Контакты и формы ---------- */
.med-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.med-contact-line { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.med-contact-line b { color: var(--med-wine-dark); min-width: 90px; }
.med-form label { display: block; margin-bottom: 14px; font-weight: 500; }
.med-form input[type="text"],
.med-form input[type="email"],
.med-form textarea {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid var(--med-line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}
.med-form textarea { min-height: 120px; resize: vertical; }
.med-form input:focus, .med-form textarea:focus { outline: 2px solid var(--med-lilac); border-color: transparent; }

/* ---------- Корзина / оформление (штатные компоненты) ---------- */
.med-basket-wrap { background: #fff; border-radius: var(--med-radius); box-shadow: var(--med-shadow); padding: 28px 30px; }
.med-basket-wrap table { width: 100%; border-collapse: collapse; }
.med-basket-wrap td, .med-basket-wrap th { padding: 10px 8px; }
.med-basket-wrap input[type="text"] { width: 60px; text-align: center; padding: 6px; border: 1px solid var(--med-line); border-radius: 6px; }

/* ---------- Юридические страницы и реквизиты ---------- */
.med-legal p { margin: 0 0 12px; }
.med-legal h2 {
	font-size: 21px;
	color: var(--med-wine);
	margin: 26px 0 10px;
}
.med-legal ul { margin: 0 0 12px; padding-left: 20px; }
.med-legal li { margin-bottom: 6px; }
.med-legal .med-lead { font-weight: 600; }
.med-req {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.med-req th {
	text-align: left;
	color: var(--med-muted);
	font-weight: 500;
	padding: 7px 14px 7px 0;
	border-bottom: 1px dashed var(--med-line);
	white-space: nowrap;
	vertical-align: top;
}
.med-req td { padding: 7px 0; border-bottom: 1px dashed var(--med-line); }

/* ---------- Подвал ---------- */
.med-footer { background: var(--med-wine-dark); color: #f4e8e4; margin-top: 40px; }
.med-footer a { color: #f4e8e4; text-decoration: none; display: block; margin-bottom: 8px; }
.med-footer a:hover { color: #fff; text-decoration: underline; }
.med-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 34px;
	padding: 44px 20px 30px;
}
.med-footer__logo { font-size: 24px; color: #fff; margin-bottom: 10px; }
.med-footer__title {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	color: #d9b8c0;
	margin-bottom: 12px;
}
.med-footer__col p, .med-footer__col span { color: #e8d3d6; }
.med-footer__bottom {
	background: rgba(0, 0, 0, .22);
	padding: 14px 0;
	font-size: 13.5px;
	color: #d9b8c0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
	.med-slide__inner { grid-template-columns: 1fr; padding: 40px 20px 56px; text-align: center; min-height: 0; }
	.med-slide__text { margin: 0 auto 22px; }
	.med-btns { justify-content: center; }
	.med-slide__img { height: 250px; }
	.med-product { grid-template-columns: 1fr; gap: 26px; }
	.med-product__cover { max-width: 320px; margin: 0 auto; }
	.med-features { grid-template-columns: 1fr; }
	.med-contacts-grid { grid-template-columns: 1fr; }
	.med-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
	.med-header__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
	.med-nav { gap: 14px; }
	.med-cart__text { display: none; }
}

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