/* ===== АДАПТИВНЫЕ СТИЛИ ===== */
/* !!! Этот файл содержит ТОЛЬКО адаптивные медиа-запросы и переменные !!! */

:root {
    --primary-color: rgb(180, 37, 185);
    --accent-color: rgb(61, 255, 35);
    --text-color: white;
    --dark-bg: rgba(37, 46, 3, 0.7);
    --card-bg: rgba(0, 0, 0, 0.4);
    --header-height: 70px;
}

/* ===== АНИМАЦИЯ ПЕЧАТАЮЩЕГОСЯ ТЕКСТА ===== */
.cursor {
    display: inline-block;
    width: 4px;
    height: 3rem;
    background-color: lime;
    margin-left: 8px;
    animation: blink 1s infinite;
    vertical-align: middle;
    box-shadow: 0 0 10px lime;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== ЗАГОЛОВКИ СТРАНИЦ (общие) ===== */
h1 {
    color: var(--accent-color);
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title {
    color: var(--accent-color);
    margin: 40px 0 25px;
    font-size: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ===== ФУТЕР ===== */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: var(--dark-bg);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ===== КНОПКИ (общие) ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(to right, rgba(61, 255, 35, 0.3), rgba(180, 37, 185, 0.5));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to right, rgba(61, 255, 35, 0.4), rgba(180, 37, 185, 0.6));
}

/* ===== ТЕХНОЛОГИЧЕСКИЕ ССЫЛКИ (общие) ===== */
/* tech-links styles now in pages/home.css */

/* ===== ГАЛЕРЕЯ (общие) ===== */
/* image-gallery styles now in pages/home.css and components/gallery.css */

.gallery-item {
    height: 200px;
    border-radius: 15px;
    background: linear-gradient(45deg, rgba(61, 255, 35, 0.2), rgba(180, 37, 185, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.gallery-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

/* ===== СОЦИАЛЬНЫЕ ССЫЛКИ (общие) ===== */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.social-link {
    height: 80px;
    border-radius: 15px;
    background: linear-gradient(45deg, rgba(61, 255, 35, 0.3), rgba(180, 37, 185, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.social-link span {
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

/* ===== ИНФОРМАЦИОННЫЕ КАРТОЧКИ ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-green, #3dff23);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.info-card p {
    color: #fff;
    line-height: 1.6;
    font-size: 16px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ===== ССЫЛКА ВОЗВРАТА ===== */
.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    text-align: left;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b425b9;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 12px 24px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #8b1a87;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.back-link a::before {
    content: "\2190";
    font-size: 1.2rem;
}

/* ===== ТАБЛИЦЫ (общие) ===== */
.beer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.beer-table th, .beer-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.beer-table th {
    background-color: rgba(61, 255, 35, 0.2);
    font-size: 1.2rem;
    color: var(--accent-color);
}

.beer-table tr:last-child td {
    border-bottom: none;
}

.beer-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ======================================================== */
/* ===== АДАПТИВНЫЕ МЕДИА-ЗАПРОСЫ ===== */
/* ======================================================== */

/* 1024px */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
}

/* 900px */
@media (max-width: 900px) {
    .info-cards {
        max-width: 100%;
        margin-right: 0;
    }
}

/* 768px */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; padding: 0 10px; }
    .section-title { font-size: 2rem; }
    .product-head { font-size: 1.5rem; }
    .product-description { font-size: 1rem; padding: 0 10px; }

    .image-gallery {
        gap: 15px;
    }
    .gallery-item { height: 180px; font-size: 1.3rem; }
    .gallery-item i { font-size: 2.5rem; }

    .social-links { grid-template-columns: repeat(3, 1fr); }
    .social-link { height: 70px; font-size: 0.9rem; }

    .tech-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0 10px;
    }
    .tech-links img { max-width: 70px; height: auto; }

    .info-cards { grid-template-columns: 1fr; gap: 15px; }
    .info-card { padding: 18px; }
    .info-card h3 { font-size: 16px; }
    .info-card p { font-size: 14px; }

    .back-link { margin-top: 30px; padding-top: 15px; }
    .back-link a { font-size: 1rem; padding: 10px 20px; }

    .btn { padding: 12px 25px; font-size: 1rem; }

    .feature-list li { font-size: 14px; padding: 10px 0; }

    /* Типографика печатающегося текста */
    .typing-wrapper { padding: 15px 20px; min-height: 60px; }
    #output { font-size: 1.8rem; }
    .cursor { height: 2rem; }

    /* Таблицы */
    .beer-table { font-size: 0.9rem; }
    .beer-table th, .beer-table td { padding: 12px 10px; }

    /* Скрыть фоновое изображение на планшетах */
    body:not(.transparent-bg)::after {
        width: 180px;
        max-width: 20%;
    }
}

/* 480px */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .product-head { font-size: 1.3rem; }
    .product-description { font-size: 0.95rem; }

    .image-gallery { gap: 12px; }
    .gallery-item { height: 150px; font-size: 1.2rem; }

    .social-links { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .tech-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .tech-links img { max-width: 50px; }

    .info-cards { gap: 12px; }
    .info-card { padding: 15px; border-radius: 10px; }
    .info-card h3 { font-size: 14px; }
    .info-card p { font-size: 13px; }

    .back-link { margin-top: 25px; padding-top: 12px; text-align: center; }
    .back-link a { font-size: 0.9rem; padding: 8px 16px; }

    .btn { padding: 10px 20px; font-size: 0.9rem; }

    .feature-list li { font-size: 13px; }

    /* Типографика */
    .typing-wrapper { padding: 12px 15px; min-height: 50px; width: 100%; }
    #output { font-size: 1.4rem; }
    .cursor { height: 1.5rem; width: 3px; }

    /* DS меню */
    .ds-menu { padding: 15px 5px; gap: 10px; }
    .ds-menu-item { min-width: 100%; padding: 12px 16px; border-radius: 12px; }
    .ds-icon { font-size: 28px; margin-bottom: 5px; }
    .ds-title { font-size: 14px; }
    .ds-desc { display: none; }

    /* Чат-бокс на мобильных */
    #chat-box {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 400px;
        margin: 20px 0 !important;
    }

    /* Скрыть фоновое изображение на мобилах */
    body:not(.transparent-bg)::after {
        display: none;
    }

    /* Уменьшить прозрачный фон */
    body.transparent-bg::before {
        background-size: 200px 300px;
        background-position: calc(100% - 20px) 30px;
        opacity: 0.08;
    }
}
