/* Издателство Листа — modern layer on top of lista.css (29.10.2026).
   Keeps the watercolour world (sky, rooster) and the old markup skeleton;
   to go back to the old look remove the modern.css <link> in head.tpl. */

/* Nunito (variable 400–800), self-hosted: no requests to Google */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/nunito-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/nunito-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 {
	--teal: #006d8d;
	--teal-dark: #08506a;
	--teal-soft: #e6f3f6;
	--orange: #e05400;
	--orange-dark: #b94400;
	--sun: #f6a800;
	--sun-soft: #fff4d6;
	--ink: #2b3a42;
	--muted: #6b7a83;
	--line: #e7e2d6;
	--card: #ffffff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 6px 20px rgba(0, 60, 80, 0.08);
	--shadow-hover: 0 12px 28px rgba(0, 60, 80, 0.16);
	--font: "Nunito", "Segoe UI", Arial, sans-serif;
}

/* ── base ── */
body {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: #f4f1e8 url(../images/bgr.webp) repeat top center;
}
a { color: var(--teal); }
a:hover { color: var(--orange); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .welcome h1, .page h1, .page_inner h1, .text-book h2 {
	font-family: var(--font);
	font-weight: 800;
	color: var(--teal-dark);
	letter-spacing: 0;
}

/* watercolour sky without the old "book" behind the menu; rooster stays at the bottom */
#wrap-home, #wrap-inner {
	background: url(../images/bg-sky.webp) no-repeat top center;
	background-size: max(100%, 1700px) auto; /* edge to edge on wide screens */
	min-height: 0;
	height: auto !important;
}
/* the page closes with the watercolour hills (bg-hills.jpg 1700×160, rooster moved to the left column) */
#wrap { min-height: 0; height: auto !important; background: url(../images/bg-hills.webp) no-repeat bottom center; background-size: max(100%, 1700px) auto; padding-bottom: calc(max(100vw, 1700px) * 110 / 1700); }

/* ── layout: sidebar | content (+ right column) ── */
#container {
	width: auto;
	max-width: 1400px;
	min-height: 0;
	height: auto !important;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 32px;
	box-sizing: border-box;
}
#container > br { display: none; }
#left {
	float: none;
	width: 250px;
	flex: 0 0 250px;
	padding: 20px 0 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
#right {
	float: none;
	width: auto;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 0 30px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 28px;
}

/* ── logo ── */
#logo {
	float: none;
	width: auto;
	height: auto;
	padding: 18px;
	background: var(--card);
	border-radius: 24px;
	box-shadow: var(--shadow);
	text-align: center;
}
#logo img { width: 150px; display: block; margin: 0 auto; }

/* ── sidebar cards ── */
.side-card {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 18px 18px 20px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	box-sizing: border-box;
}
.side-title {
	margin: 0 0 12px;
	padding: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
	color: var(--teal-dark);
	border-bottom: 2px dashed var(--line);
	background: none;
}
.side-title a { color: inherit; }
.side-title .star { color: var(--sun); }

/* categories: an open notebook, every category is its own paper strip (like the old site) */
#left-menu.side-card {
	float: none;
	width: auto;
	height: auto;
	position: relative;
	margin: 6px 4px 22px 12px;
	padding: 18px 12px 34px 18px;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.3;
	/* paper with faint notebook lines, dark cover edge on the left, page stack on the right */
	background:
		repeating-linear-gradient(180deg, transparent 0 27px, rgba(0, 109, 141, 0.09) 27px 28px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.05)),
		#f3ecda;
	border: 0;
	border-left: 7px solid #3f5d61;
	border-radius: 4px 10px 10px 4px;
	box-shadow:
		3px 3px 0 -1px #fbf7ec, 4px 4px 0 -1px #cfc5ae,
		6px 6px 0 -2px #fbf7ec, 7px 7px 0 -2px #cfc5ae,
		12px 16px 26px rgba(0, 60, 80, 0.18);
	transform: rotate(-1.5deg);
}
#left-menu .side-title {
	margin: 0 0 12px;
	padding: 0 0 6px;
	border-bottom: 2px solid rgba(224, 84, 0, 0.35);
	font-size: 19px;
}
#left-menu ul { display: flex; flex-direction: column; gap: 9px; }
#left-menu ul li, #left-menu ul li.first, #left-menu ul li.a1, #left-menu ul li.a2 {
	margin: 0;
	padding: 0;
	background: none;
}
#left-menu ul li a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: -30px;
	padding: 7px 10px 7px 14px;
	color: var(--ink);
	background: var(--strip, #fffdf6);
	border-radius: 2px;
	box-shadow: 0 2px 5px rgba(60, 40, 0, 0.16);
	transform: rotate(var(--tilt, 0deg));
	transition: transform 0.15s, background 0.15s, color 0.15s;
}
#left-menu ul li a::before {
	content: "";
	flex: 0 0 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--dot, var(--teal));
}
/* strips alternate cream / white, slightly crooked and of different lengths */
#left-menu ul li:nth-child(odd) a { --strip: #fcebc6; }
#left-menu ul li:nth-child(7n+1) a { --dot: #f6a800; --tilt: -0.8deg; margin-right: 6px; }
#left-menu ul li:nth-child(7n+2) a { --dot: #e05400; --tilt: 0.6deg; margin-right: 22px; }
#left-menu ul li:nth-child(7n+3) a { --dot: #2ba3c4; --tilt: -0.4deg; margin-right: 0; }
#left-menu ul li:nth-child(7n+4) a { --dot: #7bb33a; --tilt: 0.9deg; margin-right: 14px; }
#left-menu ul li:nth-child(7n+5) a { --dot: #d9488f; --tilt: -0.7deg; margin-right: -8px; }
#left-menu ul li:nth-child(7n+6) a { --dot: #8a63d2; --tilt: 0.5deg; margin-right: 18px; }
#left-menu ul li:nth-child(7n+7) a { --dot: #006d8d; --tilt: -0.5deg; margin-right: 4px; }
#left-menu ul li a:hover, #left-menu ul li a.active {
	color: var(--orange);
	background: #fff;
	transform: translateX(6px) rotate(0deg);
}
/* the little mouse from the old book sits on the bottom corner */
#left-menu::after {
	content: "";
	position: absolute;
	right: -14px;
	bottom: -16px;
	width: 62px;
	height: 40px;
	background: url(../images/mouse.webp) no-repeat center / contain;
	pointer-events: none;
}

/* offer of the month (home) */
.offer { text-align: center; padding-top: 18px; }
.offer .offer-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.offer .offer-note b { color: var(--orange); font-size: 18px; }
.offer-cover img { max-height: 170px; width: auto; border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }
.offer-title { display: block; margin: 10px 0 6px; font-weight: 800; color: var(--teal-dark); }

/* basket (inner pages) */
.basket { background: var(--card); }
.basket .side-title { margin-bottom: 6px; }
.list-basket {
	float: none;
	width: auto;
	margin: 0;
	padding: 8px 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 8px;
	border-bottom: 1px dashed var(--line);
	font-size: 14px;
}
.list-basket .basket-name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.list-basket .basket-meta { grid-column: 1; color: var(--muted); font-size: 13px; }
.list-basket .basket-meta .price { color: var(--orange); font-weight: 700; }
.basket-remove { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.basket-remove button {
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: #f3ece4;
	color: var(--orange-dark);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.basket-remove button:hover { background: var(--orange); color: #fff; }
.basket-empty { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.basket .sum {
	float: none;
	width: auto;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 15px;
	background: none;
}
.basket .sum b { color: var(--orange); font-size: 18px; }

.banner { float: none; width: auto; margin: 0; padding: 0; }
.banner img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── top bar: login + basket ── */
#top {
	float: none;
	flex: 1 1 100%;
	width: auto;
	height: auto;
	padding: 18px 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}
.login { float: none; width: auto; height: auto; padding: 0; margin: 0; }
.login form { margin: 0; }
.login-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
input.field1 {
	float: none;
	width: 170px;
	height: auto;
	margin: 0;
	padding: 8px 14px;
	font: 14px var(--font);
	color: var(--ink);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #d5dfe2;
	border-radius: 999px;
	box-sizing: border-box;
}
input.field1:focus { outline: 3px solid rgba(0, 109, 141, 0.2); border-color: var(--teal); }
input.login-button {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 18px;
	font: 700 14px var(--font);
	color: #fff;
	background: var(--teal);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
input.login-button:hover { background: var(--teal-dark); }
.login-links { display: inline-flex; flex-direction: column; font-size: 12px; line-height: 1.35; }
.login-links a, .login a { color: var(--teal-dark); }
.login_good {
	float: none;
	width: auto;
	height: auto;
	padding: 8px 16px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 999px;
}
.login_good a { float: none; margin-left: 10px; font-weight: 700; color: var(--teal); }

.basket-top { float: none; width: auto; height: auto; margin: 0; padding: 0; background: none; }
.basket-top a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 16px;
	font-weight: 800;
	font-size: 14px;
	color: #fff;
	background: var(--orange);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(224, 84, 0, 0.3);
	text-decoration: none;
}
.basket-top a:hover { background: var(--orange-dark); color: #fff; }
.basket-top a b {
	min-width: 26px;
	padding: 2px 8px;
	text-align: center;
	color: var(--orange-dark);
	background: #fff;
	border-radius: 999px;
	box-sizing: border-box;
}
.basket-icon {
	width: 18px;
	height: 16px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M1 1h4l2.7 12.4A2 2 0 0 0 9.7 15H19a2 2 0 0 0 2-1.6L22.6 6H6.2' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='19' r='1.7'/%3E%3Ccircle cx='18' cy='19' r='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M1 1h4l2.7 12.4A2 2 0 0 0 9.7 15H19a2 2 0 0 0 2-1.6L22.6 6H6.2' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='19' r='1.7'/%3E%3Ccircle cx='18' cy='19' r='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* the rooster on the fence, under everything in the left column */
#left::after {
	content: "";
	display: block;
	margin-top: 10px;
	aspect-ratio: 398 / 301;
	background: url(../images/rooster.webp) no-repeat center bottom / contain;
	pointer-events: none;
	transform-origin: 50% 100%;
	animation: rooster-stretch 5s ease-in-out infinite;
}
/* every few seconds the rooster stretches up a little, as if about to crow */
@keyframes rooster-stretch {
	0%, 62%, 100% { transform: scale(1, 1); }
	70% { transform: scale(0.98, 1.07); }
	76% { transform: scale(1.01, 0.99); }
	82% { transform: scale(0.99, 1.04); }
	90% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
	#left::after { animation: none; }
}

/* ── main navigation: pastel pills ── */
#top-menu {
	float: none;
	flex: 1 1 100%;
	width: auto;
	height: auto;
	margin: 16px 0 26px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--font);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	text-align: left;
}
#top-menu a, #top-menu a.first {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	color: var(--ink);
	background: var(--pill, #fff);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 60, 80, 0.08);
	transition: transform 0.15s, box-shadow 0.15s;
}
#top-menu a:hover, #top-menu a.active { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 60, 80, 0.14); color: var(--teal-dark); }
#top-menu .nav-icon { width: 23px; height: 21px; flex: none; }
#top-menu a.nav-1 { --pill: #e3f3f7; }
#top-menu a.nav-2 { --pill: #fff1d0; }
#top-menu a.nav-3 { --pill: #fde6ee; }
#top-menu a.nav-4 { --pill: #e7f4df; }
#top-menu a.nav-5 { --pill: #ece7fb; }

/* ── content columns ── */
.center-column, .page, .page_inner {
	float: none;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 0 0 20px;
}
.page, .page_inner {
	padding: 26px 30px 30px;
	background: rgba(255, 255, 255, 0.86);
	border-radius: 24px;
	box-shadow: var(--shadow);
	box-sizing: border-box;
}
.page h1, .page_inner h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 12px;
	margin: 0 0 16px;
	font-size: 30px;
	line-height: 1.2;
	background: none;
	border-bottom: 3px dotted #f1d79a;
}
.page h1 img, .page_inner h1 img { display: none; }
.page h1::before, .page_inner h1::before {
	content: "";
	flex: 0 0 14px;
	height: 14px;
	border-radius: 4px;
	background: var(--sun);
	transform: rotate(45deg);
}
.page p, .page_inner p { padding: 0; margin: 0 0 14px; line-height: 1.7; }
.path { float: none; width: auto; padding: 0 0 14px; font-style: normal; font-size: 14px; color: var(--muted); }
.path a { padding: 0 6px 0 0; color: var(--teal); }

/* breadcrumb trail above the content */
.breadcrumb {
	flex: 1 1 100%;
	margin: -12px 0 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
}
.breadcrumb a {
	padding: 3px 12px;
	color: var(--teal);
	background: rgba(255, 255, 255, 0.75);
	border-radius: 999px;
}
.breadcrumb a:hover { color: var(--orange); background: #fff; }
.breadcrumb .sep { color: var(--orange); font-weight: 800; }
.breadcrumb [aria-current] { color: var(--ink); }

/* home intro */
.welcome {
	float: none;
	width: auto;
	margin: 0 0 22px;
	padding: 24px 28px;
	background: linear-gradient(135deg, #fff8e6 0%, #ffffff 60%);
	border-radius: 24px;
	box-shadow: var(--shadow);
	font-size: 16px;
}
.welcome h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; }
.welcome p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ── book cards ── */
.book-grid {
	clear: both;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 24px;
	margin: 6px 0 10px;
}
.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	font-size: 14px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.18s, box-shadow 0.18s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.book-cover {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 230px;
	padding: 8px 0 6px;
	background: radial-gradient(ellipse at 50% 100%, #f2ede1 0%, #ffffff 70%);
	border-radius: var(--radius-sm);
}
.book-cover img {
	max-height: 216px;
	width: auto;
	border-radius: 3px 6px 6px 3px;
	box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.22);
}
.book-title {
	flex: 1;
	font-weight: 800;
	font-size: 16px;
	line-height: 1.3;
	color: var(--teal-dark);
}
.book-title:hover { color: var(--orange); }

.book-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; }
.book-price del { color: var(--muted); font-size: 13px; }
.price-now { font-size: 18px; font-weight: 800; color: var(--ink); }
.price-sale { color: var(--orange); }
.price-tag {
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	color: #fff;
	background: #d9488f;
	border-radius: 999px;
}
.price-na { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }

.btn-order, a.btn-order, input.btn-order {
	display: inline-block;
	padding: 8px 20px;
	font: 800 14px var(--font);
	color: #fff;
	background: var(--orange);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(224, 84, 0, 0.25);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}
.btn-order:hover, a.btn-order:hover, input.btn-order:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-order-lg, input.btn-order-lg { padding: 12px 28px; font-size: 16px; }

/* ── right column ── */
.right-column {
	float: none;
	flex: 0 0 260px;
	width: 260px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.recommend { float: none; width: auto; padding: 18px; }
.recommend .product { box-shadow: none; padding: 0; }
.recommend .product:hover { transform: none; box-shadow: none; }
.calendar { float: none; width: auto; margin: 0; padding: 18px 18px 20px; background: var(--card); }
.calendar .side-title a { color: var(--teal-dark); }
.text-calendar { float: none; width: auto; padding: 0; margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); background: none; }
span.date {
	display: inline-block;
	margin: 0 0 6px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--teal-dark);
	background: var(--teal-soft);
	border-radius: 999px;
}
.right-column h2, .right-column h3, .text-calendar h3 { font-family: var(--font); font-weight: 800; letter-spacing: 0; }
.right-column h3, .text-calendar h3 { margin: 0 0 8px; padding: 0; font-size: 18px; line-height: 1.3; background: none; }
.right-column h3 a { color: var(--teal-dark); }
.more-link { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--orange); }
.more-link::after { content: " →"; }

/* ── product page ── */
.book-show, .book-content { float: none; width: auto; padding: 0; }
.book-content { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cover {
	float: none;
	flex: 0 0 260px;
	width: 260px;
	padding: 18px;
	background: radial-gradient(ellipse at 50% 100%, #f2ede1 0%, #ffffff 70%);
	border-radius: var(--radius);
	box-sizing: border-box;
}
.cover img { border-radius: 4px 8px 8px 4px; box-shadow: 6px 10px 22px rgba(0, 0, 0, 0.25); }
.text-book { float: none; flex: 1 1 280px; width: auto; padding: 0; line-height: 1.7; }
.text-book h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; }
.book-price-lg { justify-content: flex-start; margin: 4px 0 14px; }
.book-price-lg .price-now { font-size: 28px; }
.book-price-lg del { font-size: 16px; }
.text-book form { margin: 0 0 20px; }
.autograph { display: block; margin: 0 0 10px; font-weight: 700; }
.text-only { float: none; width: auto; margin-top: 24px; line-height: 1.7; }
.form-note { color: var(--muted); font-size: 12px; }

/* forms on content pages (registration, contacts, order) */
input.field2, .data input[type="text"], .data input[type="password"], .page textarea, .page select {
	font-family: var(--font);
	border: 1px solid #d5dfe2;
	border-radius: 10px;
}
input.login-button2, input.ff {
	padding: 10px 24px;
	font: 800 15px var(--font);
	color: #fff;
	background: var(--orange);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
input.login-button2:hover, input.ff:hover { background: var(--orange-dark); }
.err { font-size: 14px; color: #c0392b; }


/* ── inner content blocks of the old skin (cart, order steps, calendar, forms) ── */
#right .page *, #right .page_inner * { font-family: var(--font); letter-spacing: 0; }
.basket2, .list-basket2, .left-basket2, .data, .pages, .text-only, .path { float: none; width: auto; }
.basket2 {
	margin: 0 0 22px;
	padding: 6px 18px 14px;
	background: #fbf8f1;
	border-radius: var(--radius);
}
.list-basket2 { margin: 0; padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); }
.left-basket2 { font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.left-basket2 form { float: none; display: inline; margin: 0 6px 0 0; }
.left-basket span.price, .left-basket2 span.price { display: block; margin-top: 4px; font-size: 15px; color: var(--ink); }
.basket2 .count { float: none; width: auto; font-size: 13px; color: var(--muted); }
.basket2 .count select { padding: 4px 8px; font: 700 15px var(--font); border: 1px solid #d5dfe2; border-radius: 8px; background: #fff; }
.basket2 .sum, .sum_preview { float: none; width: auto; margin: 12px 0 0; padding: 0; font-size: 16px; background: none; }
.basket2 .sum b, .sum_preview b { color: var(--orange); font-size: 20px; }
.data { margin: 0 0 22px; padding: 0; background: none; font-size: 15px; }
.data h2 { font-size: 22px; background: none; }
.data a, .data a:hover { color: var(--teal); }
.data label, .data td { font-size: 15px; }
.data .invoice, .data .invoice1 {
	width: auto;
	max-width: 480px;
	margin: 10px 0;
	padding: 12px 16px;
	font-size: 14px;
	color: var(--ink);
	background: var(--teal-soft);
	border-radius: var(--radius-sm);
}
input.field2 { width: 100%; max-width: 320px; height: auto; padding: 8px 12px; box-sizing: border-box; background: #fff; }

/* holidays list */
.calendara { padding: 0; background: none; }
.calendara a, .calendara a:hover { display: inline-block; padding: 8px 18px; font-weight: 800; font-size: 14px; color: #fff; background: var(--teal); border-radius: 999px; }
.calendara a:hover { background: var(--teal-dark); }

/* ── footer ── */
#footer {
	float: none;
	flex: 1 1 100%;
	width: auto;
	margin: 30px 0 0;
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	font-size: 14px;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.85);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	box-sizing: border-box;
}
#footer a { color: var(--teal); }
#footer a:hover { color: var(--orange); text-decoration: none; }

/* ── smaller screens ── */
@media (max-width: 1100px) {
	.right-column { flex: 1 1 100%; width: auto; flex-direction: row; flex-wrap: wrap; }
	.right-column > * { flex: 1 1 260px; }
}
@media (max-width: 820px) {
	/* one column; #left / #right dissolve so their blocks can be reordered */
	#container { padding: 0 14px; flex-direction: column; align-items: stretch; gap: 14px; }
	#left, #right { display: contents; }
	#logo { order: 1; padding: 12px; margin-top: 14px; }
	#logo img { width: 110px; }
	#top { order: 2; padding: 0; justify-content: space-between; }
	#top-menu { order: 3; margin: 0; gap: 8px; }
	#top-menu a, #top-menu a.first { padding: 8px 14px; font-size: 14px; }
	.breadcrumb { order: 3; margin: 0; font-size: 13px; }
	#left-menu { order: 4; }
	.center-column, .page, .page_inner { order: 5; flex: none; }
	.right-column { order: 6; }
	#footer { order: 7; margin-top: 10px; }
	#left .offer, #left .basket, #left .banner { display: none; }
	#left-menu ul { display: flex; flex-wrap: wrap; gap: 6px; }
	#left-menu ul li a { padding: 6px 10px; font-size: 14px; }
	.login-form { width: 100%; }
	input.field1 { flex: 1 1 120px; width: auto; }
	.login-links { flex-direction: row; gap: 12px; }
	.page, .page_inner { padding: 20px 18px; }
	.welcome { padding: 18px 20px; }
	.welcome h1 { font-size: 26px; }
	.page h1, .page_inner h1 { font-size: 24px; }
	.book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
	#left-menu.side-card { margin: 0 4px 16px 12px; transform: none; }
	.book-cover { height: 150px; }
	.book-cover img { max-height: 140px; }
	.cover { flex: 1 1 100%; width: auto; }
	#wrap { padding-bottom: 70px; background-size: 1100px auto; }
	#left::after { display: none; }
	table { max-width: 100%; }
}

/* holidays list reuses .basket2 / .left-basket2: an article list there, not a cart */
.is-inner .page .left-basket2 h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.is-inner .page .left-basket2 h2 a { color: var(--teal-dark); }
.is-inner .page .left-basket2 { font-weight: 400; color: var(--ink); line-height: 1.6; }
.left-basket2 > span.price { display: inline-block; margin: 0 0 6px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; }
.left-basket2 .more { margin: 6px 0 0; }
.left-basket2 .more a { font-weight: 800; color: var(--orange); }
.left-basket2 .more a::after { content: " →"; }
.left-basket2 form + span.price, .left-basket2 form ~ span.price { display: block; padding: 0; background: none; font-size: 15px; color: var(--ink); }
.pages { margin: 16px 0 0; }

/* old floats inside: contain them so the rounded boxes get their real height */
.basket2, .data { display: flow-root; }
.basket2 .count { float: none; }
.list-basket2 .left-basket2 { flex: 1; }
.basket2 > .sum { float: none; display: block; margin: 12px 0 4px; }

/* order steps (shopping_cart): headings + radio rows */
.data h1 { margin: 22px 0 12px; font-size: 22px; }
.data h1:first-of-type { margin-top: 6px; }
.data h2 { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.data h2 input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.data .invoice1, .data .invoice { float: none; }
.data br[clear] { display: none; }
input.login-button2 {
	float: none;
	width: auto;
	height: auto;
	margin: 18px 0 0;
	padding: 12px 30px;
	font: 800 16px var(--font);
	background-image: none;
	box-shadow: 0 4px 10px rgba(224, 84, 0, 0.25);
}

/* text fields on content pages (registration, profile, contacts, forgot password) */
.page input[type="text"], .page input[type="password"], .page input[type="email"], .page textarea, .page select {
	padding: 8px 12px;
	font: 15px var(--font);
	color: var(--ink);
	background: #fff;
	border: 1px solid #d5dfe2;
	border-radius: 10px;
	box-sizing: border-box;
}
.page input[type="text"], .page input[type="password"], .page input[type="email"] { width: 100%; max-width: 320px; height: auto; }
.page textarea { width: 100%; min-height: 140px; }
.page input:focus, .page textarea:focus, .page select:focus { outline: 3px solid rgba(0, 109, 141, 0.18); border-color: var(--teal); }
.page input[type="checkbox"], .page input[type="radio"] { accent-color: var(--teal); }
