:root {
    --light-color: #E4E4E4;
    --dark-color: rgb(71, 71, 71);
    --dark-txt-color: #2B2B2B;
    --primary-color: #f5f5f5;
    --black-color: #2B2B2B;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    align-items: center;

}
html, body {
    overflow-x: hidden;
}
.main_width {
    width: 100%;
    max-width: 1100px;
    padding-left: 1em;
    padding-right: 1em;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical {
    flex: 6;
    display: flex;
    flex-direction: column;
}
.top-vertical {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (max-width: 532px) {
    .top-vertical {
        flex: 100%;
    }
}
.horizontal {
    display: flex;
    align-items: stretch;
    gap: 5vw;
}

.horizontal-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
}

.horizontal-center_n {
    display: flex;
    align-items: stretch; /* растягивает оба блока по высоте */
    margin-top: 32px;
    height: fit-content;
}
@media (max-width: 532px) {
    .horizontal-center_n {
        justify-content: flex-start;
        margin-top: 0;
        width: 100%;
        gap: 1em;
    }
}

.div-0 {
    display: flex;
    height: 70px;
}
.gap1 {
    gap: 3em;
}

.gap05 {
    gap: 2em;
}
.gap4 {
    gap: 1em;
}

.txt_rob {
    font-family: 'Roboto', sans-serif;
}

.txt_rob_mono {
    font-family: 'Roboto', monospace;
}


/*----------------------------------------------*/
.typewriter {
    font-family: 'Roboto Mono', monospace;
    color: var(--light-color);
    line-height: 1.1; /* уменьши расстояние между строками */
    white-space: pre-line; /* сохраняет переносы строк */
    display: inline-block;
    min-height: 3.3em;
    font-size: clamp(46px, 4vw, 62px);
}

.cursor {
    display: inline-block;
    margin-left: 4px;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/*-------------------------------------------------*/




.top-sec h1 {
    font-size: clamp(46px, 4vw, 70px);
    line-height: clamp(46px, 4vw, 65px);
}


.top-sec span {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 300;
}






.white-block {
    padding-top: 2em;
    padding-bottom: 2em;
}
.new-dark-background {
    background-color: #484848;
    width: 100%;
    display: flex;
    justify-content: center;
}

.vertical-fon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.fon-svg {
    width: 100%;
}


@media (max-width: 768px) {
    .new-dark-background {
        padding-top: 1em;
        padding-bottom: 1em;
    }
}















.dark-background {
    background-image: url("../img/head-svg.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.main-dark-background {
    background-image: url("../img/fon-1.svg");
    background-size: cover;
    background-repeat: no-repeat;
}

.main-dark-background-2 {
    background-image: url("../img/Group 33.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.main-dark-background-3 {
    background-image: url("../img/25.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.light-text {
    color: var(--light-color);
}
.dark-grey-txt {
    color: var(--dark-txt-color);
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--light-color);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 200;
    position: fixed;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    background-color: var(--light-color);
}

.logo_header {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo_header:hover {
    color: #61A841;
}
.tlg-svg {
    fill: #039ae3;
    width: 1.5em;
    height: 1.5em;
    margin-right: 8px;
}

.header_button {
    background: var(--black-color);
    padding: 10px;
    color: var(--light-color);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.header_button:hover {
    background-color: #494949;

}
.header_button:active {
    background-color: #494949;
}

.a-bot {
    text-decoration: underline;
    color: var(--light-color);
}

.a-bot:hover {
    color: #039ae3;
    transition: color 0.3s ease;
}

/*ДРУГИЕ СТРАНИЦЫ ТИТУЛКА СВЕРХУ*/
.typewriter-2 {
    font-family: 'Roboto Mono', monospace;
    color: var(--light-color);
    display: inline-block;
    font-size: clamp(42px, 4vw, 62px);
}

.logo_container-2 {
        position: relative;
        display: flex;
        flex: 0 0 40%;
        justify-content: flex-end;
}
.title-logo-2 {
    width: 100%;
}
@media (max-width: 500px) {
    .logo_container-2 {
        position: absolute;
        top: 90px;
        right: 6%;
    }
    .title-logo-2 {
        width: 90px;
    }
}
/*ДРУГИЕ СТРАНИЦЫ ТИТУЛКА СВЕРХУ*/

/*КНОПКИ*/
.btn {
    width: fit-content;
    height: fit-content;
    padding: 12px 14px;
    font-size: clamp(16px, 2.5vw, 20px);
    border-radius: 6px;
    border: 5px solid var(--black-color);
    font-weight: bold;
    color: var(--black-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.a-btn {
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-color);
}

.btn:hover {
    background-color: var(--black-color);
    color: var(--light-color);
}
.btn:hover .svg-btns {
    fill: var(--light-color);
}

.btn:active {
    animation: click 0.25s ease;
}
.svg-btns {
    fill: var(--black-color);
}

@keyframes click {
    0% {
        transform: scale(1);
        color: var(--black-color);
    }
    50% {
        transform: scale(0.95);
        color: gray;
    }
    100% {
        transform: scale(1);
        color: var(--black-color);
    }
}
@media (max-width: 532px) {
    .btn {
        width: 100%;
        padding: 12px 14px;
        font-size: clamp(22px, 2.5vw, 25px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .gap1 {
        gap: 1.5em;
    }
}

/*КНОПКИ*/

/*ПЕРВЫЙ БЛОК */
.soda-logo {
    position: absolute;
    height: 100%; /* растягиваем по высоте контейнера */
    width: auto;
    object-fit: contain;
    opacity: 0;
    filter: blur(8px);
}

.logo_container {
    position: relative;
    display: flex;
    flex: 0 0 40%;
    justify-content: flex-end;
}
.span-adapt {
    font-size: clamp(18px, 2vw, 22px);
    padding-right: 25px;
}

/*Плавное появление + левитацию */
.img1 {
    animation: appear 0.2s ease forwards 0s, levitation1 1.5s ease-in-out infinite alternate;
}

.img2 {
    animation: appear 0.2s ease forwards 0.2s, levitation2 1.9s ease-in-out infinite alternate;
}

.img3 {
    animation: appear 0.2s ease forwards 0.4s, levitation3 1.8s ease-in-out infinite alternate;
}

.img4 {
    animation: appear 0.2s ease forwards 0.6s, levitation4 1.9s ease-in-out infinite alternate;
}

/*Анимация появления*/
@keyframes appear {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* левитации */
@keyframes levitation1 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-3px, -3px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes levitation2 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-3px, -3px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes levitation3 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-3px, 3px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes levitation4 {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-3px, 3px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@media(max-width: 532px) {
    .logo_container {
        display: none;
    }
}
@media (max-width: 685px) {
    .span-adapt {
        display: none;
    }
}

/*ВТОРОЙ БЛОК*/
.font-h2 {
    font-size: clamp(2em, 3vw, 4em);
    line-height: 1em;
    font-weight: bold;
}

.block-img {
    width: clamp(100px, 30vw, 300px);
}
@media (max-width: 768px) {
    .block-img {
        width: 100px;
    }
}

.center-img {
    display: flex;
    flex: 3;
    align-items: center;
}
/*ТРЕТИЙ БЛОК*/
.svg-btns {
    height: 30px;
    width: 30px;
    margin-right: 8px;
}
/*ЧЕТВЕРТЫЙ БЛОК*/
.main-container {
    display: flex;
    align-items: stretch;
    gap: 6vw;
}

.block-content {
    display: flex;
    flex-direction: column;
    gap: 2em;
    flex: 6;
}

.devices-block-txt {
    gap: 1em;
    display: flex;
    flex-direction: column;
    text-align: justify;
}
.span-main {
    font-size: clamp(1em, 3vw, 20px);
}
@media (max-width: 768px) {
    .span-main {
        text-align: justify;
    }
}

.block-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.devices-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 2em;
    column-gap: 3em;
    justify-items: center;
    align-items: start;
    align-content:  space-between;
    flex: 3;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .horizontal {
        flex-direction: column;
        align-items: center;
    }
    .vertical {
        flex-direction: column;
        align-items: center;
    }
    .horizontal-center {
        flex-direction: column;
        align-items: center;
        gap: 5vw;
    }
    .reverce {
        flex-direction: column-reverse;
        align-items: center;
        gap: 5vw;
    }
    .font-h2 {
        text-align: center;
    }
}



.devices-items {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.icons-devices{
    width: 75%;
    aspect-ratio: 1 / 1;
}
@media (max-width: 768px) {
    .icons-devices{
        min-width: 60px;
        aspect-ratio: 0 / 0;
    }
    .devices-block {
        display: flex;
        justify-content: center;
        align-items: baseline;
        width: 100%;
    }
}

.devices-span {
    display: block;
    color: var(--dark-txt-color);
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    line-height: clamp(24px, 2vw, 30px);
    font-family: 'Roboto', monospace;
    text-align: center;
}

.device-items a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.5vw;
}

.device-items:hover img{
    transform: scale(1.01);
}

.device-items:hover span {
    color: #61A841;
    transition: color 0.3s ease;
}

/*ПЯТЫЙ БЛОК*/
.countries-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    row-gap: 1.2em;
    column-gap: 3em;
    flex: 3;
}

.countries-items {
    width: 100%;
}

.countries-span {
    display: block;
    color: var(--dark-txt-color);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: bold;
    font-family: 'Roboto', monospace;
    text-align: center;
}

.countries-items a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.3em;
    width: 100%;
}
.icons-countries {
    border: 2px solid black;
    border-radius: 8px;
    width: 100%;
}
.countries-items:hover img{
    transform: scale(1.01);
}

.countries-items:hover span {
    color: #61A841;
    transition: color 0.3s ease;
}
@media (max-width: 768px) {

    .countries-block {
        display: flex;
        align-items: baseline;
        width: 100%;
        gap: 1em;
    }
    .icons-countries {
        width: 100%;
    }
    .countries-span {
        display: none;
    }
}
/*ШЕСТОЙ БЛОК*/
.gap2 {
    gap: 1vw;
}

.center {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center
}


/*СЕДЬМОЙ БЛОК*/

.list {
    list-style: none; /* убираем стандартные точки */
    padding-left: 0; /* убираем стандартный отступ */
}

.list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;

}

.check-list {
    width: 25px;
    margin-right: 10px;
}

/*ХЭДЕР*/

/* ТОЛЬКО верхний уровень */
.header_navigation > ul {
    list-style: none;
    display: flex;
    gap: 10px;
    font: 100 18px/26px "Roboto", sans-serif;
    align-items: center;
}


.header_navigation > ul > li {
    position: relative;
}


.header_navigation a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    display: block;
    transition: color 0.2s;
}

.header_navigation a:hover {
    color: #61A841;
}
.icons-header {
    border-radius: 2px;
    border: 1px solid var(--dark-txt-color);
    width: 30px;
}

.div-nav {
    width: 90px;
    font: 100 18px/26px "Roboto", sans-serif;
    color: #333;
    cursor: pointer;
    height: 70px;
    display: flex;
    align-items: center;
}

/* ПОДМЕНЮ (вложенный ul) */
.header_navigation .dropdown-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: -3%;
    background: #e2e2e2;
    min-width: 140px;
    border-radius: 0 0 12px 12px;
    padding: 6px 0;
    box-shadow: -6px 7px 6px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}


.header_navigation .dropdown-menu li a {
    padding: 10px 15px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header_navigation .dropdown:hover > .dropdown-menu {
    display: block;
}


.pr1, .pr2, .pr3, .pr4, .pr5 {
    opacity: 1;
    transform: translateX(0);
    max-width: 300px; /* ширина блока, подбери под свой размер */
    visibility: visible;
    transition:
            opacity 0.6s ease,
            transform 0.6s ease,
            visibility 0.6s ease,
            max-width 0.6s ease;
}

@media (max-width: 900px) {
    .pr1 {
        opacity: 0;
        transform: translateX(150px); /* насколько далеко "уезжает" */
        max-width: 0;
        visibility: hidden;
    }
}

@media (max-width: 850px) {
    .pr1 {
        display: none;
    }
}
@media (max-width: 750px) {
    .pr3 {
        opacity: 0;
        transform: translateX(200px); /* насколько далеко "уезжает" */
        max-width: 0;
        visibility: hidden;

    }
}
@media (max-width: 650px) {
    .pr3 {
        display: none;
    }
    .pr4 {
        opacity: 0;
        transform: translateX(200px); /* насколько далеко "уезжает" */
        max-width: 0;
        visibility: hidden;
    }
}
@media (max-width: 550px) {
    .pr4 {
        display: none;
    }
    .pr5 {
        opacity: 0;
        transform: translateX(200px); /* насколько далеко "уезжает" */
        max-width: 0;
        visibility: hidden;
    }
}

@media (max-width: 500px) {
    .header_button, .pr5 {
        display: none;
    }
}

/*ФУТЕР*/
.footer {
    width: 100%;
    background-color: var(--dark-color);
}

.footer-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    text-decoration: none;
    color: var(--light-color);
    font-size: clamp(14px, 2vw, 16px);
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

.footer-links a:hover {
    transform: scale(1.08);
}

.footer-links svg {
    fill: var(--light-color);
    width: 1em;
    height: 1em;
}

.footer-box span {
    color: var(--light-color);
    font-size: clamp(16px, 2vw, 24px);
    border-bottom: #61A841 3px solid;
}

.footer-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2em;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2em;
}
.footer-icons {
    display: flex;
    gap: 1em;
}
.footer-icons svg,
.footer-icons-2 svg {
    fill: var(--light-color);
    width: 30px;
    height: 30px;
}


.footer-main a {
    text-decoration: none;
}

.icons-footer {
    border: 1px solid var(--light-color);
    border-radius: 2px;
    width: 30px;
}

.icons-footer:hover,
.icons-footer-2:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .footer-box {
        gap: 0.6em;
    }
    .footer-main {
        gap: 0.6em;
    }
    .footer-items {
        padding-top: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1em;
        align-items: start;
        justify-items: center;
    }
}
@media (max-width: 500px) {
    .footer-items {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
        text-align: left;
    }
}
/*ФУТЕР*/

/*Модальное окно*/
.modal-fon {
    position: fixed;
    inset: 0;
    background-color: var(--dark-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 250;
}

/* Окно */
.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--light-color);
    border: 5px solid black;
    border-radius: 4px;
    padding: 2em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1em;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 250;
    width: 70%;
    height: fit-content;
}

.close-modal {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.close {
    width: 42px;
    height: 42px;
    transition: transform 0.2s ease;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close-modal:hover .close {
    transform: scale(1.1);
}
.modal-fon.active,
.modal-window.active {
    opacity: 1;
    visibility: visible;
}

.modal-window.active {
    transform: translate(-50%, -50%) scale(1);
}

.modal-window h2 {
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.modal-window p {
    margin-bottom: 1.5em;

}
.btn-modal {
    text-decoration: none;
    width: fit-content;
    height: fit-content;
    padding: 12px 14px;
    font-size: clamp(12px, 3vw, 20px);
    border-radius: 6px;
    border: 5px solid var(--black-color);
    font-weight: bold;
    color: var(--black-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    background-color: var(--black-color);
    color: var(--light-color);
}
.btn-modal:hover .svg-btns {
    fill: var(--light-color);
}

.btn-modal:active {
    animation: click 0.25s ease;
}

@media (max-width: 768px) {
    .modal-window {
        padding: 1em;
        width: 85%;
    }
    .modal-window p {
        font-size: 18px;
    }
}















/*ХЭДЕР МОБИЛЬНАЯ*/

.mobile-header ,
.mobile-menu {
    display: none;
}

@media (max-width: 500px) {
    .mobile-header {
        display: flex;
        justify-content: flex-end;
        padding: 2px;
        align-items: center;
        position: relative;
        z-index: 100;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 210;
        height: 22px;
        width: 40px;

        /* Кликабельная область */
        padding: 24px 0 24px 44px; /* top right bottom left */
        box-sizing: content-box;
        background: transparent;
    }

    .burger span {
        height: 4px;
        width: 100%;
        background: var(--dark-txt-color);
        border-radius: 3px;
        transition: 0.3s;
    }

    .mobile-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 60%;
        background-color: var(--light-color);
        border: 5px solid var(--dark-txt-color);
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1em;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 150;
    }

    .mobile-menu.active {
        right: 0;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.49);
    }

    .burger-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .burger-container span {
        font-size:  16px;
        padding-left: 16px;
        padding-top: 16px;
        padding-bottom: 0;
        color: var(--dark-txt-color);
        opacity: 0.5;
    }
    .burger-item-1 a {
        text-decoration: none;
        color: var(--dark-txt-color);
        font-size:  18px;
        padding: 8px 16px;
        display: flex;
        align-items: center;
    }
    .burger-item-1 svg {
        width: 20px;
        height: 20px;
        fill: var(--dark-txt-color);
        margin-right: 12px;
        opacity: 0.6;
    }

    .burger-item-1 a:last-child,
    .burger-item-2 a:last-child {
        border-bottom: 1px solid rgb(165, 165, 165);
        padding-bottom: 16px;
    }

    .burger-item-1 {
        display: flex;
        flex-direction: column;

    }
    .burger-item-2 {
        display: flex;
        flex-direction: column;
    }

    .burger-item-2 > div {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .burger-item-2 a {
        width: 100%;
        text-decoration: none;
        color: var(--dark-txt-color);
        font-size: 18px;
        display: flex;
        gap: 1em;
        padding: 8px 16px;
    }
    .burger-item-2 img {
        width: 30px;
        height: auto;
        border-radius: 2px;
        border: 1px solid var(--dark-txt-color);
    }
    .countries-menu-img {
        width: 100%;
        height: auto;
    }

    .burger-item-3 {
        display: flex;
        justify-content: center;
        padding: 16px;
    }
    .burger-item-3 img {
        width: 100px;
    }

    /* Анимация бургера */
    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(40deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-40deg);
    }
}



/*ТАРИФЫ*/
.tarifs-center {
    display: block;
    text-align: center;
    margin-bottom: 1em;
}
.tarifs-container {
    gap: 1em;
    display: flex;
    flex-wrap: wrap;
}

.tarif-item-wrapper {
    position: relative;
    overflow:  hidden;
}

.tarif-item-wrapper-2 {
    display: flex;
}

.tarif-item-1 {
    border: 8px solid var(--dark-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 250px;
}
.tarif-item-3  {
    width: 750px;
    overflow: hidden;
}
.tarif-item-wrapper-2 {
    display: flex;
    gap: 1rem;
}

.tarif-item-wrapper-3 {
    display: none;
}
@media (max-width: 1094px) {
    .tarifs-container {
        justify-content: center;
    }
    .tarif-item-3  {
        width: 250px;
    }
}
@media (max-width: 565px) {
    .tarif-title-block {
        justify-content: space-around;
    }
    .tarifs-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        width: 100%;

    }
    .tarif-item-1 {
        width: 100%;
        height: 100%;
    }
    .tarif-item-3  {
        width: 100%;
        height: 100%;
    }
    .tarif-item-wrapper-2 {
        display: none;
    }
    .tarif-item-wrapper-3 {
        display: flex;
        flex-direction: column;
        margin-top: 1em;
        gap: 1em;
    }
    .tarif-item-2 {
        width: 100%;
        height: 70px;
    }
    .free-box-text h2 {
        text-align: center;
        margin-bottom: 1em;
    }
}
@media (max-width: 440px) {
    .tarifs-container {
        aspect-ratio: 1 / 1;
    }
}

.free-box-text h2 {
    font-size: clamp(24px, 2vw, 32px);
}
.free-box-text ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.free-box-text ul li {
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
    font-size: clamp(16px, 2vw, 20px);
}

.free-box-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background-image: url("/static/img/icons/check-double.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.tarif-item-2 {
    border: 8px solid var(--dark-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 250px;
    height: 312px;
}


/* Плашка со скидкой */
.sale {
    position: absolute;
    top: 25px;
    right: -45px;
    width: 160px;
    text-align: center;
    color: var(--light-color);
    font-weight: bold;
    padding: 4px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    transform: rotate(45deg);
    background: #43a047;
    font-size: clamp(11px, 4vw, 14px);
}
.sale-color {
    background: rgba(220, 93, 0, 0.68);
}

.tarif-title-block {
    display: flex;
    flex-direction: column;
    background-color: var(--dark-color);
    color: var(--light-color);
    width: 100%;
    height: 100%;
}

.tarif-title-block h2  {
    font-size: clamp(18px, 4vw, 38px);
    padding-left: 5px;
}
.tarif-title-block span {
    opacity: 0.7;
    padding-left: 7px;
}
.sale-tarifs {
    font-size: clamp(12px, 4vw, 16px);
}
.tarif-title-block > span:nth-of-type(2) {
    margin-bottom: 7px;
}
.tarif-main-block {
    display: flex;
    flex-direction: column;
    padding: 0 1em;
}
.ul-tarifs-block {
    list-style: none;
    padding-left: 0;
}

.ul-tarifs-block li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    font-size: 1em;
}

.ul-tarifs-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background: url("/static/img/icons/check-mark.svg") no-repeat center / contain;
}

.btn-tarifs {
    width: fit-content;
    height: fit-content;
    padding: 12px 14px;
    font-size: clamp(11px, 2.5vw, 18px);
    border: 5px solid #ea6b20;
    border-radius: 6px;
    font-weight: bold;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-tarifs:hover {
    background-color: #ea6b20;
    color: var(--light-color);
    border: 5px solid  var(--dark-color);
}

.btn-tarifs:active {
    animation: click 0.25s ease;
}
@keyframes click {
    0% {
        transform: scale(1);
        color: var(--black-color);
    }
    50% {
        transform: scale(0.95);
        color: gray;
    }
    100% {
        transform: scale(1);
        color: var(--black-color);
    }
}

@media (max-width: 565px) {

    .tarif-item-wrapper-2 {
        display: none;
    }
    .tarif-main-block {
        display: none;
    }
    .tarif-item-2 {
        width: 100%;
        height: 110px;
    }
    .btn-tarifs {
        display: none;
    }
}
.sale span:first-child {
    display: block;
}

.sale span:last-child {
    display: none;
}

@media (max-width: 565px) {
    .sale span:first-child {
        display: none;
    }
    .sale span:last-child {
        display: block;
    }
    .sale {
        top: 10px;
        right: -65px;
        width: 160px;
        padding: 2px 0;
        font-size: 10px;
    }
}

/*ТАРИФЫ*/
