/*
 * Главная страница «Вывоз мусора — Дмитров».
 * Размеры и цвета повторяют исходный лендинг; мобильная раскладка — до 991px (как в исходной вёрстке).
 */

/* ---------- Шрифты ---------- */

@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/roboto-400.woff) format("woff");
}

@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/roboto-700.woff) format("woff");
}

@font-face {
	font-family: "Roboto Slab";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/robotoslab-700.woff) format("woff");
}

/* ---------- Основа ---------- */

:root {
	--red: rgb(219, 15, 50);
	--red-dark: rgb(175, 12, 40);
	--pink: rgb(251, 203, 212);
	--navy: rgb(20, 47, 64);
	--ink: #111;
	--text: #333;
	--muted: #898989;
	--sub: #a0a0a0;
	--container: 1140px;
	--gutter: 10px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--text);
	background: #fff;
}

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

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
	margin: 0;
}

a {
	color: inherit;
}

button,
input,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--red);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Колонки сеток не должны раздвигаться содержимым (слайдеры). */
.hero__main > *,
.fleet__grid > *,
.brigades__grid > *,
.faq__grid > *,
.contacts__grid > * {
	min-width: 0;
}

.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
	flex: none;
}

/* Фоновая картинка блока (обычный <img>, чтобы работала ленивая загрузка) с затемнением. */
.hero,
.callstrip,
.calc,
.promises,
.contacts {
	position: relative;
	isolation: isolate;
	color: #fff;
	background: #1d1d1d;
}

.section-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::before,
.callstrip::before,
.calc::before,
.promises::before,
.contacts::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.82);
}

.calc::before {
	background: rgba(0, 0, 0, 0.78);
}

.contacts::before {
	background: rgba(0, 0, 0, 0.86);
}

/* ---------- Кнопки и поля ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 24px;
	border: 0;
	border-radius: 30px;
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.btn--red {
	background: var(--red);
}

.btn--red:hover {
	background: var(--red-dark);
}

.btn--navy {
	background: var(--navy);
}

.btn--navy:hover {
	background: rgb(16, 38, 51);
}

.btn--dark {
	width: 100%;
	min-height: 54px;
	padding: 14px 28px;
	border-radius: 25px;
	background: rgba(1, 6, 10, 0.89);
	box-shadow: 0 5px 15px rgba(1, 6, 10, 0.4);
}

.btn--dark:hover {
	background: rgb(1, 6, 10);
}

.btn--small {
	min-height: 44px;
	padding: 10px 23px;
	border-radius: 20px;
	font-size: 16px;
}

.btn--outline {
	min-height: 38px;
	padding: 8px 24px;
	border: 1px solid var(--red);
	border-radius: 25px;
	background: #fff;
	font-size: 14px;
	color: #000;
}

.btn--outline:hover {
	background: var(--red);
	color: #fff;
}

.btn--block {
	width: 100%;
	min-height: 46px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.pill-input {
	width: 239px;
	height: 44px;
	padding: 10px 12px;
	border: 2px solid #ccc;
	border-radius: 30px;
	background: #fff;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	font-size: 14px;
	color: #555;
}

.pill-input::placeholder {
	color: #808080;
	opacity: 1;
}

select.pill-input {
	color: #808080;
}

select.pill-input.is-filled {
	color: #555;
}

.inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

/* ---------- Заголовки блоков ---------- */

.section-head {
	text-align: center;
}

.section-title {
	font-size: 24px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--ink);
}

.section-head--big .section-title {
	font-size: 26px;
}

.section-head--light .section-title {
	color: #fff;
}

.section-sub {
	margin-top: 17px;
	font-size: 16px;
	line-height: 1.1;
	color: var(--sub);
}

.section-sub--lines {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.section-sub--lines::before,
.section-sub--lines::after {
	content: "";
	flex: 0 0 40px;
	height: 3px;
	background: var(--red);
}

/* ---------- Первый экран ---------- */

.hero {
	padding: 40px 0 87px;
}

.topbar {
	display: flex;
	align-items: flex-start;
	margin-top: 25px;
}

.topbar__logo {
	flex: 0 0 297px;
	padding: 16px 24px 0;
}

.topbar__logo img {
	display: block;
	width: 172px;
}

.topbar__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	padding-top: 17px;
}

.topbar__nav a {
	padding: 6px;
	border-radius: 5px;
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
}

.topbar__nav a:hover {
	color: var(--pink);
}

.topbar .phone {
	margin-left: auto;
	margin-right: 52px;
}

.phone__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 12px;
	font-size: 18px;
	line-height: 1.43;
	font-weight: 700;
	text-decoration: none;
	color: #fcfcfc;
}

.phone__link .icon {
	width: 17px;
	height: 21px;
}

.phone--full {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: start;
	align-items: center;
}

.phone--full .phone__note {
	grid-column: 1 / -1;
	justify-self: stretch;
	margin-left: 0;
	text-align: center;
}

.topbar .phone--full {
	margin-right: 0;
}

/* Мессенджеры рядом с телефоном. */
.messengers {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.messenger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.messenger:hover,
.messenger:focus-visible {
	transform: scale(1.1);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.messenger--whatsapp {
	background: #25d366;
}

.messenger--whatsapp .icon {
	width: 17px;
	height: 17px;
}

.messenger--max {
	border-radius: 25%;
}

.messenger--max .icon {
	width: 28px;
	height: 28px;
}

.phone__note {
	margin: 6px 0 0 11px;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.hero__main {
	display: grid;
	grid-template-columns: 1fr 661px;
	align-items: center;
	margin-top: 166px;
}

.hero__title {
	max-width: 345px;
	margin: 0 auto 34px;
	padding-right: 30px;
	box-sizing: content-box;
	font-size: 34px;
	line-height: 1.1;
	text-align: center;
	color: #fff;
}

.hero__image {
	display: block;
	width: 661px;
}

.hero__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 34px -30px 0 0;
	padding: 0;
	list-style: none;
}

.hero__features li {
	display: flex;
	align-items: center;
	gap: 33px;
	font-size: 14px;
	line-height: 1.1;
	letter-spacing: 1.6px;
}

.hero__features .icon {
	width: 58px;
	height: 58px;
	fill: none;
	stroke: var(--red);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.inline-form--hero {
	margin-top: 80px;
}

.hero__scroll {
	display: flex;
	justify-content: center;
	width: 40px;
	margin: 47px auto 0;
	padding: 5px 0;
	color: #fff;
}

.hero__scroll .icon {
	width: 16px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

/* ---------- Газели и контейнеры ---------- */

.containers {
	padding: 35px 0;
	background: #ececec;
}

.containers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 29px;
}

.vehicle {
	text-align: center;
}

.vehicle__image {
	aspect-ratio: 1;
	background: #fff;
}

.vehicle__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.vehicle__text {
	margin-top: 9px;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	color: var(--text);
}

.vehicle__text sup {
	font-size: 12px;
	line-height: 0;
}

.br-m {
	display: none;
}

.vehicle .btn {
	margin-top: 10px;
}

/* ---------- Услуги ---------- */

.services {
	padding: 64px 0 65px;
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 84px 40px;
	margin-top: 45px;
}

.service {
	text-align: center;
}

.service img {
	display: block;
	width: 300px;
	height: 200px;
	margin: 0 auto;
	object-fit: cover;
}

.service__title {
	margin-top: 19px;
	font-size: 16px;
	line-height: 1.1;
	color: var(--ink);
}

.service__title::after {
	content: "";
	display: block;
	width: 62px;
	height: 1px;
	margin: 15px auto 14px;
	background: var(--red);
}

.service__price {
	font-size: 14px;
	line-height: 1.15;
	color: var(--muted);
}

.services__text {
	margin: 51px -5px 0;
	font-size: 16px;
	line-height: 1.4;
	text-align: justify;
	color: var(--text);
}

/* ---------- Позвоните для консультации ---------- */

.callstrip__inner {
	display: grid;
	grid-template-columns: 625px 1fr;
	align-items: center;
	min-height: 113px;
	padding-top: 14px;
	text-align: center;
}

.callstrip__text {
	font-size: 16px;
	font-weight: 700;
}

/* ---------- Бригады ---------- */

.brigades {
	padding: 91px 0 99px;
	background: var(--red);
	color: #fff;
}

.brigades__grid {
	display: grid;
	grid-template-columns: 1fr 599px;
	gap: 31px;
	align-items: start;
}

.brigades__title {
	margin-top: 5px;
	font-size: 26px;
	line-height: 1.1;
	text-align: center;
}

.brigades__list {
	margin-top: 23px;
	padding-left: 40px;
	font-size: 20px;
	line-height: 28px;
	color: var(--pink);
}

.card-form {
	width: 384px;
	max-width: 100%;
	margin: 39px auto 0;
	padding: 28px 25px 15px;
	border-radius: 4px;
	background: #fff;
	color: var(--text);
}

.card-form__title {
	font-size: 20px;
	line-height: 1.1;
	letter-spacing: 0.8px;
	text-align: center;
}

.card-form__label {
	display: block;
	margin-top: 26px;
	font-size: 13px;
	line-height: 1.43;
	letter-spacing: 1.3px;
	text-transform: uppercase;
}

.card-form__input {
	display: block;
	width: 100%;
	height: 41px;
	margin: 6px 0 24px;
	padding: 12px 10px;
	border: 0;
	border-radius: 5px;
	background: #f5f5f5;
	font-size: 14px;
}

.brigades__image {
	display: block;
	width: 599px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- География ---------- */

.geo {
	padding: 100px 0 125px;
}

.geo__title {
	margin-top: 69px;
	font-size: 16px;
	line-height: 1.1;
	color: var(--ink);
}

.geo__title::after {
	content: "";
	display: block;
	width: 180px;
	height: 1px;
	margin-top: 16px;
	background: var(--red);
}

.geo__text {
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--muted);
}

/* ---------- Калькулятор ---------- */

.geo .section-sub {
	margin-top: 19px;
}

.calc {
	padding: 87px 0 126px;
}

.calc .section-sub {
	margin-top: 20px;
}

.calc .inline-form {
	margin-top: 53px;
}

/* ---------- Спецтехника ---------- */

.fleet {
	padding: 98px 0 170px;
}

.fleet .section-sub {
	margin-top: 18px;
}

.fleet__grid {
	display: grid;
	grid-template-columns: 1fr 545px;
	gap: 55px;
	margin-top: 38px;
}

.fleet__list {
	padding-left: 40px;
	font-size: 20px;
	line-height: 1.43;
	font-weight: 700;
	color: rgb(224, 33, 29);
}

.fleet__list li::marker {
	color: var(--text);
}

.gallery__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
}

.gallery__track,
.reviews__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.gallery__track::-webkit-scrollbar,
.reviews__track::-webkit-scrollbar {
	display: none;
}

.gallery__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 350px;
	object-fit: cover;
	scroll-snap-align: start;
}

.gallery__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	padding: 10px;
	border: 0;
	background: none;
	color: #fff;
	opacity: 0.5;
	transform: translateY(-50%);
	transition: opacity 0.2s;
}

.gallery__arrow:hover {
	opacity: 0.9;
}

.gallery__arrow .icon {
	width: 20px;
	height: 28px;
}

.gallery__arrow--prev {
	left: 40px;
}

.gallery__arrow--next {
	right: 40px;
}

.gallery__thumbs {
	display: flex;
	gap: 5px;
	margin-top: 6px;
	overflow: hidden;
}

.gallery__thumbs button {
	flex: 0 0 64px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	overflow: hidden;
	opacity: 0.5;
	transition: opacity 0.2s;
}

.gallery__thumbs button.is-active,
.gallery__thumbs button:hover {
	opacity: 1;
}

.gallery__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Гарантии ---------- */

.promises {
	padding: 80px 0 106px;
}

.promises::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	right: 0;
	z-index: -1;
	background: var(--red);
}

.promises__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.promise {
	padding: 16px 72px 0 0;
	margin-left: -5px;
	text-align: center;
}

.promise--red {
	padding: 19px 30px 0 60px;
	margin-left: 0;
}

.promise__title {
	font-size: 24px;
	line-height: 1.1;
}

.promise--red .promise__title {
	padding-left: 34px;
}

.promise--red .btn {
	margin-left: 34px;
}

.promise__text {
	margin: 19px 0 20px;
	font-size: 16px;
	line-height: 1.2;
	text-align: left;
	color: var(--sub);
}

.promise--red .promise__text {
	margin-top: 20px;
	color: var(--pink);
}

/* ---------- Отзывы ---------- */

.reviews {
	padding: 83px 0 102px;
	background: rgb(254, 242, 244);
}

.reviews__title {
	font-size: 28px;
	text-align: center;
	color: var(--text);
}

.reviews__slider {
	position: relative;
	margin-top: 80px;
}

.reviews__viewport {
	width: 926px;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 4px;
}

.review {
	display: flex;
	flex: 0 0 100%;
	min-height: 295px;
	background: #fff;
	scroll-snap-align: start;
}

.review__photo {
	flex: 0 0 295px;
	width: 295px;
	height: 295px;
	object-fit: cover;
}

.review__body {
	flex: 1;
	align-self: center;
	padding: 20px 75px 20px 95px;
	text-align: center;
}

.review__name {
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.review__city {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.4;
	opacity: 0.7;
}

.review__text {
	margin-top: 22px;
	font-size: 13px;
	line-height: 1.5;
}

.round-arrow {
	position: absolute;
	top: 147px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border: 1px solid rgba(219, 15, 50, 0.15);
	border-radius: 50%;
	background: #fff;
	color: #555;
	transform: translateY(-50%);
	transition: color 0.2s, border-color 0.2s;
}

.round-arrow:hover {
	border-color: var(--red);
	color: var(--red);
}

.round-arrow .icon {
	width: 13px;
	height: 18px;
}

.round-arrow--prev {
	left: -5px;
}

.round-arrow--next {
	right: -5px;
}

.dots {
	display: flex;
	justify-content: center;
	gap: 3px;
	margin-top: 108px;
}

.dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ccc;
}

.dots button.is-active {
	background: var(--red);
}

/* ---------- Вопросы ---------- */

.faq {
	padding: 90px 0 117px;
	background: var(--red);
	color: #fff;
}

.faq__grid {
	display: grid;
	grid-template-columns: 1fr 545px;
	gap: 30px;
	align-items: start;
}

.faq__content {
	text-align: center;
}

.faq__title {
	font-size: 26px;
	line-height: 1.1;
}

.faq__list {
	margin: 21px 0 16px;
	text-align: left;
}

.faq__item {
	border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.faq__item summary {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 0 11px 5px;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__item summary .icon {
	width: 9px;
	height: 14px;
	transition: transform 0.2s;
}

.faq__item[open] summary .icon {
	transform: rotate(180deg);
}

.faq__item p {
	padding: 0 0 12px;
	font-size: 16px;
	line-height: 1.5;
}

.faq__image {
	display: block;
	width: 545px;
	margin-top: 19px;
	aspect-ratio: 545 / 364;
	object-fit: cover;
}

/* ---------- О компании ---------- */

.about {
	padding: 61px 0 82px;
}

.about__inner {
	max-width: 906px;
	font-size: 16px;
	line-height: 1.4;
	text-align: justify;
	color: var(--text);
}

.about__title {
	margin-bottom: 42px;
	font-size: 26px;
	text-align: center;
	color: var(--text);
}

.about__media {
	display: grid;
	grid-template-columns: 407px 1fr;
	gap: 30px;
	align-items: start;
	margin: 15px 0 16px;
}

.about__media img {
	width: 407px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* ---------- Контакты ---------- */

.contacts {
	padding: 87px 0 140px;
}

.contacts .section-sub {
	margin-top: 18px;
}

.contacts__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 34px;
}

.contacts__info {
	padding-top: 3px;
	font-style: normal;
	font-size: 16px;
	line-height: 1.4;
}

.contacts__info p + p {
	margin-top: 12px;
}

.contacts__info .contacts__big {
	font-size: 18px;
}

.contacts__info .contacts__big + .contacts__big {
	margin-top: 10px;
}

.contacts__info .contacts__big + p:not(.contacts__big) {
	margin-top: 7px;
}

.contacts__info a {
	color: #fff;
}

.contacts__info .phone {
	margin: 28px 0 0 15px;
}

.contacts__info .phone__note {
	margin-top: 4px;
}

.contacts__geo h3 {
	font-size: 20px;
	line-height: 1.1;
	font-weight: 400;
}

.contacts__geo p {
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.4;
}

/* ---------- Подвал ---------- */

.site-footer {
	padding: 37px 0 48px;
	background: #000;
}

.site-footer .container {
	max-width: 1150px;
}

.site-footer__title {
	padding-bottom: 10px;
	border-bottom: 1px solid rgb(90, 0, 16);
	font-size: 16px;
	line-height: 1.1;
	font-weight: 700;
	color: rgb(121, 0, 0);
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin-top: 21px;
	padding-left: 210px;
}

.site-footer__links button {
	padding: 6px 5px;
	border: 0;
	border-radius: 5px;
	background: none;
	font-size: 14px;
	line-height: 20px;
	color: rgb(131, 9, 30);
}

.site-footer__links button:hover {
	color: var(--red);
}

/* ---------- Всплывающие окна ---------- */

.modal {
	width: 400px;
	max-width: calc(100% - 20px);
	margin: 50px auto auto;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	color: var(--text);
}

.modal--wide {
	width: 600px;
}

.modal::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.modal[open] {
	animation: modal-in 0.25s ease-out;
}

@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(-25px);
	}
}

.modal__header {
	position: relative;
	padding: 15px 40px;
	border-bottom: 1px solid #e5e5e5;
	text-align: center;
}

.modal__header:last-child {
	border-bottom: 0;
}

.modal__title {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
}

.modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	padding: 0 4px;
	border: 0;
	background: none;
	font-size: 21px;
	line-height: 1;
	font-weight: 700;
	color: #000;
	opacity: 0.2;
}

.modal__close:hover {
	opacity: 0.5;
}

.modal__body {
	padding: 20px;
}

.modal__body--center {
	text-align: center;
}

.modal__phone {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 18px 0;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	color: rgb(3, 3, 3);
}

.modal__phone .icon {
	width: 18px;
	height: 23px;
}

.modal__message {
	padding: 10px 0;
	white-space: pre-line;
}

.modal-form label {
	display: block;
	margin-bottom: 5px;
}

.modal-form .required {
	color: var(--red);
}

.modal-form input {
	display: block;
	width: 100%;
	height: 34px;
	margin-bottom: 15px;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 30px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	font-size: 14px;
}

.modal-form .btn {
	margin-top: 5px;
}

body.has-modal {
	overflow: hidden;
}

/* ---------- Планшеты ---------- */

@media (max-width: 1199px) {
	.topbar__logo {
		flex-basis: 220px;
	}

	.topbar .phone {
		margin-right: 0;
	}

	.hero__main {
		grid-template-columns: 1fr 1.4fr;
	}

	.hero__image {
		width: 100%;
	}

	.hero__features {
		margin-right: 0;
	}

	.callstrip__inner {
		grid-template-columns: 1fr 1fr;
	}

	.brigades__grid,
	.faq__grid {
		grid-template-columns: 1fr 1fr;
	}

	.brigades__image,
	.faq__image {
		width: 100%;
	}

	.fleet__grid {
		grid-template-columns: 1fr 1.3fr;
	}

	.site-footer__links {
		padding-left: 0;
	}
}

/* ---------- Мобильная раскладка ---------- */

@media (max-width: 991px) {
	:root {
		--gutter: 25px;
	}

	.section-sub--lines {
		gap: 18px;
	}

	.section-sub--lines span {
		flex: none;
	}

	.section-sub--lines::before,
	.section-sub--lines::after {
		flex: 0 1 40px;
		min-width: 20px;
	}

	/* Первый экран */
	.topbar {
		flex-direction: column;
		align-items: center;
		margin-top: 10px;
	}

	.topbar__logo {
		flex: none;
		padding: 8px 24px;
	}

	.topbar__logo img {
		width: 197px;
	}

	.topbar__nav {
		justify-content: center;
		gap: 10px 20px;
		max-width: 325px;
		padding-top: 14px;
	}

	.topbar .phone {
		margin: 26px 0 0;
		text-align: center;
	}

	/* На мобильном мессенджеры — отдельной строкой над телефоном. */
	.phone--full {
		grid-template-columns: auto;
		justify-content: center;
		justify-items: center;
	}

	.phone--full .messengers {
		order: -1;
		gap: 14px;
		margin-bottom: 12px;
	}

	.phone--full .messenger {
		width: 36px;
		height: 36px;
	}

	.phone--full .messenger--whatsapp .icon {
		width: 22px;
		height: 22px;
	}

	.phone--full .messenger--max .icon {
		width: 36px;
		height: 36px;
	}

	.phone__link {
		font-size: 20px;
	}

	.phone__note {
		margin: 6px 0 0;
	}

	.hero__main {
		grid-template-columns: 1fr;
		margin-top: 55px;
	}

	.hero__title {
		max-width: 300px;
		margin: 0 auto;
		padding: 0;
		font-size: 30.6px;
	}

	.hero__image {
		width: 100%;
		max-width: 500px;
		margin: 52px auto 0;
	}

	.hero__features {
		grid-template-columns: 1fr;
		gap: 10px;
		margin: 34px 0 0;
	}

	.hero__features li {
		gap: 33px;
	}

	.hero {
		padding-bottom: 57px;
	}

	.inline-form--hero {
		margin-top: 56px;
	}

	.inline-form {
		flex-direction: column;
		gap: 17px;
	}

	.inline-form--hero {
		gap: 18px;
	}

	.inline-form .btn {
		min-width: 190px;
	}

	.hero__scroll {
		margin-top: 40px;
	}

	/* Газели и контейнеры */
	.containers__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 30px;
	}

	.vehicle__text {
		text-align: center;
	}

	.br-m {
		display: inline;
	}

	.vehicle .btn {
		width: 100%;
		border-color: #000;
	}

	/* Услуги */
	.services__grid {
		grid-template-columns: 1fr;
		gap: 82px;
	}

	.services__text {
		margin: 49px -5px 0;
		text-align: center;
	}

	/* Позвоните */
	.callstrip__inner {
		grid-template-columns: 1fr;
		min-height: 76px;
		padding-top: 4px;
	}

	.callstrip__text {
		display: none;
	}

	/* Бригады */
	.brigades {
		padding: 90px 0 99px;
	}

	.brigades__grid {
		grid-template-columns: 1fr;
		gap: 37px;
	}

	.brigades__title {
		max-width: 260px;
		margin: 0 auto;
	}

	.card-form {
		width: 100%;
	}

	.brigades__image {
		width: 100%;
	}

	/* География */
	.geo {
		padding: 100px 0 126px;
		text-align: center;
	}

	.geo__title {
		max-width: 315px;
		margin: 69px auto 0;
	}

	.geo__title::after {
		width: 100%;
		margin-top: 14px;
	}

	.geo__text {
		margin-top: 28px;
	}

	/* Калькулятор */
	.calc {
		padding: 87px 0 129px;
	}

	/* Спецтехника */
	.fleet {
		padding: 98px 0 170px;
	}

	.fleet__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.fleet .section-head .section-title {
		max-width: 260px;
		margin: 0 auto;
	}

	.fleet .section-sub span {
		max-width: 190px;
		flex: 0 1 auto;
	}

	.gallery__arrow--prev {
		left: 15px;
	}

	.gallery__arrow--next {
		right: 15px;
	}

	.gallery__thumbs button {
		flex-basis: 40px;
	}

	/* Гарантии */
	.promises {
		padding: 85px 0 0;
	}

	.promises::after {
		display: none;
	}

	.promises__grid {
		grid-template-columns: 1fr;
		width: auto;
		margin: 0 15px;
		padding: 0;
	}

	.promise,
	.promise--red {
		margin: 0;
		padding: 0 12px 44px;
	}

	.promise--red {
		margin-bottom: 80px;
		padding: 19px 12px 25px;
		background: var(--red);
	}

	.promise--red .promise__title {
		padding: 0;
	}

	.promise--red .btn {
		margin-left: 0;
	}

	.promise__text,
	.promise--red .promise__text {
		margin: 20px 0;
		text-align: center;
	}

	/* Отзывы */
	.reviews {
		padding: 85px 0 100px;
	}

	.reviews__title {
		font-size: 22.4px;
	}

	.reviews__slider {
		margin: 91px -5px 0;
	}

	.review {
		flex-direction: column;
		padding: 15px 25px 30px;
		border-radius: 4px;
	}

	.review__photo {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.review__body {
		align-self: stretch;
		padding: 8px 0 0;
	}

	.review__text {
		margin-top: 20px;
		padding: 0 10px;
		line-height: 1.75;
	}

	.round-arrow {
		display: none;
	}

	.dots {
		margin-top: 105px;
	}

	/* Вопросы */
	.faq {
		padding: 90px 0 100px;
	}

	.faq__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.faq__title {
		max-width: 260px;
		margin: 0 auto;
	}

	.faq__list {
		margin-bottom: 19px;
	}

	.faq__image {
		width: 100%;
		margin-top: 30px;
	}

	/* О компании */
	.about {
		padding: 59px 0 82px;
	}

	.about__title {
		font-size: 20.8px;
	}

	.about__media {
		grid-template-columns: 1fr;
		gap: 21px;
		margin: 20px 0 16px;
	}

	.about__media img {
		width: 100%;
	}

	/* Контакты */
	.contacts {
		padding: 91px 0 105px;
		text-align: center;
	}

	.contacts .section-sub span {
		max-width: 255px;
	}

	.contacts__grid {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.contacts__info .phone {
		margin: 30px 0 0;
	}

	.contacts__geo h3 {
		max-width: 320px;
		margin: 0 auto;
	}

	.contacts__geo p {
		margin-top: 10px;
	}

	/* Подвал */
	.site-footer {
		padding: 38px 0 58px;
		text-align: center;
	}

	.site-footer .container {
		padding: 0 20px;
	}

	.site-footer__links {
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
		padding-right: 20px;
	}

	.modal {
		margin-top: 20px;
	}
}

/* ---------- Анимации появления при прокрутке (эффекты animate.css 3, MIT — как в исходной вёрстке) ---------- */

/* Блоки с эффектом скрыты, пока не попадут на экран; без JS и при «уменьшении движения» видны сразу. */
.js [data-anim] {
	visibility: hidden;
}

.js [data-anim].is-animated {
	visibility: visible;
	animation-duration: 1s;
	animation-fill-mode: both;
}

/* Анимированные блоки не должны создавать горизонтальную прокрутку. */
.hero,
main {
	overflow-x: clip;
}

.is-animated[data-anim="pulse"] { animation-name: pulse; }
.is-animated[data-anim="bounceIn"] { animation-name: bounceIn; animation-duration: 0.75s; }
.is-animated[data-anim="bounceInDown"] { animation-name: bounceInDown; }
.is-animated[data-anim="bounceInUp"] { animation-name: bounceInUp; }
.is-animated[data-anim="slideInRight"] { animation-name: slideInRight; }
.is-animated[data-anim="fadeIn"] { animation-name: fadeIn; }
.is-animated[data-anim="fadeInLeft"] { animation-name: fadeInLeft; }
.is-animated[data-anim="fadeInDown"] { animation-name: fadeInDown; }
.is-animated[data-anim="shake"] { animation-name: shake; }
.is-animated[data-anim="flash"] { animation-name: flash; }

/* Телефон в окне «позвоните для консультации» — при каждом открытии. */
.modal[open] .modal__phone {
	animation: bounceIn 0.75s both;
}

@keyframes pulse {
	50% { transform: scale3d(1.05, 1.05, 1.05); }
}

@keyframes bounceIn {
	0%, 20%, 40%, 60%, 80%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
	20% { transform: scale3d(1.1, 1.1, 1.1); }
	40% { transform: scale3d(0.9, 0.9, 0.9); }
	60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
	80% { transform: scale3d(0.97, 0.97, 0.97); }
	100% { opacity: 1; transform: none; }
}

@keyframes bounceInDown {
	0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0% { opacity: 0; transform: translate3d(0, -3000px, 0); }
	60% { opacity: 1; transform: translate3d(0, 25px, 0); }
	75% { transform: translate3d(0, -10px, 0); }
	90% { transform: translate3d(0, 5px, 0); }
	100% { transform: none; }
}

@keyframes bounceInUp {
	0%, 60%, 75%, 90%, 100% { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0% { opacity: 0; transform: translate3d(0, 3000px, 0); }
	60% { opacity: 1; transform: translate3d(0, -20px, 0); }
	75% { transform: translate3d(0, 10px, 0); }
	90% { transform: translate3d(0, -5px, 0); }
	100% { transform: none; }
}

@keyframes slideInRight {
	0% { transform: translate3d(100%, 0, 0); }
	100% { transform: none; }
}

@keyframes fadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes fadeInLeft {
	0% { opacity: 0; transform: translate3d(-100%, 0, 0); }
	100% { opacity: 1; transform: none; }
}

@keyframes fadeInDown {
	0% { opacity: 0; transform: translate3d(0, -100%, 0); }
	100% { opacity: 1; transform: none; }
}

@keyframes shake {
	0%, 100% { transform: none; }
	10%, 30%, 50%, 70%, 90% { transform: translate3d(-10px, 0, 0); }
	20%, 40%, 60%, 80% { transform: translate3d(10px, 0, 0); }
}

@keyframes flash {
	0%, 50%, 100% { opacity: 1; }
	25%, 75% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html,
	.gallery__track,
	.reviews__track {
		scroll-behavior: auto;
	}

	.modal[open],
	.modal[open] .modal__phone,
	.js [data-anim].is-animated {
		animation: none;
	}

	.js [data-anim] {
		visibility: visible;
	}
}
