@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    font-family: "Mulish", sans-serif;
}

:root {
    --theme-text-color: #000000;
    --theme-text-desc-color: #3e3e3e;
    --theme-mbg-color: #f3faff;
    --theme-header-color: #f0f3f5cb;
    --theme-btn-prem-color: #f6fdff;
    --theme-btn-color: #0f1d26;
    --theme-btn-text-color: #f6fdff;
    --theme-body-color: #fff;
    --theme-box-color: #F8FAFC;
    --theme-border-color: #d7dfe1;
    --theme-scroll-color: #d5dbdfd1;
    --theme-gradient1: #fbfbfb;
    --theme-gradient2: #e8e8e8;
    --theme-footer-bg: #f8f9fa;
    --input-color: #F0F2F4;
    --main-color: #078ad6;
    --fp: #f6fdff;
}

.dark-theme {
    --theme-text-color: #f8feff;
    --theme-text-desc-color: #bdbdbd;
    --theme-mbg-color: #080c0e;
    --theme-header-color: #080c0ecb;
    --theme-btn-prem-color: #0f1d26;
    --theme-btn-color: #f6fdff;
    --theme-btn-text-color: #181818;
    --theme-body-color: #080c0e;
    --theme-box-color: #101315;
    --theme-border-color: #1d2328;
    --theme-scroll-color: #232427;
    --theme-gradient1: #090e10;
    --theme-gradient2: #0d1316;
    --theme-footer-bg: #101315;
    --input-color: #181c1e;
    --fp: #0a1013;
}

body {
    transition: 0.3s ease-in-out;
    background: var(--theme-body-color);
}

/* --------------- Header ---------------*/

header {
    width: 100%;
    top: 0;
    right: 0;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    padding: 22px 10%;
    left: 0;
    transition: 0.3s ease-in-out;
    z-index: 5;
}

header.sticky {
    background: var(--theme-header-color);
    box-shadow: 0 0 20px #00000018;
    backdrop-filter: blur(12px);
}

header .theme {
    vertical-align: middle;
    font-size: 20px;
    margin-right: 10px;
    color: var(--theme-text-color);
    cursor: pointer;
}

header .logotype {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-color);
    transition: 0.3s ease-in-out;
}

@media (hover: hover) {
    header .logotype:hover {
        color: var(--main-color);
    }
}

@media (hover: none) {
    header .logotype:active {
        color: var(--main-color);
    }
}

header .links {
    display: flex;
    margin-left: 125px;
}

header .links a {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text-color);
    margin-right: 60px;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

header .links li:last-child a {
    margin-right: 0;
}

header .links a:hover {
    color: var(--main-color);
}

header .reg {
    font-weight: 600;
    color: var(--theme-btn-text-color);
    background: var(--theme-btn-color);
    padding: 9px 18px;
    border-radius: 50px;
    transition: 0.30s ease-in-out;
}

header .reg:hover {
    color: #fff;
    background: var(--main-color);
}

header .login {
    font-weight: 600;
    color: var(--white-text-color);
    margin-right: 15px;
}

header .mobile-mode {
    display: none;
}

header .menu-list {
    display: none;
}

/* -- main -- */
#main {
    width: 100%;
    height: 100vh;
    padding-top: 160px;
    padding-bottom: 130px;
    display: flex;
    justify-content: center;
}
.container {
    border-radius: 10px;
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    border-radius: 10px;
    background: var(--theme-box-color);
    border: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

label {
    font-weight: 600;
    color: var(--theme-text-desc-color);
    transition: 0.3s ease-in-out;
}

.con {
    border-radius: 10px;
    padding: 20px 22px;
    background: var(--theme-box-color);
    border: 1px solid var(--theme-border-color);
    margin-left: 14px;
    transition: 0.3s ease-in-out;
}

.purchase-side {
    margin-top: 14px;
}
h2 { 
    font-size: 20px !important;
}
h1, h2 {
    color: var(--theme-text-color);
    margin-bottom: 4px;
    font-size: 22px;
    transition: 0.3s ease-in-out;
}

p {
    font-size: 16px;
    color: var(--theme-text-desc-color);
    line-height: 150%;
    transition: 0.3s ease-in-out;
}

.purchase-btns .btn button {
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.purchase-btns .kassa button {
    background: var(--main-color);
    color: white;
    transition: 0.3s ease-in-out;
}

.purchase-btns .kassa button:hover {
    background: #0b6396;
}

a {
    cursor: pointer;
    color: var(--main-color);
}

.purchase-btns .fp a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: var(--input-color);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

.purchase-btns .fp a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.purchase-btns .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.purchase-btns .btn img {
    vertical-align: middle;
}

.prd-name {
    color: var(--theme-text-desc-color);
}

.price {
    font-weight: 600;
    color: var(--theme-text-color);
    transition: 0.3s ease-in-out;
}

.price, .prd-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desc {
    padding: 10px 0;
}

.manual {
    padding-top: 5px;
}

.prd-name {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

.input-box .buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.input-box .buttons input {
    display: none;
}

.input-box .buttons label {
    width: 100%;
    padding: 10px 15px;
    font-size: 15px;
    color: var(--theme-text-desc-color);
    border-radius: 8px;
    background: var(--input-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.input-box .buttons label:hover {
    background: var(--main-color);
    color: white;
}
.input-box .buttons input:checked + label {
    background: var(--main-color);
    color: white;
}

.input-box {
    margin: 10px 0;
}

.head {
    margin-bottom: 10px;
}

.head input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    outline: none;
    border: 1px solid var(--theme-border-color);
    background: var(--input-color);
    font-size: 16px;
    margin-right: 4px;
    transition: 0.3s ease-in-out;
    color: var(--theme-text-color);
}
.head .promo {
    display: flex;
}

.head .promo button {
    padding: 8px 16px;
    margin-left: 4px;
    border-radius: 8px;
    background: var(--main-color);
    font-size: 15px;
    cursor: pointer;
    border: none; outline: none;
    font-weight: 600;
    color: #fff;
    transition: 0.3s ease-in-out;
}

.head .promo button:hover {
    background: #0b6396;
}

.price {
    margin-bottom: 12px;
}

.images {
    padding: 10px 0;
    border-bottom: 1px solid var(--theme-border-color);
    transition: 0.3s ease-in-out;
}

.images {
    position: relative;
    transition: 0.15s ease-in-out;
}

.images .single-img {
    position: relative;
    overflow-x: hidden;
    transition: 0.15s ease-in-out;
}

.images .small {
    border: 2px solid transparent;
}

.images .single-img #mainImg {
    border-radius: 10px;
    transition: 0.15s ease-in-out;
}

.images .single-img img {
    border-radius: 8px;
}

.images .small-imgs {
    display: flex;
    overflow-x: auto;
}

.images .small-img {
    flex-shrink: 0; 
    width: 140px; 
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    margin-right: 7px; 
    transition: 0.15s ease-in-out;
}

.images .small-img:last-child {
    margin-right: 0px;
}

.footer {
    background-color: var(--theme-footer-bg);
    padding: 40px 0;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-color);
    text-align: left;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.footer a {
    color: var(--theme-text-color);
    transition: color 0.5s ease;
}

.footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-md {
    flex: 0 0 30%;
    max-width: 30%;
    padding: 0 20px;
    margin-bottom: 50px;
}

.col-md.data p {
    font-size: 14px;
    color: var(--theme-text-desc-color);
}

.col-md .loho {
    margin-bottom: 20px;
    font-size: 21px;
}

@media (hover: hover) {
    .col-md a:hover {
        color: var(--main-color); 
    }
}

@media (hover: none) {
    .col-md a:active {
        color: var(--main-color); 
    }
}

.col-md .ez {
    color: var(--theme-text-color);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
}

.col-md a {
    display: block; /* Превратить ссылки в блочные элементы */
    width: max-content; /*ограничиваем кнопочки*/
    margin-bottom: 8px; /* Расстояние между ссылками */
    text-decoration: none; /* Убрать подчеркивание */
    color: var(--theme-text-desc-color); /* Цвет текста ссылок */
    font-size: 17px;
    font-weight: 500;
    transition: color 0.5s ease;
}


@media (max-width: 767px) {
    .col-md {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }
}

.col-md a {
    display: block; /* Превратить ссылки в блочные элементы */
    width: max-content; /*ограничиваем кнопочки*/
    margin-bottom: 8px; /* Расстояние между ссылками */
    text-decoration: none; /* Убрать подчеркивание */
    color: var(--theme-text-desc-color); /* Цвет текста ссылок */
    font-size: 17px;
    font-weight: 500;
    transition: color 0.5s ease;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }

    .close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    .prev, .next {
        font-size: 30px;
        padding: 5px;
    }
}


@media (max-width: 767px) {
    .col-md {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }
}

@media screen and (max-width: 1176px) {


    header .right-side, header .links {
        display: none;
    }

    header .mobile-mode {
        display: flex;
        position: fixed;
        top: 18px;
        right: 5%;
    }

    header .theme {
        margin-top: 7px;
        margin-right: 5px;
    }

    header .menu-icon {
        font-size: 32px;
        color: var(--theme-text-color);
    }

    header .menu-list {
        display: block;
        position: absolute;
        background-color: var(--theme-body-color);
        border: 1px solid var(--theme-border-color);
        border-radius: 6px;
        z-index: 1;
        right: 30px;
        top: 70px;
        transform: translateY(-20px);
        transition: transform 0.35s ease, opacity 0.35s ease; /* Исправлено */
    }

    header li {
        color: var(--theme-text-color);
        padding: 10px 14px;
        text-decoration: none;
        display: block;
        font-size: 15px;
        border-bottom: 1px solid var(--theme-border-color);
        transition: background-color 0.2s ease-in-out;
    }

    header .menu-list li:hover {
        background-color: var(--popup-color);
    }

    header .menu-list li:last-child {
        border-bottom: 1px solid transparent;
    }

    header .menu-list a {
        font-size: 16px;
        font-weight: 600;
        color: var(--theme-text-color);
        margin-right: 0px;
        display: inline-block;
        transition: 0.3s ease-in-out;
    }

    header .menu-list.hide {
        opacity: 0;
        transform: translateY(-20px);
    }

    main {
        position: relative; /* Добавлено */
    }

    #main {
        height: auto; /* Исправлено */
        padding-left: 16px;
        padding-right: 16px;
        align-items: normal;
        flex-direction: column;
        padding-top: 80px;
    }

    .images #mainImg {
        width: 100%;
    }

    .images {
        width: 100%;
    }

    .container {
        flex-direction: column;
        padding: 15px;
        overflow: visible;
    }

    .promo-con {
        display: flex;
    }

    .right-side {
        margin-left: 0;
        width: 100%;
    }
    
    .buy-btn button {
        font-size: 14px;
        padding: 8px 14px;
    }

    .duration label {
        font-size: 14px;
        padding: 8px 14px;
    }

    .promo-con input[type="text"] {
        font-size: 14px;
    }

    .promo-con button {
        padding: 8px 8px;
        font-size: 14px;
    }

    .license label {
        font-size: 14px;
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        position: relative;
        padding-left: 30px;
        flex-direction: column;
    }

    .license label a {
        margin-left: 0px;
    }

    .con {
        margin-left: 0;
    }

    .con:first-child {
        margin-top: 14px;
    }

    .main-side {
        width: 100%; /* Добавлено для корректного отображения */
        overflow-x: auto; /* Горизонтальная прокрутка при необходимости */
    }
}
