/*
Theme Name: ТС-Тест
Version: 1.10.4
Text Domain: ts-test
*/

:root {
	--header-accent: #f90;
	--header-email: #328ac8;
	--nav-active: #fc8d3d;
	--admin-bar-height: 0px;
}

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

body {
	margin: 0;
	color: #202124;
	font-family: Arial, sans-serif;
}

body.admin-bar {
	--admin-bar-height: 32px;
}

.skip-link {
	position: fixed;
	top: var(--admin-bar-height);
	left: 1rem;
	z-index: 20;
	padding: .75rem;
	color: #000;
	background: #fff;
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: none;
}

.site-header {
	position: sticky;
	top: var(--admin-bar-height);
	z-index: 5;
	background: #000;
	color: #fff;
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto auto auto auto;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: min(1140px, calc(100% - 2rem));
	min-height: 97px;
	margin-inline: auto;
	padding-block: 15px;
}

.site-header img {
	display: block;
	max-width: 100%;
	height: auto;
}

.site-header a {
	text-decoration: none;
}

.site-header a:hover {
	text-decoration: underline;
}

.site-header__registration,
.site-header__phone {
	display: flex;
	align-items: center;
	gap: 20px;
}

.site-header__icon {
	flex: none;
}

.site-header__registration {
	line-height: 1.2;
}

.site-header__email {
	color: var(--header-email);
	font-weight: 700;
}

.site-header__registration-number {
	display: block;
}

.site-header__phone a {
	color: inherit;
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -.5px;
	white-space: nowrap;
}

.site-header__request {
	min-height: 56px;
	width: 226px;
	max-width: 100%;
	padding: .5rem;
	border: 3px solid var(--header-accent);
	background: transparent;
	color: var(--header-accent);
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	opacity: 1;
}

.site-header__request:hover {
	background: var(--header-accent);
	color: #fff;
}

.site-header__request[data-request-dialog],
.services__order-button[data-request-dialog] {
	cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
	.site-header__request {
		transition: background-color .2s ease, color .2s ease;
	}
}

.site-nav {
	position: relative;
	z-index: 4;
	border-top: 1px solid #fff;
	background: #2f2c2b;
	color: #fff;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__items {
	display: flex;
	flex-wrap: wrap;
}

.site-nav a {
	color: inherit;
	text-decoration: none;
}

.site-nav__item {
	display: block;
	padding: .45rem .75rem;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.3;
}

.site-nav__group {
	position: relative;
}

.site-nav__group summary {
	cursor: pointer;
	list-style: none;
}

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

.site-nav__item[aria-current="page"],
.site-nav a.site-nav__item:hover,
.site-nav__group[open] > summary {
	background: var(--nav-active);
	color: #211c19;
}

.site-nav .site-nav__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	width: min(17rem, calc(100vw - 4.5rem));
	max-height: 65vh;
	overflow: auto;
	border: 1px solid #c1c1c1;
	background: #f5f5f5;
	color: #4f4f4f;
	font-size: .875rem;
}

.site-nav__submenu li + li {
	border-top: 1px solid #dedede;
}

.site-nav__submenu a,
.site-nav__submenu span {
	display: block;
	padding: .45rem .65rem;
}

.site-nav__submenu a:hover,
.site-nav__submenu a:focus-visible {
	background: #e5e5e5;
}

.site-header a:focus-visible,
.site-nav :is(a, summary):focus-visible {
	outline: 2px solid #5bb8f8;
	outline-offset: -2px;
}

.site-content {
	width: min(70rem, calc(100% - 2rem));
	margin: 2rem auto;
}

@font-face {
	font-family: Raleway;
	src: url("assets/fonts/raleway-light.woff") format("woff");
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: Raleway;
	src: url("assets/fonts/raleway-medium.woff") format("woff");
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: Raleway;
	src: url("assets/fonts/raleway-bold.woff") format("woff");
	font-weight: 700;
	font-display: swap;
}

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(5rem, 9vw, 12.5rem) 1rem clamp(4rem, 7vw, 6rem);
	background: #1b1918;
	color: #fff;
	text-align: center;
}

.hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	/* Keep the transparent diagonal in the source image below the visible frame. */
	inset: 0 0 -31%;
	background: url("assets/images/hero-trucks.png") center top / cover no-repeat;
}

.hero__inner {
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.hero__heading {
	margin: 0;
	font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
}

.hero__title {
	display: block;
	font-size: clamp(2rem, 5vw, 4.375rem);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.hero__subtitle {
	display: block;
	margin-top: 1rem;
	font-size: clamp(1.125rem, 3vw, 2.25rem);
	font-weight: 500;
	line-height: 1.25;
}

.hero__services {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block: 2rem 1.75rem;
}

.hero__services::before,
.hero__services::after {
	content: "";
	flex: 1;
	height: 1px;
}

.hero__services::before {
	background: linear-gradient(to right, transparent, #328ac8);
}

.hero__services::after {
	background: linear-gradient(to left, transparent, #328ac8);
}

.hero__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 3.125rem;
	max-width: 100%;
	margin: 0;
	padding: .65rem 1.5rem;
	clip-path: polygon(1.125rem 0, calc(100% - 1.125rem) 0, 100% 50%, calc(100% - 1.125rem) 100%, 1.125rem 100%, 0 50%);
	background: #328ac8;
	font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.hero__badge img {
	flex: none;
}

.request-form {
	width: min(100%, 33.75rem);
	margin-inline: auto;
	padding: 1.25rem;
	border-radius: .3rem;
	background: #fff;
	color: #202124;
}

.request-form__fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.request-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .625rem;
}

.request-form__field {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.875rem;
	padding-inline: .55rem;
	border: 1px solid #cbd0d5;
	border-radius: .25rem;
}

.request-form__field .dashicons {
	flex: none;
	color: var(--header-accent);
}

.request-form__field input {
	width: 100%;
	min-width: 0;
	padding: .5rem 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: .875rem;
	opacity: 1;
}

.request-form__field input::placeholder {
	color: #717171;
	opacity: 1;
}

.request-form--iex .request-form__field:focus-within {
	border-color: #6e7885;
}

.request-form--iex .request-form__field input:focus {
	outline: none;
}

.request-form__hint {
	margin: .75rem 0 .625rem;
	color: #686868;
	font-size: .75rem;
	text-align: right;
}

.request-form__consent {
	display: flex;
	align-items: baseline;
	gap: .35rem;
	font-size: .6875rem;
	line-height: 1.4;
	text-align: left;
}

.request-form__consent input {
	appearance: none;
	display: inline-grid;
	flex: none;
	place-items: center;
	width: .625rem;
	height: .625rem;
	margin: 0;
	border-radius: 2px;
	border: 1px solid #6e7885;
	background: #fff;
}

.request-form__consent input:checked {
	border-color: #0b72dc;
	background: #0b72dc;
}

.request-form__consent input:checked::before {
	content: "";
	width: 3px;
	height: 6px;
	border: solid #fff;
	border-width: 0 1px 1px 0;
	transform: rotate(45deg) translateY(-.5px);
}

.request-form__agreement {
	color: #006bd3;
}

.request-form--iex .request-form__consent--advertising {
	margin-top: .5rem;
}

.request-form--iex .request-form__success {
	margin: 1rem 0;
}

.request-form--iex .iexform-error-message,
.request-form--iex .iexform-common-error {
	color: #a52323;
	font-size: .875rem;
}

.request-form__submit {
	display: block;
	min-height: 2.9375rem;
	margin: 1.125rem auto 0;
	padding: .5rem 1.25rem;
	border: 0;
	background: var(--header-accent);
	color: #fff;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	opacity: 1;
}

.request-form--iex .request-form__submit:enabled {
	cursor: pointer;
}

@media (hover: hover) {
	.request-form--iex .request-form__submit:enabled:hover {
		background-color: #eb8700;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.request-form--iex .request-form__submit {
		transition: background-color .25s ease-in-out;
	}
}

.request-dialog {
	position: fixed;
	inset: 0;
	width: min(37.5rem, calc(100% - 1.5rem));
	max-height: calc(100% - 1.5rem);
	margin: auto;
	padding: clamp(3.25rem, 8vw, 5rem) clamp(.75rem, 3vw, 1rem) 1rem;
	overflow: auto;
	border: 0;
	background: #f0f3fb;
	color: #202124;
	text-align: center;
}

.request-dialog::backdrop {
	background: rgb(0 0 0 / 60%);
}

.request-dialog__close {
	position: absolute;
	top: .65rem;
	right: .65rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font: 400 2.25rem / 1 Arial, sans-serif;
	cursor: pointer;
}

.request-dialog__close:hover {
	color: #775000;
}

.request-dialog__close:focus-visible {
	outline: 2px solid #6e7885;
	outline-offset: -3px;
}

.request-dialog__title {
	margin: 0;
	font: 700 clamp(1.5rem, 5vw, 1.875rem) / 1.2 Raleway, "Helvetica Neue", Arial, sans-serif;
	text-transform: uppercase;
}

.request-dialog__description {
	margin: 1.25rem auto;
	font: 500 clamp(1rem, 3.5vw, 1.25rem) / 1.45 Raleway, "Helvetica Neue", Arial, sans-serif;
}

.request-dialog .request-form {
	width: 100%;
	padding: clamp(1rem, 4vw, 1.25rem);
}

.benefits {
	padding: clamp(2.75rem, 5vw, 4.5rem) 1rem clamp(3rem, 6vw, 5rem);
	background: #fff;
	text-align: center;
}

.benefits__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	place-items: center;
	gap: 1.5rem;
	width: min(100%, 65rem);
	margin-inline: auto;
}

.benefits__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: min(100%, 20.375rem);
	aspect-ratio: 335 / 370;
	padding-inline: 12%;
	background: url("assets/images/benefits-frame.svg") center / contain no-repeat;
}

.benefits__card h2 {
	margin: 0;
	font: 700 1rem / 1.3 Raleway, "Helvetica Neue", Arial, sans-serif;
}

.benefits__card p {
	margin: 0;
	font-size: .875rem;
	line-height: 1.45;
}

.benefits__card--savings {
	gap: 1.25rem;
}

.benefits__card--savings h2 {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.benefits__photo {
	max-width: 100%;
	height: auto;
}

.services {
	padding: clamp(3rem, 6vw, 5rem) 1rem;
	background: #f0f3fb;
	text-align: center;
}

.services__inner {
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.services__title,
.reasons__title,
.clients__title,
.faq__title,
.application__title {
	margin: 0;
	font: 700 clamp(1.75rem, 3.5vw, 2.5rem) / 1.15 Raleway, "Helvetica Neue", Arial, sans-serif;
	text-transform: uppercase;
}

.services__intro,
.application__intro {
	margin: .8rem auto 0;
	font-size: clamp(1rem, 1.55vw, 1.25rem);
	line-height: 1.5;
}

.services__choices {
	min-width: 0;
	margin: clamp(1.5rem, 4vw, 3rem) 0 0;
	padding: 0;
	border: 0;
}

.services__visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid #dce7f2;
	background: #dce7f2;
}

.services__option,
.services__card {
	position: relative;
	display: flex;
}

.services__card,
.services__order {
	min-height: 15.125rem;
	background: #fff;
}

.services__card {
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: .8rem;
	padding: 3rem 1rem 1.25rem;
	color: #202124;
	line-height: 1.45;
	cursor: pointer;
}

.services__icon {
	object-fit: scale-down;
}

.services__number {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	display: flex;
	align-items: center;
	gap: .625rem;
	color: #637996;
}

.services__number::before {
	content: "";
	width: 2rem;
	height: 2rem;
	background: url("assets/images/services/unselected.png") center / contain no-repeat;
}

.services__option input:checked + .services__card .services__number::before {
	background-image: url("assets/images/services/selected.png");
}

.services__card::before,
.services__card::after {
	content: "";
	position: absolute;
	inset: 0;
	border: solid var(--header-accent);
	pointer-events: none;
}

.services__card::before {
	border-width: 2px 0;
	transform: scaleX(0);
}

.services__card::after {
	border-width: 0 2px;
	transform: scaleY(0);
}

.services__option input:checked + .services__card::before,
.services__option input:checked + .services__card::after,
.services__option:hover > .services__card::before,
.services__option:hover > .services__card::after {
	transform: none;
}

.services__option input:focus-visible + .services__card {
	outline: 2px solid #2679b1;
	outline-offset: -5px;
}

@media (prefers-reduced-motion: no-preference) {
	.services__card::before,
	.services__card::after {
		transition: transform .35s ease;
	}
}

.services__order {
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.services__order-button {
	width: min(100%, 16.25rem);
	min-height: 3.75rem;
	padding: .65rem 1rem;
	border: 0;
	background: var(--header-accent);
	color: #fff;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
	opacity: 1;
}

.services__order-button:hover {
	background: #eb8700;
	box-shadow: 0 10px 20px rgb(255 154 0 / 28%);
}

.reasons {
	scroll-margin-top: 9rem;
	padding: clamp(3rem, 6vw, 5rem) 1rem clamp(4rem, 7vw, 6rem);
	background: #fff;
}

.reasons__inner {
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.reasons__title {
	text-align: center;
}

.reasons__grid {
	display: grid;
	gap: 2.25rem;
	margin-top: clamp(2.5rem, 5vw, 6.5rem);
}

.reasons__item {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
	align-items: center;
	gap: 1.5rem;
}

.reasons__illustration {
	position: relative;
	width: max-content;
	max-width: 100%;
	justify-self: center;
}

.reasons__photo {
	display: block;
	max-width: 100%;
	height: auto;
}

.reasons__number {
	position: absolute;
	top: 12%;
	right: -.75rem;
	display: grid;
	place-items: center;
	width: 2.375rem;
	height: 2.625rem;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: #328ac8;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

.reasons__item--accreditation .reasons__number {
	right: auto;
	left: -.75rem;
}

.reasons__item--testing .reasons__number {
	top: 2%;
	right: 0;
}

.reasons__copy h3 {
	margin: 0 0 .8rem;
	font: 700 1.25rem / 1.25 Raleway, "Helvetica Neue", Arial, sans-serif;
}

.reasons__copy p {
	margin: 0;
	line-height: 1.5;
}

.clients {
	scroll-margin-top: 8.5rem;
	padding: clamp(3rem, 6vw, 5rem) 1rem;
	background: #f0f3fb;
	text-align: center;
}

.clients__inner {
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.clients__carousel {
	margin-top: clamp(2rem, 5vw, 4rem);
}

.clients__carousel:not(.swiper-initialized) .swiper-wrapper {
	display: grid;
	gap: 2rem;
}

.clients__logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.clients__client {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.clients__client img {
	display: block;
	width: 98px;
	max-width: 100%;
	height: auto;
}

.clients .clients__pagination {
	position: static;
	display: flex;
	justify-content: center;
	width: auto;
	margin-top: 1.75rem;
}

.clients__carousel:not(.swiper-initialized) .clients__pagination {
	display: none;
}

.clients__pagination .swiper-pagination-bullet {
	position: relative;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	opacity: 1;
}

.clients__pagination .swiper-pagination-bullet::before {
	content: "";
	width: .75rem;
	height: .75rem;
	border: 1px solid #899bb4;
	border-radius: 50%;
	background: #fff;
}

.clients__pagination .swiper-pagination-bullet-active::before {
	border-color: #a95f00;
	background: var(--header-accent);
}

.clients__pagination .swiper-pagination-bullet:focus-visible {
	outline: 2px solid #2679b1;
	outline-offset: -3px;
}

.gallery {
	scroll-margin-top: 8.5rem;
}

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1px;
}

.gallery__tile {
	--gallery-span: 2;
	display: block;
	grid-column: span var(--gallery-span);
	height: clamp(13rem, 24vw, 26rem);
	overflow: hidden;
	background: #e7e7e7;
}

.gallery__tile:nth-child(1),
.gallery__tile:nth-child(5),
.gallery__tile:nth-child(7),
.gallery__tile:nth-child(10) {
	--gallery-span: 4;
}

.gallery__tile:nth-child(3),
.gallery__tile:nth-child(8) {
	--gallery-span: 6;
}

.gallery__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__tile:focus-visible {
	position: relative;
	z-index: 1;
	outline: 3px solid #328ac8;
	outline-offset: -4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.gallery__tile img {
		transition: transform .35s ease;
	}

	.gallery__tile:hover img {
		transform: scale(1.07);
	}
}

html:has(.gallery-viewer[open], .request-dialog[open]) {
	overflow: hidden;
}

.gallery-viewer {
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: .5rem;
	overflow: hidden;
	border: 0;
	background: transparent;
	color: #fff;
}

.gallery-viewer[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}

.gallery-viewer::backdrop {
	background: rgb(12 14 18 / 95%);
}

.gallery-viewer__toolbar {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 3.25rem;
}

.gallery-viewer .gallery-viewer__counter {
	position: static;
	width: auto;
	color: inherit;
	font-variant-numeric: tabular-nums;
}

.gallery-viewer__stage {
	position: relative;
	min-width: 0;
	padding: 0 clamp(.25rem, 5vw, 4rem) .5rem;
}

.gallery-viewer__swiper {
	width: 100%;
	height: 100%;
}

.gallery-viewer__swiper img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gallery-viewer__control {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: .25rem;
	background: #22272e;
	color: inherit;
	font: 400 2rem / 1 Arial, sans-serif;
	cursor: pointer;
}

.gallery-viewer__control:hover {
	background: #3b424d;
}

.gallery-viewer__control:focus-visible {
	outline: 2px solid #5bb8f8;
	outline-offset: 2px;
}

.gallery-viewer__control.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

.gallery-viewer__close,
.gallery-viewer__next {
	right: 0;
}

.gallery-viewer__prev,
.gallery-viewer__next {
	top: 50%;
	transform: translateY(-50%);
}

.gallery-viewer__prev {
	left: 0;
}

.faq {
	scroll-margin-top: 8.5rem;
	padding: clamp(3rem, 7vw, 6rem) 1rem;
	background: #fff;
}

.faq__inner {
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.faq__title {
	text-align: center;
}

.faq__items {
	margin-top: clamp(1.75rem, 5vw, 3.5rem);
	border: 1px solid var(--header-accent);
}

.faq__item + .faq__item {
	border-top: 1px solid var(--header-accent);
}

.faq__question {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 5.625rem;
	padding: 1rem 2rem 1rem 1.25rem;
	list-style: none;
	font: 700 1.125rem / 1.4 Raleway, "Helvetica Neue", Arial, sans-serif;
	cursor: pointer;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question:focus-visible {
	outline: 2px solid #328ac8;
	outline-offset: -3px;
}

.faq__number {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.75rem;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: #328ac8;
	color: #fff;
	font: 700 1.25rem / 1 Arial, sans-serif;
}

.faq__question::after {
	content: "";
	width: .7rem;
	height: .7rem;
	margin: -.35rem .25rem 0;
	border: solid var(--header-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.faq__item[open] .faq__question::after {
	margin-top: .35rem;
	transform: rotate(225deg);
}

.faq__answer {
	padding: 1.4rem 2rem 1.4rem 4.75rem;
	background: #f1f4fb;
	line-height: 1.55;
}

.faq__answer p {
	margin: 0;
}

.application {
	scroll-margin-top: 8.5rem;
	padding: clamp(3rem, 7vw, 6rem) 1rem;
	background: #f0f3fb;
}

.application__inner {
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.application__title,
.application__intro {
	text-align: center;
}

.application__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(1.75rem, 4vw, 3rem);
	margin-top: clamp(1.75rem, 5vw, 3.5rem);
}

.application .request-form {
	width: 100%;
	padding: clamp(1rem, 4vw, 3rem);
}

.application .request-form__field {
	background: #f0f5fb;
}

.application .request-form__submit:hover {
	background: #eb8700;
}

.application__certificate {
	display: block;
}

.application__accreditation img {
	display: block;
	max-width: 100%;
	height: auto;
}

.application__logo {
	width: 11.25rem;
	margin-top: 1rem;
}

.application__accreditation h3 {
	margin: 1rem 0 .75rem;
	font-size: 1rem;
}

.application__accreditation p {
	margin: 0;
	line-height: 1.5;
}

.application__accreditation p a {
	color: #246d9e;
	overflow-wrap: anywhere;
}

.application__accreditation a:focus-visible {
	outline: 2px solid #2679b1;
	outline-offset: 2px;
}

.site-footer {
	scroll-margin-top: 8.5rem;
	padding: .75rem 1rem 1rem;
	background: #fff;
	color: #111;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 1.5rem;
	width: min(100%, 71.25rem);
	margin-inline: auto;
}

.site-footer__brand {
	display: block;
	width: fit-content;
}

.site-footer__brand img {
	display: block;
	max-width: 100%;
	height: auto;
}

.site-footer__contact {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-style: normal;
	line-height: 1.25;
}

.site-footer__contact img {
	flex: none;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer a:focus-visible {
	outline: 2px solid #2679b1;
	outline-offset: 2px;
}

.site-footer__email {
	color: #246d9e;
	font-weight: 700;
}

.site-footer__phone {
	color: inherit;
	font-size: clamp(1.25rem, 2.25vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -.5px;
	white-space: nowrap;
}

.site-footer__privacy {
	margin: .5rem 0 0;
	color: #4f5964;
	font-size: .875rem;
}

.site-footer__privacy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .15em;
}

@media (max-width: 767px) {
	.site-footer {
		padding-block: 1.25rem;
	}

	.site-footer__inner {
		justify-content: center;
	}

	.site-footer__brand img {
		width: 10rem;
	}
}

@media (max-width: 599px) {
	.site-footer__inner {
		flex-direction: column;
		text-align: center;
	}

	.site-footer__brand {
		margin-inline: auto;
	}

	.site-footer__contact img {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.faq__question::after {
		transition: transform .25s ease, margin-top .25s ease;
	}

	@supports (interpolate-size: allow-keywords) {
		.faq__item {
			interpolate-size: allow-keywords;
		}

		.faq__item::details-content {
			block-size: 0;
			overflow: clip;
			transition: block-size .3s ease, content-visibility .3s allow-discrete;
		}

		.faq__item[open]::details-content {
			block-size: auto;
		}
	}
}

@media (max-width: 767px) {
	.gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gallery__grid .gallery__tile {
		grid-column: auto;
		height: clamp(8.5rem, 32vw, 13rem);
	}

	.gallery-viewer__stage {
		display: grid;
		grid-template-rows: minmax(0, 1fr) 3.25rem;
	}

	.gallery-viewer__prev,
	.gallery-viewer__next {
		top: auto;
		bottom: .25rem;
		transform: none;
	}

	.faq__question {
		gap: .7rem;
		min-height: 0;
		padding: .875rem;
		font-size: 1rem;
	}

	.faq__number {
		width: 2.125rem;
		height: 2.375rem;
	}

	.faq__answer {
		padding: 1rem;
	}

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

	.application__accreditation {
		width: min(100%, 32rem);
		margin-inline: auto;
	}
}

@media (min-width: 992px) {
	.reasons__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, .98fr) minmax(0, 1fr);
		column-gap: clamp(1.25rem, 2.75vw, 3rem);
		min-height: 29rem;
	}

	.reasons__item {
		display: contents;
	}

	.reasons__illustration {
		grid-area: 1 / 2 / 3 / 3;
	}

	.reasons__item--accreditation .reasons__illustration {
		z-index: 1;
		align-self: start;
		justify-self: start;
		max-width: 62%;
		margin-top: 4.5rem;
	}

	.reasons__item--offices .reasons__illustration {
		align-self: start;
		justify-self: end;
		max-width: 52%;
		margin-inline-end: 7%;
	}

	.reasons__item--testing .reasons__illustration {
		align-self: end;
		max-width: 67%;
	}

	.reasons__item--accreditation .reasons__copy {
		grid-area: 1 / 1 / 3 / 2;
		align-self: center;
		text-align: right;
	}

	.reasons__item--offices .reasons__copy {
		grid-area: 1 / 3 / 2 / 4;
		align-self: center;
	}

	.reasons__item--testing .reasons__copy {
		grid-area: 2 / 3 / 3 / 4;
		align-self: end;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.services__order-button {
		transition: background-color .2s ease, box-shadow .2s ease;
	}
}

@media (max-width: 991px) {
	.services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.clients__logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.services__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.services__card {
		min-height: 12rem;
	}

	.services__order {
		min-height: 6.25rem;
	}

	.reasons__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
		text-align: center;
	}

	.reasons__illustration {
		max-width: min(100%, 10rem);
	}

	.clients__logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 899px) {
	.benefits__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.benefits__card {
		padding-inline: clamp(2.25rem, 12vw, 2.625rem);
	}
}

@media (max-width: 1199px) {
	.site-header__inner {
		grid-template-columns: auto auto;
		width: min(960px, calc(100% - 2rem));
	}

	.site-header__phone {
		grid-row: 1;
		grid-column: 2;
	}

	.site-header__phone a {
		font-size: 1.5rem;
	}
}

@media (max-width: 782px) {
	body.admin-bar {
		--admin-bar-height: 46px;
	}
}

@media (max-width: 767px) {
	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 0;
		gap: .3rem .75rem;
		padding-block: .75rem;
	}

	.site-header__brand {
		grid-row: span 2;
		max-width: 150px;
	}

	.site-header__phone,
	.site-header__registration {
		gap: 0;
	}

	.site-header__phone a {
		font-size: clamp(1rem, 4.5vw, 1.5rem);
	}

	.site-header__registration {
		grid-column: 2;
		font-size: .875rem;
	}

	.site-header__icon,
	.site-header__registration-number,
	.site-header__request {
		display: none;
	}
}

@media (max-width: 600px) {
	body.admin-bar {
		--admin-bar-height: 0px;
	}

	.hero {
		padding-block: 3.75rem;
	}

	.hero::before {
		background-position: 65% top;
	}

	.hero__services {
		margin-block: 1.5rem;
	}

	.hero__badge {
		gap: .6rem;
		font-size: .875rem;
	}

	.request-form {
		padding: 1rem;
	}

	.request-form__fields {
		grid-template-columns: 1fr;
	}
}
