/* COLORS */
:root {
/* 	--background: #F4F5F7;
	--accent-background: #FFFFFF;
	--text: #4A4B4D;
	--border: #A4A5A7;
	--accent-text: #181A1D;
	--red: #E31E24;
    --header-bg: rgba(255, 255, 255, 0.6); */
	
	--background: #181A1D;
	--accent-background: #000000;
	--text: #B8B9BB;
	--border: #4A4B4D;
	--accent-text: #FFFFFF;
	--red: #E31E24;
    --header-bg: rgba(0, 0, 0, 0.6);
}
:root.dark-theme {
/* 	--background: #181A1D;
	--accent-background: #000000;
	--text: #B8B9BB;
	--border: #4A4B4D;
	--accent-text: #FFFFFF;
	--red: #E31E24;
    --header-bg: rgba(0, 0, 0, 0.6); */
	
	--background: #F4F5F7;
	--accent-background: #FFFFFF;
	--text: #4A4B4D;
	--border: #A4A5A7;
	--accent-text: #181A1D;
	--red: #E31E24;
    --header-bg: rgba(255, 255, 255, 0.6);
}
.dropdown-tool.disabled{
  pointer-events: none !important;
}

::-webkit-scrollbar {
	width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
	background: var(--background);
}

::-webkit-scrollbar-button {
	background: var(--background);
	height: 4px;
}
   
/* Handle */
::-webkit-scrollbar-thumb {
	width: 6px;
	background: var(--text);
	border-radius: 20px;
	border: 3px solid var(--background);
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: var(--red); 
}

::selection{
    background-color: var(--red);
    color: white;
}


/* SKEW EFFECT */
.skew {
    transform: skewX(-20deg);
}
.skew-inner {
    transform: skewX(20deg);

    width: 100%;
    height: 100%;
}
.icon-wrapper {
    width: 100%;
    height: 100%;
    position: relative;

	display: grid;
	place-items: center;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 17px;
	background-color: var(--background);
    accent-color: var(--red);

	&.no-scroll {
		overflow: hidden;
	}
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
	padding: 0 20px;

    &.no-padding {
        padding: 0;
        padding-left: 20px;
    }

    &.margin {
        margin-top: 120px;
    }
    
    &.p404 {
        height: 100%;
        position: absolute;
        z-index: 10;
        top: 0;
        left: 50%;
        translate: -50% 0;
    }
}
.distance {
	margin-top: 120px;
	color: var(--text);
}

.swiper-pagination-bullet-active {
	background-color: var(--red) !important;
}

.test-text {
	font-size: 24px;
	text-align: justify;
	line-height: 1.5;
	color: var(--text);
}


svg {
    transition: all 0.3s ease !important;
}


/* GLOBAl LINKS */
.global-link {
    display: flex;
    align-items: center;
	justify-content: space-between;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;

    transition: all 0.3s ease;

    span {
        line-height: 1.1;
        text-wrap: balance;
    }

    &.red {
        background-color: var(--red);
        border: 1px solid var(--red);
        span {
            color: white;
            font-weight: 600;
            font-style: italic;
        }
        max-width: 300px;
        &.full {
            max-width: 100%;
        }
    }

    &.grey {
        background-color: var(--background);
        span {
            color: var(--accent-text);
            font-weight: 600;
            font-style: italic;
        }
        border: 1px solid var(--border);

        &.reverse {
            flex-direction: row-reverse;
        }
        &.show {
            display: none;
        }
    }

    &:hover {
        background-color: white;
        border: 1px solid var(--red);
        span {
            color: var(--red);
        }
    }
    &:hover .link-icon {
        background: 
            linear-gradient(white 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        
            svg {
                color: var(--red);
            }

			&.red svg {
				rotate: 45deg;
			}
    }
    &.reverse:hover {
        svg {
            rotate: 45deg;
        }
    }

    &.custom {
        padding: 5px 10px;
    }
}
.link-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    max-width: 40px;
    transition: background 0.3s ease;

    svg {
        transition: all 0.3s ease !important;
    }

    &.red {
        background: 
            linear-gradient(var(--red) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, white 100%) border-box;
        
        svg {
            margin: 7px;
            color: white;
        }
    }
    &.grey {
        background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
        
        svg {
            margin: 10px;
            color: var(--border);
        }
    }
}


/* GLOBAL TITLES */
.links-wrapper {
    display: flex;
    gap: 20px;
}

.main-title {
    font-size: 72px;
    font-weight: bold;
    line-height: 1.05;
    color: var(--accent-text);
    text-wrap: balance;

    span {
        font-style: italic;
        color: var(--red);
    }
    &.italic {
        font-style: italic;
    }
}
.h2-title {
    font-size: 60px;
    color: var(--accent-text);
    font-weight: bold;
    line-height: 1.05;
}
.red-title {
    color: var(--red);
    font-style: italic;
}
.accent-title {
    color: var(--red);
    font-style: italic;
    position: relative;
    z-index: 10;

    &.text-color {
        color: var(--accent-text);
    }

    &::before {
        content: '';
        position: absolute;
        top: -13px;
        left: 0;
        z-index: -1;

        width: 120px;
        height: 110px;
        transform: skewX(-20deg);

        background:
            linear-gradient(var(--accent-background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;

        border: 3px solid transparent;
        border-radius: 50%;
    }
    &.bg::before {
        background:
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    }
}
.h3-title {
    font-size: 24px;
    color: var(--accent-text);
    font-weight: bold;
    line-height: 1.3;
}
.title-link-wrapper {
    display: flex;
    justify-content: space-between;
}


/* SIMPLE FORM */
.simple-form-wrapper {
    grid-column: span 2;

    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;

    &.cta {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
.simple-form, .cta-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}
.cta-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.simple-form-input, .cta-form-input {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);

    &.red {
        border-color: var(--red);
        color: var(--red);
    }

    &:focus {
        border-color: var(--accent-text);
        color: var(--accent-text);
    }
}

.simple-form-label, .cta-form-label {
    display: flex;
    align-items: start;

    color: var(--text);
    line-height: 1.4;
    text-wrap: balance;
    cursor: pointer;
}
.form-check {
    display: none;
}
.simple-form-check, .cta-form-check {
    display: inline-block;
    width: 32px;
    aspect-ratio: 1;
    margin-right: 6px;
    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}
/* Стилизация, когда чекбокс отмечен */
.form-check:checked + .simple-form-check,
.form-check:checked + .cta-form-check {
    background-color: var(--red); /* Цвет фона при отметке */
    border-color: var(--red);
}
/* Добавляем галочку через псевдоэлемент */
.form-check:checked + .simple-form-check::after,
.form-check:checked + .cta-form-check::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.simple-form-submit-btn, .cta-form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;

    background-color: var(--red);
    border: 1px solid var(--red);
    span {
        color: white;
        font-weight: 600;
        font-style: italic;
    }

    &:hover {
        background-color: white;
        border-color: var(--red);
        span {
            color: var(--red);
        }
    }

    &:hover .simple-form-submit-btn-icon, &:hover .cta-form-submit-btn-icon {
        background: 
            linear-gradient(white 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        svg {
            color: var(--red);
            rotate: 45deg;
        }
    }
}
.simple-form-submit-btn-icon, .cta-form-submit-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--red) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, white 100%) border-box;
    
    svg {
        margin: 7px;
        color: white;
        transition: all 0.3s ease;
    }
}

/* CIRCLE ANIMATION */
.circle-wrapper {
    position: absolute;
    z-index: 20;

    &.first {
        left: 66%;
        bottom: 0;
        translate: -50% 50%;
    }
    
    &.cta {
        right: 0;
        top: 0;
        translate: 50% -50%;
    }

    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 50%;
    background-color: var(--background);
    padding: 10px;
}

.circle {
	position: relative;
	width: 160px;
	height: 160px;
    aspect-ratio: 1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.circle-logo {
	position: absolute;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	animation: logoRotation 12s linear infinite;

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

    border: 1px solid var(--border);
    border-radius: 50%;
    background-color: var(--background);
}

.text {
	position: absolute;
	width: 100%;
	height: 100%;
	font-family: consolas;
	color: var(--text);
	font-size: 17px;
	animation: textRotation 12s linear infinite;
}

@keyframes textRotation {
	to {
		transform: rotate(360deg);
	}
}
@keyframes logoRotation {
	to {
		transform: rotate(-360deg);
	}
}

.text span {
	position: absolute;
	left: 50%;
	transform-origin: 0 80px;
}


/* PAGINATION */
.pagination {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-btn {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;

    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
        
    svg {
        transition: all 0.3s ease;
        margin: 10px;
        color: var(--border);
    }

    &.prev {
        margin-right: 20px;
    }
    &.next {
        margin-left: 20px;
    }

    &:hover {
        background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    }
}
.pagination .dots{
    padding: 0 10px;
}

.pagination-num {
    padding: 10px 15px;
    color: var(--text);
    border: 1px solid var(--background);
    border-radius: 4px;
    transition: all 0.3s ease;

    display: grid;
    place-items: center;

    &.active {
        border: 1px solid var(--red);
        border-radius: 4px;
        color: var(--accent-text);
        font-style: italic;
        font-weight: bold;
    }

    &:hover {
        border-color: var(--border);
    }
}
.page-numbers.current .pagination-num {
    border: 1px solid var(--red);
        border-radius: 4px;
        color: var(--accent-text);
        font-style: italic;
        font-weight: bold;
}


.dev {
    margin-top: 140px;
    height: 80vh;
}

.dev-inner {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;
}
.dev-title {
    font-size: 50px;
    font-weight: bold;
    font-style: italic;
    color: var(--accent-text);
}


/* ADAPTIVE */
/* 992px - 1200px */
@media screen and (max-width: calc(1200px - 1px)) {
    .title-link-wrapper.padding {
        padding-inline: 20px;
    }
}

/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .main-title {
        font-size: 64px;
    }
    .h2-title {
        font-size: 40px;
        line-height: 1.3;
    }
    .accent-title {    
        &::before {    
            width: 90px;
            height: 80px;
        }
    }
    .simple-form {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .links-wrapper {
        flex-direction: column;
    }
    .main-title {
        font-size: 56px;
        text-align: center;
    }
    .h2-title {
        text-align: center;
    }

    .simple-form-wrapper {    
        &.cta {
            padding-top: 100px;
        }
    }
    .circle-wrapper {
        &.cta {
            top: unset;
            right: unset;
            bottom: 0;
            left: 50%;
            translate: -50% 50%;
        }
    }
    .circle-wrapper {
        &.first {
            left: 50%;
            translate: -50% 20%;
        }
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .global-link.red, .global-link.grey {
        max-width: 100%;
        &.hide {
            display: none;
        }
        &.show {
            display: flex;
        }
        &.custom {
            justify-content: center;
        }
    }
    .title-link-wrapper {
        justify-content: center;
    }

    .main-title {
        font-size: 40px;
    }
    .accent-title.none {    
        &::before {    
            display: none;
        }
    }
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: calc(100% - 40px);

    margin: 20px;
    /* border: 1px solid var(--border); */
    border-radius: 20px;

    background: var(--header-bg);
    backdrop-filter: blur(10px);

    &.active {
        backdrop-filter: unset;
    }
}
.header-inner {
    width: 100%;
    padding-block: 13px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header-item {
    height: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.header-logo-link {
    display: flex;
    align-items: end;

    svg {
        max-height: 100%;
    }
}
.header-logo-text {
    fill: var(--accent-text);
}

.header-logo.hidden {
    display: none;
}

/* NAVIGATION */
.header-nav {
    width: 100%;
    height: 100%;
}
.header-links-wrapper {
    display: flex;
}
.header-link {
    border-radius: 10px;
    display: grid;
    place-items: center;

    transition: all 0.3s ease;

    a {
        color: var(--accent-text);
        padding: 10px 16px;
        line-height: 1.4;
        transition: all 0.2s ease;
        text-wrap: nowrap;
    }
    &:hover {
        background-color: var(--background);
    }
}

/* TOOLS */
.header-tools {
    display: flex;
    gap: 8px;

    height: 100%;
    position: relative;
}

.contact-btn {
    height: 100%;
    padding: 5px 20px;

    background-color: var(--background);
    border-radius: 10px;
    cursor: pointer;
    position: relative;

    display: flex;
    align-items: center;
    gap: 8px;

    &.active {
        background-color: var(--red);
    }
}
.contact-btn-text {
    font-weight: 600;
    font-style: italic;
    color: var(--accent-text);
}
.contact-btn.active .contact-btn-text {
    color: white;
}
.animeborder::after, .animeborder::before {
    content: "";
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 4px;
    border-radius: 10px;
    background: conic-gradient(from var(--angle), transparent 30%, var(--red));
    animation: spin-one 3s infinite linear;
}
.animeborder::before {
    animation: spin-one 3s infinite linear;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
  
@keyframes spin-one {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}

.phone-icon {
    aspect-ratio: 1;
    color: var(--text);

    background: 
        linear-gradient(var(--accent-background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--text) 100%) border-box;
    &.red {
        background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    }
    
    border: 2px solid transparent;
    border-radius: 50%;

    svg {
        margin: 6px;
    }
}
.contact-btn.active .phone-icon {
    color: white;

    background: 
        linear-gradient(var(--red) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, white 100%) border-box;
}


.lang-icon, .cart-icon {
    aspect-ratio: 1;
    color: var(--text);
    font-weight: 600;
    font-style: italic;
    cursor: pointer;

    background: 
        linear-gradient(var(--accent-background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--text) 100%) border-box;
    border: 2px solid transparent;
    border-radius: 50%;

    transition: background 0.3s ease;

    &:hover {
        background: 
            linear-gradient(var(--accent-background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    }
}
.lang-icon {
    position: relative;
    &.active {
        background: 
            linear-gradient(var(--accent-background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    }
}

.cart-icon {
    position: relative;
}
.cart-icon-counter {
    position: absolute;
    top: 0;
    right: 0;
    translate: 50% -50%;

    width: 24px;
    aspect-ratio: 1;
    background-color: var(--red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    color: white;
}


/* CONTACT DROPDOWN */
.contact-dropdown {
    display: none;

    &.active {
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        left: -10px;

        padding: 8px;
        background-color: var(--accent-background);
        border: 1px solid var(--border);
        border-radius: 10px;
    }
}
.phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 5px 20px;
    border-radius: 10px;

    span {
        color: var(--text);
        line-height: 1.4;
        text-wrap: nowrap;
    }

    transition: all 0.3s ease;
    &:hover {
        background-color: var(--background);
    }
}

.socials-wrapper {
    display: flex;
    justify-content: space-around;
    padding-block: 10px;

    &.space {
        justify-content: start;
        gap: 20px;
    }
}
.social-icon-wrapper {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 4px;

    transition: all 0.3s ease;
    &:hover {
        background-color: var(--text);
    }
}
.social-icon-wrapper svg {
    fill: var(--accent-text);
}



/* LANGUAGE DROPDOWN */
.lang-dropdown {
    display: none;

    &.active {
        display: flex;
        flex-direction: column;
        gap: 10px;

        position: absolute;
        top: calc(100% + 13px);
        left: -7px;

        padding: 8px;
        background-color: var(--accent-background);
        border: 1px solid var(--border);
        border-radius: 10px;
    }
}
.lang-value {
    margin: 3px;
    font-style: normal;
    color: var(--white);
}


/* BURGER */
.burger-wrappper {
    display: none;
}
.nav-contacts {
    display: none;
}

/* 992px - 1200px */
@media screen and (max-width: 1200px) {
    .header-item.tools {
        margin-left: auto;
    }

    .header-item.nav {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100%;
        z-index: 90;
        background-color: var(--accent-background);

        padding: 0;
        border: 0;
        border-radius: 0;

        transition: all 0.3s ease;
    }
    .header-item.nav.active {
        left: 0;
    }

    .header-nav {
        max-width: 960px;
        padding-inline: 10px;
        height: auto;
        margin: 130px auto 0;
    }
    .header-links-wrapper {
        padding: 10px;
        flex-direction: column;

        border: 1px solid var(--border);
        border-radius: 15px;
    }
    .header-link a {
        width: 100%;
        text-align: center;
    }

    .nav-contacts {
        max-width: 940px;
        padding: 10px;
        margin: 20px auto 0;

        display: flex;
        flex-direction: column;

        border: 1px solid var(--border);
        border-radius: 15px;
    }

    /* BURGER */
    .burger-wrappper {
        height: 100%;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 15px;
        aspect-ratio: 1;

        display: grid;
        place-items: center;

        position: relative;
        z-index: 110;
    }

    .burger-icon {
        aspect-ratio: 1;
        color: var(--text);
    
        background: 
            linear-gradient(var(--accent-background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        border: 2px solid transparent;
        border-radius: 50%;

        svg {
            margin: 10px;
        }
    }
    .burger-svg.hidden {
        display: none;
    }
}

/* 768px - 992px */
@media screen and (max-width: 992px) {
    .header-nav {
        max-width: 720px;
    }
    .nav-contacts {
        max-width: 700px;
    }
}

/* 576px - 768px */
@media screen and (max-width: 768px) {
    .header {
        width: 100%;
        margin: 20px 0 0;
    }

    .header-nav {
        max-width: 540px;
    }
    .nav-contacts {
        max-width: 520px;
    }

    .header-item.tools {
        margin: auto;
    }

    .contact-btn {
        padding: 5px;
    }
    .contact-btn-text {
        display: none;
    }
}

/* 480px - 576px */
@media screen and (max-width: 576px) {
    .header-nav {
        max-width: 100%;
    }
    .nav-contacts {
        max-width: calc(100% - 20px);
    }
}

/* 360px - 480px */
@media screen and (max-width: 480px) {
    .header-logo-text {
        display: none;
    }
    .header-inner {
        gap: 12px;
    }
    .contact-dropdown {    
        &.active {
            position: fixed;
            top: 110px;
            left: 50%;
            translate: -50%;
        }
    }
    .lang-dropdown {
        display: none;
    
        &.active {
            top: calc(100% + 26px);
        }
    }
}


.footer {
    margin: 120px 20px 0;
    background-color: var(--accent-background);
    border-radius: 20px;
}

.footer-inner {
    padding: 120px 0 80px;
}

.footer-blocks-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-contacts, .footer-nav {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    max-width: 174px;
}
.footer-address {
    font-style: normal;
    color: var(--text);
    line-height: 1.4;
}

.footer-contact-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.foter-contact-link {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.3;
    transition: all 0.2s ease;

    &:hover {
        color: var(--red);
    }
}

.footer-nav-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.foter-nav-link {
    padding: 14px 16px;
    color: var(--text);
    border-radius: 10px;
    transition: all 0.3s ease;

    &:hover {
        color: var(--accent-text);
        background-color: var(--border);
    }
}

.footer-external-links-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.footer-social-links-wrapper {
    display: flex;
    gap: 20px;
}
.footer-social-link {
    /* height: 100%; */
    aspect-ratio: 1;

    border: 1px solid var(--border);
    border-radius: 10px;

    display: grid;
    place-items: center;

    svg {
        margin: 10px;
        fill: var(--accent-text);
    }

    transition: all 0.3s ease;
    &:hover {
        background-color: var(--border);
    }
}

.footer-copyright {
    display: flex;
    gap: 20px;
    margin-top: 20px;

    p, a {
        color: var(--text);
    }
}


/* 768px - 992px */
@media screen and (max-width: 992px) {
    .footer-blocks-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        padding: 80px 0;
    }
    .footer-contact-links-wrapper {
        display: flex;
        justify-content: space-between;
    }
    .footer-external-links-wrapper {
        margin-top: 20px;
    }
}

/* 576px - 768px */
@media screen and (max-width: 768px) {
    .footer-inner {
        padding: 80px 0 110px;
    }
    .footer-contact-links-wrapper {
        flex-direction: column;
    }
}

/* 320px - 576px */
@media screen and (max-width: 576px) {
    .footer {
        margin: 120px 0 0;
    }
    .footer-logo {
        align-self: flex-start;
    }
    .footer-contacts, .footer-nav {
        align-items: center;
    }
    .footer-address {
        text-align: center;
    }
    .footer-nav-links-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-external-links-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }
    .footer-social-links-wrapper {
        justify-content: center;
    }
    .footer-copyright {
        flex-direction: column;
        align-items: center;
    }
}


.fixed-btn {
    position: fixed;

    &.theme-switcher {
        bottom: 40px;
        right: 40px;
    }
    &.sroll-to-top {
        display: none;
        bottom: 120px;
        right: 40px;
    }
    
    z-index: 40;

    width: 64px;
    height: 64px;

    overflow: hidden;
    cursor: pointer;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--text) 100%) border-box;
    border: 2px solid transparent;
    border-radius: 50%;

    transition: background 0.3s ease;
    &:hover {
        background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    }
}

.theme-icon {
    position: absolute;
    left: calc(50% - 13px);
    transition: all 0.3s ease;
}
.theme-icon.light {
    bottom: 150%;
    &.move {
        bottom: calc(50% - 13px);
    }
}
.theme-icon.dark {
    top: 150%;
    &.move {
        top: calc(50% - 13px);
    }
}


.theme-icon svg {
    width: 26px;
    height: 26px;
}

.theme-icon svg path {
    stroke: var(--text); /* Цвет линии по умолчанию */
    stroke-width: 2;
    stroke-dasharray: 100; /* Установим значение, достаточное для длины пути */
    /* stroke-dashoffset: 100; */
    transition: stroke 0.3s ease; /* Для плавной смены цвета */
}
.arrow-icon svg path {
    stroke: var(--text);
}

.theme-switcher:hover .theme-icon svg path {
    stroke: var(--red); /* Цвет линии при наведении */
    animation: draw-line 1s linear forwards; /* Запуск анимации */
}

/* Ключевые кадры для анимации */
@keyframes draw-line {
    from {
        stroke-dashoffset: 100; /* Начальное значение */
    }
    to {
        stroke-dashoffset: 0; /* Линия полностью нарисована */
    }
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .fixed-btn {
        &.sroll-to-top {
            bottom: 40px;
            right: 120px;
        }
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .fixed-btn {
        &.theme-switcher {
            bottom: 30px;
        }
        &.sroll-to-top {
            bottom: 30px;
        }
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .fixed-btn {
        &.theme-switcher {
            right: calc(50% - 75px);
        }
        &.sroll-to-top {
            right: unset;
            left: calc(50% - 75px);
        }
    }
}




.about-main {
    margin-top: 120px;
    &.margin {
        margin-top: 140px;
    }
}

.about-short {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 0.1fr 1fr;
    gap: 20px;
}

.about-short-card {
    display: flex;
    flex-direction: column;
    padding: 30px;

    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 20px;

    &:first-of-type {
        grid-row: span 2;

        & .about-short-icon {
            margin-top: auto;
        }
    }
}

.about-short-icon {
    margin-top: 33px;
}

.about-short-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 30px 30px;

    grid-column: span 2;
}

.about-short-text p, .about-form-text p {
    color: var(--text);
    line-height: 1.4;
    text-wrap: balance;
}

.short-card-title {
    font-size: 60px;
    font-weight: bold;
    font-style: italic;
    color: var(--accent-text);
    line-height: 1.05;
}
.short-card-subtitle {
    font-size: 20px;
    color: var(--accent-text);
    line-height: 1.4;
}


.about-main-form {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.about-form-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.about-pictures {
    width: calc(100% - 40px);
    margin: 120px auto 0;
    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.about-pictures-inner {
    padding-block: 120px;
    min-height: 710px;

    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 20px;
}

.picture-with-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-picture-wrapper {
    width: 100%;
    flex-grow: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.about-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.advantages {
    margin-top: 120px;
}
.advantages-inner {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantages-top, .advantages-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.advantage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 20px;
    padding: 30px;

    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
}
.advantage.red {
    border: 0;
    background: var(--red);
    grid-row: span 2;
}
.advantage.num6 {
    grid-column: span 2;
}
.advantage.num7 {
    grid-row: span 2;
    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--accent-background) 20%, var(--red) 100%) border-box;
}

.advantage-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.3;

    span {
        font-style: italic;
    }

    &.red {
        color: white;

        span {
            font-size: 50px;
        }        
    }
}
.advantage-subtitle {
    color: var(--text);
    line-height: 1.4;
    text-wrap: balance;
    margin-bottom: 24px;
}

.advantage-icon {
    margin-top: auto;
}
.advantage-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.advantage-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .about-short-card {    
        padding: 20px;

        &:first-of-type {
            grid-row: auto;
        }
    }
    
    .about-short-text {
        padding: 0;
        order: -1;    
        grid-column: span 3;
    }

    .short-card-title {
        font-size: 38px;
    }
    .short-card-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .about-short-icon {
        margin-top: auto;
    }

    .about-pictures-inner {
        padding-block: 100px;
    }

    .advantages-top, .advantages-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantage {
        padding: 20px;
    }
    .advantage.num6 {
        order: 1;
        grid-column: unset;
    }
    .advantage.num7 {
        order: 2;
        grid-row: unset;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .about-short {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .about-short-text {
        grid-column: auto;
    }

    .about-main-form {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .advantages-top, .advantages-bottom {
        grid-template-columns: repeat(1, 1fr);
    }
    .advantage.img {
        display: none;
    }
    .advantage-icon.red {
        margin-top: 28px;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .about-short {
        margin-top: 0;
    }
    .about-main-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-pictures-inner {
        padding: 20px 0;
        grid-template-columns: 1fr;
    }
}


.article {
    margin-top: 140px;
}

.article-inner {
    margin-top: 40px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.article-content {
    display: flex;
    flex-direction: column;
    /* gap: 40px; */
}
.article-content p {
    font-size: 18px;
    color: var(--text);
    line-height: 1.5;
    margin-top: 20px;

    &:first-child {
        margin-top: 0;
    }
}
.article-content a {
    color: var(--text);
}
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-size: 32px;
    color: var(--accent-text);
    font-weight: bold;
    line-height: 1.2;
    margin-top: 40px;
}
.article-content img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 20px;
}
.article-content ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    line-height: 1.5;
}
.article-content li {
    font-size: 18px;
    color: var(--text);
    padding-left: 20px;
    position: relative;

    &::before {
        content: '·';
        color: var(--text);
        position: absolute;
        top: 1px;
        left: 0;
        font-size: 24px;
        font-weight: bold;
    }
}

.article-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.article-subtitle {
    font-size: 32px;
    color: var(--accent-text);
    font-weight: bold;
    line-height: 1.2;
}
.article-text {
    margin-top: 0 !important;
    font-size: 18px;
    color: var(--text);
    line-height: 1.5;

    &.bold {
        font-weight: bold;
    }
}
.article-photo {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 20px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;

    &.minus .article-list-item::before {
        content: '×';
        color: var(--red);
    }
    &.plus .article-list-item::before {
        content: '+';
        color: var(--accent-text);
    }
}
.article-list-item {
    padding-left: 20px;
    position: relative;

    &::before {
        content: '·';
        color: var(--text);
        position: absolute;
        top: 1px;
        left: 0;
        font-size: 24px;
        font-weight: bold;
    }
}

.article-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.article-nav-btns-wrapper {
    display: flex;
    gap: 40px;
}
.article-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;

    span {
        font-style: italic;
        font-weight: 600;
        color: var(--accent-text);
    }
}

.aticle-cta {
    margin-top: 40px;

    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aticle-cta-text {
    font-size: 18px;
    color: var(--accent-text);
    line-height: 1.5;
}


.article-aside-sticky {
    position: sticky;
    top: 140px;
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 20px;
}
.article-aside-item {
    background: 
        linear-gradient(var(--accent-background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-aside-title {
    font-size: 40px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.15;
    text-align: center;
}
.article-aside-item-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-aside-item-text {
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .article-inner {
        grid-template-columns: 1fr;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .article-nav-link {
        span {
            display: none;
        }
    }
}


.blog {
    margin-top: 140px;
}
.blog-inner {
    margin-top: 80px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-main {
    margin-top: 120px;
}

.main-articles-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
    scrollbar-color: #888 #f0f0f0;

    margin-top: 50px;
}

.article-card {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 16px;

    width: 100%;
    min-height: 540px;
    padding: 30px;

    &.home-article {
        width: 380px;
        aspect-ratio: 38/54;
    }

    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;

    &:hover {
        background: var(--accent-background);
    }

    &:first-of-type, &:last-of-type {
        grid-column: span 2;
    }
}
.main-articles-wrapper .article-card:nth-of-type(2) .article-card-subtitle {
    display: none;
}

.article-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.article-card-img-wrapper {
    width: 100%;
    flex-grow: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.article-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;

    line-height: 1.4;
}
.article-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-text);

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-card-subtitle {
    font-size: 16px;
    color: var(--text);
    /* text-wrap: balance; */

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-arrow-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;

    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
        
    svg {
        transition: all 0.3s ease;
        rotate: 90deg;
        margin: 10px;
        color: var(--border);
    }
}
.article-card:hover .article-arrow-icon {
    background: 
        linear-gradient(var(--accent-background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        
    svg {
        margin: 10px;
        color: var(--accent-text);
        rotate: 45deg;
    }
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .blog-inner {
        margin-top: 60px;
        grid-template-columns: repeat(2, 1fr);
    }
    .article-card {    
        &:first-of-type, &:last-of-type {
            grid-column: unset;
        }
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .blog-inner {
        margin-top: 40px;
        grid-template-columns: 1fr;
    }
    .article-card {
        &.home-article {
            width: 320px;
        }
    }
}



.calc-main {
    width: calc(100% - 40px);
    margin: 120px auto 0;
    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.calc-main-inner {
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.calc-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}
.calc-info-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;

    p {
        color: var(--text);
        line-height: 1.4;
    }
}

/* 992px - 1200px */
@media screen and (max-width: calc(1200px - 1px)) {
    .calc-link-inner {
        padding-block: 80px;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .calc-main {
        width: 100%;
    }
    .calc-info-wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }
    .calc-link {
        width: 100%;
    }
}


.contacts {
    margin-top: 140px;
}

.contacts-inner {
    margin-top: 80px;

    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 20px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;

    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}
.contacts-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    padding-block: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contacts-item {
    display: flex;
    flex-direction: column;
    gap: 8px;

    &.grow {
        grid-column: span 2;
    }
}
.contact-info-text {
    color: var(--text);
    line-height: 1.4;
    text-wrap: balance;
}

.contact-link {
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-text);
    line-height: 1.3;
    transition: all 0.3s ease;

    &.phone {
        font-size: 24px;
        font-weight: bold;
    }

    &:hover {
        color: var(--red);
    }
}

.contacts-map {
    border-radius: 20px;
    overflow: hidden;
}
.contacts-map-frame {
    width: 100%;
    height: 100%;
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .contacts-inner {
        margin-top: 60px;
        grid-template-columns: 1fr;
    }
    .contacts-info {
        padding: 20px;
    }
    .contacts-map {
        aspect-ratio: 4/3;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    .contacts-item {
        &.grow {
            grid-column: unset;
        }
    }
    .contacts-inner {
        margin-top: 40px;
    }
    .contacts-map {
        aspect-ratio: 3/4;
    }
}


.first-screen {
    margin-block: 170px;
}

.first-screen-inner {
    display: flex;
    position: relative;
}

.title-block {
    margin-block: 30px;

    padding: 50px 40px;

    display: flex;
    flex-direction: column;
    gap: 32px;

    background-color: var(--accent-background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;

    position: relative;
}

.title-block::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 100%;
    z-index: 10;

    height: calc(100% + 2px);
    width: 10%;

    background-color: var(--accent-background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* IMAGE BLOCK */
.image-block {
    min-width: 40%;
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-left: auto;

    position: relative;
    z-index: 5;

    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .image-block {
        min-width: 30%;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .first-screen {
        margin-bottom: 120px;
    }

    .first-screen-inner {
        flex-direction: column;
    }

	.title-block {
        margin: 0 20px;
        padding: 20px;
        background-color: var(--accent-background);
        border: 1px solid var(--border);
        border-radius: 20px;
        z-index: 10;
    }
    
    .title-block::after {
        content: '';
        display: none;
    }

    .image-block {
        width: calc(100% + 40px);
        height: 300px;
        translate: -20px -60px;
    }
}


.home-slider {
    margin-top: 50px;
}

.slider-btn {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 80px;
    cursor: pointer;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        
    svg {
        transition: all 0.3s ease;
        color: var(--border);
    }

    position: absolute;
    top: 50%;
    z-index: 10;
    translate: 0 -100%;

    &.prev {
        left: 2px;
    }
    &.next {
        right: 2px;
    }
}
.swiper-pagination {
    bottom: 0px !important;
}

.screen-slide {
    display: grid !important;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    padding-inline: 120px;
}

.screen-slide.swiper-slide-prev, .screen-slide.swiper-slide-next {
    filter: grayscale(1) brightness(0.8);
    opacity: 0.6;
}

.screen-slide-img-wrapper {
    width: 100%;
    height: 100%;
    max-height: 500px;
    aspect-ratio: 5/4;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.screen-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-slide-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.screen-slide-number {
    margin-left: 25px;
    font-size: 24px;
    color: var(--text);
}
.slide-number-current {
    font-style: italic;
    font-weight: bold;
    color: var(--red);
}


.screen-slide-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;

    padding: 30px;
    background-color: var(--background);
    border: 1px solid transparent;
    border-radius: 20px;
    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
}
.screen-slide-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.05;
}
.screen-slide-subtitle {
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.screen-slide-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 0;
}
.screen-slide-table-item {
    color: var(--text);
    line-height: 1.4;
    display: flex;
    font-size: 16px;

    &:nth-of-type(even) {
        justify-content: end;
        text-align: right;
        color: var(--accent-text);
    }
}

.screen-slide-tools-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    margin-top: auto;
}
.screen-slide-view-btn {
    display: grid;
    place-items: center;
    padding: 20px;

    font-style: italic;
    font-weight: 600;
    color: var(--accent-text);
    text-wrap: nowrap;
    border-radius: 4px;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--border);
    }
}
.screen-slide-cart-btn {
    display: flex;
    align-items: center;
	justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;

    position: relative;
    z-index: 20;

    background-color: var(--background);
    border: 1px solid var(--border);
    span {
        color: var(--accent-text);
        font-weight: 600;
        font-style: italic;
        text-wrap: nowrap;
    }

    &:hover {
        background-color: white;
        border: 1px solid var(--red);
        span {
            color: var(--red);
        }
    }
    &:hover .screen-slide-btn-icon {
        background: 
            linear-gradient(white 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        
        svg {
            color: var(--red);
            rotate: 45deg;
        }
    }
}
.screen-slide-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    cursor: pointer;

    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
        
    svg {
        transition: all 0.3s ease;
        margin: 10px;
        color: var(--border);
        rotate: 90deg;
    }
}

.slider-bottom-btns-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    grid-column: span 2;
}
.slider-bottom-map-btn {
    display: grid;
    place-items: center;
    padding: 20px;

    font-style: italic;
    font-weight: 600;
    color: var(--accent-text);
    text-wrap: nowrap;
    border-radius: 10px;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--border);
    }
}



/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .slider-btn {
        display: none;
    }
    .screen-slide {
        padding-inline: 0;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .screen-slide-img-wrapper {
        aspect-ratio: 3/2;
    }
    .screen-slide {
        grid-template-columns: 1fr;
    }
    .slider-bottom-btns-wrapper {
        grid-column: unset;
        margin-top: 0;
    }
    .screen-slide-view-btn, .screen-slide-cart-btn {
        width: 100%;
    }
    .screen-slide-number {
        margin: 0 auto;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .screen-slide-info-wrapper {
        padding: 20px;
    }
    .screen-slide-tools-wrapper {
        flex-direction: column;
    }
    .slider-bottom-btns-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    .slider-bottom-map-btn {
        width: 100%;
    }
}


.marquee-wrapper {
    margin: 80px auto 0;
    padding: 40px 0 150px;
    overflow-x: hidden;
}

.marquee {
    scale: 1.05;

    display: flex;
    align-items: center;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    block-size: var(--marquee-item-height);
    position: relative;
    overflow-x: hidden;
}

.marquee-img {
    max-width: 150px;
}

.marquee-texts {
    --marquee-item-width: 200px;
    --marquee-item-height: 90px;
    --marquee-duration: 32s;
    --marquee-items: 6;

    background-color: var(--background);
    translate: 0 70px;
    rotate: 3deg;
}

.marquee-text-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-text {
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    text-wrap: nowrap;
}

.marquee-logos {
    --marquee-item-width: 180px;
    --marquee-item-height: 90px;
    --marquee-duration: 68s; /* 36s */
    --marquee-items: 24; /* 8s */

    /* 1 item = +4s */
    
    background-color: var(--accent-background);
    rotate: -6deg;
}

.marquee__item {
    --marquee-item-offset: max(calc(var(--marquee-item-width) * var(--marquee-items)),
            calc(100% + var(--marquee-item-width)));
    --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
    position: absolute;
    inset-inline-end: var(--marquee-item-offset);
    transform: translateX(-50%);
    animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
}
.marquee__item.marquee-img {
    --marquee-item-offset: max(calc(var(--marquee-item-width) * var(--marquee-items)),
            calc(100% + var(--marquee-item-width)));
    --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
    position: absolute;
    inset-inline-start: var(--marquee-item-offset);
    transform: translateX(-50%);
    animation: go-back linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
}

.marquee__item:nth-of-type(1) {
    --marquee-item-index: 1;
}
.marquee__item:nth-of-type(2) {
    --marquee-item-index: 2;
}
.marquee__item:nth-of-type(3) {
    --marquee-item-index: 3;
}
.marquee__item:nth-of-type(4) {
    --marquee-item-index: 4;
}
.marquee__item:nth-of-type(5) {
    --marquee-item-index: 5;
}
.marquee__item:nth-of-type(6) {
    --marquee-item-index: 6;
}
.marquee__item:nth-of-type(7) {
    --marquee-item-index: 7;
}
.marquee__item:nth-of-type(8) {
    --marquee-item-index: 8;
}
.marquee__item:nth-of-type(9) {
    --marquee-item-index: 9;
}
.marquee__item:nth-of-type(10) {
    --marquee-item-index: 10;
}
.marquee__item:nth-of-type(11) {
    --marquee-item-index: 11;
}
.marquee__item:nth-of-type(12) {
    --marquee-item-index: 12;
}
.marquee__item:nth-of-type(13) {
    --marquee-item-index: 13;
}
.marquee__item:nth-of-type(14) {
    --marquee-item-index: 14;
}
.marquee__item:nth-of-type(15) {
    --marquee-item-index: 15;
}
.marquee__item:nth-of-type(16) {
    --marquee-item-index: 16;
}
.marquee__item:nth-of-type(17) {
    --marquee-item-index: 17;
}
.marquee__item:nth-of-type(18) {
    --marquee-item-index: 18;
}
.marquee__item:nth-of-type(19) {
    --marquee-item-index: 19;
}
.marquee__item:nth-of-type(20) {
    --marquee-item-index: 20;
}
.marquee__item:nth-of-type(21) {
    --marquee-item-index: 21;
}
.marquee__item:nth-of-type(22) {
    --marquee-item-index: 22;
}
.marquee__item:nth-of-type(23) {
    --marquee-item-index: 23;
}
.marquee__item:nth-of-type(24) {
    --marquee-item-index: 24;
}

@keyframes go {
    to {  
        inset-inline-end: calc(var(--marquee-item-width) * -1);
    }
}

@keyframes go-back {
    to {  
        inset-inline-start: calc(var(--marquee-item-width) * -1);
    }
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .marquee-texts {    
        translate: 0 30px;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .marquee-texts {    
        translate: 0 15px;
    }
    .marquee-wrapper {
        padding: 20px 0 50px;
    }
}


.cta-block {
    margin-top: 120px;

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

.cta-block-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cta-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 120px 80px;

    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;

    position: relative;
}
.cta-title {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--accent-text);
    text-wrap: balance;

    span {
        font-style: italic;
        color: var(--red);
    }
}
.cta-text {
    font-size: 18px;
    color: var(--text);
    line-height: 1.4;
    text-wrap: balance;
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .cta-text-wrapper {
        padding: 100px 30px;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .cta-block-inner {
        grid-template-columns: 1fr;
    }
    .cta-text-wrapper {
        padding: 30px 30px 110px;
    }
    .cta-title {
        text-align: center;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .cta-text-wrapper {
        padding: 20px 20px 110px;
    }
    .cta-title {
        font-size: 24px;
    }
}


.faq {
    margin-top: 120px;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 50px;
}

.faq-sticky {
    width: 380px;
    aspect-ratio: 38/50;

    position: sticky;
    top: 150px;
    left: 0;

    /* translate: 0 -150px; */

    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}
.sticky-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.sticky-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;

    transition: all 0.3s ease;

    &:hover {
        border-color: var(--red);
    }

    &.open {
        background-color: var(--accent-background);
    }
}

.faq-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 30px;

    &.active {
        padding: 30px 30px 15px;
    }
}

.faq-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-text);
    line-height: 1.3;
    text-wrap: balance;
}

.faq-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    margin-left: 10px;

    transition: background 0.3s ease;

    background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
        
    svg {
        transition: all 0.3s ease;
        margin: 10px;
        color: var(--accent-text);
    }
}
.faq-item:hover .faq-icon {
    background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
}
.faq-title-wrapper.active .faq-icon {
    background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;

    svg {
        rotate: 135deg;
    }
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.2s ease, margin-top 0.2s ease;
}
.faq-item.open .faq-answer-wrapper {
    grid-template-rows: 1fr;
    margin-top: 12px;
    padding: 0 30px 30px;
}
.faq-answer {
    min-height: 0;

    p {
        color: var(--text);
        line-height: 1.5;
        text-wrap: balance;
    }
}


.faq-seo {
    margin-top: 120px;
    color: var(--text);
    line-height: 1.5;
}

.first-paragraph {
    margin-top: 16px;
    text-wrap: balance;
}
.show-text-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 16px;
    cursor: pointer;
}
.show-text-icon {
    margin: 7px;
    transition: all 0.3s ease;
}
.show-text-wrapper.open .show-text-icon {
    rotate: 180deg;
}

.hidden-text {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.2s ease, margin-top 0.2s ease;
}
.hidden-text.open {
    grid-template-rows: 1fr;
}
.text-wrapper {
	margin-top: 10px;
    min-height: 0;
    color: var(--gray);

	a {
		color: var(--gray);
		text-decoration: underline;
	}
	
    h4, h5, h6 {
        font-weight: bold;
        margin-block: 10px;
		color: var(--accent-text);
    }
    ul {
        margin-block: 10px;
    }
    li {
        list-style: disc;
        list-style-position: inside;
        padding-left: 20px;
    }
}

/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .faq-content {
        grid-template-columns: 1fr;
    }
    .faq-sticky {
        display: none;
    }
}



.home-map {
    margin: 120px 20px -100px;
    height: 600px;

    border-radius: 20px;
    overflow: hidden;

    &.invert {
        /* filter: grayscale(1) brightness(0.5); */
        filter: invert(1) grayscale(1);
    }
}
.home-map-frame {
    width: 100%;
    height: 100%;
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .home-map {
        margin: 120px 0 -120px;
        height: auto;
        aspect-ratio: 3/4;
    }
}


/* HEAD + BREADCRUMBS */
.catalogy-head {
    margin-top: 170px;
}
.catalogy-head-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.breadcrumbs-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.breadcrumbs-link {
    color: var(--text);
    transition: all 0.3s ease;

    &:hover {
        color: var(--red);
    }
}
.breadcrumbs-icon {
    margin: 7px;
}


/* SORT DROPDOWN */
.dropdown-tool {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--accent-text);

    &.location {
        display: none;
    }
    &.sort {
        min-width: 260px;
    }
}

.sort-icon {
    transition: all 0.3s ease;
    rotate: 0deg;
}
.dropdown-tool.active .sort-icon {
    rotate: 180deg;
}

.dropdown-list-wrapper {
    display: none !important;
}
.dropdown-tool.active .dropdown-list-wrapper {
    display: flex !important;
    flex-direction: column;
    min-width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 21;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;

    overflow: hidden;
}

.current-sort {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sort-value {
    padding: 15px 10px;
    border-radius: 10px;
    text-wrap: nowrap;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--border);
    }
}


/* TABLE */
.screen-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 0;

    &.table-aside {
        background-color: var(--accent-background);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 20px;
    }
}
.screen-card.tile .screen-table.table-catalogy {
    display: none;
}
.screen-table-item {
    color: var(--text);
    line-height: 1.4;
    display: flex;

    &:nth-of-type(even) {
        justify-content: end;
        text-align: right;
        color: var(--accent-text);
		font-variant-numeric: tabular-nums;
    }
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .dropdown-tool {    
        &.location {
            display: flex;
            /* flex-grow: 1; */
            max-width: 30%;
        }
        &.sort {
            /* flex-grow: 1; */
        }
    }
    .current-sort {
        &.long {
            max-width: 110px;
        }
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .dropdown-tool {
        &.location {
            max-width: unset;
        }
        &.sort {
            order: 1;
            width: 100%;
        }
    }
    .screen-table {
        &.table-catalogy {
            display: none;
        }
    }
    .current-sort {
        &.long {
            max-width: unset;
        }
        &.short {
            max-width: 60px;
        }
    }
}


.cart {
    margin-top: 140px;
}
.cart-inner {
    margin-top: 80px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;

    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

.cart-item-img-wrapper {
    width: 100%;    
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.cart-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-item-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
}

.cart-item-subtitle {
    color: var(--text);
    line-height: 1.4;
}

.cart-item-tools {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cart-item-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-item-dropdown-title {
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.cart-item-total-sum-wrapper {
    display: flex;
    align-items: center;
    justify-content: end;
}
.cart-item-total-sum {
    margin-top: 35px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.4;
}


/* ASIDE */
.aside-sticky {
    position: sticky;
    top: 140px;
    left: 0;

    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}
.aside-sticky-title {
    color: var(--text);
    line-height: 1.4;
}
.aside-sticky-total-sum {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.4;
}
.aside-sticky-subtitle {
    margin: 20px 0 30px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.download-pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;

    margin-top: 20px;

    background-color: var(--background);
    span {
        color: var(--accent-text);
        font-weight: 600;
        font-style: italic;
    }

    &:hover {
        background-color: white;
        border-color: var(--red);
        span {
            color: var(--red);
        }
        .download-pdf-btn-icon {
            background: 
                linear-gradient(white 0 0) padding-box,
                linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
            svg {
                color: var(--red);
            }
        }
    }
}
.download-pdf-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--accent-text) 100%) border-box;
    
    svg {
        margin: 7px;
        color: var(--accent-text);
    }
}

/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .cart-inner {
        grid-template-columns: 3fr 2fr;
    }
    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .cart-item-img-wrapper {
        min-height: 160px;
        aspect-ratio: 7/4;
    }
    .cart-item-tools {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 0.1fr;
    }
    .cart-item-total-sum-wrapper {
        grid-column: span 2;
    }
    .cart-item-total-sum {
        margin-top: 0;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .cart-inner {
        grid-template-columns: 1fr;
    }
}


/* CATALOGY WRAPPER */
.catalogy {
    margin-top: 120px;
}
.catalogy-inner {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}


/* CATALOGY ASIDE */
.catalogy-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dropdown-aside {
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--accent-background);
    transition: all 0.3s ease;
}

.dropdown-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    padding: 20px;

    &.active {
        padding: 20px 20px 0;
    }

    &.active .dropdown-icon {
        rotate: 180deg;
    }
}

.dropdown-icon {
    margin: 5px;
    transition: all 0.2s ease;
    rotate: 0deg;
}

.dropdown-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.2s ease, margin-top 0.2s ease;
    padding-inline: 20px;
}
.dropdown-aside.open .dropdown-content-wrapper {
    grid-template-rows: 1fr;
    margin-top: 12px;
    padding: 0 20px 20px;
}
.dropdown-content {
    min-height: 0;
}

.dropdown-title {
    font-style: italic;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.4;
    user-select: none;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropdown-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.list-item-title {
    display: flex;
    gap: 8px;

    color: var(--text);
    line-height: 1.4;
    user-select: none;

    cursor: pointer;
}
.list-item-link {
    color: var(--text);
    line-height: 1.4;
    user-select: none;
    text-wrap: nowrap;
}

.list-item-marker {
    width: 24px;
    aspect-ratio: 1;
    margin: 2px;
    border-radius: 50%;

    background-color: var(--accent-background);
    outline: 2px solid var(--border);
    border: 3px solid var(--accent-background);
}
.dropdown-list-item.active .list-item-marker {
    background-color: var(--red);
    outline: 2px solid var(--red);
    border: 3px solid var(--accent-background);
}

.checkbox-icon {
    width: 24px;
    aspect-ratio: 1;
    cursor: pointer;
}

.showmore-hidden {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.2s ease, margin-top 0.2s ease;

    &.open {
        grid-template-rows: 1fr;
    }
}

.dropdown-showmore {
    display: flex;
    color: var(--text);
    gap: 8px;
    cursor: pointer;
}
.dropdown-showmore .dropdown-icon {
    rotate: 0deg;
}
.dropdown-showmore.open .dropdown-icon {
    rotate: 180deg;
}
.showmore-hidden-wrapper {
    min-height: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Скрываем стандартный чекбокс */
.checkbox {
    display: none;
}

.item-title {
    color: var(--text);
    line-height: 1.4;
    user-select: none;
}

/* Контейнер для стилизованного чекбокса */
.checkbox-custom {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--accent-background);
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

/* Стилизация, когда чекбокс отмечен */
.checkbox:checked + .checkbox-custom {
    background-color: var(--red); /* Цвет фона при отметке */
    border-color: var(--red);
}

/* Добавляем галочку через псевдоэлемент */
.checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}



/* MAIN WINDOW */

.catalogy-tools-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}


/* SORT BUTTONS */
.view-btns-wrapper {
    display: flex;
    gap: 10px;
    margin-right: 30px;
}

.view-btn {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;

    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;

    &.active {
        background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        
        svg {
            color: var(--accent-text);
        }
    }
    
    svg {
        margin: 10px;
        color: var(--border);
        transition: all 0.3s ease;
    }

    &:hover {
        background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;

        svg {
            color: var(--accent-text);
        }
    }
}

.filter-btn {
    display: none;
}

.aside-tools-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.aside-apply-btn {
    padding: 15px;
    border-radius: 10px;

    color: var(--accent-text);
    font-weight: 600;
    font-style: italic;
    background-color: var(--red);

    &.disabled {
        color: var(--background);
        background-color: var(--border);
    }
}
.aside-clear-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;

    background-color: var(--background);
    border: 1px solid var(--border);

    span {
        color: var(--accent-text);
        font-weight: 600;
        font-style: italic;
    }
    svg {
        color: var(--accent-text);
    }
    
    &.disabled {
        span {
            color: var(--border);
        }
        svg {
            color: var(--border);
        }
    }
}
.close-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    max-width: 40px;
    transition: background 0.3s ease;

    background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
    
    svg {
        margin: 10px;
    }
}


/* CARDS WRAPPER */
.screen-cards-wrapper {
    margin-top: 20px;
    &.list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    &.tile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.screen-card {
    &.list {
        display: flex;
        gap: 20px;
    }
    &.tile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    
    transition: all 0.3s ease;

    &:hover {
        background: var(--accent-background);
    }
    &:hover .screen-label {
        background-color: var(--accent-background);
    }
}

.screen-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
}

.screen-card-img-wrapper {
    position: relative;
    border-radius: 10px;
}
.screen-card.list .screen-card-img-wrapper {
    width: 100%;
    /* max-width: 350px; */

    max-width: 40%;
    height: 100%;
    aspect-ratio: 1;
}
.screen-card.tile .screen-card-img-wrapper {
    width: 100%;
    aspect-ratio: 35/25;
}
.screen-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.screen-label {
    padding: 10px 20px;
    background-color: var(--background);
    font-style: italic;
    font-weight: 600;
    color: var(--accent-text);
    border-radius: 10px;
    position: absolute;
    transition: all 0.3s ease;
    z-index: 10;
    top: -20px;
}
.screen-card.list .screen-label {
    left: -20px;
}
.screen-card.tile .screen-label {
    right: -20px;
}


.screen-card-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.screen-card.list .screen-card-info-wrapper {
    max-width: 60%;
}

.screen-card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.05;
}
.screen-card-subtitle {
    color: var(--text);
    line-height: 1.4;

    p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


.screen-card-tools-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    margin-top: auto;
}
.screen-card-btn {
    display: flex;
    align-items: center;
	justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;

    position: relative;
    z-index: 20;

    background-color: var(--background);
    border: 1px solid var(--border);
    span {
        color: var(--accent-text);
        font-weight: 600;
        font-style: italic;
    }

    &:hover {
        background-color: white;
        border: 1px solid var(--red);
        span {
            color: var(--red);
        }
    }
    &:hover .screen-card-btn-icon {
        background: 
            linear-gradient(white 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
        
        svg {
            color: var(--red);
            rotate: 45deg;
        }
    }
}
.screen-card-btn .screen-card-icon {
    svg {
        rotate: 0deg;
    }
}
.screen-card-icon, .screen-card-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    cursor: pointer;

    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
        
    svg {
        transition: all 0.3s ease;
        margin: 10px;
        color: var(--border);
        rotate: 90deg;
    }
}
.screen-card:hover .screen-card-icon {
    background: 
        linear-gradient(var(--accent-background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box; 
    svg {
        color: var(--red);
        rotate: 45deg;
    }
}

.aside-head, .aside-bg {
    display: none;
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .catalogy-aside {
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 200;
        transition: all 0.3s ease;
        
        &.active {
            right: 0;

            height: 100vh;
            overflow-x: hidden;
            overflow-y: auto;

            scrollbar-width: thin;
            scrollbar-color: #888 #f0f0f0;

            background-color: var(--background);
            padding: 20px;
        }
    }
    .aside-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .aside-bg {
        width: 100%;
        height: 100%;
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 190;
        background-color: var(--background);
        opacity: 0.8;
        transition: all 0.4s ease;

        &.active {
            right: 0;
        }
    }


    .aside-title {
        font-size: 24px;
        font-weight: bold;
        color: var(--accent-text);
    }

    .catalogy-inner {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;

        background-color: var(--background);
        span {
            color: var(--accent-text);
            font-weight: 600;
            font-style: italic;
        }
        border: 1px solid var(--border);
    }

    .screen-card.list .screen-card-img-wrapper {
        height: 100%;
        width: 100%;
        max-width: 50%;
        aspect-ratio: 35/25;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .filter-btn {
        flex-grow: 1;
    }
    .view-btns-wrapper {
        display: none;
    }

    .screen-cards-wrapper {
        &.tile, &.list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
    }
    .screen-card {
        &.tile, &.list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
    }
    .screen-card-img-wrapper {
        max-width: unset !important;
    }

    .screen-card.list .screen-card-info-wrapper {
        max-width: 100%;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .catalogy-aside {
        width: 100%;
    }
    .catalogy-tools-wrapper {
        flex-wrap: wrap;
    }
}


.modal-form-background {
    display: none;

    &.active {
        width: 100%;
        height: 100%;

        position: fixed;
        top: 0;
        left: 0;
        z-index: 50;

        display: grid;
        place-items: center;

        background-color: rgba(0, 0, 0, 0.8);
    }
}

.modal-form-wrapper {
    max-width: 480px;
    width: 90%;
    margin-top: 120px;

    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-text);

    span {
        font-style: italic;
        color: var(--red);
    }
}
.modal-form-text {
    color: var(--text);
    line-height: 1.4;
    text-wrap: balance;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal-form-input {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);

    &.red {
        border-color: var(--red);
        color: var(--red);
    }

    &:focus {
        border-color: var(--accent-text);
        color: var(--accent-text);
    }

    &.disabled {
        pointer-events: none;
    }
}

.modal-form-label {
    display: flex;
    align-items: start;

    color: var(--text);
    line-height: 1.4;
    cursor: pointer;

    &.disabled {
        pointer-events: none;
    }
}
.modal-form-check {
    display: none;
}
.modal-form-check-custom {
    display: inline-block;
    width: 32px;
    aspect-ratio: 1;
    margin-right: 6px;
    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}
/* Стилизация, когда чекбокс отмечен */
.modal-form-check:checked + .modal-form-check-custom {
    background-color: var(--red); /* Цвет фона при отметке */
    border-color: var(--red);
}
/* Добавляем галочку через псевдоэлемент */
.modal-form-check:checked + .modal-form-check-custom::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-form-btns-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;

    background-color: var(--red);
    border: 1px solid var(--red);
    span {
        color: white;
        font-weight: 600;
        font-style: italic;
    }

    &.disabled {
        background-color: var(--border);
        border-color: var(--border);
        span {
            color: var(--background);
            font-weight: 600;
            font-style: italic;
        }
    }
    &.disabled .submit-btn-icon {
        background: 
            linear-gradient(var(--border) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--background) 100%) border-box;
    
        svg {
            color: var(--background);
        }
    }

    &:hover {
        background-color: white;
        border-color: var(--red);
        span {
            color: var(--red);
        }
    }
    &:hover .submit-btn-icon {
        background: 
        linear-gradient(white 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    
        svg {
            color: var(--red);
        }
    }

    &.disabled:hover {
        cursor: no-drop;
        border-color: var(--border);
        background-color: var(--border);
        span {
            color: var(--background);
            font-weight: 600;
            font-style: italic;
        }
    }
    &.disabled:hover .submit-btn-icon {
        background: 
        linear-gradient(var(--border) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--background) 100%) border-box;
    
        svg {
            color:var(--background);
        }
    }
}
.submit-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--red) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, white 100%) border-box;
    
    svg {
        margin: 7px;
        color: white;
    }
}

.close-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: background 0.3s ease;
    cursor: pointer;

    background: 
        linear-gradient(var(--accent-background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--text) 100%) border-box;

    &.grey {
        background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
    }
    
    svg {
        color: var(--text);
        margin: 10px;
    }
}


/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .modal-form-title {
        font-size: 24px;
    }
    .modal-form-text {
        font-size: 15px;
    }

    .modal-form-wrapper {
        padding: 20px;
    }
    .modal-form-label {
        font-size: 15px;
    }
}


.screen {
    margin-top: 80px;
}
.screen.view3d {
    margin: 140px 20px 0;
}


.screen-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.screen-inner.view3d {
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 0.1fr 0.1fr 0.1fr;
    grid-template-areas: 'location panorama panorama panorama'
                         'info panorama panorama panorama'
                         'pricing panorama panorama panorama';
}

.screen-photo-wrapper {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.screen-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-screen-block {
    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aside-screen-block.location {
    grid-area: location;
}
.aside-screen-block.info {
    grid-area: info;
}
.aside-screen-block.pricing {
    grid-area: pricing;
}

.panorama-wrapper {
    grid-area: panorama;
    overflow: hidden;
}
.panorama-iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}


.aside-screen-name {
    font-size: 40px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.05;
    text-wrap: balance;
}
.screen-location {
    color: var(--accent-text);
    line-height: 1.4;
}

.aside-block-title {
    color: var(--accent-text);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 12px;
}

.aside-dropdowns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.aside-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aside-dropdown-title {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
}

.aside-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;

    span {
        color: var(--accent-text);
        font-weight: 600;
        font-style: italic;
    }

    &.grey {
        background-color: var(--background);
        border: 1px solid var(--border);
    }
    &.red {
        background-color: var(--red);
        span {
            color: white;
        }
    }

    &:hover {
        background-color: white;
        border-color: var(--red);
        span {
            color: var(--red);
        }
    }
    &.red:hover .aside-link-icon, &.grey:hover .aside-link-icon {
        background: 
        linear-gradient(white 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;

        svg {
            color: var(--red);
            rotate: 45deg;
        }
    }
}
.aside-link-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.aside-link.red .aside-link-icon {
    background: 
        linear-gradient(var(--red) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, white 100%) border-box;
    svg {
        transition: all 0.3s ease;
        color: white;
    }
}
.aside-link.grey .aside-link-icon {
    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
    svg {
        transition: all 0.3s ease;
        color: var(--border);
        rotate: 90deg;
    }
}


/* ADAPTIVE */
/* 992px - 1200px */
@media screen and (max-width: calc(1200px - 1px)) {
    .panorama-wrapper {
        aspect-ratio: 3/2;
    }
    .screen-inner.view3d {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 0.1fr 1fr auto;
        grid-template-areas: 'location location'
                             'panorama panorama'
                             'info pricing';
    }
    .aside-screen-block.pricing {
        grid-row: span 2;
        grid-column-start: 2;
        grid-column-end: 3;
        order: 2;
    }
}

/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .screen-inner {
        grid-template-columns: 1fr;
    }
    .screen-aside {
        display: flex;
        flex-direction: column;
    }
    .aside-screen-block.pricing {
        grid-row: span 2;
        grid-column-start: 2;
        grid-column-end: 3;
        order: 2;
    }
    .aside-screen-block.info {
        grid-column-start: 1;
        grid-column-end: 2;
        order: 3;
    }
    .aside-screen-block.location {
        order: 1;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .aside-screen-block.pricing {
        order: 4;
    }
    .aside-screen-block.info {
        order: 3;
    }
    .panorama-wrapper {
        order: 2;
    }
    .aside-screen-block.location {
        order: 1;
    }

    .screen-inner.view3d {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .panorama-wrapper {
        aspect-ratio: 3/4;
    }
}


.calc-block {
    margin-top: 140px;
}

.calc-titles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    width: 67%;

    p {
        text-wrap: balance;
        font-size: 18px;
        color: var(--text);
        line-height: 1.4;
    }
}

.calc-block-inner {
    margin-top: 80px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.calcs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.calc-tools {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-dropdown {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--accent-text);
}
.calc-dropdown.disabled {
    pointer-events: none;
    color: var(--border);

    img {
        filter: grayscale(1);
    }
}

.dropdown-icon {
    transition: all 0.3s ease;
    rotate: 0deg;
}
.calc-dropdown.active .dropdown-icon {
    rotate: 180deg;
}

.calc-dropdown-list {
    display: none;
}
.calc-dropdown.active .calc-dropdown-list {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;

    overflow: hidden;
}

.dropdown-list-value {
    padding: 15px;
    border-radius: 10px;
    text-wrap: nowrap;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--border);
    }
}


.time-dropdowns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.time-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.time-dropdown-title {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
}

.calc-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-info-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;

    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.calc-img-wrapper {
    width: 100%;
    aspect-ratio: 2/1;
    background-color: var(--border);
    border-radius: 10px;

    display: grid;
    place-items: center;
    p {
        color: var(--text);
        text-align: center;
    }

    position: relative;
    overflow: hidden;
}
.calc-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    &.disabled {
        display: none;
    }
}

.calc-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 0;

    &.table-border {
        padding: 20px;
        border: 1px solid var(--border);
        border-radius: 10px;
    }

    &.disabled {
        display: none;
    }
}
.calc-table-item {
    color: var(--text);
    line-height: 1.4;
    display: flex;
    align-items: center;

    &:nth-of-type(even) {
        justify-content: end;
        font-weight: 600;
        text-align: right;
        color: var(--accent-text);
		font-variant-numeric: tabular-nums;
    }

    &.small-size {
        font-size: 15px;
    }
}
.table-item-info {
    display: block;
    &.disabled {
        display: none;
    }
}

.calc-close-btn, .add-screen-btn {
    width: fit-content;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;

    background-color: var(--background);
    border: 1px solid var(--border);

    span {
        color: var(--text);
        font-weight: 600;
        font-style: italic;
    }
    svg {
        color: var(--text);
    }

    &.disabled {
        display: none;
    }
}
.add-screen-btn {
    align-self: flex-start;
}

.calc-close-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    max-width: 40px;
    transition: background 0.3s ease;

    background: 
            linear-gradient(var(--background) 0 0) padding-box,
            linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
    
    svg {
        margin: 10px;
    }
}


/* ASIDE */
.calc-sticky {
    position: sticky;
    top: 140px;
    left: 0;

    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}
.calc-sticky-title {
    color: var(--text);
    line-height: 1.4;
}
.calc-sticky-total-sum {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.4;
	font-variant-numeric: tabular-nums;
}
.calc-sticky-subtitle {
    margin: 20px 0 30px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.calc-pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;

    margin-top: 20px;

    background-color: var(--background);
    span {
        color: var(--accent-text);
        font-weight: 600;
        font-style: italic;
    }

    &.disabled {
        pointer-events: none;
        span {
            color: var(--border);
        }
        .calc-pdf-btn-icon {
            background: 
                linear-gradient(var(--background) 0 0) padding-box,
                linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--border) 100%) border-box;
            svg {
                color: var(--border);
            }
        }
    }

    &:hover {
        background-color: white;
        border-color: var(--red);
        span {
            color: var(--red);
        }
        .calc-pdf-btn-icon {
            background: 
                linear-gradient(white 0 0) padding-box,
                linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
            svg {
                color: var(--red);
            }
        }
    }
}
.calc-pdf-btn-icon {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: background 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--accent-text) 100%) border-box;
    
    svg {
        margin: 7px;
        color: var(--accent-text);
    }
}


/* 992px - 1200px */
@media screen and (max-width: calc(1200px - 1px)) {
    .calc {
        grid-template-columns: 1fr;
    }
    .calc-close-btn {
        margin-top: 20px;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .calc-block-inner {
        grid-template-columns: 1fr;
    }
    .add-screen-btn {
        width: 100%;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .calc {
        padding: 20px;
    }
    .calc-sticky {
        padding: 20px;
    }
    .calc-titles-wrapper {
        width: 100%;
    }
    .current-value {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 55px;
    }
}



.team {
    margin-top: 120px;
}

.team-inner {
    margin-top: 40px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.manager {
    padding: 30px;
    background:
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, var(--border) 20%, var(--accent-background) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;

    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-rows: 1fr auto;
    gap: 16px;
}

.manager-photo-wrapper {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;

    grid-row: span 2;
}
.manager-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.manager-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.manager-title, .manager-phone {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-text);
    line-height: 1.4;
    transition: all 0.3s ease;
}
.manager-phone:hover {
    color: var(--red);
}
.manager-subtitle {
    font-size: 16px;
    color: var(--text);
}

.manager-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: end;
}

.manager-icons-wrapper {
    display: flex;
    gap: 20px;
}
.manager-icon {
    width: 40px;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;

    background: 
        linear-gradient(var(--background) 0 0) padding-box,
        linear-gradient(120deg, rgba(0, 0, 0, 0) 20%, var(--red) 100%) border-box;
    
    svg {
        color: var(--accent-text);
        transition: all 0.3s ease;
    }
}
.manager-tg {
    fill: var(--accent-text);
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .manager {
        padding: 20px;
    }
    .manager-links {
        grid-column: span 2;
        grid-column-start: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .team-inner {
        grid-template-columns: 1fr;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .manager-title, .manager-phone {
        font-size: 20px;
        text-wrap: nowrap;
    }
}


.page-404 {
    padding: 6px 0;
    margin: 140px 20px 20px;
    height: 80vh;
    
    background-color: black;
    border: 1px solid var(--border);
    border-radius: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
}

.square {
    width: 82px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #1d1d1d;
    margin: 2px;
    box-shadow: 0 0 2px #000;
    transition: 1s ease;
}
  
.square:hover {
    transition-duration: 0s;
}

.page-404-inner {
    width: 100%;
    height: 100%;

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

.title-404 {
    font-size: 96px;
    text-align: center;
    font-weight: bold;
    line-height: 1.05;
    font-style: italic;
    color: var(--accent-text);

    span {
        color: var(--red);
    }
}
.subtitle-404 {
    font-size: 40px;
    color: var(--accent-text);
    font-weight: bold;
    line-height: 1.05;

    span {
        color: var(--red);
        font-style: italic;
    }
}

.info-404 {
    max-width: 50%;
    background-color: var(--accent-background);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    gap: 32px;
	position: absolute;
}
.text-page404 {
    color: var(--text);
    line-height: 1.4;
}

.cart-notification{
    position: fixed;
    right: -150%;
    bottom: 40px;
    z-index: 1000;
    color: var(--accent-background);
    padding: 20px;
    background: var(--accent-text);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.cart-notification.show{
    right: 40px;
}


/* 768px - 992px */
@media screen and (max-width: calc(992px - 1px)) {
    .page-404 {
		margin-top: 100px;
    }
    .info-404 {
        max-width: 100%;
        padding: 20px;
        gap: 16px;
    }
}

/* 576px - 768px */
@media screen and (max-width: calc(768px - 1px)) {
    .subtitle-404 {
        font-size: 24px;
    }
}


/* POLICY */

.policy {
    margin-top: 120px;
}

.policy-inner {
    h1 {
        font-size: 28px;
        font-weight: bold;
        color: var(--accent-text);
        text-align: center;
    }

    h6 {
        color: var(--accent-text);
        font-size: 24px;
        font-weight: bold;
        line-height: 1.4;
        margin: 24px 0 12px;
    }

    p {
        color: var(--text);
        line-height: 1.3;
        font-size: 18px;
        margin-bottom: 8px;

        a {
            color: var(--text);
            text-decoration: underline;
        }

        &:last-of-type {
            margin-top: 12px;
        }
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    li {
        color: var(--text);
        line-height: 1.3;
        font-size: 18px;
        list-style: disc;
        margin-left: 18px;
    }
}

.policy-table {
    display: grid;
    grid-template-columns: auto auto;
}

.policy-table-item {
    padding: 20px;
    border: 1px solid var(--border);

    color: var(--text);
    line-height: 1.3;
    font-size: 18px;

    &:nth-of-type(1),
    &:nth-of-type(2) {
        color: var(--accent-text);
        font-weight: bold;
    }
}

/* 320px - 576px */
@media screen and (max-width: calc(576px - 1px)) {
    .policy-table-item {
        padding: 10px;
        font-size: 16px;
    }
}