/* USER VARIABLES SECTION */
:root {
    --accent: #A47D46;
    --black: #1A1A1A;
    --gray: #848484;
    --gap: 30rem;
    --indent: 24rem;
    --indentmin: calc(var(--indent) / 2);
    --indentbig: calc(var(--indent) * 2);
    --heading1: 70rem;
    --heading2: 45rem;
    --heading3: 32rem;
    --heading4: 24rem;
    --bodyL: 18rem;
    --bodyM: 16rem;
    --bodyS: 14rem;
    --bodyXS: 12rem;
}

/* FONTS LOAD SECTION */
@font-face {
    src: url("../fonts/TildaSans-Regular.woff2") format("woff2");
    font-family: "tilda-regular";
    font-display: swap;
}

@font-face {
    src: url("../fonts/TildaSans-Medium.woff2") format("woff2");
    font-family: "tilde-medium";
    font-display: swap;
}

@font-face {
    src: url("../fonts/TildaSans-Semibold.woff2") format("woff2");
    font-family: "tilda-semibold";
    font-display: swap;
}

@font-face {
    src: url("../fonts/PF-Din-Medium.woff2") format("woff2");
    font-family: "pfdin-medium";
    font-display: swap;
}

/* GENERAL CSS SETTINGS */
* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #eee;
}

*::-webkit-scrollbar {
    height: 6rem;
    width: 6rem;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 5rem;
}

/* FIX: var(--gray_text) в файле не определён; чтобы не ломать плейсхолдер — используем --gray */
::placeholder {
    color: var(--gray);
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

button {
    border: none;
    outline: none;
    font-family: 'tilda-semibold', sans-serif;
    font-size: var(--bodyL);
}

input[type="number"] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    display: none;
}

input,
textarea {
    width: 100%;
    outline: none;
    background-color: #f4f4f4;
    height: 60rem;
    font-weight: 400;
    font-style: normal;
    padding: var(--indentmin);
    box-shadow: none;
    transition: border .4s ease;
    font-family: 'tilda-regular', sans-serif;
    border: 1rem solid #E0E0E0;
    color: #9c9c9c;
}

.input-dark {
    background-color: #232323;
    border-color: transparent;
    color: #fff;
}

.input-dark::placeholder {
    color: #656565;
}

textarea {
    height: 160rem;
    resize: none;
}

html {
    font-size: calc(1vw / 18);
}

body {
    font-family: 'tilda-regular', sans-serif;
    font-size: var(--bodyL);
    line-height: 1;
    color: var(--black);
    position: relative;
    overflow-x: hidden;
    background-color: #fff;
}

body.overflow {
    overflow: hidden;
    position: relative;
}

img {
    max-width: 100%;
    pointer-events: none;
    user-select: none;
    object-fit: cover;
    object-position: center;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.heading {
    font-weight: normal;
    font-style: normal;
    font-family: 'tilda-medium', sans-serif;
    margin-bottom: var(--indent);
}

.heading span {
    color: var(--accent);
}

h1,
.h1,
.heading {
    font-size: var(--heading1);
}

h2,
.h2 {
    font-size: var(--heading2);
}

h3,
.h3 {
    font-size: var(--heading3);
}

h4,
.h4 {
    font-size: var(--heading4);
}

h5,
.h5 {
    font-size: var(--bodyL);
}

h6,
.h6 {
    font-size: var(--bodyM);
}

a {
    color: inherit;
    display: inline;
    transition: color .4s ease;
    text-decoration: none;
    position: relative;
}

a span[data-hover] {
    transition: transform .4s ease;
    transform: translateY(0);
    display: inline-block;
}

a span[data-hover]::before {
    content: attr(data-hover);
    position: absolute;
    top: 100%;
}

b,
strong,
.bold {
    font-family: 'tilda-semibold', sans-serif;
}

p {
    margin-bottom: var(--indent);
}

ul,
ol {
    padding-left: var(--gap);
    margin-bottom: var(--indent);
}

svg {
    transition: stroke .4s ease, fill .4s ease;
    flex: 0 0 auto;
    fill-rule: evenodd;
    clip-rule: evenodd;
}

/* USER STYLES */
.container {
    max-width: 1400rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gap);
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dark {
    background-color: var(--black);
    color: #fff;
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    z-index: 1;
    padding: 100rem 0;
}

.description {
    line-height: 1.4;
}

.img-background {
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

.btn {
    font-family: 'tilda-semibold', sans-serif;
    background-color: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20rem 40rem;
    width: 100%;
    max-width: max-content;
    min-height: 60rem;
    cursor: pointer;
    transition: color .4s ease, background-color .4s ease, border-color .4s ease;
    position: relative;
    border: 1rem solid var(--accent);
    text-align: center;
}

.btn.white {
    border-color: #fff;
}

.btn.accent {
    color: #fff;
    background-color: var(--accent);
}

.btn.black {
    color: var(--black);
}

.btn.min {
    padding: 12rem 24rem;
    min-height: 52rem;
}

.sticky {
    position: sticky;
    top: var(--indent);
}

/* header */
.header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 11;
}

.header.fixed {
    position: fixed;
}

.header.inner {
    position: sticky;
}

.header.inner>* {
    background-color: var(--black);
}

.header.fixed.inner {
    position: sticky;
}

.header.fixed .header__top,
.header.fixed .header__bottom {
    background-color: var(--black);
}

.header.hidden .header__bottom {
    transform: translateY(-100%);
}

.header__top {
    padding: 30rem 0 20rem;
    border-bottom: 1rem solid rgba(255, 255, 255, .2);
    transition: background-color .4s ease;
    position: relative;
    z-index: 1;
}

.header__logo img {
    width: 273rem;
}

.header__nav ul {
    display: flex;
    justify-content: center;
    gap: var(--gap);
    font-family: 'tilda-semibold', sans-serif;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.header__nav a {
    color: #fff;
}

.header__contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    font-family: 'tilda-semibold', sans-serif;
}

.header__phone {
    font-size: 20rem;
    color: #fff;
}

.header__bottom {
    padding: 30rem 0 20rem;
    transition: transform .4s ease, background-color .4s ease;
}

.header__bottom-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.bar-menu {
    display: none;
}

/* hero */
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: calc(120rem * 1.5) 0 60rem;
    gap: var(--gap);
}

.hero__title {
    font-size: 120rem;
    margin-top: 60rem;
    font-family: "pfdin-medium", sans-serif;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: var(--heading3);
    margin-bottom: var(--indent);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.hero__buttons .btn {
    min-width: 210rem;
}

/* about */
.about.hero .description {
    width: 70%;
}

.about__wrapper {
    display: flex;
    flex-direction: column;
    gap: 90rem;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    align-items: center;
}

.about__grid:nth-child(even) .about__content {
    order: 1;
}

.about.full .about__grid:nth-child(even) .about__content {
    margin-right: auto;
    margin-left: 0;
}

.about.full .about__content {
    max-width: 650rem;
    width: 100%;
    margin-left: auto;
}

.about__image img {
    width: 100%;
}

.about__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.about__buttons .btn {
    min-width: 220rem;
}

/* benefits */
.benefits {
    padding-top: 70rem;
    margin-top: 100rem;
    border-top: 1rem solid rgba(255, 255, 255, .2);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    text-align: center;
    padding-top: var(--indent);
}

.benefit {
    display: flex;
    flex-direction: column;
}

.benefit__icon {
    border: 1rem solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    width: 52rem;
    height: 52rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0 auto var(--indent);
}

.benefit__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    background-color: var(--accent);
    width: 34rem;
    height: 34rem;
}

/* directions */
.directions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 70rem;
}

.direction {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--indent);
}

.direction__image {
    width: 100%;
}

.direction__image img {
    width: 100%;
    height: 580rem;
    display: block;
}

/* background-block */
.background-block {
    min-height: 500rem;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.background-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    opacity: .4;
    z-index: -1;
}

.background-block__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap);
    width: 70%;
    margin: 0 auto;
}

.background-block__title img {
    width: 48rem;
    display: block;
}

/* calls */
.calls {
    background-color: var(--accent);
    padding: 60rem 0;
}

.calls__buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--indentbig);
    width: 85%;
    margin: 0 auto;
}

.calls__buttons .btn {
    max-width: 100%;
}

.calls__buttons .btn img {
    width: 36rem;
    height: 36rem;
    margin-right: 10rem;
    transition: filter .4s ease;
}

/* portfolio */
.portfolio__subtitle {
    font-size: var(--heading4);
    width: 50%;
    margin: 0 auto;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10rem;
    margin-top: 100rem;
}

.portfolio__item {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.portfolio__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(152deg, rgba(0, 0, 0, 0) 26%, var(--black) 92%);
}

.portfolio__image {
    height: 390rem;
    z-index: -1;
}

.portfolio__image img {
    height: 100%;
    width: 100%;
}

.portfolio__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--indent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.portfolio__name {
    font-size: 40rem;
    font-family: 'tilda-semibold', sans-serif;
}

.portfolio__desc {
    margin-top: 10rem;
    font-size: var(--heading4);
}

/* comparisons */
.comparisons__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-top: 70rem;
}

.twentytwenty-container {
    margin-bottom: var(--indent);
}

.twentytwenty-container img {
    height: 390rem;
    width: 100%;
}

.comparison__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--indent);
    text-align: center;
}

/* reviews */
.reviews:not(.dark) {
    background-color: #F3F3F3;
}

.review {
    min-height: 150rem;
    width: 100%;
    background-color: #fff;
    padding: var(--indent);
    display: flex;
}

.review img {
    width: 100%;
}

.reviews-swiper {
    position: relative;
    z-index: 2;
    overflow-x: hidden;
    margin-top: 70rem;
}

.reviews-swiper .swiper-slide {
    overflow: visible;
    height: auto;
    display: flex;
    width: 540rem;
}

/* advantages */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60rem;
    gap: var(--gap);
    counter-reset: step;
}

.advantage {
    background-color: #fff;
    color: var(--black);
    padding: 30rem;
    counter-increment: step;
}

.advantage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30rem;
}

.advantage-top::after {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 40rem;
    height: 40rem;
    background-color: #ededed;
    font-size: var(--bodyS);
    font-family: "tilda-semibold", sans-serif;
}

.advantage-img {
    width: 40rem;
    height: 40rem;
    padding: 8rem;
    background-color: #E1C150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-img img {
    width: 20rem;
    height: 20rem;
}

/* teams */
.teams__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 60rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10rem;
    padding: 0 25rem;
}

.team-img {
    height: 380rem;
    margin: 0 -25rem 10rem;
}

.team-img img {
    width: 100%;
    height: 100%;
}

.team-title {
    margin-bottom: 10rem;
}

.team-info {
    margin-top: 10rem;
    text-align: center;
}

.team-info a {
    color: #fff;
    margin-bottom: 10rem;
}

/* modal */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    background: rgba(106, 106, 106, .9);
    z-index: 9999;
    transition: visibility 0s .25s, opacity .25s;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.modal__body {
    position: relative;
    margin: 0 var(--indent);
    max-height: 100%;
    width: 800rem;
    opacity: 0;
    background-color: #fff;
    transition: opacity 0s .25s, opacity .25s;
}

.modal__body.modal__min {
    width: 480rem;
}

.modal__body.modal__min .modal__close {
    color: var(--black);
}

.modal.show .modal__body {
    opacity: 1;
    transition: opacity 0s 0s, opacity .25s;
}

.modal__inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal__image img {
    width: 100%;
    height: 360rem;
}

.modal__inner-wrap {
    padding: 40rem 60rem;
    background-color: #fff;
}

.modal__close {
    position: absolute;
    top: 10rem;
    right: 10rem;
    font-size: 60rem;
    color: #fff;
    z-index: 2;
    cursor: pointer;
    transition: color .4s ease;
}

.modal-heading {
    width: 80%;
    margin: 0 auto;
}

.modal__text {
    margin-bottom: var(--indentbig);
}

/* form */
.form-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20rem;
}

.form-wrap>* {
    width: 100%;
}

.form-wrap .btn {
    padding: 15rem;
    max-width: 100%;
}

.form-agree {
    font-size: var(--bodyS);
    margin-top: 40rem;
}

.form__item.full {
    grid-column: 1 / -1;
}

.form-block {
    background-color: #fff;
    padding: 30rem;
    color: var(--black);
    width: 480rem;
    margin-left: auto;
}

.form-block .btn {
    max-width: max-content;
    min-width: 215rem;
    margin-left: auto;
    margin-right: auto;
}

.form-search {
    display: flex;
    gap: 10rem;
}

.form-search .btn {
    padding: 10rem;
    max-width: 60rem;
    height: 60rem;
}

.form-search img {
    width: 20rem;
    height: 20rem;
}

.form-search input {
    width: 420rem;
}

/* footer */
.footer {
    background-color: var(--black);
    padding: 70rem 0;
    color: #fff;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.footer__logo img {
    width: 273rem;
    margin-bottom: var(--indent);
}

.footer__block {
    display: flex;
    flex-direction: column;
    gap: var(--indent);
}

.footer__address,
.footer__hours {
    color: var(--gray);
    line-height: 1.3;
}

.footer__block b,
.footer__block strong {
    color: #fff;
}

.footer__menu {
    list-style: none;
    padding: 0;
    grid-column: span 2;
    height: max-content;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    column-count: 2;
}

.footer__menu li {
    margin-bottom: var(--indentmin);
    break-inside: avoid;
}

.footer__menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20rem;
    font-family: 'tilda-semibold', sans-serif;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.footer__contacts .btn {
    margin-top: var(--indent);
}

.footer__phone,
.footer__email {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 20rem;
    font-family: 'tilda-semibold', sans-serif;
}

.footer__map img {
    width: 100%;
    height: 250rem;
    margin: var(--indent) 0;
}

.footer__rate img {
    width: 100%;
    height: 45rem;
}

.idea {
    display: flex;
    align-items: center;
    gap: 22rem;
    margin-bottom: 36rem;
    background-color: #212121;
    padding: 30rem;
    width: 820rem;
}

.idea-img {
    width: 68rem;
    height: 68rem;
    flex: 0 0 auto;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.idea-img img {
    width: 30rem;
    height: 30rem;
}

.idea-title {
    font-size: 40rem;
    margin-bottom: 10rem;
}

.block__info-grid:not(.full) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.block__info .form-search {
    margin-top: 60rem;
}

.block-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.block-info__item .bold {
    margin-top: 10rem;
    font-size: 20rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap) 0;
    margin-bottom: 60rem;
}

.tag {
    color: #fff;
    opacity: 0.3;
    padding: 0 var(--gap);
    border: 1rem solid #fff;
    border-top: none;
    border-bottom: none;
}

.tag.active {
    opacity: 1;
}

/* catalog */
.catalogs-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60rem var(--gap);
}

.catalogs-wrap.swiper {
    display: flex;
    margin-top: 60rem;
}

.catalog {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.catalog-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380rem;
    margin-bottom: 20rem;
}

.catalog-image img {
    height: 100%;
    width: 100%;
}

.catalog-title {
    font-size: 20rem;
    color: #fff;
}

.catalog-size {
    font-size: var(--bodyM);
    color: var(--accent);
}

.catalog-color {
    font-size: var(--bodyS);
    padding: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--black);
    width: max-content;
}

.catalog-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20rem;
}

.catalog-price {
    margin-top: 10rem;
    font-size: 20rem;
}

.catalogs-swiper {
    position: relative;
}

/* product */
.product-tempers {
    display: flex;
    flex-direction: column;
    gap: 20rem;
    padding-top: 20rem;
}

.product-temper {
    display: flex;
    gap: 10rem var(--gap);
}

.product-temper span {
    /* width: 120rem; */
}

.product-temper b {
    font-size: 20rem;
}

.product-wrap {
    display: flex;
    gap: var(--gap);
}

.product-wrap>* {
    width: 50%;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding-bottom: 85rem;
}

.product-info__top {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 50rem;
}

.product-description {
    font-size: 20rem;
    margin: 15rem 0;
}

.product-price {
    font-size: 28rem;
}

.product-info__bottom .btn {
    margin-top: 50rem;
}

.product-images img {
    width: 100%;
    height: 100%;
}

.swiper-product-big .product-image {
    height: 585rem;
}

.swiper-product-small {
    margin-top: 20rem;
}

.swiper-product-small .product-image {
    height: 66rem;
    cursor: pointer;
}

/* swiper */
.swiper-button {
    width: 40rem;
    height: 40rem;
    background-color: var(--accent);
    color: #fff;
    z-index: 1;
}

.swiper-button::after {
    font-size: 20rem;
}

.swiper-button-prev {
    left: -60rem;
}

.swiper-button-next {
    right: -60rem;
}

.swiper-product-big .swiper-button-prev {
    left: 20rem;
}

.swiper-product-big .swiper-button-next {
    right: 20rem;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60rem;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--gap)/2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    width: 24rem;
    height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.pagination a {
    opacity: 0.3;
    color: #fff;
}

.pagination .page-numbers.current {
    opacity: 1;
    pointer-events: none;
    color: #fff;
}

.next.page-numbers,
.prev.page-numbers {
    background-color: var(--accent);
    align-items: start;
    opacity: 1;
    font-size: 0;
    width: 24rem;
    height: 24rem;
}

.next.page-numbers::before,
.prev.page-numbers::before {
    content: '›';
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    font-size: 20rem;
    color: #fff;
    position: relative;
    top: 10rem;
}

.prev.page-numbers::before {
    content: '‹';
}

/* contact */
.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.contact.full {
    display: flex;
    flex-direction: column;
}

.contact.full .form-block {
    width: 100%;
}

.contact.full .form-wrap {
    display: flex;
}

.contact.full .form-block .btn {
    margin-left: auto;
    margin-right: 0;
}

.contact.full .text-center {
    text-align: left;
}

.contact.full .form-agree br {
    display: none;
}

.contact.full .form-wrap>*:has(.btn) {
    max-width: max-content;
    min-width: 215rem;
}

.contact-item .bold {
    margin-top: 20rem;
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.contact-item a {
    color: #fff;
}

.contact-wrap {
    margin-top: 60rem;
    display: flex;
    flex-direction: column;
    gap: 40rem;
}

.contact-address br {
    display: none;
}

.quiz__text {
    margin-top: 70rem;
}

/* map */
#map {
    width: 100%;
    height: 100%;
}

#map>* {
    height: 100%;
}

/* news */
.news__item-title {
    font-size: 22rem;
    color: #fff;
}

.news__item-text p {
    margin-bottom: 0;
}

.news-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--gap)*2) var(--gap);
}

.news__item {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.news__item-info {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap)/2);
}

.news__item-image {
    width: 100%;
    height: 320rem;
}

.news__item-image img {
    width: 100%;
    height: 100%;
}

.news-info img {
    width: 100%;
    height: 670rem;
}

.news-info__date {
    margin-bottom: 20rem;
}

.news-info__text {
    margin-top: 20rem;
}

.news-info__text img {
    margin-bottom: 20rem;
}

.news-swiper {
    position: relative;
    margin-top: 60rem;
}

/* faq */
.faq-wrap {
    display: flex;
    flex-direction: column;
    gap: 20rem;
}

.faq__item {
    background-color: #212121;
}

.faq__item-title {
    font-size: 20rem;
    padding: 30rem;
    border: 1rem solid transparent;
    transition: border-color .4s ease;
}

.faq__item-text .description {
    padding: 30rem;
}

.faq__item.active .faq__item-text {
    border-top: 1rem solid #3c3c3c;
}

/* table */
.wp-block-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--bodyM);
    min-width: 600rem;
}

.wp-block-table table th,
.wp-block-table table td {
    padding: 24rem 20rem;
    border: 1rem solid #3c3c3c;
    text-align: left;
}

.wp-block-table table th {
    font-size: var(--heading4);
    font-family: "tilda-semibold", sans-serif;
}

.wp-block-table thead {
    border-bottom: none;
}

/*load*/
.load {
    border: 6rem solid #EAF0F6;
    border-top: 6rem solid var(--accent);
    border-radius: 50%;
    width: 40rem;
    height: 40rem;
    animation: spinner 1s linear infinite;
    padding: 0;
    display: flex;
}

.load.center {
    margin: 0 auto;
}

.load-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.load:not(.load-lazy)>* {
    display: none;
}

.load-lazy>* {
    opacity: 0;
    visibility: hidden;
}

.load-img {
    background-color: var(--black);
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-center { text-align: center; }
.gray { color: var(--gray); }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.mt-auto { margin-top: auto; }
.upper { text-transform: uppercase; }
.pfdin { font-family: "pfdin-medium", sans-serif; }
.-m { font-size: var(--bodyM); }
.-s { font-size: var(--bodyS); }
.-xs { font-size: var(--bodyXS); }
.align-center { align-items: center; }
.c-accent { color: var(--accent); }

.js-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-body { display: none; }

.toggle-str {
    width: 40rem;
    height: 40rem;
    position: relative;
    background-color: var(--accent);
}

.toggle-str::before,
.toggle-str::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8rem;
    height: 2rem;
    background-color: #fff;
    transition: transform .4s ease;
}

.toggle-str::before { transform: translate(-80%, -50%) rotate(45deg); }
.toggle-str::after { transform: translate(-20%, -50%) rotate(-45deg); }
.toggle.active .toggle-str::before { transform: translate(-80%, -50%) rotate(-45deg); }
.toggle.active .toggle-str::after { transform: translate(-20%, -50%) rotate(45deg); }

/* =========================================================
   CUSTOM OVERRIDES (CLEAN) — вычищено от дублей/конфликтов
   ========================================================= */

/* product: short desc + tags */
.product-images .product-short-description {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    line-height: 1.6;
}

.product-images .product-tags-left {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--bodyS);
    line-height: 1.5;
}

.product-images .product-tags-title {
    font-size: var(--bodyS);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.product-images .product-tags-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0; /* финально: без доп.пробелов вокруг разделителя */
    font-size: var(--bodyXS);
}

.product-images .product-tag {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.product-images .product-tag span { margin-right: 2rem; }

.product-images .product-tags-sep {
    color: var(--accent); /* финально: "/" того же цвета, что теги */
    margin: 0;
}

/* breadcrumb */
.gm-breadcrumb {
    font-size: var(--bodyS);
    margin-bottom: 24rem;
    color: rgba(255, 255, 255, 0.7);
}

.gm-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color .3s ease;
    font-weight: 500;
}

.gm-breadcrumb a:hover { color: #fff; }

.gm-breadcrumb .sep {
    margin: 0 6rem;
    color: rgba(255, 255, 255, 0.45);
}

.gm-breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

/* catalog card: hierarchy */
.catalog-title {
    font-size: 22rem;
    line-height: 1.4;
    margin-bottom: 4rem;
}

.catalog-size {
    font-size: var(--bodyS);
    margin-bottom: 4rem;
}

.catalog-size.catalog-size--empty {
    color: rgba(255, 255, 255, 0.45);
}

.catalog-color {
    font-size: var(--bodyXS);
    padding: 6rem 12rem;
    border-radius: 2rem;
    border: 1rem solid rgba(255, 255, 255, 0.4);
    background-color: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6rem;
}

.catalog-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.catalog-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

/* GenerateBlocks: общий ритм внутри dark description */
.section.dark .description .gbp-section,
.section.dark .description .gb-accordion,
.section.dark .description .gbp-overlay-panel {
    margin: 0 0 40px;
}

.section.dark .description .gb-text{
    color:#f5f5f5;
    font-size:16px;
    line-height:1.6;
}

.section.dark .description h1.gb-text,
.section.dark .description h2.gb-text{
    font-size:24px;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin:0 0 16px;
}

.section.dark .description img[class*="gb-media-"]{
    display:block;
    max-width:100%;
    height:auto;
}

.section.dark .description .gb-accordion__toggle{
    background:#1a1a1a;
    color:#f5f5f5;
    border:1px solid #333;
    padding:14px 18px;
}

.section.dark .description .gb-accordion__content{
    background:#111;
    border:1px solid #333;
    border-top:0;
    padding:16px 18px 18px;
}

.section.dark .description .gbp-overlay-panel{
    background:#111;
    border:1px solid #333;
}

/* PORTFOLIO GRID — ТОЛЬКО точечно по id блока (убрано всё глобальное .gbp-section__inner) */
.gb-element-1cb88f39{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 2.25rem !important;
    row-gap: 3rem !important;
    align-items: start !important;
}

.gb-element-1cb88f39 > .gbp-overlay-panel{
    width: 100% !important;
    max-width: 450px !important;
    justify-self: center !important;
    box-sizing: border-box !important;
}

.gb-element-1cb88f39 .gm-portfolio-img{
    width: 333px !important;
    height: 416px !important;
    object-fit: cover !important;
    object-position: 50% 35% !important;
    display: block !important;
    margin: 0 auto !important;
}

/* если у вас есть второй конкретный блок GB — оставляем точечно */
.section.dark .description .gbp-section__inner.gb-element-f226a9f9{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 2.25rem !important;
    row-gap: 3rem !important;
    align-items: stretch !important;
}

.section.dark .description .gbp-section__inner.gb-element-f226a9f9 > .gbp-overlay-panel{
    height: 100% !important;
}

/* footer idea text */
.footer .idea-text{
    color:#a47d46;
    font-size:18px;
    line-height:1.55;
    text-shadow:0 0 12px rgba(164,125,70,.25);
}

/* contacts blocks */
.section.dark .contact-left{
    border-radius: 0 !important;
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
    padding: 48px 48px 40px;
}

.section.dark .contact{
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0;
}

.section.dark .contact-right iframe{ border-radius: 0 !important; }

.section.dark .contact-left .-m{ color: rgba(255,255,255,.68); }

.section.dark .block-info{
    background: rgba(255,255,255,.03);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
    border-radius: 0 !important;
    padding: 28px 32px;
}

.section.dark .block-info .block-info__item{ padding: 14px 0; }

.section.dark .block-info .block-info__item + .block-info__item{
    border-top: 1px solid rgba(255,255,255,.06);
}

/* PORTFOLIO TOC */
.pf-toc{
    position:relative;
    padding:64px 0 72px;
}

.pf-toc-title{
    margin:0 0 36px;
    font-size:clamp(30px,4vw,46px);
    text-transform:uppercase;
    letter-spacing:.1em;
}

.pf-toc-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:32px;
}

@media (max-width:1024px){
    .pf-toc-grid{
        grid-template-columns:1fr;
        gap:28px;
    }
}

.pf-card{
    display:flex;
    flex-direction:column;
    background:rgba(0,0,0,.28);
    border:1px solid rgba(164,125,70,.45);
    box-shadow:0 22px 48px rgba(0,0,0,.45);
    transition:border-color .3s ease;
}

.pf-card:hover{ border-color:rgba(164,125,70,.85); }

.pf-card-media{
    display:block;
    aspect-ratio:16 / 10;
    overflow:hidden;
    background:#000;
}

.pf-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform:scale(1.02);
    transition:transform .7s ease, filter .7s ease;
    filter:saturate(.92) contrast(1.02);
}

.pf-card:hover .pf-card-media img{
    transform:scale(1.07);
    filter:saturate(1) contrast(1.08);
}

.pf-card-body{
    padding:22px 22px 20px;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.55) 30%,
        rgba(0,0,0,.92) 100%
    );
    display:flex;
    flex-direction:column;
    height:auto;
}

.pf-card-body h2{
    margin:0 0 14px;
    font-size:19px;
    line-height:1.25;
    text-transform:uppercase;
    letter-spacing:.1em;
}

.pf-card-body p{
    margin:0 0 14px;
    font-size:15px;
    line-height:1.6;
    color:rgba(255,255,255,.88);
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.pf-btn{
    margin-top:0;
    align-self:flex-start;
    padding:9px 16px;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:11px;
    color:#fff;
    text-decoration:none;
    border:1px solid rgba(164,125,70,.7);
    background:rgba(0,0,0,.25);
    transition:background .25s ease, transform .25s ease, border-color .25s ease;
}

.pf-btn:hover{
    background:rgba(164,125,70,.12);
    border-color:rgba(164,125,70,1);
    transform:translateY(-1px);
}

/* footer map/rate: зона клика + возврат кликов по img */
.footer__map a,
.footer__rate a{
    display: block;
    line-height: 0;
}

.footer__map img,
.footer__rate img{
    display: block;
    pointer-events: auto;
    margin: 0;
}

.footer__map{ margin: var(--indent) 0; }
.footer__rate{ margin-top: 0; }

/* rqchat embed */
.gm-rqchat-embed,
.gm-rqchat-embed iframe{
    display:block;
    width:100%;
    border:0;
}
.gm-rqchat-embed{ margin:0; padding:0; }

.rqchat-corridor{
    width: 100%;
    background: #111;
    padding: 22rem 0;
}

.rqchat-corridor__wrap{
    width: 80vw;
    max-width: 1400rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16rem;
}

.rqchat-corridor__iframe{
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
    background: transparent;
}

@media (max-width: 980px){
    .rqchat-corridor__wrap{
        width: 100%;
        padding: 0 20rem;
    }
}

/* overlay close — одна версия (дубликаты удалены) */
.gbp-overlay-panel__close{
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;

    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(0,0,0,.45);
    border:0;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;
    line-height:1;
    box-shadow:0 8px 20px rgba(0,0,0,0.35);
    transition: all .25s ease;
}

.gbp-overlay-panel__close:hover{
    transform: scale(1.08);
    background: #000000;
}

.gbp-overlay-panel__close .gb-shape{
    display:flex;
    align-items:center;
    justify-content:center;
}

.gbp-overlay-panel__close svg{
    width:14px;
    height:14px;
    display:block;
}

/* GenerateBlocks Overlay Popup — GM */
.gb-overlay__content{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    box-sizing:border-box;
}

.gb-overlay__content > .gbp-overlay-panel{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;

    background:#fff !important;
    padding:22px !important;
    border-radius:28px !important;
    box-shadow:0 30px 90px rgba(0,0,0,.85) !important;

    max-width:calc(100vw - 48px);
    max-height:calc(100vh - 48px);
}

.gm-gb-popup{
    width:calc(100vw - 92px);
    max-width:720px;

    background:#0b0b0b;
    color:#fff;

    border-radius:20px;
    overflow:hidden;

    position:relative;
    box-shadow:0 30px 80px rgba(0,0,0,.65);

    background-clip:padding-box;
    transform:translateZ(0);
    -webkit-transform:translateZ(0);
    -webkit-mask-image:-webkit-radial-gradient(white, black);

    max-height:calc(100vh - 96px);
    display:flex;
    flex-direction:column;

    font-size: 17px !important;
    line-height: 1.5 !important;
}

.gm-gb-popup > :first-child{
    width:100%;
    flex:0 0 auto;
    overflow:hidden;

    height:48vh;
    max-height:520px;
    min-height:260px;
}

.gm-gb-popup > :first-child img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.gm-gb-popup > :nth-child(2){
    flex:1 1 auto;
    padding:16px 22px 16px;
    text-align:center;
    overflow:hidden;
}

.gm-gb-popup h1,
.gm-gb-popup h2,
.gm-gb-popup h3{
    margin:0 0 8px;
    line-height:1.15;
}

.gm-gb-popup p,
.gm-gb-popup .gb-text,
.gm-gb-popup .gb-block-text{
    margin:0 0 10px;
    line-height:1.5 !important;
    font-size:17px !important;
    opacity:.92;
}

.gm-gb-popup h1{ font-size: 24px !important; }
.gm-gb-popup h2{ font-size: 21px !important; }
.gm-gb-popup h3{ font-size: 19px !important; }

.gm-gb-popup .gb-icon-text,
.gm-gb-popup .gb-icon-text span{
    font-size: 16px !important;
}

/* CF7 in popup */
.gm-gb-popup .wpcf7{ margin:0 !important; }

.gm-gb-popup .wpcf7-form{
    width:100%;
    max-width:360px;
    margin:0 auto !important;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.gm-gb-popup .wpcf7-form p{
    margin:0 !important;
    padding:0 !important;
}

.gm-gb-popup .wpcf7,
.gm-gb-popup .wpcf7-form,
.gm-gb-popup .wpcf7-form *{
    font-size:16px !important;
    line-height:1.45 !important;
    box-sizing:border-box;
}

.gm-gb-popup .wpcf7-form label{
    display:block !important;
    margin:0 0 4px !important;
    font-size:17px !important;
    color:rgba(255,255,255,.92) !important;
}

.gm-gb-popup .wpcf7-form input[type="tel"],
.gm-gb-popup .wpcf7-form input[type="text"],
.gm-gb-popup .wpcf7-form input[type="email"]{
    width:100% !important;
    margin:0 !important;
    padding:12px 16px !important;
    border-radius:999px !important;

    border:1px solid rgba(255,255,255,.25) !important;
    background:rgba(255,255,255,.06) !important;
    color:#fff !important;

    outline:none !important;
    -webkit-appearance:none;
    appearance:none;
}

.gm-gb-popup .wpcf7-form input::placeholder{
    font-size:16px !important;
    color:rgba(255,255,255,.6) !important;
}

.gm-gb-popup .wpcf7-form input[type="submit"]{
    width:100% !important;
    margin:0 !important;

    padding:12px 16px !important;
    border-radius:999px !important;

    background:#a47d46 !important;
    border:0 !important;
    color:#fff !important;

    font-weight:600 !important;
    cursor:pointer;
}

.gm-gb-popup .wpcf7-form input[type="submit"]:hover{
    filter:brightness(1.05);
}

.gm-gb-popup .wpcf7-response-output{
    margin:0 !important;
    padding:10px 12px !important;
    width:100% !important;
    font-size:14px !important;
    line-height:1.35 !important;
    border-radius:12px !important;
}

.gm-gb-popup .wpcf7-not-valid-tip{
    margin:4px 0 0 !important;
    font-size:13px !important;
    line-height:1.3 !important;
}

.gm-gb-popup .wpcf7-spinner{ display:none !important; }

/* popup responsive */
@media (max-height:760px){
    .gb-overlay__content{ padding:16px; }
    .gb-overlay__content > .gbp-overlay-panel{
        padding:16px !important;
        border-radius:24px !important;
        max-width:calc(100vw - 32px);
        max-height:calc(100vh - 32px);
    }

    .gm-gb-popup{ max-height:calc(100vh - 64px); }

    .gm-gb-popup > :first-child{
        height:44vh;
        max-height:460px;
        min-height:220px;
    }

    .gm-gb-popup > :nth-child(2){
        padding:14px 16px 14px;
    }
}

@media (max-width:768px){
    .gb-overlay__content{ padding:14px; }
    .gb-overlay__content > .gbp-overlay-panel{
        padding:14px !important;
        border-radius:22px !important;
        max-width:calc(100vw - 28px);
        max-height:calc(100vh - 28px);
    }

    .gm-gb-popup{
        width:calc(100vw - 56px);
        border-radius:18px;
        max-height:calc(100vh - 56px);
    }

    .gm-gb-popup > :first-child{
        height:46vh;
        max-height:520px;
        min-height:240px;
    }

    .gm-gb-popup > :nth-child(2){
        padding:14px 14px 14px;
    }

    .gm-gb-popup .wpcf7-form{ max-width:340px; }
}

/* portfolio: img.gb-media-* square crop */
.gm-portfolio-card img[class^="gb-media-"],
.gm-portfolio-card img[class*=" gb-media-"]{
    width:300px !important;
    height:300px !important;
    object-fit:cover !important;
    display:block !important;
    max-width:none !important;
}

.gm-portfolio-card{ text-align:center; }

/* social icons in header */
.header__contacts .gm-social-menu a,
.header__bottom .gm-social-menu a,
.gm-social-menu a.gm-tg,
.gm-social-menu a.gm-wa,
.gm-social-menu a.gm-mail{
    color: #ffffff !important;
    border-color: rgba(255,255,255,.55) !important;
    background: rgba(0,0,0,.18);
}

.header__contacts .gm-social-menu a:hover,
.header__bottom .gm-social-menu a:hover{
    border-color: rgba(164,125,70,.95) !important;
    color: #a47d46 !important;
    background: rgba(0,0,0,.28);
}
/* FIX: компактные модалки (.modal__min) не должны растягиваться на весь экран */
.modal__body.modal__min .modal__inner{
    height: auto;
}

/* скрываем служебный screen-reader-response в попапах */
.gm-video-popup-narrow .wpcf7 .screen-reader-response{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    clip-path:inset(50%) !important;
    border:0 !important;
    white-space:nowrap !important;
}

/* красим сообщение CF7 в попапах */
.gm-video-popup-narrow .wpcf7-response-output,
.gm-video-popup-narrow .wpcf7-response-output *{
    color:#ff3b3b !important;
    border-color:#ff3b3b !important;
}
/* CF7 hidden fields fix */
.wpcf7 .hidden-fields-container{
    display:none !important;
}
@media (max-width: 768px) {
    .header__logo {
        display: none;
    }
}