/* css/style.css */
:root {
    --primary-color: #283947;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --text-color: #2b2d42;
    --subscribe-color: #2b2d42;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Monospace', sans-serif;
    /*background-color: var(--light-color);*/
    background-color: #262542;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100svh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-attachment: fixed;
    /*backdrop-filter: blur(8px);*/
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    background: url("../images/bg2.jpg") center no-repeat
}

.container {
    max-width: 800px;
    width: 70%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(50, 50, 50, 0.15);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #233247, #3f5a6d);
}

.block_credentials {
    position: absolute;
    max-width: 800px;
    width: 70%;
    text-align: center;
    overflow: hidden;
    bottom: 15px;
    animation: fadeIn 0.8s ease-out;
}

h1 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 2.0rem;
    margin-top: -8px;
    position: relative;
    display: inline-block;
}



p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 25px 0;
    color: var(--text-color);
}

p a {
    padding: 12px 24px;
    background-color: #324353;
    text-decoration: none;
    color: #becad2;
    border-radius: 25px;
}

p a.polit {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    text-decoration: none;
    color: var(--text-color);
}

p a.polit:hover {
    text-decoration: underline;
    color: #27B0F5;
}

p.subscribe {
    color: #becad2;
    padding: 9px 18px;
    background-color: #324353;
    text-decoration: none;
    border-radius: 40px;
    display: inline-block; /* Добавьте это */
    margin: 0 auto; /* Центрирование */
    width: auto; /* Ширина по содержимому */
}

p.subscribe:hover {
    cursor: pointer;
}

p.credentials {
    color: var(--primary-color);
    font-size: 0.6rem;
    display: inline-block; /* Добавьте это */
    margin: 0 auto; /* Центрирование */
    opacity: 0.8;
}

p.credentials_2 {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
    display: block; /* Добавьте это */
    margin: 0 auto; /* Центрирование */
    width: auto; /* Ширина по содержимому */
    margin-bottom: 10px;
}

p.desc {
    margin: 0;
}

.highlight {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.icon {
    margin: 10px 0;
    animation: scaling 2s infinite;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    color: var(--text-color);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #233247, #3f5a6d);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    color: var(--text-color);
    margin-top: 0;
    font-size: 1.8rem;
}

.modal-features {
    text-align: left;
    margin: 20px 0;
}

.modal-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    list-style-type: none;
}

.modal-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0c344e;
    font-weight: bold;
}

.features-section {
    margin: 20px 0;
}

.features-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    padding-bottom: 5px;
}

.free-features .features-title {
    color: var(--primary-color);
    font-weight: bold;
}

.premium-features .features-title {
    color: var(--primary-color);
    font-weight: bold;
}

.modal-features {
    text-align: left;
    margin: 15px 0;
    padding-left: 0;
}

.modal-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    list-style-type: none;
}

.free-features .modal-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a8f2a;
    margin-top: -5px;
    font-weight: bold;
}

.premium-features .modal-features li:before {
    content: "⭐";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    margin-top: -5px;
    margin-left: -5px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0c344e;
    margin: 20px 0;
    text-align: center;
    background: linear-gradient(90deg, #233247, #3f5a6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-button {
    display: inline-block;
    background-color: #324353;
    color: #becad2;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin: 10px auto;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.modal-button:hover {
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes scaling {
    0%, 20%, 50%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.05); }
    60% { transform: scale(1.10); }
    90% { transform: scale(1.05); }
}

@media (max-width: 398px) {
    body {

    }

    .container {
        padding: 20px 20px;
        margin-bottom: 90px;
    }

    h1 {
        font-size: 1.0rem;
        font-weight: bold;
        line-height: 0;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    p a.polit {
        color: #becad2;
    }
    
    p.credentials {
        color: #becad2;
        font-size: 0.6rem;
        opacity: 0.3;
    }
    
    p.credentials_2 {
        color: #becad2;
        font-weight: bold;
        font-size: 0.8rem;
    }
    
    p.desc {
        margin-top: 3px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .features-title {
        font-size: 1.1rem;
    }
    
    .free-features .modal-features li:before {
        margin-top: 0px;
    }
    
    .premium-features .modal-features li:before {
        margin-top: 0px;
        margin-left: -5px;
    }
}