/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1a1035;
    color: #1e1035;
    line-height: 1.6;
}

/* Звёздное небо */
.stars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
}

@keyframes starTwinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

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

/*
    УБРАНЫ СТИЛИ ФОНА ДЛЯ .section, ЧТОБЫ БЫЛ ВИДЕН ФИОЛЕТОВЫЙ ФОН BODY
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/*
    УБРАНЫ СТИЛИ ФОНА ДЛЯ .section, ЧТОБЫ БЫЛ ВИДЕН ФИОЛЕТОВЫЙ ФОН BODY
*/

.center {
    text-align: center;
}

.section-sub {
    color: #6d6d8a;
    margin-top: 10px;
}

/* ================= HEADER ================= */

header {
    position: fixed;
    width: 100%;
    top: 0;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-phone span {
    font-size: 1rem;
    color: #6d6d8a;
    font-weight: 600;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    color: #1e1035;
    transition: 0.3s;
}

nav a:hover {
    color: #6c5ce7;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 200px;
    z-index: 1;

    background-image: url("../assets/img/hero.jpg");
    background-repeat: no-repeat;
    background-size: 90% auto;
    background-position: center;
}

@media (min-width: 993px) {
    .hero {
        min-height: calc(100vw * 1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(20,20,30,0.75) 0%,
        rgba(20,20,30,0.55) 30%,
        rgba(20,20,30,0.25) 55%,
        rgba(20,20,30,0.0) 75%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.hero-text {
    max-width: 480px;
    margin-right: auto;
    padding-left: 60px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.hero h1 span {
    color: #8b5cf6;
}

.hero p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ================= BUTTONS ================= */

.btn {
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: #6c5ce7;
    color: white;
}

.btn-primary:hover {
    background: #5743d1;
}

.btn-accent {
    background: linear-gradient(135deg,#8b5cf6,#6366f1);
    color: white;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e1035;
}

.btn-green {
    background: #25D366;
    color: white;
    border: none;
}

.btn-green:hover {
    background: #1da851;
}

.full {
    width: 100%;
}

/* ================= CARDS ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(108,92,231,0.2);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.card .price {
    font-size: 2rem;
    font-weight: 900;
    color: #6c5ce7;
    margin-bottom: 15px;
}

.card p {
    color: #6d6d8a;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.card-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #444;
    font-size: 0.85rem;
    line-height: 1.4;
}

.card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6c5ce7;
    font-weight: 900;
}

.card.featured {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}

.card.featured h3,
.card.featured .price,
.card.featured p {
    color: white;
}

.card.featured .card-features li {
    color: rgba(255,255,255,0.9);
}

.card.featured .card-features li:before {
    color: white;
}

.card.featured .btn {
    background: white;
    color: #6c5ce7;
}

.card.featured .btn:hover {
    background: #f0f0f0;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 2.5rem;
    font-weight: 900;
}

/* ================= CERTIFICATES ================= */

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.certificate-item {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.certificate-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(108,92,231,0.2);
}

.certificate-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.cert-icon {
    font-size: 4rem;
    padding: 25px;
}

.certificate-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.certificate-info {
    padding: 25px;
}

.certificate-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.certificate-info p {
    color: #6d6d8a;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cert-date {
    font-size: 0.85rem !important;
    color: #999 !important;
}

/* ================= HERO ABOUT ================= */

.hero-about {
    margin-top: 30px;
    max-width: 350px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px 28px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-about-text {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.hero-about-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 15px 0;
}

.hero-about-list li {
    padding: 5px 0 5px 28px;
    position: relative;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-about-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a78bfa;
    font-weight: 900;
    font-size: 1rem;
}

/* ================= CHANNELS ================= */

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.channel-card {
    background: rgba(255,255,255,0.7);
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.channel-svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: block;
}

.channel-telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: white;
}

.channel-telegram:hover {
    box-shadow: 0 12px 30px rgba(42,171,238,0.4);
}

.channel-instagram {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045);
    color: white;
}

.channel-instagram:hover {
    box-shadow: 0 12px 30px rgba(131,58,180,0.4);
}

.channel-max {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}

.channel-max:hover {
    box-shadow: 0 12px 30px rgba(139,92,246,0.4);
}

.channel-vk {
    background: linear-gradient(135deg, #0077FF, #0055CC);
    color: white;
}

.channel-vk:hover {
    box-shadow: 0 12px 30px rgba(0,119,255,0.4);
}

.channel-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: inherit;
}

.channel-card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

/* ================= REVIEWS ================= */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.review-screenshot {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.review-chat {
    background: rgba(232,245,233,0.7);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.chat-forwarded {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2E7D32;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(46,125,50,0.2);
}

.chat-forward-icon {
    font-size: 1.1rem;
    font-weight: 900;
}

.chat-text {
    color: #1e1035;
    font-size: 1rem;
    line-height: 1.6;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #8e9eab;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar-purple {
    background: #9B59B6 !important;
}

.review-avatar-yellow {
    background: #F1C40F !important;
}

.review-avatar-red {
    background: #E74C3C !important;
}

.review-avatar-photo {
    background: #ddd !important;
    overflow: hidden;
}

.review-avatar-photo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #555;
}

.review-name {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.review-name strong {
    font-size: 1.1rem;
    color: #1e1035;
}

.review-name span {
    font-size: 0.85rem;
    color: #999;
}

.review-dots {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-rating .stars {
    font-size: 1.3rem;
}

.deal-badge {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #666;
}

.review-service {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-text {
    color: #1e1035;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ================= FORM ================= */

.cta {
    background: rgba(255,255,255,0.5);
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
}

.form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form input[type="text"],
.form input[type="tel"] {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
    outline: none;
}

.form input[type="text"]:focus,
.form input[type="tel"]:focus {
    border-color: #6c5ce7;
}

.form input::placeholder {
    color: #999;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #6d6d8a;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #6c5ce7;
}

.checkbox a {
    color: #6c5ce7;
    text-decoration: underline;
}

.form .btn {
    padding: 20px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ================= FAQ ================= */

.faq-item {
    background: rgba(255,255,255,0.7);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1e1035;
}

.faq-answer {
    color: #6d6d8a;
    line-height: 1.6;
}

/* ================= FOOTER ================= */

.legal-footer {
    background: rgba(26,16,53,0.8);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.legal-footer p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.legal-footer a {
    color: #8b5cf6;
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

.legal-links {
    margin-top: 30px;
    font-size: 0.9rem;
}

/* ================= FLOATING ================= */

.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-contact a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.3s;
}

.floating-contact a:hover {
    transform: scale(1.1);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .hero {
        background-size: cover;
        background-position: 75% center;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .header-phone span {
        font-size: 0.85rem;
    }

    .nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }

    nav {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    nav a {
        margin: 5px 10px;
        font-size: 0.9rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

}