/* ==========================================
   МАГАЗИН ГОТОВЫХ САЙТОВ
   ========================================== */

.ready-sites {
    padding: 60px 0;
}

.ready-sites h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 8px;
}

.ready-sites > .container > p {
    text-align: center;
    color: #636e72;
    margin-bottom: 40px;
}

/* Сетка */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 50px 30px;
    padding-bottom: 20px;
}

/* ==========================================
   КАРТОЧКА
   ========================================== */

.store-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-4px);
}

/* ==========================================
   ДЕСКТОП + МОБИЛЬНЫЙ БЛОК
   ========================================== */

.store-mockup {
    position: relative;
    padding: 0 16px 30px 16px; /* отступ снизу для телефона */
}

.store-desktop {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f8f9fa;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.store-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Скелет внутри десктопа */
.store-skeleton {
    position: absolute;
    inset: 0;
    padding: 5% 6%;
    display: flex;
    flex-direction: column;
    gap: 3%;
    pointer-events: none;
}

.skel-row {
    display: flex;
    gap: 3%;
}

.skel-box {
    border: 1.5px dashed #ccc;
    border-radius: 4px;
    background: rgba(0,0,0,0.02);
}

.skel-logo {
    width: 20%;
    height: 16px;
}

.skel-nav {
    flex: 1;
    display: flex;
    gap: 3%;
    justify-content: flex-end;
}

.skel-nav-item {
    width: 12%;
    height: 10px;
    border: 1.5px dashed #ddd;
    border-radius: 3px;
}

.skel-hero {
    flex: 1;
    display: flex;
    gap: 3%;
}

.skel-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6%;
    justify-content: center;
}

.skel-title {
    width: 80%;
    height: 14px;
    border: 1.5px dashed #ccc;
    border-radius: 4px;
}

.skel-subtitle {
    width: 55%;
    height: 10px;
    border: 1.5px dashed #ddd;
    border-radius: 3px;
}

.skel-btn {
    width: 35%;
    height: 16px;
    border: 1.5px dashed #6C5CE7;
    border-radius: 10px;
}

.skel-hero-right {
    flex: 1;
    border: 1.5px dashed #ddd;
    border-radius: 6px;
}

.skel-blocks {
    display: flex;
    gap: 3%;
}

.skel-block-item {
    flex: 1;
    height: 28px;
    border: 1.5px dashed #e0e0e0;
    border-radius: 4px;
}

/* ==========================================
   МОБИЛЬНЫЙ ТЕЛЕФОН
   ========================================== */

.store-mobile {
    position: absolute;
    right: 4px;
    bottom: 0;
    width: 80px;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.store-mobile-frame {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 5px;
    aspect-ratio: 9/17;
}

.store-mobile-screen {
    background: #fff;
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
    position: relative;
    border: 1px dashed #d0d0d0;
}

.store-mobile-notch {
    width: 28%;
    height: 10px;
    background: #1a1a2e;
    border-radius: 0 0 6px 6px;
    margin: 0 auto;
}

.store-mobile-skeleton {
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}

.m-row {
    display: flex;
    justify-content: space-between;
}

.m-logo {
    width: 35%;
    height: 5px;
    border: 1px dashed #ccc;
    border-radius: 2px;
}

.m-burger {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
}

.m-burger span {
    width: 8px;
    height: 1px;
    background: #ccc;
}

.m-hero {
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.m-line {
    height: 3px;
    border: 1px dashed #e0e0e0;
    border-radius: 1px;
}

.m-line.wide { width: 65%; }
.m-line.mid { width: 45%; }

.m-btn {
    width: 40%;
    height: 6px;
    border: 1px dashed #6C5CE7;
    border-radius: 4px;
    margin-top: 2px;
}

.m-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    flex: 1;
}

.m-card {
    border: 1px dashed #eee;
    border-radius: 3px;
    padding: 3px;
}

.m-icon {
    width: 10px;
    height: 10px;
    border: 1px dashed #ddd;
    border-radius: 2px;
    margin-bottom: 2px;
}

.m-text {
    height: 2px;
    border: 1px dashed #f0f0f0;
    border-radius: 1px;
}

/* ==========================================
   ИНФО ПОД МОКАПОМ
   ========================================== */

.store-info {
    padding: 12px 20px 20px;
    text-align: center;
}

.store-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
}

.store-info p {
    font-size: 0.8rem;
    color: #636e72;
    margin-bottom: 8px;
}

.store-info .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6C5CE7;
    margin-bottom: 10px;
}

.store-info .btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #6C5CE7;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-preview-store {
    display: inline-block;
    padding: 10px 24px;
    background: #f5f5f5;
    color: #6C5CE7;
    border: 2px dashed #6C5CE7;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 8px;
}

/* ==========================================
   АДАПТИВ
   ========================================== */

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }
    
    .store-mobile {
        width: 70px;
        right: 6px;
    }
}

@media (max-width: 460px) {
    .store-mockup {
        padding: 0 10px 25px 10px;
    }
    
    .store-mobile {
        width: 60px;
        right: 2px;
    }
}


/* ==========================================
   МОДАЛЬНОЕ ОКНО
   ========================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-site {
    background: #fff;
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 2vh 2vw;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-header h2 {
    font-size: 1.1rem;
    color: #2d3436;
    margin: 0;
}

.modal-tabs {
    display: flex;
    gap: 4px;
}

.modal-tab {
    padding: 6px 16px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #666;
}

.modal-tab.active {
    background: #6C5CE7;
    color: #fff;
    border-color: #6C5CE7;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
}

.modal-body .desktop-view,
.modal-body .mobile-view {
    display: none;
}

.modal-body .desktop-view.active,
.modal-body .mobile-view.active {
    display: block;
}

.modal-body img {
    width: 100%;
    display: block;
}

.mobile-view {
    text-align: center;
}

.mobile-view img {
    max-width: 375px;
    margin: 0 auto;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #6C5CE7;
}

.modal-footer .btn-primary {
    padding: 10px 22px;
    background: #6C5CE7;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}


/* ==========================================
   МОДАЛЬНОЕ ОКНО ЗАКАЗА
   ========================================== */

.modal-order-form {
    max-width: 480px;
}

.modal-order-form .modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

.modal-order-form .modal-header h2 {
    font-size: 1rem;
    color: #2d3436;
}

.modal-order-form .modal-header span {
    color: #6C5CE7;
    font-weight: 700;
}

.modal-order-form .modal-body {
    padding: 20px;
    background: #fff;
}

.order-form .form-group {
    margin-bottom: 16px;
}

.order-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2d3436;
    transition: border-color 0.3s;
    font-family: inherit;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.order-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-full:hover {
    background: linear-gradient(135deg, #5A4BD1, #6C5CE7);
    transform: translateY(-1px);
}

.form-note {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 12px;
}

.form-note i {
    color: #00b894;
}

/* ==========================================
   AI-РОБОТ (иконка справа внизу)
   ========================================== */

#ai-widget-store {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
}

.ai-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.5);
}

.ai-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.3);
    animation: aiPulse 2s infinite;
    z-index: -1;
}

@keyframes aiPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 460px) {
    #ai-widget-store {
        bottom: 16px;
        right: 16px;
    }
    
    .ai-toggle-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .ai-pulse {
        width: 56px;
        height: 56px;
    }
}

