/*!
Theme Name: customthemes
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: customthemes
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

customthemes is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
.section-36__center-title {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 35px;
}
@media (max-width: 89.9988em) {
	.section-36__center-title {
		padding: 10px;
	}
}
@media (max-width: 47.9988em) {
	.section-36__col {
		flex-direction: row;
	}
	.section-36__center-title {
		gap: 10px;
	}
}
@media (max-width: 37.9988em) {
	.section-36__center-title {
		flex: auto;
		align-items: flex-start;
		text-align: left;
	}
	.section-36__col {
		flex-direction: column;
	}
}
.form-modal__subtitle span {
	text-transform: capitalize;
}

/* section-project — hero-слайдер проектов */
.section-project {
	margin-top: 25px;
	position: relative;
	margin-bottom: 130px;
}

.section-project__inner {
	position: relative;
}

.section-project__slider-wrap {
	position: relative;
}

.section-project__slider {
	overflow: visible;
}

.section-project__slider .swiper-slide {
	height: auto;
}

.section-project__slide {
	position: relative;
	display: block;
	width: 100%;
	padding-bottom: 152.9%;
	overflow: hidden;
	text-decoration: none;
}

.section-project__slide::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: 55%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.section-project__slide > img {
	z-index: 0;
}

.section-project__center-title {
	position: absolute;
	left: 50%;
	bottom: 0;
	padding: 40px;
	z-index: 3;
	display: flex;
	justify-content: center;
	margin: 0;
	transform: translateX(-50%);
	font-weight: inherit;
	text-align: center;
	pointer-events: none;
}

.section-project__nav {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	z-index: 4;
	transform: translateY(-50%);
	pointer-events: none;
}

.section-project__nav-item {
	position: absolute;
	display: flex;
	align-items: center;
	pointer-events: auto;
}

.section-project__nav-item_prev {
	left: 70px;
}

.section-project__nav-item_next {
	right: 70px;
}

.section-project__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.section-project__arrow::after {
	display: none;
}

.section-project__arrow:hover {
	background: rgba(255, 255, 255, 0.45);
}

.section-project__arrow_prev svg {
	transform: scaleX(-1);
}

@media (max-width: 89.9988em) {
	.section-project__center-title {
		padding: 20px;
	}

	.section-project__nav-item_prev {
		left: 40px;
	}

	.section-project__nav-item_next {
		right: 40px;
	}

	.section-project__arrow {
		width: 70px;
		height: 70px;
	}

	.section-project__arrow svg {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 47.9988em) {
	.section-project {
		margin-bottom: 50px;
	}
	.section-project__center-title {
		padding: 10px;
	}

	.section-project__nav-item_prev {
		left: 15px;
	}

	.section-project__nav-item_next {
		right: 15px;
	}

	.section-project__arrow {
		width: 50px;
		height: 50px;
	}

	.section-project__arrow svg {
		width: 28px;
		height: 28px;
	}
}

.section-project__grid {
	display: grid;
	grid-template-columns: auto 35.15%;
	gap: 50px;
	align-items: start;
	margin-top: 60px;
}

.section-project__content {
	font-size: 20px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.section-project__content > *:first-child {
	margin-top: 0;
}

.section-project__content > *:last-child {
	margin-bottom: 0;
}

.section-project__content p {
	margin: 0;
}

.section-project__content h2 {
	font-size: 26px;
	line-height: 130.769231%;
}

.section-project__content h3 {
	font-size: 22px;
}

.section-project__content h4 {
	font-size: 20px;
}

.section-project__content ul,
.section-project__content ol {
	margin: 0;
	padding-left: 1.2em;
}

.section-project__content li + li {
	margin-top: 0.35em;
}

.section-project__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

.section-project__content blockquote {
	margin: 0;
}

.section-project__aside {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.section-project__aside-title {
	margin: 0;
	font-size: 22px;
	line-height: calc(30 / 22 * 100%);
}

.section-project__aside-text {
	margin: 10px 0 0;
	display: block;
}
a.section-project__aside-text {
	text-decoration: underline;
	text-underline-offset: 25%;
	text-decoration-thickness: 4%;
	text-decoration-color: #35453b66;
	color: #35453b;
}
a.section-project__aside-text:hover {
	text-decoration-color: #6aa07e;
}
@media (max-width: 89.9988em) {
	.section-project__grid {
		gap: 30px;
	}
	.section-project__aside {
		padding: 20px;
	}
}
@media (max-width: 991.98px) {
	.section-project__grid {
		grid-template-columns: 1fr;
		margin-top: 30px;
		gap: 30px;
	}
}

@media (max-width: 47.9988em) {
	.section-project__content {
		font-size: 16px;
	}
	.section-project__content {
		gap: 10px;
	}
	.section-project__grid {
		margin-top: 20px;
		gap: 20px;
	}

	.section-project__content h2 {
		font-size: 22px;
	}

	.section-project__content h3 {
		font-size: 18px;
	}

	.section-project__aside {
		padding: 20px;
	}
}

/* section-46 — галерея проектов */
.section-46__title {
	text-align: center;
}

.section-46__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.section-46__slide {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	padding-bottom: 41.67%;
	text-decoration: none;
}

.section-46__slide::before {
	display: none;
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
	z-index: 1;
	pointer-events: none;
}

.section-46__slide > img {
	z-index: 0;
}

.section-46__caption {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	max-width: calc(100% - 150px);
	padding: 40px;
}

.section-46__caption .section-46__project,
.section-46__caption .section-46__address,
.section-46__caption .section-46__city {
	margin: 0;
}

.section-46__slide::after {
	content: "";
	position: absolute;
	right: 40px;
	bottom: 40px;
	z-index: 2;
	width: 90px;
	height: 90px;

	background-color: rgba(255, 255, 255, 0.3);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46' fill='none'%3E%3Cpath d='M21.082 38.3333C30.6089 38.3333 38.332 30.6102 38.332 21.0833C38.332 11.5564 30.6089 3.83331 21.082 3.83331C11.5551 3.83331 3.83203 11.5564 3.83203 21.0833C3.83203 30.6102 11.5551 38.3333 21.082 38.3333Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16.293 21.0833H25.8763' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21.082 25.875V16.2917' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M36.2821 39.6555C37.298 42.7221 39.6171 43.0288 41.3996 40.3454C43.0288 37.8921 41.9555 35.8796 39.0038 35.8796C36.8188 35.8604 35.5921 37.5663 36.2821 39.6555Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 46px 46px;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	pointer-events: none;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease,
		backdrop-filter 0.3s ease,
		background-size 0.3s ease;
}

.section-46__slide:hover::after {
	background-color: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transform: scale(1.08);
}

.section-46__hidden {
	display: none;
}

.section-26__card-title {
	margin-top: 40px;
}
.section-26__card-date {
	background: #ffeec9;
	padding: 15px 30px;
	max-width: fit-content;
	color: #35453b;
	margin-top: 20px;
}
.section-26__content {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.section-26__content a {
	text-decoration: underline;
	text-underline-offset: 2px;
	color: #ffeec9;
}
.section-26__content > *:first-child {
	margin-top: 0;
}
.section-26__content h2 {
	font-size: 26px;
	line-height: 130.769231%;
}
.section-26__content h3 {
	font-size: 22px;
}
.section-26__inner {
	padding: 50px;
	gap: 50px;
	grid-template-columns: auto 49.5%;
}
.section-26__pic {
	height: 100%;
	width: 100%;
}

@media (max-width: 89.9988em) {
	.section-46__caption {
		padding: 24px;
	}
	.section-26__card-date {
		padding: 10px;
	}
	.section-26__inner {
		padding: 30px;
		gap: 30px;
		grid-template-columns: auto 39.5%;
	}

	.section-46__slide::after {
		right: 24px;
		bottom: 24px;
	}
}
@media (max-width: 991.98px) {
	.section-26__inner {
		display: flex;
		flex-direction: column;
	}
	.section-26__right {
		width: 100%;
	}
	.section-26__pic {
		padding: 40%;
	}
}
@media (max-width: 35.9988em) {
	.section-26__content {
		font-size: 16px;
	}
}
.section-26__right {
	overflow: hidden;
}
@media (max-width: 767.98px) {
	.section-46__slide::before {
		display: block;
	}
	.section-26__content {
		margin-top: 20px;
	}
	.section-26__content h3 {
		font-size: 18px;
	}
	.section-26__content h2 {
		font-size: 22px;
	}
	.section-project__slider-wrap {
		margin-top: 10px;
	}
	.section-26__card-title {
		margin-top: 30px;
	}
	.section-26__card-date {
		font-size: 20px;
	}
	.section-26__inner {
		padding: 15px;
		gap: 20px;
	}
	.section-46__caption {
		max-width: calc(100% - 55px);
		padding: 20px;
		font-size: 22px;
	}

	.section-46__slide::after {
		right: 20px;
		bottom: 20px;
		width: 40px;
		height: 40px;
		background-size: 20px 20px;
	}
}

@media (max-width: 37.9988em) {
	.section-46__slide {
		padding-bottom: 51.67%;
	}
	.section-46__caption {
		padding: 15px;
	}

	.section-46__slide::after {
		right: 15px;
		bottom: 15px;
	}

	.section-46__caption ._text36 {
		font-size: 18px;
	}
}
.header__nav-link,
.header__nav-item {
	line-height: 1.2;
}

.section-35__desc br {
	display: none;
}
@media (max-width: 89.9988em) {
	.section-35__photo {
		width: 90px;
		height: 110px;
	}
	.section-35__slide-inner {
		grid-template-columns: 510fr 530fr;
	}
	.section-35__desc {
		font-size: 16px;
	}
	.section-35__item {
		padding: 20px;
	}
	.section-35__slide {
		padding: 25px;
	}
	.section-35__slide-inner {
		align-items: stretch;
	}
	.section-35__item-text br {
		display: none;
	}
	.section-35__grid {
		height: calc(100% - 110px);
	}
}
@media (max-width: 61.9988em) {
	.section-35__grid {
		height: auto;
	}
	.section-35__slide-inner {
		-ms-grid-columns: 1fr;
		grid-template-columns: 1fr;
	}
}
@media (max-width: 29.9988em) {
	.section-35__desc {
		font-size: 14px;
	}
	.section-35__slide {
		padding: 15px;
	}
	.section-35__item {
		padding: 15px;
	}
	.section-project__aside {
		padding: 15px;
	}
	.section-project__aside-title {
		font-size: 19px;
	}
	.section-project__aside-text {
		margin-top: 5px;
	}
	.section-project__aside {
		gap: 20px;
	}
}

/* section-49 — галерея 3×2 под секцией 9 */
.section-49 {
	padding-bottom: 130px;
}

.section-49__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, minmax(280px, 1fr));
	gap: 20px;
}

.section-49__item {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 0;
	height: 100%;
}

.section-49__item:not(a) {
	cursor: default;
	pointer-events: none;
}

.section-49__item._adaptive-pic {
	padding-bottom: 80%;
}

.section-49__item_tall-left {
	grid-column: 1;
	grid-row: 1 / 3;
}

.section-49__item_tall-left::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

.section-49__item_tall-left > img {
	z-index: 0;
}

.section-49__item:nth-child(2) {
	grid-column: 2;
	grid-row: 1;
}

.section-49__item:nth-child(3) {
	grid-column: 2;
	grid-row: 2;
}

.section-49__item_tall-right {
	grid-column: 3;
	grid-row: 1 / 3;
}

@media (max-width: 89.9988em) {
	.section-49 {
		padding-bottom: 80px;
	}

	.section-49__grid {
		grid-template-rows: repeat(2, minmax(220px, 1fr));
		gap: 15px;
	}
}

@media (max-width: 47.9988em) {
	.section-49 {
		padding-bottom: 50px;
	}

	.section-49__grid {
		gap: 10px;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
	}
	.section-49__item._adaptive-pic {
		padding-bottom: 50%;
		min-height: 120px;
	}
	.section-49__item_tall-left > img {
		object-position: 100% 40%;
	}
	.section-49__item_tall-left,
	.section-49__item_tall-right {
		grid-column: -1/1;
		grid-row: auto;
	}

	.section-49__item:nth-child(2),
	.section-49__item:nth-child(3) {
		grid-column: auto;
		grid-row: auto;
	}
}
.section-35__name:hover {
	color: #35453b;
}
.footer__email {
	text-decoration: underline;
	text-underline-offset: 5px;
	align-self: flex-end;
	padding-right: 20px;
}
.footer__email:hover {
	color: #ffeec9 !important;
}
@media (max-width: 89.9988em) {
	.footer__email {
		padding-right: 6px;
	}
}
@media (max-width: 61.9988em) {
	.footer__email {
		padding-right: 16px;
	}
}
@media (max-width: 47.9988em) {
	.footer__email {
		width: 100%;
		flex-grow: 1;
		text-align: right;
		padding: 0;
	}
	.footer__cell_logo {
		flex-wrap: wrap;
	}
}
.section-10__address {
	margin-top: 30px;
	display: flex;
	gap: 15px;
	align-items: flex-start;
}
.section-10__address svg {
	margin-top: 3px;
	flex-shrink: 0;
}
@media (max-width: 47.9988em) {
	.section-10__address svg {
		width: 30px;
		height: 30px;
	}
	.section-10__address {
		gap: 10px;
		font-size: 18px;
	}
}
