/* ==========================================
   СТИЛИ ДЛЯ МОКАПОВ САЙТОВ (ДЕСКТОП + МОБИЛЬНЫЙ)
   ========================================== */

.web-showcase {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Основной враппер */
.mockup-wrapper {
    position: relative;
    margin: 40px auto;
    max-width: 1000px;
    width: 100%;
}

.mockup-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2d3436;
    text-align: center;
}

/* Устройство (десктоп) */
.device-mockup {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: visible; /* БЫЛО hidden — ИЗ-ЗА ЭТОГО ОБРЕЗАЛОСЬ */
    padding-bottom: 15%; /* Добавляем отступ снизу для мобильного */
}

/* Фоновое изображение десктопа */
.mockup-bg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    min-height: 400px;
    object-fit: cover;
}

/* Запасной фон */
.mockup-bg-fallback {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
}

/* Текстовый оверлей */
.mockup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

/* Заголовок сайта на мокапе */
.mockup-site-title {
    position: absolute;
    top: 8%;
    left: 8%;
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 700;
    color: #2d3436;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Навигация */
.mockup-nav {
    position: absolute;
    top: 8%;
    right: 8%;
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
}

.mockup-nav span {
    font-size: clamp(10px, 1.2vw, 14px);
    color: #636e72;
    font-weight: 500;
}

/* Hero-текст */
.mockup-hero-text {
    position: absolute;
    top: 25%;
    left: 8%;
    max-width: 45%;
}

.mockup-hero-text h2 {
    font-size: clamp(16px, 2.5vw, 32px);
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.2;
}

.mockup-hero-text p {
    font-size: clamp(10px, 1.2vw, 14px);
    color: #636e72;
    line-height: 1.4;
}

/* CTA кнопка */
.mockup-cta {
    position: absolute;
    top: 45%;
    left: 8%;
    padding: clamp(8px, 1vw, 14px) clamp(16px, 2vw, 28px);
    background: #6C5CE7;
    color: #fff;
    border-radius: 30px;
    font-size: clamp(10px, 1.2vw, 14px);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

/* Блоки контента */
.mockup-content-blocks {
    position: absolute;
    top: 58%;
    left: 8%;
    right: 8%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
}

.mockup-block {
    background: rgba(255,255,255,0.95);
    padding: clamp(10px, 1.5vw, 20px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mockup-block-icon {
    width: clamp(24px, 3vw, 40px);
    height: clamp(24px, 3vw, 40px);
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    border-radius: 8px;
    margin-bottom: 8px;
}

.mockup-block-title {
    font-size: clamp(10px, 1.2vw, 14px);
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
}

.mockup-block-text {
    font-size: clamp(8px, 0.9vw, 11px);
    color: #636e72;
    line-height: 1.3;
}

/* ==========================================
   МОБИЛЬНЫЙ ТЕЛЕФОН ПОВЕРХ ДЕСКТОПА
   ========================================== */

.mobile-mockup {
    position: absolute;
bottom: -16%;
  right: -12%;
    width: 26%;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
    transition: transform 0.3s ease;
}

.mobile-mockup:hover {
    transform: translateY(-8px);
}

.mobile-frame {
    position: relative;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 10px;
    aspect-ratio: 9/19;
}

.mobile-screen {
    background: #fff;
    border-radius: 18px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 20px;
    background: #1a1a2e;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

/* Контент мобильного */
.mobile-content {
    padding: 28px 12px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-logo {
    width: 55%;
    height: 7px;
    background: #6C5CE7;
    border-radius: 4px;
}

.mobile-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu-icon span {
    width: 14px;
    height: 2px;
    background: #2d3436;
    border-radius: 1px;
}

.mobile-hero {
    background: linear-gradient(135deg, #6C5CE7, #a29bfe);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.mobile-hero-title {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mobile-hero-text {
    font-size: 7px;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
    margin-bottom: 8px;
}

.mobile-hero-btn {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    color: #6C5CE7;
    border-radius: 12px;
    font-size: 7px;
    font-weight: 700;
}

.mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex: 1;
}

.mobile-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
}

.mobile-card-icon {
    width: 18px;
    height: 18px;
    background: #6C5CE7;
    border-radius: 4px;
    margin-bottom: 4px;
}

.mobile-card-title {
    font-size: 7px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 2px;
}

.mobile-card-text {
    font-size: 6px;
    color: #636e72;
    line-height: 1.2;
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

/* Планшет */
@media screen and (max-width: 1024px) {
    .device-mockup {
        padding-bottom: 18%;
    }
    
    .mobile-mockup {
        width: 30%;
        bottom: -4%;
        right: -3%;
    }
    
    .mockup-hero-text {
        max-width: 50%;
    }
}

/* Телефон горизонтальный */
@media screen and (max-width: 768px) {
    .device-mockup {
        padding-bottom: 22%;
    }
    
    .mockup-hero-text {
        max-width: 55%;
        top: 20%;
    }
    
    .mockup-cta {
        top: 38%;
    }
    
    .mockup-content-blocks {
        top: 50%;
        grid-template-columns: 1fr 1fr;
        gap: 2%;
    }
    
    .mobile-mockup {
        width: 35%;
        bottom: -5%;
        right: -4%;
    }
    
    .mobile-frame {
        border-radius: 22px;
        padding: 8px;
    }
    
    .mobile-screen {
        border-radius: 14px;
    }
}

/* Телефон вертикальный */
@media screen and (max-width: 460px) {
    .web-showcase {
        padding: 30px 0;
    }
    
    .mockup-wrapper {
        margin: 20px auto;
    }
    
    .mockup-wrapper h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .device-mockup {
        border-radius: 12px;
        padding-bottom: 28%;
    }
    
    .mockup-bg {
        min-height: 250px;
        border-radius: 12px;
    }
    
    .mockup-bg-fallback {
        min-height: 250px;
        border-radius: 12px;
    }
    
    .mockup-overlay {
        border-radius: 12px;
    }
    
    .mockup-site-title {
        top: 5%;
        left: 5%;
        font-size: 12px;
    }
    
    .mockup-nav {
        top: 5%;
        right: 5%;
        gap: 6px;
    }
    
    .mockup-nav span {
        font-size: 8px;
    }
    
    .mockup-hero-text {
        top: 16%;
        left: 5%;
        max-width: 60%;
    }
    
    .mockup-hero-text h2 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .mockup-hero-text p {
        font-size: 7px;
    }
    
    .mockup-cta {
        top: 30%;
        left: 5%;
        padding: 5px 10px;
        font-size: 8px;
    }
    
    .mockup-content-blocks {
        top: 42%;
        left: 5%;
        right: 5%;
        grid-template-columns: 1fr 1fr;
        gap: 3%;
    }
    
    .mockup-block {
        padding: 6px;
        border-radius: 6px;
    }
    
    .mockup-block-icon {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        margin-bottom: 4px;
    }
    
    .mockup-block-title {
        font-size: 7px;
    }
    
    .mockup-block-text {
        font-size: 6px;
    }
    
    /* Мобильный телефон на маленьких экранах */
    .mobile-mockup {
        width: 38%;
        bottom: -4%;
        right: -6%;
    }
    
    .mobile-frame {
        border-radius: 18px;
        padding: 6px;
    }
    
    .mobile-screen {
        border-radius: 12px;
    }
    
    .mobile-notch {
        width: 30%;
        height: 14px;
        border-radius: 0 0 10px 10px;
    }
    
    .mobile-content {
        padding: 20px 8px 8px;
    }
    
    .mobile-header {
        margin-bottom: 6px;
    }
    
    .mobile-logo {
        width: 50%;
        height: 5px;
    }
    
    .mobile-menu-icon span {
        width: 10px;
        height: 1.5px;
    }
    
    .mobile-hero {
        padding: 8px;
        border-radius: 8px;
        margin-bottom: 6px;
    }
    
    .mobile-hero-title {
        font-size: 7px;
    }
    
    .mobile-hero-text {
        font-size: 5px;
        margin-bottom: 4px;
    }
    
    .mobile-hero-btn {
        padding: 3px 8px;
        font-size: 5px;
        border-radius: 8px;
    }
    
    .mobile-grid {
        gap: 4px;
    }
    
    .mobile-card {
        padding: 5px;
        border-radius: 6px;
    }
    
    .mobile-card-icon {
        width: 12px;
        height: 12px;
        border-radius: 3px;
    }
    
    .mobile-card-title {
        font-size: 5px;
    }
    
    .mobile-card-text {
        font-size: 4px;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 360px) {
    .device-mockup {
        padding-bottom: 32%;
    }
    
    .mobile-mockup {
        width: 42%;
        right: -8%;
    }
    
    .mockup-hero-text {
        max-width: 65%;
    }
    
    .mockup-content-blocks {
        grid-template-columns: 1fr;
    }
}



/* ==========================================
   ДОПОЛНИТЕЛЬНЫЕ ФОНЫ ДЛЯ 5 НОВЫХ МОКАПОВ
   ========================================== */

/* Фон для Корпоративного портала */
.mockup-bg-corporate {
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
}

/* Фон для Квиз-лендинга */
.mockup-bg-quiz {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Фон для Ресторана */
.mockup-bg-restaurant {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

/* Фон для Строительной компании */
.mockup-bg-construction {
    background: linear-gradient(135deg, #dfe6e9 0%, #636e72 100%);
}

/* Фон для Салона красоты */
.mockup-bg-beauty {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

/* Общий класс для всех фонов-заглушек */
.mockup-bg-placeholder {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mockup-bg-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mockup-bg-placeholder::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Текст внутри плейсхолдера (скрыт, для роботов) */
.mockup-bg-placeholder span {
    position: absolute;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    z-index: 1;
    pointer-events: none;
}

/* Адаптивность для плейсхолдеров */
@media screen and (max-width: 460px) {
    .mockup-bg-placeholder {
        min-height: 250px;
        border-radius: 12px;
    }
    
    .mockup-bg-placeholder span {
        font-size: 1.5rem;
    }
}


/* Базовые стили для всех карточек портфолио */
.mockup-wrapper {
    margin: 40px auto;
    max-width: 1000px;
}

.mockup-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3436;
}

.device-mockup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    overflow: visible;
    padding-bottom: 10%;
}

.mockup-bg-placeholder {
    width: 100%;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
}

/* Мобильный телефон */
.mobile-mockup {
    position: absolute;
    bottom: -6%;
    right: -3%;
    width: 24%;
    z-index: 10;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.35));
}

.mobile-frame {
    background: #1a1a2e;
    border-radius: 24px;
    padding: 8px;
    aspect-ratio: 9/18;
}

.mobile-screen {
    background: #fff;
    border-radius: 16px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 16px;
    background: #1a1a2e;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.mobile-content {
    padding: 22px 10px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mobile-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu-icon span {
    width: 12px;
    height: 1.5px;
    background: #1a1a1a;
    border-radius: 1px;
}

.mobile-hero {
    border-radius: 10px;
    margin-bottom: 8px;
}

.mobile-hero-title {
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 3px;
}

.mobile-hero-text {
    font-size: 7px;
    margin-bottom: 6px;
}

.mobile-hero-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 7px;
    font-weight: 700;
}

.mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    flex: 1;
}

.mobile-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 7px;
}

.mobile-card-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.mobile-card-title {
    font-size: 7px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.mobile-card-text {
    font-size: 6px;
    color: #888;
    line-height: 1.2;
}

/* Адаптив */
@media (max-width: 768px) {
    .device-mockup {
        padding-bottom: 15%;
    }
    
    .mobile-mockup {
        width: 30%;
        bottom: -5%;
        right: -4%;
    }
}

@media (max-width: 460px) {
    .mockup-wrapper h3 {
        font-size: 1rem;
    }
    
    .device-mockup {
        padding-bottom: 20%;
        border-radius: 10px;
    }
    
    .mockup-bg-placeholder {
        min-height: 220px;
        border-radius: 10px;
    }
    
    .mobile-mockup {
        width: 35%;
        bottom: -4%;
        right: -6%;
    }
    
    .mobile-frame {
        border-radius: 18px;
        padding: 6px;
    }
    
    .mobile-screen {
        border-radius: 12px;
    }
}





/* ==========================================
   КАРТОЧКА №6: ТЁМНАЯ ТЕМА (Фитнес)
   ========================================== */

/* Если device-mockup имеет тёмный фон — убираем белую тень */
.device-mockup[style*="background:#0A0A0A"] {
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.2);
}

/* Для тёмной темы — светлый текст в h3 */
.mockup-wrapper:has(.device-mockup[style*="background:#0A0A0A"]) h3 {
    color: #fff;
}

/* Стеклянная рамка для тёмной темы */
.device-mockup[style*="background:#0A0A0A"] .mockup-bg-placeholder {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Мобильный телефон в тёмной теме */
.device-mockup[style*="background:#0A0A0A"] .mobile-mockup {
    filter: drop-shadow(0 15px 30px rgba(212, 175, 55, 0.2));
}

.device-mockup[style*="background:#0A0A0A"] .mobile-frame {
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.device-mockup[style*="background:#0A0A0A"] .mobile-notch {
    background: #1a1a1a;
}
