/*
Theme Name: Frez tech
Author: twofed
Author URI: https://twofed.ru
Description: Тема для сайта ФРЕЗТЕХ
*/

@font-face {
	font-family: 'Wix Madefor Display';
	src: url('/wp-content/themes/freztech/fonts/wix-madefor-display_cyrillic-ext.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
	font-family: 'Wix Madefor Display';
	src: url('/wp-content/themes/freztech/fonts/wix-madefor-display_cyrillic.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Wix Madefor Display';
	src: url('/wp-content/themes/freztech/fonts/wix-madefor-display_latin-ext.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Wix Madefor Display';
	/* subset: ASCII, « » ° ± × Ø ø и тире/кавычки — пересборка: tools/subset-fonts.sh */
	src: url('/wp-content/themes/freztech/fonts/wix-madefor-display_latin.subset.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B0, U+00B1, U+00BB, U+00D7, U+00D8, U+00F8, U+2010-2027;
}

@font-face {
	font-family: 'PTRootUIWebRegular';
	/* subset: Latin-1 + кириллица + типографика, ₽ № € — пересборка: tools/subset-fonts.sh */
	src: url('/wp-content/themes/freztech/fonts/pt-root-ui_regular.subset.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--dark-blue: #142045;
	--main-blue: #19264D;
	--accent: #D76A42;
	--grey: #E6E7E8;
	--text-muted: #4b5563;
	--accent-dark: #B8532F;
	--white: #F0F0F0;
}

.mt64 {
	margin-top: 64px;
}

.mt80 {
	margin-top: 80px !important;
}

html,
body {
	border: none;
	margin: 0;
	padding: 0;
	font-family: "PTRootUIWebRegular", sans-serif;
}

/* Переход по якорям меню: заголовок раздела не прячется под липкой шапкой */
html {
	scroll-padding-top: 96px;
}

body {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    min-height: 100vh;
}

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

h1,
.h1 {
	font-size: 80px;
	font-weight: 700;
	line-height: 110%;
	color: var(--main-blue);
	font-family: "Wix Madefor Display", sans-serif;
	margin: 0;
}

h2,
.h2 {
	font-size: 48px;
    font-weight: 500;
	line-height: 110%;
	color: var(--main-blue);
	font-family: "Wix Madefor Display", sans-serif;
	margin: 0;
}

h3,
.h3 {
	font-size: 32px;
    font-weight: 500;
	line-height: 120%;
	color: var(--main-blue);
	font-family: "Wix Madefor Display", sans-serif;
	margin: 0;
}

h4,
.h4 {
	font-size: 24px;
    font-weight: 500;
	line-height: 140%;
	color: var(--white);
	font-family: "Wix Madefor Display", sans-serif;
	margin: 0;
}


h5,
.h5 {
	font-size: 20px;
	line-height: 120%;
	color: var(--main-blue);
	font-family: "Wix Madefor Display", sans-serif;
	margin: 0;
}

header {
	position: sticky;
    top: 0;
    z-index: 2;
	background: white;
}

.navbar {
	padding: 16px 0px;
    border-bottom: solid 1px var(--grey);
}

.navbar .row {
	flex-grow: 1;
}

.navbar svg {
	margin-bottom: -8px;
}

.navbar a {
	color: var(--dark-blue);
	font-size: 18px;
	text-decoration: none;
}

.navbar a:hover {
	color: var(--accent);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
	color: var(--accent);
}

.navbar .btn {
	font-size: 20px;
    padding: 8px 15px;
    border: solid 1px var(--main-blue);
    border-radius: 0;
}

.navbar .btn:hover {
	text-decoration: none;
	background: var(--main-blue);
	color: white;
}

.navbar .navbar-nav {
	gap: 15px;
}

.categories {
	margin-right: -20px;
    margin-left: -20px;
	gap: 60px 0;
}

.categories > * {
	padding-right: 20px;
    padding-left: 20px;
}

.categories img {
	height: 250px;
    width: 100%;
    object-fit: contain;
}

.categories img + div {
	margin-top: 20px;
	width: 100%;
	text-align: center;
	color: var(--main-blue);
	font-size: 24px;
    font-weight: 500;
	line-height: 140%;
	font-family: "Wix Madefor Display", sans-serif;
}

.categories a {
	text-decoration: none;
}

.categories a:hover div {
	color: var(--accent);
}

.hero section {
	display: flex;
}

.hero .left > div {
	position: relative;
	isolation: isolate;
	padding: 65px;
	padding-right: 150px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Затемнение фото, чтобы белый текст читался на светлых участках */
.hero .left > div::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10, 18, 40, 0.7) 0%, rgba(10, 18, 40, 0.45) 60%, rgba(10, 18, 40, 0.2) 100%);
}

.hero .left .btn {
	margin-top: 44px;
    border-radius: 0;
    color: white;
    font-size: 20px;
    padding: 12px 24px;
	background: var(--accent);
}

.hero .center,
.hero .right {
	position: relative;
}

.hero .center img,
.hero .right img {
	width: 100%;
}

.hero .center .description,
.hero .right .description {
	position: absolute;
    top: 10px;
    right: 30px;
	display: flex;
    flex-direction: column;
    width: 130px;
	align-items: flex-end;
}

.hero .center .image-holder,
.hero .right .image-holder {
	display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}

.hero .center .h5,
.hero .right .h5 {
	text-align: right;
}

.hero .left {
	padding-right: 0;
	flex: 0 0 50%;
}

.hero .center {
	padding-left: 0;
	padding-right: 0;
	border-bottom: solid 1px var(--grey);
	border-right: solid 1px var(--grey);
	flex: 0 0 25%;
}

.hero .right {
	padding-left: 0;
	border-bottom: solid 1px var(--grey);
	border-right: solid 1px var(--grey);
	flex: 0 0 25%;
}

.about .row {
	color: var(--main-blue);
	font-size: 18px;
	line-height: 135%;
}

.about .row .col-md-4 {
	display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

hr {
	margin: 20px 0;
}

footer {
	background: var(--main-blue);
	padding: 40px 0;
}

footer .row {
	display: flex;
    align-items: center;
}

footer .links {
	display: flex;
    flex-direction: column;
    align-items: end;
    gap: 12px;
}

footer .links a,
footer .links .h3 {
	color: var(--white);
	text-decoration: none;
}

footer .links a:hover,
footer .links .h3:hover {
	color: var(--accent);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .modal-dialog {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .modal-dialog {
		max-width: 1320px;
    }
}

.modal-dialog {
	top: 50%;
	transform: translate(0, -50%) !important;
}

/* ===== Блок контактов ===== */
.contacts-row {
	align-items: stretch;
}

/* Левая колонка */
.contacts-info {
	display: flex;
	flex-direction: column;
}

.contact-item {
	padding: 24px 0;
	border-bottom: solid 1px var(--grey);
}

.contact-item:first-child {
	padding-top: 0;
}

.contact-item:last-child {
	border-bottom: none;
}

.contact-label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 12px;
	font-family: "Wix Madefor Display", sans-serif;
}

.contact-value {
	display: block;
	font-size: 32px;
	font-weight: 700;
	line-height: 120%;
	color: var(--main-blue);
	text-decoration: none;
	font-family: "Wix Madefor Display", sans-serif;
	margin-bottom: 8px;
	transition: color 0.2s;
}

.contact-value:hover {
	color: var(--accent);
}

.contact-sub {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 140%;
}

/* Мессенджеры */
.messenger-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.messenger-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border: solid 1px var(--grey);
	font-size: 16px;
	font-weight: 500;
	color: var(--main-blue);
	text-decoration: none;
	background: white;
	transition: all 0.2s;
	font-family: "Wix Madefor Display", sans-serif;
}

.messenger-btn:hover {
	border-color: var(--main-blue);
	color: var(--main-blue);
	transform: translateY(-1px);
}

/* Правая колонка — карточка формы */
.contact-form-card {
	background: #f4f6fa;
	padding: 40px;
	height: 100%;
}

.contact-form-card .form-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--main-blue);
	font-family: "Wix Madefor Display", sans-serif;
	margin: 0 0 12px 0;
}

.contact-form-card .form-subtitle {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 140%;
	margin-bottom: 32px;
}

/* ===== Floating labels для CF7 ===== */
.wpcf7-form .cf7-field {
	position: relative;
	margin-bottom: 28px;
}

.wpcf7-form .cf7-field .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form input.wpcf7-text,
.wpcf7-form textarea.wpcf7-textarea {
	width: 100%;
	padding: 20px 0 8px 0;
	border: none;
	border-bottom: solid 1px #d1d5db;
	border-radius: 0;
	background: transparent;
	font-family: "PTRootUIWebRegular", sans-serif;
	font-size: 16px;
	color: var(--main-blue);
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.wpcf7-form textarea.wpcf7-textarea {
	min-height: 60px;
	resize: vertical;
}

.wpcf7-form input.wpcf7-text:focus,
.wpcf7-form textarea.wpcf7-textarea:focus {
	border-bottom-color: var(--main-blue);
}

/* Плейсхолдер прозрачный — видно только label */
.wpcf7-form input.wpcf7-text::placeholder,
.wpcf7-form textarea.wpcf7-textarea::placeholder {
	color: transparent;
}

/* Floating label */
.cf7-field label {
	position: absolute;
	top: 20px;
	left: 0;
	font-size: 16px;
	color: var(--text-muted);
	pointer-events: none;
	transition: all 0.2s ease;
	font-family: "PTRootUIWebRegular", sans-serif;
}

/* Подъём label при фокусе или заполненном поле */
.cf7-field:has(input:focus) label,
.cf7-field:has(input:not(:placeholder-shown)) label,
.cf7-field:has(textarea:focus) label,
.cf7-field:has(textarea:not(:placeholder-shown)) label {
	top: 0;
	font-size: 12px;
	color: var(--text-muted);
}

/* Футер формы: соглашение + кнопка */
.wpcf7-form .cf7-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.cf7-agreement {
	flex: 1;
	min-width: 200px;
	font-size: 13px;
	color: var(--text-muted);
	line-height: 140%;
}

.cf7-agreement a {
	color: var(--text-muted);
	text-decoration: underline;
}

.cf7-agreement a:hover {
	color: var(--accent);
}

/* Кнопка отправки */
.wpcf7-form input.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--accent);
	border: none;
	padding: 14px 28px;
	font-weight: 500;
	font-family: "Wix Madefor Display", sans-serif;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
	background-repeat: no-repeat;
	background-position: right 20px center;
	padding-right: 48px;
	border-radius: 0;
    color: white;
    font-size: 20px;
}

.wpcf7-form input.wpcf7-submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Сообщения об ошибках / валидации */
.wpcf7-not-valid-tip {
	position: absolute;
	bottom: -20px;
	left: 0;
	color: #dc2626;
	font-size: 12px;
}

.wpcf7-response-output {
	width: 100%;
	margin: 16px 0 0 !important;
	padding: 10px 14px !important;
	border-width: 1px !important;
	border-color: var(--grey) !important;
	font-size: 13px;
	color: var(--main-blue);
}

/* Обёртка submit + spinner */
.wpcf7-form .cf7-footer p:has(.wpcf7-submit),
.wpcf7-form .cf7-footer .submit-wrap {
	position: relative;
	margin: 0;
	display: inline-block;
}

/* Спиннер поверх кнопки по центру */
.wpcf7-form .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	z-index: 2;
	pointer-events: none;
}

/* Пока идёт отправка — прячем текст кнопки, оставляя её саму видимой */
.wpcf7-form.submitting .wpcf7-submit {
	color: transparent;
	background-image: none;
}

/* Чекбокс согласия на обработку ПД */
.cf7-agreement .wpcf7-list-item {
	margin: 0;
}

.cf7-agreement .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.cf7-agreement input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--accent);
	cursor: pointer;
}

.wpcf7-form input.wpcf7-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* ===== ТЕКСТОВЫЕ СТРАНИЦЫ (политика, согласие и т. п.) ===== */
.page-content {
	font-size: 16px;
	line-height: 150%;
	color: var(--dark-blue);
}

.page-content h2 {
	font-size: 28px;
	margin: 48px 0 16px;
}

.page-content h3 {
	font-size: 22px;
	margin: 32px 0 16px;
}

.page-content > :first-child {
	margin-top: 0;
}

.page-content p,
.page-content ul {
	margin-bottom: 12px;
}

.page-content a {
	color: var(--accent);
}

.page-content .table {
	margin: 24px 0;
	font-size: 15px;
}

.page-content .table th {
	background: var(--grey);
	font-weight: 500;
}

.page-content .table td > :last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.page-content h2 {
		font-size: 24px;
		margin-top: 32px;
	}
}

/* ===== COOKIE-БАННЕР ===== */
.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1060;
	padding: 20px 0;
	background: var(--dark-blue);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner__inner {
	display: flex;
	align-items: center;
	gap: 32px;
}

.cookie-banner__text {
	flex: 1;
	margin: 0;
	font-size: 14px;
	line-height: 140%;
	color: var(--white);
}

.cookie-banner__text a {
	color: var(--white);
	text-decoration: underline;
}

.cookie-banner__text a:hover {
	color: var(--accent);
}

.cookie-banner__btn {
	flex-shrink: 0;
	background: var(--accent-dark);
	border: none;
	border-radius: 0;
	padding: 12px 32px;
	color: white;
	font-size: 18px;
	font-weight: 500;
	font-family: "Wix Madefor Display", sans-serif;
	cursor: pointer;
	transition: opacity 0.2s;
}

.cookie-banner__btn:hover {
	opacity: 0.92;
}

@media (max-width: 767px) {
	.cookie-banner {
		padding: 16px 0;
	}

	.cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.cookie-banner__text {
		font-size: 13px;
	}
}

/* ===== ГЛОБАЛЬНЫЙ АДАПТИВ ===== */

/* Большой десктоп → ноутбук (< 1200px) */
@media (max-width: 1199px) {
	/* Иначе длинное слово в заголовке + отступ 150px не влезают в половину ширины и .right уезжает за край */
	.hero .left > div {
		padding: 48px;
	}

	h1, .h1 {
		font-size: 64px;
	}

	h2, .h2 {
		font-size: 40px;
	}

	h3, .h3 {
		font-size: 28px;
	}
}

/* Планшет (< 992px) */
@media (max-width: 991px) {
	h1, .h1 {
		font-size: 52px;
	}

	h2, .h2 {
		font-size: 36px;
	}

	h3, .h3 {
		font-size: 26px;
	}

	h4, .h4 {
		font-size: 20px;
	}

	.mt80 {
		margin-top: 60px !important;
	}

	.mt64 {
		margin-top: 40px;
	}

	/* Навигация — бургер (navbar-expand-lg сворачивает меню до 992px) */
	.navbar .collapse.navbar-collapse,
	.navbar .collapsing.navbar-collapse {
		order: 10;
		flex-basis: 100%;
		margin-top: 12px;
	}

	.navbar .navbar-nav {
		flex-direction: column;
		gap: 8px;
		padding: 12px 0;
	}

	.navbar > .container > .row > .col-md-12 {
		flex-wrap: wrap;
	}

	.navbar .header-email {
		margin-left: auto;
		margin-right: 20px;
	}

	.navbar a {
		font-size: 16px;
	}

	.navbar .btn {
		font-size: 16px;
		padding: 6px 12px;
	}

	/* Каталог — 2 в ряд */
	.categories {
		gap: 40px 0;
	}

	.categories > .col-md-3 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.categories img {
		height: 200px;
	}

	.categories img + div {
		font-size: 20px;
	}

	/* Модалка каталога — 3 в ряд */
	.modal-body .col-md-3 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}

	/* О компании — фото сверху, текст снизу */
	.about > .col-md-6:first-child {
		margin-bottom: 32px;
	}

	.about .row .col-md-4 .h3 {
		font-size: 24px;
	}

	/* Контакты */
	.contact-form-card {
		padding: 32px;
	}

	.contact-value {
		font-size: 28px;
	}

	.contact-form-card .form-title {
		font-size: 24px;
	}
}

/* Мобильный (< 768px) */
@media (max-width: 767px) {
	h1, .h1 {
		font-size: 40px;
	}

	h2, .h2 {
		font-size: 30px;
	}

	h3, .h3 {
		font-size: 24px;
	}

	h4, .h4 {
		font-size: 18px;
	}

	h5, .h5 {
		font-size: 16px;
	}

	.mt80 {
		margin-top: 48px !important;
	}

	.mt64 {
		margin-top: 32px;
	}

	.navbar .logo svg {
		width: 160px;
		height: auto;
	}

	/* Скрываем email в хедере на мобильных — он есть в блоке контактов и в футере */
	.navbar > .container > .row > .col-md-12 > a[href^="mailto"] {
		display: none;
	}

	/* Каталог — 1 в ряд */
	.categories {
		gap: 32px 0;
		margin-right: 0;
		margin-left: 0;
	}

	.categories > .col-md-3 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.categories img {
		height: 220px;
	}

	/* Модалка — 2 в ряд */
	.modal-body .col-md-3 {
		flex: 0 0 50%;
		max-width: 50%;
		margin-bottom: 20px;
	}

	.modal-body .col-md-3 img {
		height: 160px;
		width: 100%;
		object-fit: contain;
	}

	/* О компании */
	.about > .col-md-6:first-child img {
		width: 100%;
		max-height: 320px;
		object-fit: cover;
	}

	.about .h2.mt80 {
		margin-top: 40px !important;
	}

	.about .our_experience > .col-md-4 {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 20px;
		text-align: left;
		align-items: flex-start;
	}

	.about .our_experience > .col-md-4:last-child {
		margin-bottom: 0;
	}

	.about .row .col-md-4 .h3 {
		font-size: 22px;
	}
	
	.about .row.our_experience {
		gap: 20px;
	}

	/* Контакты */
	.contacts-row > .col-md-6:first-child {
		margin-bottom: 32px;
	}
	
	.contacts-row > .col-md-6:last-child {
		padding: 0;
	}

	.contact-form-card {
		padding: 24px;
	}

	.contact-item {
		padding: 20px 0;
	}

	.contact-value {
		font-size: 24px;
	}

	.contact-form-card .form-title {
		font-size: 22px;
	}

	.contact-form-card .form-subtitle {
		font-size: 15px;
		margin-bottom: 24px;
	}

	.cf7-agreement p {
		margin: 0;
	}

	.wpcf7-form .cf7-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		margin-top: 24px;
	}

	.cf7-agreement {
		min-width: 0;
	}

	.wpcf7-form .cf7-footer p:has(.wpcf7-submit) {
		display: block;
		width: 100%;
	}

	.wpcf7-form input.wpcf7-submit {
		width: 100%;
		justify-content: center;
		padding: 14px 48px;
		font-size: 18px;
	}

	/* Футер */
	footer {
		padding: 32px 0;
	}

	footer .row {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	footer .links {
		align-items: flex-start;
	}

	footer .links .h3 {
		font-size: 24px;
	}

	footer .logo svg {
		width: 160px;
		height: auto;
	}
}

/* Маленький мобильный (< 480px) */
@media (max-width: 480px) {
	h1, .h1 {
		font-size: 32px;
	}

	h2, .h2 {
		font-size: 26px;
	}

	/* Каталог */
	.categories img {
		height: 180px;
	}

	.categories img + div {
		font-size: 18px;
	}

	/* Модалка — 1 в ряд */
	.modal-body .col-md-3 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* Контакты */
	.contact-form-card {
		padding: 20px;
	}

	.contact-value {
		font-size: 22px;
	}

	.messenger-buttons {
		gap: 8px;
	}

	.messenger-btn {
		flex: 1;
		justify-content: center;
		padding: 12px;
		font-size: 14px;
	}
}

/* Планшет и ниже: .left на всю ширину, .center + .right по 50% в одну строку */
@media (max-width: 991px) {
	.hero section {
		flex-wrap: wrap;
		flex-direction: row;
		padding: 0;
	}

	.hero .left {
		flex: 0 0 100%;
		max-width: 100%;
		padding-right: 0;
	}

	.hero .left > div {
		padding: 48px 32px;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	.hero .center,
	.hero .right {
		flex: 0 0 50%;
		max-width: 50%;
		min-height: 300px;
	}

	.hero .center {
		border-right: solid 1px var(--grey);
		border-bottom: solid 1px var(--grey);
	}

	.hero .right {
		border-right: none;
		border-bottom: solid 1px var(--grey);
	}

	.hero .center .image-holder,
	.hero .right .image-holder {
		height: 100%;
		padding: 20px;
		padding-top: 130px; /* место под номер и подпись, чтобы картинка их не перекрывала */
		min-height: 330px;
	}

	.hero .center img,
	.hero .right img {
		width: auto;
		max-width: 75%;
		max-height: 180px;
		object-fit: contain;
	}

	.hero .center .description,
	.hero .right .description {
		top: 16px;
		right: 16px;
		width: 110px;
	}

	.hero .center .description .h1,
	.hero .right .description .h1 {
		font-size: 44px;
	}
}

/* Мобильный */
@media (max-width: 767px) {
	.hero .left > div {
		padding: 32px 24px;
	}

	.hero .left .btn {
		margin-top: 24px;
		font-size: 16px;
		padding: 10px 20px;
	}

	.hero .center,
	.hero .right {
		min-height: 240px;
	}

	.hero .center .image-holder,
	.hero .right .image-holder {
		min-height: 240px;
		padding: 16px;
	}

	.hero .center img,
	.hero .right img {
		max-width: 80%;
		max-height: 160px;
	}

	.hero .center .description,
	.hero .right .description {
		top: 12px;
		right: 12px;
		width: 95px;
	}

	.hero .center .description .h1,
	.hero .right .description .h1 {
		font-size: 32px;
	}

	.hero .center .h5,
	.hero .right .h5 {
		font-size: 12px;
	}
}

/* Маленький мобильный */
@media (max-width: 480px) {
	.hero .left > div {
		padding: 24px 20px;
	}

	.hero .center,
	.hero .right {
		min-height: 200px;
	}

	.hero .center .image-holder,
	.hero .right .image-holder {
		min-height: 200px;
		padding: 12px;
	}

	.hero .center img,
	.hero .right img {
		max-height: 130px;
	}

	.hero .center .description,
	.hero .right .description {
		top: 8px;
		right: 8px;
		width: 80px;
	}

	.hero .center .description .h1,
	.hero .right .description .h1 {
		font-size: 26px;
	}

	.hero .center .h5,
	.hero .right .h5 {
		font-size: 10px;
		line-height: 110%;
	}
}
