/* ===== АДАПТИВНЫЙ ДИЗАЙН - Перенесено из index.html ===== */

: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;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        linear-gradient(135deg, rgba(180, 37, 185, 0.85), rgba(100, 10, 120, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgb(150, 27, 155)" width="50" height="50"/><rect fill="rgb(160, 47, 165)" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 300px, cover;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Header Styles */
header {
    background: var(--dark-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin: 30px 0;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    color: var(--accent-color);
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Typing Animation */
.typing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin: 40px 0;
}

#typing-text {
    font-size: 2.5rem;
    color: lime;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-height: 80px;
    padding: 15px 25px;
    background: var(--dark-bg);
    border-radius: 15px;
    border: 2px solid var(--accent-color);
}

/* Barsokot Typing Animation - app/templates/index.html */
.typing-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 20px 30px;
    background: var(--dark-bg);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 80px;
}

#output {
    display: inline-block;
    font-size: 2.5rem;
    color: lime;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.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; }
}

/* Mobile styles for typing animation */
@media (max-width: 768px) {
    .typing-wrapper {
        padding: 15px 20px;
        min-height: 60px;
    }
    #output {
        font-size: 1.8rem;
    }
    .cursor {
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .typing-wrapper {
        padding: 12px 15px;
        min-height: 50px;
        width: 100%;
    }
    #output {
        font-size: 1.4rem;
    }
    .cursor {
        height: 1.5rem;
        width: 3px;
    }
}

/* Content Sections */
.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;
}

.content-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

/* Beer Table */
.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);
}

/* Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.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 */
.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);
}

/* Footer */
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;
}

/* Buttons */
.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));
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    #typing-text {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .logo i {
        margin-right: 8px;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        gap: 10px;
    }
    
    nav li {
        margin: 5px 8px;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 8px 12px;
        display: inline-block;
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    #typing-text {
        font-size: 1.8rem;
        padding: 12px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .gallery-item {
        height: 180px;
        font-size: 1.3rem;
    }
    
    .gallery-item i {
        font-size: 2.5rem;
    }
    
    .social-link {
        height: 70px;
    }
    
    .social-link i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 8px 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        margin-right: 5px;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5px;
        margin-top: 10px;
        padding: 0;
    }
    
    nav li {
        margin: 3px 5px;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 6px 8px;
        display: inline-block;
        white-space: nowrap;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    #typing-text {
        font-size: 1.5rem;
        min-height: 70px;
        padding: 10px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    p {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .beer-table {
        font-size: 0.9rem;
    }
    
    .beer-table th, .beer-table td {
        padding: 12px 10px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 150px;
        font-size: 1.2rem;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Специальные стили для очень высоких экранов */
@media (min-height: 1000px) {
    .hero {
        padding: 80px 20px;
    }
    
    .typing-container {
        min-height: 150px;
    }
    
    .content-section {
        padding: 40px;
    }
}

/* Стили для горизонтальной ориентации на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .header-content {
        flex-direction: row;
        padding: 10px 20px;
    }
    
    nav ul {
        margin-top: 0;
    }
    
    .hero {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .typing-container {
        min-height: 60px;
        margin: 20px 0;
    }
    
    #typing-text {
        min-height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ СТРАНИЦ ML, DATA-ANALYSIS, BIGDATA ===== */

/* Меню DS */
@media (max-width: 768px) {
    .ds-menu {
        padding: 20px 10px 20px 10px;
        justify-content: center;
        gap: 15px;
    }
    
    .ds-menu-item {
        min-width: 140px;
        padding: 12px 18px;
    }
    
    .ds-icon {
        font-size: 30px;
    }
    
    .ds-title {
        font-size: 14px;
    }
    
    .ds-desc {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ds-menu {
        padding: 15px 5px 15px 5px;
        gap: 10px;
    }
    
    .ds-menu-item {
        min-width: 100px;
        padding: 10px 12px;
        border-radius: 10px;
    }
    
    .ds-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .ds-title {
        font-size: 11px;
    }
    
    .ds-desc {
        display: none;
    }
}

/* Информационные карточки - улучшенная видимость */
.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;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
        max-width: 100%;
        margin-right: 0;
    }
    
    .info-card {
        padding: 18px;
    }
    
    .info-card h3 {
        font-size: 16px;
    }
    
    .info-card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .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: 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: "←";
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .back-link {
        margin-top: 30px;
        padding-top: 15px;
    }
    
    .back-link a {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .back-link {
        margin-top: 25px;
        padding-top: 12px;
        text-align: center;
    }
    
    .back-link a {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Заголовки страниц */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .product-head {
        font-size: 1.5rem;
    }
    
    .product-description {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .product-head {
        font-size: 1.3rem;
    }
    
    .product-description {
        font-size: 0.95rem;
    }
}

/* Технологические ссылки */
@media (max-width: 768px) {
    .tech-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .tech-links img {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .tech-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tech-links img {
        max-width: 60px;
    }
}

/* Список функций */
@media (max-width: 768px) {
    .feature-list li {
        font-size: 14px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .feature-list li {
        font-size: 13px;
    }
}
