/* ============================================================
   Шаблон hydroforce — воссоздание дизайна Hydroforce1 (JBlank)
   Палитра оригинала:
     меню:        #C65B5F (кораловый)
     акценты:     #C65B5F (кораловый)
     заголовки:   #CB4548 / #C65B5F (красные)
     подвал:      #C65C60
   ============================================================ */

:root {
	--blue: #C65B5F;
	--blue-dark: #a94a4e;
	--accent: #C65B5F;
	--red: #C65B5F;
	--red-dark: #CB4548;
	--footer-bg: #C65C60;
	--text: #333;
	--muted: #696969;
	--border: #dddddd;
}

* { box-sizing: border-box; }

html { overflow-y: scroll; }

body {
	margin: 0;
	padding: 0;
	color: var(--text);
	font-family: "Open Sans", "PT Sans", "Lucida Sans Unicode", "Lucida Grande", Tahoma, Geneva, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	background: #ffffff url("../images/fon_mill.png") no-repeat top center fixed;
	background-size: cover;
}

img { max-width: 100%; height: auto; }

a { color: var(--red); }
a:hover { text-decoration: none; color: #a94a4e; }
a img { border: none; }

h1 {
	color: var(--red-dark);
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: normal;
	text-transform: uppercase;
	font-family: Tahoma, Geneva, sans-serif;
	line-height: 1.3;
}

h2 {
	color: var(--red);
	font-size: 18px;
	margin: 0 0 8px;
	font-weight: bold;
}

h3, h4 { color: var(--text); }

p { margin: 0 0 16px; }
table p { margin: 0; }

ul, ol { padding-left: 22px; }

/* --- доступность --- */
.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--blue);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- контейнер (как в оригинале: белая карточка со скруглением и тенью) --- */
#container {
	max-width: 1280px;
	margin: 16px auto;
	padding: 20px;
	background: rgba(255, 255, 255, 0.60);
	border-radius: 10px;
	box-shadow: 0 0 8px #cccccc;
	text-align: left;
}

/* --- шапка --- */
#header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	min-height: 100px;
	margin-bottom: 8px;
	padding-bottom: 4px;
	position: relative;
	z-index: 99;
}

/* Десктоп: логотип слева, контакты справа, по вертикали по центру */
@media (min-width: 901px) {
	#header { flex-wrap: nowrap; }
	#logo { flex: 0 0 auto; }
	#address {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
}

#logo img { height: 108px; width: auto; max-width: 100%; }

#address { text-align: left; font-size: 12px; }
#address p { margin: 0 0 4px; }
#address .contacts-social { margin-bottom: 4px; }

.contacts-social { margin-bottom: 6px; }
.contacts-social img { vertical-align: middle; margin-left: 6px; }

.contacts-phone a {
	color: var(--red);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.contacts-address a { color: var(--text); text-decoration: none; }
.contacts-address a:hover { color: var(--red); }
.contacts-address b { font-weight: 600; }

.contacts-map a { color: #a94a4e; font-size: 11px; text-decoration: none; }
.contacts-map a:hover { color: var(--red-dark); }
.contacts-map img { vertical-align: middle; margin-right: 6px; }

/* --- средний блок шапки: производство --- */
.header-middle { font-size: 12.5px; line-height: 1.35; color: var(--text); max-width: 290px; margin-left: 28px; }
.header-middle .hm-title {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--red-dark);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin: 0 0 4px;
}
.header-middle .hm-line {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 2px 0;
}
.header-middle .hm-line svg { flex: 0 0 16px; margin-top: 2px; color: var(--red); }
.header-middle .hm-phones { white-space: nowrap; }
.header-middle .hm-phones a { color: var(--red); }
.header-middle a { color: #a94a4e; text-decoration: none; }
.header-middle a:hover { color: var(--red-dark); }

/* --- меню (современное, фирменный #C65C60) --- */
#menu {
	background-color: #C65C60;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(165, 70, 74, 0.18);
	min-height: 46px;
	position: relative;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 4px;
	padding: 8px 10px;
	margin: 6px;
	cursor: pointer;
}
.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 4px 0;
}

/* основной список */
#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#menu .menu-body > ul,
#menu .mod-menu {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
}

#menu .mod-menu > li {
	position: relative;
	flex: 1 1 0;
	text-align: center;
	display: flex;
	align-items: stretch;
}

/* разделители между пунктами меню */
#menu .mod-menu > li + li {
	border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* скругление углов панели у крайних пунктов */
#menu .mod-menu > li:first-child > a { border-radius: 8px 0 0 8px; }
#menu .mod-menu > li:last-child > a { border-radius: 0 8px 8px 0; }

#menu .mod-menu > li > a {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 13px 8px;
	color: #ffffff;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2px;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	transition: background-color 0.15s ease;
}

#menu .mod-menu > li > a:hover,
#menu .mod-menu > li > a:focus {
	background: #a94a4e;
	color: #ffffff;
}

#menu .mod-menu > li.active > a,
#menu .mod-menu > li.current > a,
#menu .mod-menu > li > a[aria-current="page"] {
	background: #a94a4e;
	color: #ffffff;
}

/* выпадающие уровни */
#menu .mod-menu ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-top: 3px solid #C65C60;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	z-index: 60;
	padding: 6px 0;
}

#menu .mod-menu li:hover > ul,
#menu .mod-menu li:focus-within > ul {
	display: block;
}

#menu .mod-menu ul li { position: relative; }

#menu .mod-menu ul a {
	display: block;
	padding: 10px 18px;
	color: var(--text);
	font-size: 13px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#menu .mod-menu ul a:hover,
#menu .mod-menu ul a:focus {
	color: #C65C60;
	background: #faf0f0;
}

/* третий уровень — вправо */
#menu .mod-menu ul ul {
	top: 0;
	left: 100%;
}

/* --- хлебные крошки --- */
#breadcrumb {
	margin: 10px 0;
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
}

#breadcrumb ul { list-style: none; padding: 0; margin: 0; }
#breadcrumb li { display: inline; }
#breadcrumb li + li::before { content: "»"; margin: 0 8px; color: #b0b0b0; }
#breadcrumb a { color: var(--muted); }
#breadcrumb li.active span { color: var(--red); }

/* --- раскладка контента --- */
.content-area {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-top: 12px;
}

#content {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 700px;
}

.sidebar {
	flex: 0 0 210px;
	width: 210px;
}

.sidebar .card { border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-bottom: 16px; }
.sidebar h3, .sidebar .card-header { color: var(--blue); font-size: 15px; margin-bottom: 8px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin-bottom: 6px; }
.sidebar a { color: var(--text); text-decoration: none; font-size: 13px; }
.sidebar a:hover { color: var(--red); }

/* --- типографика контента --- */
.item-page .page-header h2 { color: var(--red-dark); text-transform: uppercase; font-size: 22px; font-weight: normal; }

#content ul li, #content ol li { margin-bottom: 4px; }

/* таблицы (старые спец-таблицы) */
#content table {
	border-collapse: collapse;
	margin-bottom: 16px;
	max-width: 100%;
}

#content table th,
#content table td {
	border: 1px solid #cccccc;
	padding: 6px 9px;
	font-size: 13px;
	vertical-align: top;
}

#content table .tabheader,
#content table th {
	background: var(--blue);
	color: #ffffff;
	font-weight: bold;
	text-align: center;
}

#content table tr.title td,
#content table tr.bold td { font-weight: bold; }

/* --- формы --- */
input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], textarea, select {
	background: #f8f8f8;
	border: 1px solid #cccccc;
	padding: 7px 9px;
	font: inherit;
	max-width: 100%;
}

label { cursor: pointer; }

/* скрыть навигацию Prev/Next у статей */
.pagenavigation { display: none; }

/* --- форма заявки (опросный лист) --- */
.hf-form { max-width: 100%; }
.hf-form .hf-h { color: var(--red); font-size: 17px; margin: 24px 0 10px; }
.hf-form .hf-type label { margin-right: 20px; }
.hf-form .hf-schema { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; margin: 4px 0 12px; display: block; }
.hf-table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
.hf-table th, .hf-table td { border: 1px solid #cccccc; padding: 6px; font-size: 12.5px; vertical-align: top; }
.hf-table th { background: #f7ecec; font-weight: 600; text-align: center; }
.hf-table input, .hf-table textarea { width: 100%; box-sizing: border-box; }
.hf-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.hf-col { flex: 1 1 320px; min-width: 0; }
.hf-form label { font-weight: 600; font-size: 13px; }
/* отступ между подписью и полем (Дополнительно, шапка) */
.hf-form p > label > textarea,
.hf-form p > label > input:not([type="checkbox"]):not([type="radio"]) {
	margin-left: 10px;
	vertical-align: top;
}
.hf-agree input { margin-right: 6px; }
.hf-agree a { text-decoration: underline; }
.hf-form .hf-note { font-size: 12px; color: var(--muted); }
.hf-form .hf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hf-head td { vertical-align: top; }
.hf-head input { width: 100%; }
.hf-form .btn { cursor: pointer; }

/* --- Подвал --- */
#footer {
	background-color: var(--footer-bg);
	border-radius: 4px;
	clear: both;
	min-height: 10px;
	margin-top: 20px;
	padding: 8px 10px;
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
	font-size: 11px;
	color: #ffffff;
	text-align: center;
}

#footer a { color: #ffffff; }
#footer a:hover { text-decoration: underline; }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 900px) {

	#container { margin: 8px; padding: 10px; }

	.content-area { flex-direction: column; }
	.sidebar { flex: 0 0 auto; width: 100%; order: 2; }
	#content { min-height: 0; }

	/* шапка: логотип и контакты по центру */
	#header { flex-direction: column; align-items: center; text-align: center; }
	.header-middle { text-align: center; max-width: none; margin-left: 0; }
	.header-middle .hm-title,
	.header-middle .hm-line { justify-content: center; }
	#header::before { display: none; }
	#logo { flex: none; }
	#logo img { height: 80px; width: auto; }
	#address {
		flex: none;
		display: block;
		align-items: initial;
		text-align: center;
		width: 100%;
	}

	/* меню-гамбургер */
	#menu { display: flex; flex-wrap: wrap; align-items: center; }
	.menu-toggle { display: block; }
	#menu .mod-menu > li + li { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.25); }
	#menu .menu-body { display: none; width: 100%; }
	#menu.open .menu-body { display: block; }
	#menu .menu-body > ul,
	#menu .mod-menu {
		flex-direction: column;
	}
	#menu .mod-menu > li > a { padding: 11px 14px; white-space: normal; }
	#menu .mod-menu ul {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding-left: 14px;
		background: #f2f5f8;
	}
	#menu .mod-menu li.open > ul { display: block; }
	#menu .mod-menu ul a { padding: 8px 14px; }

	/* заголовки компактнее */
	h1 { font-size: 22px; }
}

@media (max-width: 640px) {

	#header { flex-direction: column; align-items: center; text-align: center; }
	#address { text-align: center; }
	#logo img { height: 64px; width: auto; }

	#breadcrumb { text-transform: none; }

	/* широкие таблицы прокручиваются */
	#content table { display: block; overflow-x: auto; }

	.contacts-phone a { font-size: 15px; }
}

/* --- Главная: скрыть служебную информацию статьи (автор/дата/хиты) --- */
.homepage .article-info { display: none; }

/* ============================================================
   ГЛАВНАЯ СТРАНИЦА (герой + секции)
   ============================================================ */

/* Скрыть служебную информацию статей (автор/дата/хиты) на всех страницах */
.com-content-article .article-info,
.com-content-category-blog .article-info,
.com-content-category .article-info {
	display: none;
}

/* Главная: без хлебных крошек и заголовка статьи */
.homepage #breadcrumb,
.homepage .page-header {
	display: none;
}

/* Главная: подложка сильно прозрачная (20% непрозрачности) */
.homepage #container {
	background: rgba(255, 255, 255, 0.20);
}

/* --- Герой: крупные ссылки (идентичен оригиналу) --- */
.hero { width: 100%; text-align: center; padding-top: 20px; }
.hero-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	min-height: 554px;
}
.hero-links {
	font-family: "PT Sans Narrow", "Arial Narrow", Tahoma, sans-serif;
	font-size: 43px;
	font-weight: bold;
	line-height: 1.05;
	text-align: left;
}
.hero-links a {
	color: #333;
	text-decoration: none;
	text-transform: none;
}
.hero-links a:hover { color: var(--red); }
.hero-links .hero-indent { margin-left: 32px; }
.hero-links .hero-sale { font-size: 34px; color: var(--red); }
.hero-links .hero-sale-sm { font-size: 28px; }
.hero-logo { flex: 0 0 auto; padding-left: 24px; }
.hero-logo img { margin-bottom: 90px; max-width: 498px; width: 100%; height: auto; }

/* --- Общие секции --- */
.home-section {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #eeeeee;
}
.home-section h2 { font-size: 24px; text-transform: uppercase; }
.home-sub { color: var(--red); font-size: 16px; margin: 18px 0 10px; }
.home-lead { font-size: 15px; }
.home-more { margin-top: 16px; text-align: right; }
#gid .home-more { text-align: center; }

/* --- Кнопки --- */
.btn {
	display: inline-block;
	background: #ffffff;
	border: 2px solid var(--red);
	border-radius: 25px;
	color: var(--red) !important;
	font-weight: bold;
	padding: 10px 26px;
	text-decoration: none !important;
	text-transform: none;
}
.btn:hover { background: var(--red); color: #ffffff !important; }
.btn-big { padding: 14px 40px; font-size: 16px; text-align: center; }

/* --- О компании --- */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 40px;
}
.about-grid p { margin-bottom: 10px; }
.about-grid img { vertical-align: middle; margin-right: 8px; }
.video-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}
.video-row video {
	max-width: 100%;
	width: 500px;
	height: auto;
	background: #000;
	border-radius: 6px;
}
.video-row .video-center { width: 100%; max-width: 500px; }

/* --- Шаги (7 карточек) --- */
.steps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.step-card {
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
}
.step-card summary {
	list-style: none;
	cursor: pointer;
	padding: 12px;
	text-align: center;
}
.step-card summary::-webkit-details-marker { display: none; }
.step-card summary::after {
	content: "+ ";
	display: block;
	color: var(--red);
	font-weight: bold;
	margin-top: 6px;
}
.step-card[open] summary::after { content: "–"; }
.step-card summary img { max-width: 200px; height: auto; }
.step-card summary span {
	display: block;
	font-weight: bold;
	font-size: 14px;
	color: var(--text);
}
.step-card .step-body {
	padding: 4px 14px 14px;
	font-size: 13px;
	color: var(--text);
}
.step-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.step-gallery img { max-width: 240px; height: auto; border: 1px solid var(--border); }

/* --- КД --- */
.kd-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.kd-row img { max-width: 230px; height: auto; border: 1px solid var(--border); border-radius: 4px; }
.kd-row a:hover img { border-color: var(--red); }

/* --- Категории цилиндров --- */
.cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.cat-card {
	border: 2px solid var(--red);
	border-radius: 25px;
	color: var(--red) !important;
	font-weight: bold;
	font-size: 20px;
	text-align: center;
	text-decoration: none !important;
	padding: 16px 12px;
}
.cat-card:hover { color: #a94a4e !important; border-color: #e37a80; }

/* --- Каталог (6 карточек) --- */
.catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.catalog-card {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 14px;
	text-align: center;
	display: flex;
	flex-direction: column;
}
.catalog-card h3 {
	font-family: "PT Sans Narrow", "Arial Narrow", sans-serif;
	font-size: 18px;
	font-weight: bold;
	min-height: 44px;
}
.catalog-card img { max-width: 100%; height: auto; margin: 6px 0; }
.catalog-card p { font-size: 13px; text-align: left; flex: 1; }
.catalog-card > p:last-child { text-align: right; margin-top: auto; }

/* --- Детали по чертежам --- */
.doc-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.doc-images { flex: 0 0 auto; }
.doc-images img { max-width: 380px; height: auto; margin-right: 10px; }
.doc-text { flex: 1; min-width: 260px; }

/* --- Контакты на главной --- */
.contacts-row { display: flex; gap: 30px; flex-wrap: wrap; }
.contacts-info { flex: 0 0 320px; }
.contacts-map { flex: 1; min-width: 280px; }
.contacts-map iframe { width: 100%; }

/* --- Адаптив главной --- */
@media (max-width: 900px) {
	.hero-links { font-size: 30px; }
	.hero-links .hero-sale { font-size: 26px; }
	.hero-links .hero-sale-sm { font-size: 22px; }
	.hero-row { min-height: 0; }
	.catalog-grid { grid-template-columns: repeat(2, 1fr); }
	.about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.hero-row { flex-direction: column; align-items: center; }
	.hero-links { font-size: 24px; text-align: center; }
	.hero-links .hero-indent { margin-left: 0; }
	.hero-logo { padding-left: 0; margin-top: 20px; }
	.hero-logo img { margin-bottom: 0; }
	.catalog-grid, .cat-grid, .steps-grid { grid-template-columns: 1fr; }
	.video-row video { width: 100%; }
	.contacts-info { flex: 1 1 100%; }
}

.hikashop_product_price_full {
  display: none;
  }
  
#hikashop_social {
  display: none;
  }