
/* =====================================================
   LANDING VISUAL UPGRADE
===================================================== */

.home-page{
    min-height:100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(79,70,229,0.08), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(79,70,229,0.05), transparent 40%),
        var(--bg);
}

.home-wrapper{
    max-width:1200px;
    margin:0 auto;
    padding:60px 20px 100px 20px;
}

/* =====================================================
   GENERIC SECTION
===================================================== */

.section-inner{
    max-width:1050px;
    margin:0 auto;
    text-align:center;
}

.cards .section-inner{
    max-width:1200px;   /* шире чем остальные блоки */
}

/* =====================================================
   BRAND
===================================================== */

.brand{s
    opacity:0.95;
}

.brand svg{
    width:240px;
    transition:0.3s ease;
}

.brand svg:hover{
    transform:scale(1.02);
}

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

.hero{
    padding:80px 0 100px 0;
    position:relative;
}

.hero-title{
    font-size:54px;
    line-height:1.15;
    margin-bottom:28px;
    font-weight:600;
}

.hero-title .accent{
    background:linear-gradient(90deg,#4F46E5,#7C3AED);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-subtitle{
    font-size:19px;
    color:var(--muted);
    max-width:700px;
    margin:0 auto 45px auto;
    line-height:1.6;
}

.hero-actions{
    display:flex;
    gap:18px;
    justify-content:center;
    flex-wrap:wrap;
}

.logo-sup{
    font-size:0.5em;
    font-weight:600;
    color:var(--primary);
    vertical-align:super;
    margin-left:4px;
}

/* =====================================================
   POSITIONING
===================================================== */

.positioning{
    margin:120px 0;
    padding:60px 60px;
    background:rgba(255,255,255,0.8);
    backdrop-filter:blur(12px);
    border:1px solid var(--border);
    border-radius:28px;
    box-shadow:0 25px 60px rgba(15,23,42,0.06);
}

.positioning .section-inner{
    max-width:1200px;
}


.positioning-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30px;
}

.position-item h3{
    margin-bottom:12px;
}

.position-item p{
    color:var(--muted);
}

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

.cards{
    margin:140px 0;
    padding:0;
    background:transparent;
}


.cards-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:50px;
}


/* планшет */
@media (max-width: 1100px){
    .cards-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* мобильный */
@media (max-width: 600px){
    .cards-grid{
        grid-template-columns: 1fr;
    }
}

.card{
    background:#ffffff;
    border:1px solid var(--border);
    padding:50px 36px;
    border-radius:24px;
    text-decoration:none;
    color:var(--text);
    box-shadow:0 12px 30px rgba(15,23,42,0.04);
    transition:all 0.25s ease;
    display:flex;
    flex-direction:column;
    align-items:center;        /* ← центрируем всё */
    text-align:center;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 30px 60px rgba(15,23,42,0.08);
    border-color:rgba(79,70,229,0.4);
}

.card-icon{
    width:48px;
    height:48px;
    margin-bottom:24px;
    color:var(--primary);
}

.card:hover .card-icon{
    transform:scale(1.1);
    transition:0.2s ease;
}

.card-title{
    font-size:20px;
    font-weight:600;
    margin-bottom:10px;
}

.card-desc{
    font-size:15px;
    color:var(--muted);
    line-height:1.5;
}

/* =====================================================
   FRAMEWORK
===================================================== */

.framework{
    margin:120px 0;
    padding:60px 60px;
    background:#ffffff;
    border-radius:28px;
    border:1px solid var(--border);
    box-shadow:0 25px 60px rgba(15,23,42,0.06);
}

.framework-text{
    max-width:620px;
    margin:0 auto 50px auto;
    color:var(--muted);
}

.framework-list{
    list-style:none;
    padding:0;
    display:flex;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
}

.framework-list li{
    background:#f8fafc;
    border:1px solid var(--border);
    padding:12px 22px;
    border-radius:30px;
    font-size:14px;
    transition:0.2s ease;
}

.framework-list li:hover{
    background:#ffffff;
    box-shadow:0 8px 20px rgba(15,23,42,0.05);
}

/* =====================================================
   FINAL CTA
===================================================== */

.final-cta{
    margin:140px 0 90px 0;
    padding:90px 60px;
    background:linear-gradient(135deg,#4F46E5,#7C3AED);
    color:white;
    border-radius:28px;
    box-shadow:0 30px 80px rgba(79,70,229,0.25);
}

.final-cta h2{
    font-size:42px;
    margin-bottom:45px;
}

.final-cta .btn-primary{
    background:white;
    color:#4F46E5;
}

.final-cta .btn-primary:hover{
    opacity:0.9;
}

.btn-secondary{
    padding:14px 26px;
    border-radius:12px;
    font-weight:500;
    text-decoration:none;
    border:1px solid rgba(79,70,229,0.3);
    color:#4F46E5;
    background:rgba(79,70,229,0.05);
    transition:all 0.25s ease;
}

.btn-secondary:hover{
    
    
    border-color:#4F46E5;
    box-shadow:0 10px 25px rgba(79,70,229,0.25);
    transform:translateY(-2px);
}


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

.footer{
    text-align:center;
    margin-top:80px;
    padding:0 0;
    color:var(--muted);
    font-size:14px;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 950px){
    .positioning-grid{
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px){

    .hero-title{
        font-size:40px;
    }

    .positioning,
    .cards,
    .framework,
    .final-cta{
        padding:60px 30px;
    }
}

@media (max-width: 600px){

    .hero{
        padding:40px 0 0 0;
    }

    .hero-title{
        font-size:30px;
    }

    .hero-subtitle{
        font-size:16px;
    }

    .brand svg{
        width:180px;
    }

    .positioning,
    .cards,
    .framework,
    .final-cta{
        padding:40px 20px;
        margin:40px 0;
    }

    .final-cta h2{
        font-size:26px;
    }
}

/* ================= AUTH MODAL ================= */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto; /* Разрешить прокрутку */
}

.auth-modal.active {
    display: flex !important;
}

.auth-modal-content {
    background: #1e293b;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: modalFade 0.2s ease;
    color: white;
}

.auth-close {
    position: absolute;
    right: 16px;
    top: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: #334155;
    color: white;
    font-size: 16px;
}

.auth-form button {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #6366f1;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-form button:hover {
    background: #4f46e5;
}

.auth-switch {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    text-align: center;
}

.auth-switch:hover {
    color: #6366f1;
}

.auth-error {
    background: #7f1d1d;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .auth-modal-content {
        width: 90%;
        padding: 20px;
    }

    .auth-form input, .auth-form button {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 30px; /* Уменьшаем размер заголовка */
    }

    .hero-subtitle {
        font-size: 16px; /* Уменьшаем шрифт подзаголовка */
    }

    .final-cta h2 {
        font-size: 26px; /* Уменьшаем размер заголовка в финальном блоке */
    }

    .btn-primary {
        padding: 12px 24px; /* Увеличиваем размеры кнопок для мобильных */
        font-size: 16px;
    }

    .cards-grid {
        grid-template-columns: 1fr; /* Карточки по одному в колонке */
    }
}

/* =====================================================
   EXAMPLES SECTION
===================================================== */

.examples {
    margin: 140px 0;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.1);
}

.examples-description {
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--muted);
    font-size: 18px;
    text-align: center;
}

/* GRID — 2 колонки когда помещаются */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 520px));
    justify-content: center;   /* ← центрирует сетку */
    gap: 60px;
}

/* карточка изображения */
.example-item {
    width: 100%;
    max-width: 520px;
}

/* само изображение */
.example-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: block;
}

.example-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
}

.example-item:hover img {
    transform: scale(1.05);
}


.example-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.example-item p {
    font-size: 16px;
    line-height: 1.4;
}

/* =====================================================
   MODAL WINDOW FOR IMAGE
===================================================== */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-modal.active {
    display: flex;
}

/* Mobile */
@media (max-width: 768px) {
    
    .examples {
        padding: 60px 16px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .example-item {
        width: 100%;
    }
    
    .example-item img {
        height: 260px;
    }
}

@media (max-width: 900px) {
    .examples-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}
