/*
 * ecoton-spb.ru — оформление сайта (21.10.2026). Без Bootstrap: свои стили, сначала для телефона,
 * затем шире (640, 768, 992, 1200px). Цвета — по логотипу ЭКОТОН и сайту производителя ecoton.ru:
 * синий для меню и ссылок, оранжевый для кнопок и цен.
 */

/* ---- Шрифт Roboto (лежит на сайте, Apache 2.0) ---- */
@font-face { font-family: Roboto; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/roboto/roboto-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/roboto/roboto-latin-300-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/roboto/roboto-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/roboto/roboto-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/roboto/roboto-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/roboto/roboto-latin-500-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/roboto/roboto-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/roboto/roboto-latin-700-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--blue: #2070b0;
	--blue-dark: #185a92;
	--blue-soft: #eaf2fa;
	--orange: #c24e06;
	--orange-dark: #a34104;
	--orange-bright: #e8650a;
	--ink: #1b2a3a;
	--text: #1f2933;
	--muted: #5b6672;
	--line: #e1e6eb;
	--soft: #f4f6f9;
	--on-dark: #c9d3dd;
	--ok: #1e7b45;
	--error: #b42318;
	--radius: 12px;
	--shadow: 0 6px 20px rgba(27, 42, 58, .10);
}

/* ---- Основа ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font: 400 16px/1.55 Roboto, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(32, 112, 176, .45); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h2 { font-size: 22px; font-weight: 500; margin: 1.4em 0 .6em; }
h3 { font-size: 18px; font-weight: 500; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; width: 1.15em; height: 1.15em; margin-right: .45em; vertical-align: -.2em; }

/* ---- Кнопки ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid var(--blue);
	border-radius: 8px;
	background: var(--blue);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn--accent { background: var(--orange); border-color: var(--orange); }
.btn--accent:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--outline { background: #fff; color: var(--blue); }
.btn--outline:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn--wide { display: flex; width: 100%; }

/* ---- Шапка ---- */
.topbar { display: none; background: var(--ink); color: var(--on-dark); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; color: var(--on-dark); white-space: nowrap; }
a.topbar__item:hover { color: #fff; }
.topbar__links { margin-left: auto; }
.topbar__links ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.topbar__links a { color: var(--on-dark); }
.topbar__links a:hover { color: #fff; }
.topbar__links span { color: #fff; }

.header__main { background: #fff; border-bottom: 1px solid var(--line); }
.header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px 12px;
	padding-top: 10px;
	padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__logo { flex: none; width: 47px; height: 44px; }
.brand__text { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; }
.brand__text b { display: block; color: var(--blue); font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }

.search { position: relative; grid-column: 1 / -1; grid-row: 2; }
.search__ico { position: absolute; top: 50%; left: 14px; margin: 0; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search__input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 42px;
	border: 1px solid #cdd5dd;
	border-radius: 8px;
	background: var(--soft);
	color: var(--text);
	font: inherit;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}
.search__input:focus { border-color: var(--blue); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(32, 112, 176, .18); }
.search-result {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	max-height: min(60vh, 420px);
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	list-style: none;
	box-shadow: var(--shadow);
}
.search-result li { padding: 0 !important; }
.search-result li:not(:has(a)) { padding: 10px 16px !important; color: var(--muted); }
.search-result a { display: block; padding: 10px 16px; color: var(--text); font-size: 15px; line-height: 1.35; }
.search-result a:hover, .search-result a:focus { background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; outline: none; }

.header__contacts { display: none; }
.header__phone { display: inline-flex; align-items: center; color: var(--ink); font-size: 21px; font-weight: 700; white-space: nowrap; }
.header__phone:hover { color: var(--blue); text-decoration: none; }
.header__phone .ico { color: var(--orange-bright); }

.header__call, .burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}
.header__call { color: var(--orange); }
.header__call .ico { width: 22px; height: 22px; margin: 0; }
.header__call:hover { background: var(--soft); }
.burger { gap: 8px; padding: 0 12px; font-size: 14px; font-weight: 500; }
.burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Меню каталога: на телефоне — панель по кнопке, разделы раскрываются стрелкой */
.menu { display: none; background: var(--ink); }
.menu.is-open { display: block; }
.menu__list, .menu__sub, .menu__extra { margin: 0; padding: 0; list-style: none; }
.menu__list { padding: 6px 0; }
.menu__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu__link { flex: 1; display: flex; align-items: center; min-height: 52px; padding: 8px 0; color: #fff; font-size: 16px; font-weight: 500; }
.menu__link:hover { color: #fff; text-decoration: none; }
.menu__link .ico { color: var(--orange-bright); }
.menu__toggle {
	position: relative;
	width: 48px;
	height: 48px;
	margin-right: -8px;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
}
.menu__toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	margin: -7px 0 0 -5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s, margin .2s;
}
.menu__item.is-open .menu__toggle::before { margin-top: -2px; transform: rotate(-135deg); }
.menu__sub { display: none; flex-basis: 100%; padding: 0 0 10px 28px; }
.menu__item.is-open .menu__sub { display: block; }
.menu__sub a, .menu__sub span { display: block; padding: 10px 0; color: var(--on-dark); font-size: 15px; }
.menu__sub a:hover { color: #fff; text-decoration: none; }
.menu__sub .is-current { color: #fff; font-weight: 500; }
.menu__extra { padding: 8px 0 14px; }
.menu__extra a, .menu__extra span { display: flex; align-items: center; min-height: 46px; color: var(--on-dark); font-size: 15px; }
.menu__extra a:hover { color: #fff; text-decoration: none; }
.menu__extra span { color: #fff; }

/* ---- Содержимое ---- */
.main { padding: 16px 0 48px; }
.crumbs { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #a7b0ba; }
.crumbs a { display: inline-block; padding: 6px 0; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { display: inline-block; padding: 6px 0; }
.page-title { position: relative; margin: 4px 0 24px; padding-bottom: 14px; font-size: 26px; font-weight: 500; overflow-wrap: anywhere; hyphens: auto; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--orange-bright); }
.lead { color: var(--muted); }

.block { margin-top: 40px; }
.page-title + .block, .alert + .block { margin-top: 0; }
.section-title { display: flex; align-items: center; margin: 0 0 16px; font-size: 21px; font-weight: 500; }
.section-title a { display: inline-flex; align-items: center; color: var(--ink); }
.section-title a:hover { color: var(--blue); text-decoration: none; }
.section-title .ico { color: var(--blue); }

.text { max-width: 860px; }
.text p, .text li { text-align: left; }
.text ul, .text ol { margin: 0 0 1em; padding-left: 1.3em; }
.text li { margin-bottom: .3em; }
.text li::marker { color: var(--blue); }
.text h2:first-child { margin-top: 0; }
.text img { max-width: 100% !important; height: auto !important; }

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 0; }

/* ---- Плитки каталога на главной ---- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover { border-color: #b9cde0; box-shadow: var(--shadow); color: var(--blue-dark); text-decoration: none; transform: translateY(-2px); }
.tile__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 12px; background: var(--soft); }
.tile__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile__ico { width: 42px; height: 42px; margin: 0; color: #9fb4c8; }
.tile__name { padding: 12px; font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.cert__name, .table td, .crumbs li { overflow-wrap: anywhere; }

/* ---- Карточки товаров ---- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #b9cde0; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transform: translateY(-2px); }
.card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; margin-bottom: 10px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__name { flex: 1; min-width: 0; margin-bottom: 10px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; hyphens: auto; }
.card:hover .card__name { color: var(--blue-dark); }
.card__price { color: var(--ink); font-size: 17px; font-weight: 700; white-space: nowrap; }
.rub { color: var(--muted); font-size: .82em; font-weight: 400; }
.price-request { color: var(--blue); font-size: 14px; font-weight: 500; white-space: normal; }

/* ---- Сертификаты ---- */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cert { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); cursor: zoom-in; }
.cert:hover { border-color: #b9cde0; box-shadow: var(--shadow); color: var(--blue-dark); text-decoration: none; }
.cert__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: var(--soft); border-radius: 6px; overflow: hidden; }
.cert__media img { width: 100%; height: 100%; object-fit: contain; }
.cert__name { font-size: 13px; line-height: 1.35; text-align: center; }

/* ---- Товар ---- */
.product { display: grid; gap: 20px; }
.product__media { max-width: 480px; }
.gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery__thumb { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.gallery__thumb:hover { border-color: #b9cde0; }
.gallery__thumb.is-active { border-color: var(--blue); }
.gallery__thumb img { max-height: 100%; object-fit: contain; }

/* Цена и связь: на узком — кнопки друг под другом, на широком — в ряд. */
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.buy__price { flex-basis: 100%; color: var(--orange); font-size: 30px; font-weight: 700; line-height: 1.2; }
.buy__price .rub { font-size: 18px; }
.buy__price .price-request { font-size: 22px; }
.buy .btn { flex: 1 1 230px; }
.buy__links { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 0 24px; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.buy__links li { display: flex; align-items: center; min-height: 40px; color: var(--muted); }
.buy__links a { display: flex; align-items: center; min-height: 40px; }
.product__specs { margin-top: 28px; }

/* ---- Таблицы ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table caption { padding: 0 0 12px; color: var(--ink); font-size: 21px; font-weight: 500; text-align: left; caption-side: top; }
.table th { padding: 12px 14px; background: var(--ink); color: #fff; font-weight: 500; text-align: left; }
.table th:first-child { border-top-left-radius: 8px; }
.table th:last-child { border-top-right-radius: 8px; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:nth-child(even) td { background: var(--soft); }
.table tbody tr:hover td { background: var(--blue-soft); }
.table--specs td:first-child { width: 62%; color: var(--muted); }
.table--specs td:last-child { color: var(--ink); font-weight: 500; }
.table--price td:last-child, .table--price th:last-child { text-align: right; white-space: nowrap; }
.table--price td:last-child { font-weight: 500; }
.table .table__group td { padding-top: 20px; border-bottom: 2px solid var(--blue); background: #fff !important; color: var(--blue-dark); font-size: 16px; text-align: left; white-space: normal; }

/* ---- Контакты ---- */
.contacts { display: grid; gap: 20px; }
.contact-card { padding: 20px; border-radius: var(--radius); background: var(--soft); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { display: inline-flex; align-items: center; color: var(--ink); font-weight: 500; }
.contact-card .ico { color: var(--blue); }
.contact-card__phone { color: var(--ink); font-size: 20px; font-weight: 700; }
.map { min-height: 400px; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.map > * { max-width: 100%; }

/* ---- Форма ---- */
.form { max-width: 920px; }
.form__grid { display: grid; gap: 0 24px; }
.field { margin-bottom: 16px; }
.field__label { display: flex; align-items: center; margin-bottom: 6px; color: var(--ink); font-size: 15px; font-weight: 500; }
.field__label .ico { color: var(--blue); }
.field__req { margin-left: 2px; color: var(--error); }
.field__input {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #cdd5dd;
	border-radius: 8px;
	background: #fff;
	color: var(--text);
	font: inherit;
	font-size: 16px;
}
textarea.field__input { min-height: 220px; resize: vertical; }
.field__input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(32, 112, 176, .18); }
.field__input.is-valid { border-color: var(--ok); }
.field__input.is-invalid { border-color: var(--error); }
.field__file { max-width: 100%; color: var(--muted); font-size: 15px; }
.field__file::file-selector-button {
	margin-right: 12px;
	padding: 9px 16px;
	border: 1px solid var(--blue);
	border-radius: 8px;
	background: #fff;
	color: var(--blue);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.field__file::file-selector-button:hover { background: var(--blue-soft); }
.captcha { display: flex; align-items: center; gap: 12px; }
.captcha__img { width: 69px; height: 45px; border: 1px solid var(--line); border-radius: 6px; image-rendering: pixelated; }
.captcha__input { max-width: 180px; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }

/* ---- Сообщения ---- */
.alert { position: relative; margin: 0 0 20px; padding: 14px 48px 14px 16px; border: 1px solid; border-radius: 10px; font-size: 15px; }
.alert--success { border-color: #b7e0c6; background: #edf8f1; color: #145c33; }
.alert--error { border-color: #f3c3bd; background: #fdf0ee; color: #8f1d14; }
.alert__close { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; opacity: .7; }
.alert__close:hover { opacity: 1; }

/* ---- Карта сайта ---- */
.sitemap, .sitemap ul { margin: 0; padding-left: 1.2em; }
.sitemap { padding-left: 0; list-style: none; }
.sitemap > li { margin-bottom: 14px; font-weight: 500; }
.sitemap ul { font-weight: 400; }
.sitemap li { margin: 4px 0; }

/* ---- Подвал ---- */
.footer { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 28px; padding: 40px 0 28px; }
.footer__logo { display: inline-block; margin-bottom: 10px; }
.footer__logo img { width: 64px; height: 60px; filter: brightness(0) invert(1); opacity: .9; }
.footer__site { display: block; margin-bottom: 12px; }
.footer__site a { color: #fff; font-weight: 500; }
.footer__title { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.footer__title a { color: #fff; }
.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-block; padding: 5px 0; }
.footer__contacts address { display: grid; gap: 2px; }
.footer__contacts strong { margin-top: 8px; color: #fff; font-weight: 500; }
.footer__contacts strong:first-child { margin-top: 0; }
.footer__phone { color: #fff !important; font-size: 18px; font-weight: 700; }
.footer__bottom { padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.footer__bottom p { margin: 0 0 6px; }

/* ---- Наверх ---- */
.to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 40;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--blue);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.to-top::before { content: ""; position: absolute; top: 17px; left: 15px; width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-dark); }

/* ---- Окно просмотра фото ---- */
.viewer { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.viewer[hidden] { display: none; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(12, 20, 30, .88); }
.viewer__frame { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; margin: 0; }
.viewer__img { max-width: min(92vw, 1000px); max-height: calc(100vh - 150px); border-radius: 8px; background: #fff; object-fit: contain; }
.viewer__caption { max-width: 720px; margin-top: 12px; color: #fff; font-size: 14px; text-align: center; }
.viewer__btn, .viewer__close {
	position: absolute;
	z-index: 1;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
}
.viewer__btn:hover, .viewer__close:hover { background: rgba(255, 255, 255, .28); }
.viewer__btn { top: 50%; margin-top: -24px; }
.viewer__btn--prev { left: 12px; }
.viewer__btn--next { right: 12px; }
.viewer__btn::before { content: ""; position: absolute; top: 18px; width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.viewer__btn--prev::before { left: 20px; transform: rotate(-45deg); }
.viewer__btn--next::before { left: 14px; transform: rotate(135deg); }
.viewer__btn[hidden] { display: none; }
.viewer__close { top: 8px; right: 8px; font-size: 30px; line-height: 48px; }

/* ---- Страница 404 ---- */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; background: var(--soft); }
.error-page__box { max-width: 560px; padding: 40px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.error-page .page-title::after { left: 50%; margin-left: -28px; }
.error-page__legal { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* ---- Телефон и планшет: ссылки, по которым попадают пальцем, — не ниже 44px. Отступы
   отрицательными полями, чтобы вид не менялся. ---- */
@media (max-width: 991.98px) {
	.crumbs a, .crumbs span { padding: 11px 0; margin: -5px 0; }
	.section-title a { padding: 12px 0; margin: -12px 0; }
	.footer__links a { padding: 11px 0; }
	.footer__title a { display: inline-block; padding: 13px 0; margin: -13px 0; }
	.footer__links li + li { margin-top: -6px; }
	.footer__site a, .footer__contacts a, .contact-card a { display: inline-block; padding: 10px 0; margin: -10px 0; }
	.footer__contacts strong { margin-top: 14px; }
	.contact-card p { margin-bottom: 1.4em; }
	.field__file::file-selector-button { padding: 12px 16px; }
}

/* ---- Самые узкие телефоны (до 375px): кнопка меню без подписи, иначе не помещается название ---- */
@media (max-width: 374.98px) {
	.burger__label { display: none; }
	.brand__text { font-size: 11px; }
	.brand__text b { font-size: 20px; }
	.page-title { font-size: 23px; }
}

/* ---- Шире телефона ---- */
@media (min-width: 640px) {
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
	.certs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
	.card { padding: 14px; }
	.card__name { font-size: 15px; }
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.page-title { font-size: 30px; }
	.form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contacts { grid-template-columns: minmax(260px, 1fr) 2fr; align-items: start; }
	.product { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 28px; }
	.product--no-media { grid-template-columns: minmax(0, 1fr); }
}

/* Компьютер: верхняя полоса с разделами сайта, поиск и телефон в шапке, каталог — синей полосой с
   выпадающими подразделами. */
@media (min-width: 992px) {
	.topbar { display: block; }
	.header__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; padding-top: 16px; padding-bottom: 16px; }
	.brand__logo { width: 64px; height: 60px; }
	.brand__text { font-size: 13px; }
	.brand__text b { font-size: 28px; }
	.search { grid-column: auto; grid-row: auto; max-width: 560px; width: 100%; justify-self: center; }
	.header__contacts { display: flex; align-items: center; gap: 20px; }
	.header__call, .burger { display: none; }

	.menu { position: sticky; top: 0; z-index: 50; display: block; background: var(--blue); }
	.menu__list { display: flex; padding: 0; }
	.menu__item { border: 0; }
	.menu__link { min-height: 52px; padding: 0 24px 0 0; margin-right: 24px; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
	.menu__link .ico { color: #ffd2ad; }
	.menu__item:hover > .menu__link, .menu__item:focus-within > .menu__link { color: #fff; box-shadow: inset 0 -3px 0 var(--orange-bright); }
	.menu__toggle { display: none; }
	.menu__sub {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 70;
		display: block;
		min-width: 300px;
		padding: 8px 0;
		border-radius: 0 0 10px 10px;
		background: #fff;
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .15s, transform .15s, visibility .15s;
	}
	.menu__item:hover > .menu__sub, .menu__item:focus-within > .menu__sub { opacity: 1; visibility: visible; transform: none; }
	.menu__sub a, .menu__sub span { padding: 10px 20px; color: var(--text); }
	.menu__sub a:hover { background: var(--blue-soft); color: var(--blue-dark); }
	.menu__sub .is-current { color: var(--blue); }
	.menu__extra { display: none; }

	.main { padding-top: 20px; }
	.page-title { font-size: 32px; }
	.tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
	.product { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; }
	.product--no-media { grid-template-columns: minmax(0, 1fr); }
	.product__media { position: sticky; top: 72px; }
	.footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; }
}

@media (min-width: 1200px) {
	.cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---- Печать ---- */
@media print {
	.topbar, .header__call, .burger, .search, .menu, .footer, .to-top, .viewer, #cookie-notice, .header__write { display: none !important; }
	.header__main { border: 0; }
	.card, .tile, .buy { box-shadow: none; }
	a { color: inherit; }
}
