/*
Theme Name: Эталон чистоты
Theme URI: http://etalon-clean.ru/
Author: Эталон чистоты
Description: Лендинг клининговой компании «Эталон чистоты» в Подольске. Лёгкая тема без конструкторов и сборщиков: чистая семантическая разметка, self-hosted шрифты, форма заявки со сохранением в админке.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: etalon-clean
Tags: landing, one-page, custom-colors, translation-ready
*/

/* ==========================================================================
   1. Токены
   ========================================================================== */

:root {
	--blue: #0059ff;
	--blue-hover: #0043b9;
	--blue-soft: #8abdf7;
	--blue-soft-hover: #68afff;
	--blue-300: #c4e1ff;
	--blue-400: #98c8ff;
	--blue-500: #68afff;
	--blue-600: #4189db;
	--blue-050: #f3f8fd;
	--blue-line: #9dbffe;

	--ink: #282828;
	--muted: #80858b;
	--gray: #9c9c9c;
	--card: #f5f5f5;
	--white: #fff;
	--yellow: #fad536;

	--grad-hero: linear-gradient(340.56deg, #d3e4f7 0%, #f4f8fd 41%);
	--grad-blue: linear-gradient(135.36deg, #68afff 20%, #4189db 100%);
	--grad-faq: linear-gradient(122.76deg, #68afff 27%, #4189db 100%);
	--grad-footer: linear-gradient(151.56deg, #467cb2 25%, #50606f 100%);
	--grad-popup: linear-gradient(340deg, #c4e1ff 0%, #f3f8fd 60%);

	--shadow-card: 0 4px 20px rgba(4, 67, 185, 0.08);
	--shadow-header: 0 6px 16px rgba(49, 58, 69, 0.08);
	--shadow-modal: 0 20px 60px rgba(0, 11, 48, 0.2);

	--radius-card: 25px;
	--radius-soft: 20px;
	--radius-row: 16px;
	--radius-pill: 30px;

	--font-text: 'Geologica', 'Segoe UI', Arial, sans-serif;
	--font-head: 'Onest', 'Segoe UI', Arial, sans-serif;

	--container: 1228px; /* 1188px контента + 2x20px отступа */
	--header-bar: 74px;
	--header-total: 130px;
}

/* ==========================================================================
   2. База
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-total) + 20px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding-top: var(--header-total);
	overflow-x: clip;
	background: var(--white);
	color: var(--ink);
	font: 400 17px/1.35 var(--font-text);
	-webkit-font-smoothing: antialiased;
}

/* На лендинге градиент первого экрана уходит под плавающую шапку. */
body.is-landing {
	padding-top: 0;
}

[hidden] {
	display: none !important;
}

body.is-locked {
	overflow: hidden;
}

img,
svg,
iframe {
	max-width: 100%;
	display: block;
}

img {
	height: auto;
}

a {
	color: var(--blue);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--blue-hover);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.2;
}

p,
ul,
ol,
dl,
dd {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

sup {
	font-size: 0.62em;
	vertical-align: super;
	line-height: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 20px;
	z-index: 200;
	padding: 10px 18px;
	background: var(--white);
	border-radius: 0 0 8px 8px;
}

.skip-link:focus {
	top: 0;
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

/* ==========================================================================
   3. Раскладка и типографика
   ========================================================================== */

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

.container--narrow {
	max-width: 860px;
}

.section {
	padding: 44px 0;
}

.section-title {
	font-size: 32px;
	line-height: 40px;
}

.section-title span {
	color: var(--blue);
}

.section-title--light,
.section-title--light span {
	color: var(--white);
}

/* ==========================================================================
   4. Кнопки
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 30px;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-text);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
	background: var(--blue);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--blue-hover);
	color: var(--white);
}

.btn--soft {
	background: var(--blue-soft);
	color: var(--white);
}

.btn--soft:hover {
	background: var(--blue-soft-hover);
	color: var(--white);
}

.btn--outline {
	background: var(--white);
	color: var(--blue);
	box-shadow: inset 0 0 0 1px var(--blue);
}

.btn--lg {
	min-height: 57px;
	padding: 0 50px;
	font-size: 21px;
}

.btn--sm {
	min-height: 39px;
	padding: 0 22px;
	font-size: 14px;
}

.btn--block {
	width: 100%;
}

/* ==========================================================================
   5. Шапка
   ========================================================================== */

.header-stack {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	pointer-events: none;
}

.site-header,
.site-nav,
.header-stack a,
.header-stack button {
	pointer-events: auto;
}

.site-header {
	height: var(--header-bar);
	background: var(--white);
	border-radius: 0 0 var(--radius-pill) var(--radius-pill);
	box-shadow: var(--shadow-header);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	width: 100%;
	max-width: var(--container);
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

/* Без flex: none логотип сжимается соседями по шапке и теряет пропорции. */
.logo {
	flex: none;
}

.logo img {
	width: 192px;
	height: 50px;
	object-fit: contain;
}

.site-header__tagline {
	max-width: 210px;
	margin-right: auto;
	color: var(--ink);
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.site-header__contact {
	text-align: right;
	white-space: nowrap;
}

.site-header__phone {
	display: block;
	color: var(--ink);
	font-size: 19px;
	font-weight: 500;
	line-height: 24px;
}

.site-header__hours {
	display: block;
	color: var(--ink);
	font-size: 14px;
	font-weight: 200;
	line-height: 19px;
}

.site-header__cta {
	flex: none;
	min-height: 50px;
	padding: 0 22px;
}

.socials {
	display: flex;
	flex: none;
	gap: 5px;
}

.socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.socials svg {
	width: 36px;
	height: 36px;
	transition: opacity 0.2s ease;
}

.socials a:hover svg {
	opacity: 0.75;
}

.site-nav {
	max-width: min(1188px, calc(100% - 40px));
	margin: 14px auto 0;
	padding: 10px 20px;
	background: var(--white);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-card);
}

.site-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 59px;
}

.site-nav__list a {
	color: var(--ink);
	font-size: 16px;
	font-weight: 300;
	line-height: 20px;
	white-space: nowrap;
}

.site-nav__list a:hover {
	color: var(--blue);
}

.burger {
	display: none;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 13px 5px;
	background: none;
	border: 0;
}

.burger span {
	display: block;
	height: 2px;
	margin: 3px 0;
	background: var(--blue);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
	opacity: 0;
}

.burger.is-open span:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
	position: fixed;
	top: var(--header-bar);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 24px 20px 40px;
	overflow-y: auto;
	background: var(--white);
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	margin-bottom: 10px;
}

.mobile-menu__list a {
	display: block;
	padding: 10px 0;
	color: var(--ink);
	font-size: 19px;
}

.mobile-menu__hours {
	color: var(--muted);
	font-size: 15px;
	font-weight: 200;
}

.mobile-menu .btn {
	width: 100%;
}

/* --------------------------------------------------------- выбор города */

/*
 * Список городов лежит в HTML целиком, на <details>: он краулится, работает
 * без JavaScript и растёт вместе со справочником cities — при десятке городов
 * список просто прокручивается внутри поповера.
 */
.citysel {
	position: relative;
	flex: none;
}

.citysel > summary {
	list-style: none;
}

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

.citysel__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 300;
	line-height: 20px;
	white-space: nowrap;
	cursor: pointer;
	background: var(--blue-050);
	border-radius: var(--radius-pill);
	transition: background 0.2s ease;
}

.citysel__btn:hover {
	background: var(--blue-300);
}

.citysel__pin {
	flex: none;
	color: var(--blue);
}

.citysel__chev {
	width: 7px;
	height: 7px;
	margin-left: 2px;
	border-right: 2px solid var(--gray);
	border-bottom: 2px solid var(--gray);
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.citysel[open] .citysel__chev {
	transform: translateY(2px) rotate(-135deg);
}

.citysel__pop {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 5;
	min-width: 268px;
	padding: 18px 20px 16px;
	background: var(--white);
	border-radius: var(--radius-soft);
	box-shadow: var(--shadow-modal);
}

.citysel__title {
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 18px;
}

.citysel__list {
	display: flex;
	flex-direction: column;
	max-height: min(58vh, 420px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.citysel__item {
	display: block;
	padding: 10px 0;
	color: var(--ink);
	font-size: 16px;
	font-weight: 300;
	line-height: 22px;
	white-space: nowrap;
}

.citysel__item:hover {
	color: var(--blue);
}

.citysel__item.is-current {
	color: var(--blue);
	font-weight: 500;
}

.citysel__note {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--blue-300);
	color: var(--muted);
	font-size: 14px;
	font-weight: 200;
	line-height: 18px;
	white-space: normal;
}

/* Шапка на планшете и телефоне: город остаётся видимым, логотип его не отжимает. */
@media (max-width: 960px) {
	.site-header__inner .logo {
		margin-right: 0;
	}

	.citysel {
		margin-right: auto;
	}

	.citysel__btn {
		min-height: 44px;
		padding: 0 12px;
		font-size: 14px;
	}
}

/*
 * На телефоне в 62-пиксельную шапку помещаются логотип, город и бургер.
 * Соцсети переезжают в мобильное меню — иначе они выдавливают логотип за край.
 */
@media (max-width: 600px) {
	.site-header .socials {
		display: none;
	}

	.site-header__inner {
		gap: 10px;
		padding: 0 14px;
	}
}

/* Соцсети внутри мобильного меню. */
.mobile-menu .socials {
	gap: 10px;
	margin-top: 4px;
}

.mobile-menu .socials svg {
	width: 40px;
	height: 40px;
}

/* На телефоне поповер шире кнопки — раскрываем его во всю ширину экрана. */
@media (max-width: 640px) {
	.citysel__pop {
		position: fixed;
		top: calc(var(--header-bar) + 8px);
		right: 12px;
		left: 12px;
		min-width: 0;
	}

	.citysel__item {
		padding: 12px 0;
	}
}

/* ==========================================================================
   6. Первый экран
   ========================================================================== */

.hero {
	background: var(--grad-hero);
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 665px 1fr;
	gap: 80px;
	padding-top: 204px;
	padding-bottom: 53px;
}

.hero__title {
	font-size: 42px;
	line-height: 50px;
}

.hero__title span {
	display: block;
	color: var(--blue);
}

.hero__lead {
	max-width: 620px;
	margin-top: 18px;
	font-size: 19px;
	font-weight: 200;
	line-height: 25px;
}

.hero__features {
	display: grid;
	gap: 13px;
	margin-top: 29px;
}

.hero__features li {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	font-size: 19px;
	font-weight: 200;
	line-height: 25px;
}

.hero__bullet {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 4px;
}

.hero__inner > .btn,
.hero__text > .btn {
	margin-top: 32px;
}

.hero__visual {
	position: relative;
	width: 443px;
	height: 477px;
	margin-top: -7px;
}

.hero__visual::before {
	content: '';
	position: absolute;
	left: 0;
	top: 43px;
	width: 339px;
	height: 434px;
	background: var(--white);
	border-radius: 80px 80px 8px 80px;
}

.hero__photo {
	position: absolute;
	left: 45px;
	top: 0;
	width: 339px;
	height: 434px;
	object-fit: cover;
	border-radius: 8px 80px 80px 80px;
}

.hero__star {
	position: absolute;
	left: 279px;
	top: -19px;
	width: 144px;
	height: 144px;
}

.hero__sparkle {
	position: absolute;
	left: -41px;
	top: -13px;
	width: 52px;
	height: 52px;
}

.hero__outline {
	position: absolute;
	left: 553px;
	bottom: 48px;
	width: 184px;
	height: 184px;
	pointer-events: none;
}

/* ==========================================================================
   7. Услуги
   ========================================================================== */

.services {
	background: var(--white);
}

.tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 28px 0 24px;
}

.tabs__tab {
	min-height: 58px;
	padding: 0 34px;
	background: var(--blue-050);
	border: 0;
	border-radius: var(--radius-pill);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 22px;
	transition: background-color 0.2s ease;
}

.tabs__tab:hover {
	background: #e7f3ff;
}

.tabs__tab[aria-selected='true'] {
	background: var(--blue-300);
}

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

.service-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.service-card__image {
	width: 100%;
	height: 259px;
	object-fit: cover;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.service-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 21px 24px 20px;
}

.service-card__title {
	font-size: 19px;
	line-height: 25px;
	font-weight: 400;
	font-family: var(--font-text);
}

.service-card__price {
	margin-top: 14px;
	color: var(--blue);
	font-size: 19px;
	font-weight: 700;
	line-height: 25px;
}

.service-card__actions {
	display: flex;
	gap: 6px;
	margin-top: auto;
	padding-top: 9px;
}

.extra-services {
	margin-top: 39px;
	padding: 40px 54px;
	background: var(--blue-050);
	border-radius: var(--radius-card);
}

.extra-services__title {
	font-size: 42px;
	line-height: 50px;
}

.extra-services__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
	gap: 11px 30px;
	margin-top: 31px;
}

.extra-services__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 18px;
	line-height: 24px;
}

.extra-services__arrow {
	flex: none;
	width: 23px;
	height: 15px;
	margin-top: 5px;
}

/* ==========================================================================
   8. О нас и расчёт по фото
   ========================================================================== */

.about {
	position: relative;
	padding: 53px 0 58px;
	background: var(--white);
}

.about__bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 728px;
	background: var(--grad-blue);
}

.about__inner {
	position: relative;
}

.about__inner > .section-title {
	max-width: 810px;
}

.about__body {
	display: grid;
	grid-template-columns: 356px 1fr;
	margin-top: 39px;
}

.about__figure {
	position: relative;
	padding-top: 53px;
}

.about__figure img {
	width: 297px;
	height: 297px;
	object-fit: cover;
	border-radius: 125px 8px 125px 125px;
}

.about__star {
	position: absolute;
	left: -16px;
	top: 21px;
	width: 119px;
	height: 119px;
}

.about__sparkle {
	position: absolute;
	left: 245px;
	top: 340px;
	width: 52px;
	height: 52px;
}

.advantages {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 22px;
}

.advantage {
	padding: 25px 24px 24px;
	background: var(--white);
	border-radius: var(--radius-soft);
}

.advantage__title {
	font-family: var(--font-text);
	font-size: 19px;
	font-weight: 400;
	line-height: 25px;
}

.advantage__text {
	margin-top: 6px;
	font-size: 17px;
	font-weight: 200;
	line-height: 22px;
}

.calc {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 20px;
	margin-top: 57px;
	padding: 41px 71px 35px;
	background: var(--white);
	border-radius: var(--radius-card);
}

.calc__title {
	max-width: 570px;
}

.calc__title span {
	display: block;
}

.calc__lead {
	max-width: 470px;
	margin-top: 30px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.calc__text > .btn {
	margin-top: 30px;
}

.calc__figure {
	position: relative;
}

.calc__figure img {
	position: absolute;
	right: -49px;
	top: -16px;
	width: 331px;
	height: 348px;
	object-fit: contain;
}

.calc__star {
	position: absolute;
	right: 224px;
	top: -3px;
	width: 119px;
	height: 119px;
}

.calc__sparkle {
	position: absolute;
	right: 343px;
	top: 106px;
	width: 52px;
	height: 52px;
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 30px;
	font-size: 13px;
	font-weight: 200;
	line-height: 17px;
}

.consent__icon {
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: -3px;
}

/* ==========================================================================
   9. Сотрудники
   ========================================================================== */

.staff-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: 41px;
}

.staff-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.staff-card__media {
	position: relative;
}

.staff-card__media img {
	width: 100%;
	height: 259px;
	object-fit: cover;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.staff-card__rating {
	position: absolute;
	left: 18px;
	top: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--radius-pill);
	font-size: 16px;
	line-height: 20px;
}

.staff-card__rating svg {
	width: 17px;
	height: 15px;
}

.staff-card__body {
	padding: 21px 24px 20px;
}

.staff-card__name {
	font-family: var(--font-text);
	font-size: 19px;
	font-weight: 400;
	line-height: 25px;
}

.staff-card__role {
	color: var(--muted);
	font-size: 13px;
	font-weight: 200;
	line-height: 17px;
}

.staff-card__experience {
	margin-top: 9px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

/* ==========================================================================
   10. Как заказать
   ========================================================================== */

.steps {
	background: var(--blue-050);
}

.steps-list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 47px;
}

.steps-list::before {
	content: '';
	position: absolute;
	left: -30px;
	right: -30px;
	top: 23px;
	border-top: 2px dashed var(--blue-line);
}

.step {
	position: relative;
	padding-top: 88px;
}

.step__number {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--blue);
	border-radius: 50%;
	color: var(--white);
	font-family: var(--font-text);
	font-size: 30px;
	line-height: 1;
}

.step__title {
	font-family: var(--font-text);
	font-size: 19px;
	font-weight: 400;
	line-height: 25px;
}

.step__text {
	max-width: 267px;
	margin-top: 14px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.step__phone {
	display: block;
	margin-top: 6px;
	font-size: 19px;
	font-weight: 400;
}

.steps__action {
	margin-top: 45px;
	text-align: center;
}

/* ==========================================================================
   11. Отзывы
   ========================================================================== */

.reviews {
	padding-bottom: 55px;
	background: var(--white);
}

.reviews__lead {
	max-width: 720px;
	margin-top: 22px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.slider {
	margin-top: 24px;
}

.slider__track {
	display: flex;
	gap: 17px;
	padding: 16px max(20px, calc((100% - var(--container)) / 2 + 20px)) 27px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: max(20px, calc((100% - var(--container)) / 2 + 20px));
	scrollbar-width: none;
}

.slider__track::-webkit-scrollbar {
	display: none;
}

.review {
	display: flex;
	flex: none;
	flex-direction: column;
	width: 384px;
	padding: 24px;
	background: var(--white);
	border-radius: var(--radius-soft);
	box-shadow: var(--shadow-card);
	scroll-snap-align: start;
}

.review__head {
	display: flex;
	align-items: center;
	gap: 17px;
}

.review__avatar {
	flex: none;
	width: 46px;
	height: 46px;
}

.review__name {
	font-size: 19px;
	font-weight: 500;
	line-height: 25px;
}

.review__city {
	color: var(--gray);
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.review__stars {
	display: flex;
	gap: 6px;
	margin-top: 26px;
}

.review__stars svg {
	width: 17px;
	height: 15px;
}

.review__text {
	margin-top: 8px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.slider__nav {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 15px;
}

.slider__btn {
	padding: 0;
	background: none;
	border: 0;
	transition: opacity 0.2s ease;
}

.slider__btn svg {
	width: 52px;
	height: 52px;
}

.slider__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.slider__btn:not(:disabled):hover svg rect {
	fill: var(--blue);
}

/* ==========================================================================
   12. Результаты работ
   ========================================================================== */

.cases {
	background: var(--blue-050);
}

.cases-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 17px;
	margin-top: 41px;
}

.case-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.case-card__image {
	width: 100%;
	height: 259px;
	object-fit: cover;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.case-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 21px 21px 20px;
}

.case-card__title {
	font-family: var(--font-text);
	font-size: 19px;
	font-weight: 400;
	line-height: 25px;
}

.case-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: auto;
	padding-top: 28px;
}

.case-card__meta li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 19px;
	font-weight: 200;
	line-height: 25px;
	white-space: nowrap;
}

.case-card__meta svg {
	flex: none;
	width: 24px;
	height: 24px;
}

.cases__action {
	margin-top: 42px;
	text-align: center;
}

/* ==========================================================================
   13. Вопрос-ответ
   ========================================================================== */

.faq {
	background: var(--grad-faq);
}

.faq__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 346px;
	gap: 22px;
	align-items: start;
	margin-top: 32px;
}

/* Без карточки контактов аккордеон занимает всю ширину секции. */
.faq__body:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* На широком экране один столбец вопросов даёт полупустые плашки в 1188 px. */
@media (min-width: 961px) {
	.faq__body:has(> :only-child) .accordion {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		column-gap: 18px;
	}
}

.accordion {
	display: grid;
	gap: 11px;
}

.accordion__item {
	background: var(--white);
	border-radius: var(--radius-row);
}

.accordion__heading {
	margin: 0;
	font: inherit;
}

.accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 21px 24px;
	background: none;
	border: 0;
	text-align: left;
	font-family: var(--font-text);
	font-size: 19px;
	line-height: 25px;
	color: var(--ink);
}

.accordion__icon {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
}

.accordion__icon::before,
.accordion__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: var(--blue-soft);
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.accordion__icon::before {
	width: 14px;
	height: 2px;
}

.accordion__icon::after {
	width: 2px;
	height: 14px;
}

.accordion__item.is-open .accordion__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__panel {
	padding: 0 24px 22px;
	color: var(--muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 22px;
}

.contact-card {
	padding: 29px 24px 24px;
	background: var(--white);
	border-radius: var(--radius-soft);
}

.contact-card__title {
	font-size: 25px;
	line-height: 30px;
}

.contact-card__lead {
	margin-top: 13px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.messenger {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding: 12px 20px;
	background: var(--blue-050);
	border-radius: var(--radius-row);
	color: var(--ink);
	font-size: 18px;
	line-height: 24px;
	transition: background-color 0.2s ease;
}

.messenger:hover {
	background: #e7f3ff;
	color: var(--ink);
}

.messenger svg {
	flex: none;
	width: 31px;
	height: 31px;
}

.contact-card__or {
	margin-top: 24px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.contact-card > .btn {
	margin-top: 12px;
	min-height: 53px;
}

.contact-card .consent {
	margin-top: 26px;
}

/* ==========================================================================
   14. Контакты и подвал
   ========================================================================== */

.site-footer {
	padding: 53px 0 83px;
	background: var(--grad-footer);
	color: var(--white);
}

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

.contacts--nomap { grid-template-columns: minmax(0, 1fr); }

.contacts__title {
	color: var(--white);
}

.contacts__hours {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.contacts__list {
	margin-top: 30px;
}

.contacts__list dt {
	margin-top: 32px;
	color: var(--blue-400);
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.contacts__list dt:first-child {
	margin-top: 0;
}

.contacts__list dd {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.contacts__list a {
	color: var(--white);
}

.contacts__list a:hover {
	color: var(--blue-300);
}

.contacts__map {
	margin-top: 120px;
	border-radius: var(--radius-soft);
	overflow: hidden;
}

.contacts__map iframe {
	width: 100%;
	height: 423px;
	border: 0;
}

/* Города работы: сквозная строка в подвале — вход в городские разделы с любой страницы. */
.site-footer__cities {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
	margin-top: 41px;
	padding-top: 30px;
	border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.site-footer__cities-label {
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	font-weight: 200;
	line-height: 20px;
}

.site-footer__cities ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.site-footer__cities a {
	color: var(--white);
	font-size: 15px;
	font-weight: 300;
	line-height: 20px;
}

.site-footer__cities a:hover {
	color: var(--blue-300);
}

/* Строка городов уже отбила подвал линией — второй раз её не рисуем. */
.site-footer__cities + .site-footer__bottom {
	margin-top: 30px;
	padding-top: 0;
	border-top: 0;
}

.site-footer__bottom {
	display: grid;
	grid-template-columns: 319px 202px 196px 253px 1fr;
	align-items: start;
	margin-top: 41px;
	padding-top: 50px;
	border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.site-footer__brand .logo {
	display: block;
}

.site-footer__brand .logo img {
	width: 206px;
	height: 54px;
}

.site-footer__tagline {
	margin-top: 23px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.site-footer__nav {
	display: contents;
}

.site-footer__nav ul {
	display: grid;
	gap: 13px;
}

.site-footer__nav a {
	display: block;
	color: var(--white);
	font-size: 16px;
	font-weight: 200;
	line-height: 19px;
}

.site-footer__nav a:hover {
	color: var(--blue-300);
}

.site-footer__phone {
	display: block;
	color: var(--white);
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
}

.site-footer__hours {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 200;
	line-height: 19px;
}

.site-footer__action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.site-footer__action .btn {
	padding: 0 22px;
}

.site-footer__policy {
	align-self: flex-end;
	margin-top: 47px;
	color: var(--white);
	font-size: 13px;
	font-weight: 200;
	line-height: 17px;
	opacity: 0.85;
}

.site-footer__policy:hover {
	color: var(--blue-300);
}

/* ==========================================================================
   15. Модальные окна и форма
   ========================================================================== */

.modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

.modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(40, 40, 40, 0.7);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.modal.is-open .modal__overlay {
	opacity: 1;
}

.modal__dialog {
	position: relative;
	width: 100%;
	max-width: 1188px;
	margin: auto;
	padding: 60px;
	background: var(--grad-popup);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-modal);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal.is-open .modal__dialog {
	opacity: 1;
	transform: none;
}

.modal__close {
	position: absolute;
	right: 26px;
	top: 26px;
	width: 28px;
	height: 28px;
	padding: 0;
	background: var(--white);
	border: 0;
	border-radius: 50%;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.modal__close::before,
.modal__close::after {
	content: '';
	position: absolute;
	left: 7px;
	top: 13px;
	width: 14px;
	height: 2px;
	background: var(--blue-soft);
	border-radius: 2px;
}

.modal__close::before {
	transform: rotate(45deg);
}

.modal__close::after {
	transform: rotate(-45deg);
}

.modal__close:hover {
	opacity: 1;
}

.modal__title {
	max-width: 900px;
	color: var(--blue);
	font-size: 25px;
	line-height: 30px;
}

.modal__text {
	margin-top: 22px;
}

.modal__text p {
	margin-top: 16px;
	font-size: 16px;
	font-weight: 200;
	line-height: 22px;
}

.modal__text p:first-child {
	margin-top: 0;
}

.modal__text .lead {
	color: var(--blue);
}

.modal__dialog--form {
	max-width: 1188px;
	padding: 60px;
}

.call {
	display: grid;
	grid-template-columns: 1fr 456px;
	gap: 40px;
	align-items: start;
}

.call__title {
	color: var(--blue);
	font-size: 25px;
	line-height: 30px;
}

.call__hours {
	margin-top: 14px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.call__phone {
	display: inline-block;
	margin-top: 6px;
	color: var(--ink);
	font-size: 19px;
	font-weight: 500;
	line-height: 24px;
}

.call__address {
	margin-top: 76px;
	font-size: 16px;
	font-weight: 200;
	line-height: 20px;
}

.call__address span {
	display: block;
	color: var(--blue);
}

.lead-form__fields {
	display: grid;
	gap: 10px;
}

.lead-form__field {
	position: relative;
	display: block;
}

.lead-form__field input {
	width: 100%;
	height: 54px;
	padding: 0 20px;
	background: var(--white);
	border: 0;
	border-radius: 10px;
	color: var(--ink);
	font: 200 17px/1.3 var(--font-text);
}

.lead-form__field input::placeholder {
	color: var(--muted);
	opacity: 0.6;
}

.lead-form__field--phone input {
	padding-left: 56px;
}

.lead-form__code {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink);
	font-size: 17px;
	font-weight: 200;
}

.lead-form__error {
	margin-top: 2px;
	color: #d8000c;
	font-size: 14px;
	font-weight: 200;
}

.lead-form .btn {
	margin-top: 14px;
	min-height: 57px;
	font-size: 19px;
}

.lead-form.is-sending .btn {
	opacity: 0.7;
}

.lead-form__note {
	margin-top: 12px;
	font-size: 13px;
	font-weight: 200;
	line-height: 17px;
}

.lead-form__success {
	padding: 30px 0;
	color: var(--blue);
	font-size: 22px;
	line-height: 30px;
	text-align: center;
}

/* ==========================================================================
   16. Текстовые страницы
   ========================================================================== */

.text-page {
	padding: 40px 0 70px;
}

.text-page__title {
	font-size: 34px;
	line-height: 42px;
}

.text-page__content {
	margin-top: 26px;
	font-size: 17px;
	font-weight: 200;
	line-height: 26px;
}

.text-page__content p {
	margin: 0 0 18px;
}

.text-page__content h2 {
	margin: 34px 0 14px;
	font-size: 22px;
	line-height: 30px;
}

.text-page__content ul,
.text-page__content ol {
	margin: 0 0 18px;
	padding-left: 22px;
	list-style: disc;
}

.text-page__content li {
	margin-bottom: 8px;
}

.text-page__teaser {
	margin-bottom: 34px;
}

/* ==========================================================================
   17. Адаптив
   ========================================================================== */

@media (max-width: 1240px) {
	.site-nav__list {
		gap: 30px;
	}

	.hero__inner {
		grid-template-columns: 1fr 443px;
		gap: 40px;
	}

	.hero__outline {
		display: none;
	}

	.extra-services {
		padding: 40px;
	}

	.calc {
		padding: 41px 40px 35px;
	}

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

	.site-footer__bottom {
		grid-template-columns: 260px 1fr 1fr auto;
	}

	.site-footer__action {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		text-align: left;
	}

	.site-footer__policy {
		margin-top: 0;
	}

	.modal__dialog {
		padding: 44px 40px;
	}
}

@media (max-width: 1080px) {
	.service-grid,
	.staff-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about__body {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.about__figure {
		padding-top: 0;
	}

	.about__sparkle {
		display: none;
	}

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

	.calc__figure {
		height: 360px;
	}

	.calc__figure img {
		right: auto;
		left: 0;
		top: 0;
	}

	.calc__star,
	.calc__sparkle {
		display: none;
	}

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

	.steps-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 20px;
	}

	.steps-list::before {
		display: none;
	}

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

	.call {
		grid-template-columns: 1fr;
		gap: 26px;
	}

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

@media (max-width: 960px) {
	:root {
		--header-bar: 62px;
		--header-total: var(--header-bar);
	}

	.logo img {
		width: 140px;
		height: 37px;
	}

	.site-header__tagline,
	.site-header__contact,
	.site-header__cta {
		display: none;
	}

	.site-header__inner {
		gap: 16px;
	}

	.site-nav {
		display: none;
	}

	.burger {
		display: block;
	}

	/* На узких экранах картинка встаёт между лидом и списком преимуществ. */
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 0;
		padding-top: calc(var(--header-bar) + 34px);
	}

	.hero__text {
		display: contents;
	}

	.hero__title {
		order: 1;
	}

	.pricelead {
		order: 2;
	}

	/* Точка-разделитель на переносе повисала в конце строки одна. */
	.pricelead .sep { display: none; }

	.hero__lead {
		order: 3;
	}

	.hero__visual {
		order: 4;
		margin: 34px auto;
	}

	.hero__features {
		order: 5;
		margin-top: 0;
	}

	.hero__text > .btn {
		order: 6;
		justify-self: start;
	}

	.hero__title,
	.section-title,
	.extra-services__title {
		font-size: 34px;
		line-height: 42px;
	}

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

	.contacts__map {
		margin-top: 34px;
	}

	.contacts__map iframe {
		height: 320px;
	}

	.site-footer__bottom {
		grid-template-columns: 1fr 1fr;
		gap: 30px 20px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.section,
	.about {
		padding-top: 40px;
	}

	.section {
		padding-bottom: 40px;
	}

	.hero__title,
	.section-title,
	.extra-services__title {
		font-size: 28px;
		line-height: 36px;
	}

	.hero__lead,
	.hero__features li {
		font-size: 17px;
		line-height: 23px;
	}

	.hero__visual {
		width: 100%;
		max-width: 340px;
		height: 400px;
	}

	.hero__visual::before {
		left: 0;
		top: 30px;
		width: 84%;
		height: 370px;
	}

	.hero__photo {
		left: 12%;
		width: 84%;
		height: 370px;
	}

	.hero__star {
		left: auto;
		right: -10px;
		top: -14px;
		width: 104px;
		height: 104px;
	}

	.hero__sparkle {
		left: -6px;
		top: 30px;
		width: 40px;
		height: 40px;
	}

	.service-grid,
	.staff-grid,
	.steps-list {
		grid-template-columns: 1fr;
	}

	.extra-services__list {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
	}

	.tabs__tab {
		min-height: 46px;
		padding: 0 22px;
		font-size: 17px;
	}

	.extra-services {
		padding: 28px 22px;
	}

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

	.about__bg {
		height: 100%;
	}

	.about__figure img {
		width: 240px;
		height: 240px;
		border-radius: 100px 8px 100px 100px;
	}

	.about__star {
		width: 90px;
		height: 90px;
	}

	.calc {
		padding: 28px 22px;
	}

	.calc__figure {
		height: 300px;
	}

	.calc__figure img {
		width: 280px;
		height: 294px;
	}

	.review {
		width: min(84vw, 340px);
	}

	.contacts__list {
		margin-top: 30px;
	}

	.site-footer {
		padding-bottom: 50px;
	}

	.site-footer__bottom {
		grid-template-columns: 1fr;
	}

	.site-footer__action {
		flex-direction: column;
		align-items: flex-start;
	}

	.modal {
		padding: 12px;
	}

	.modal__dialog {
		padding: 46px 22px 28px;
	}

	.modal__title,
	.call__title,
	.contact-card__title {
		font-size: 22px;
		line-height: 28px;
	}

	.text-page__title {
		font-size: 26px;
		line-height: 34px;
	}
}
