/* --- ФАЙЛ: static/css/public_styles.css (ФИНАЛЬНАЯ ВЕРСИЯ) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #272558; 
    color: #333;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.main-header {
    width: 95%; max-width: 1200px; margin: 0 auto 20px auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    background-color: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; flex-wrap: wrap; gap: 15px;
}
.logos { display: flex; align-items: center; gap: 15px; }
.logo { height: 40px; object-fit: contain; cursor: pointer; transition: transform 0.2s; }
.logo:hover { transform: scale(1.05); }
.logo.main-logo { height: 45px; }
.logo.youtube { height: 30px; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.language-switcher a { color: #6c757d; text-decoration: none; font-weight: bold; }
.language-switcher a.active { color: #1e1e4b; text-decoration: underline; }

section {
    width: 95%; max-width: 1200px; background: #ffffff; padding: 20px; margin: 20px auto;
    border-radius: 12px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
section h2 {
    font-family: 'Montserrat', sans-serif; color: #1e1e4b; text-align: center;
    font-size: 1.8em; margin-top: 0; margin-bottom: 1.5em;
}
.flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.comp {
    background: #fdfdfd; border-radius: 10px; border: 1px solid #eee; padding: 15px;
    width: 270px; text-align: center; display: flex; flex-direction: column;
    justify-content: space-between; transition: transform 0.3s, box-shadow 0.3s;
}
.comp:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.comp img.cups { max-width: 100%; height: 110px; object-fit: contain; margin-bottom: 15px; }
.comp .button, .login-button {
    padding: 10px 18px; color: #fff !important; background-color: #272558; text-decoration: none;
    border-radius: 8px; font-size: 0.9em; font-weight: 500; border: none; cursor: pointer;
    display: inline-block; transition: background-color 0.2s;
}
.comp .button:hover, .login-button:hover { background-color: #3b3a7a; }

/* Cookie Banner */
.cookie-consent-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background-color: rgba(20, 20, 40, 0.95);
    color: #f0f0f0; padding: 15px 25px; display: none; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 15px; z-index: 1000; border-top: 1px solid #4a4a70; backdrop-filter: blur(5px);
}
.cookie-consent-banner p { margin: 0; flex-grow: 1; font-size: 0.9em; }
.cookie-consent-banner a { color: #aeb4ff; text-decoration: underline; }
.cookie-consent-banner .button { padding: 8px 16px; flex-shrink: 0; }

.table-responsive-wrapper table td {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    body { padding: 5px; }
    .main-header { justify-content: center; }
    .comp { width: calc(50% - 30px); }
}
@media (max-width: 600px) {
    .main-header { flex-direction: column; }
    .comp { width: 100%; }
}