:root {
    --primary: #2c7da0;
    --primary-dark: #0f4c5c;
    --secondary: #61a5c2;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8fafc;
    --dark: #1e2a3a;
    --gray: #94a3b8;
    --text-light: #fff3e0;
    --text-accent: #d4ffb0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
    background-image: url('/static/logo00.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    width: 100%;
    overflow-x: hidden;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    will-change: transform;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 2.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--primary);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 1000px;
    width: 100%;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.subhead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 40px;
    transition: all 0.2s;
    background: white;
    color: #1e2a3a;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,125,160,0.2);
}

button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-shadow: 0 4px 10px rgba(44,125,160,0.3);
}

button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.badge-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.badge-yellow {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.badge-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.section {
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(44,125,160,0.4);
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-accent);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.section ul {
    list-style: none;
    padding-left: 0;
}

.section li {
    margin-bottom: 0.7rem;
    padding-left: 1.8rem;
    position: relative;
    color: var(--text-light);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.section li:before {
    content: "\2728";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.section p {
    color: var(--text-light);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    margin-top: 0.5rem;
    font-style: italic;
}

.recommendation {
    background: rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--warning);
    padding: 1rem 1.2rem;
    border-radius: 20px;
    margin: 1rem 0;
    color: var(--text-light);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.recommendation:last-of-type {
    background: rgba(0, 0, 0, 0.6);
    border-left-color: var(--success);
    color: var(--text-light);
}

/* Звёздный рейтинг (рабочая версия) */
.rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
    max-width: 100%;
}
.rating input {
    display: none;
}
.rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rating label:before {
    content: "\2605";
}
.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}
@media (max-width: 768px) {
    .rating label {
        font-size: 1.6rem;
    }
}

@media print {
    @page {
        size: A4;
        margin: 1cm;
    }
    body {
        background: white;
        color: black;
        padding: 0;
        margin: 0;
    }
    body::before {
        display: none;
    }
    .container {
        display: block;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    .card {
        background: white;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0.5cm;
        max-width: 100%;
        margin: 0;
        break-inside: avoid;
    }
    .logo, .logo-icon {
        color: black;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        text-shadow: none;
    }
    button, .rating, .footer, .recommendation a, .form-group, .recommendation:last-of-type,
    [onclick="window.print();"], .card:last-of-type, .card:nth-last-child(2),
    .card:nth-last-child(3), .card:has(form), .card:has(textarea) {
        display: none !important;
    }
    .section, .score-circle, .recommendation {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    a {
        color: black;
        text-decoration: none;
    }
    h1, h2, h3 {
        page-break-after: avoid;
    }
    p, ul, li {
        page-break-inside: avoid;
    }
}