:root {
    --primary-color: #CD4662;
    --secondary-color: #F4DBDB;
    --accent-color: #000;
    --background-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    margin: 0;
    min-height: 100vh;
    font-family: "Unbounded", sans-serif;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: var(--primary-color) !important;
    font-family: "Unbounded", sans-serif;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--white) !important;
    font-family: "Unbounded", sans-serif;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-text {
    color: var(--white) !important;
    margin-right: 1rem;
}

.container {
    flex: 1;
    padding: 2rem 0;
}

.main-container {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

.main-container h1,
.main-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
}

.main-container h4 {
    color: var(--primary-color);
    font-family: "Unbounded", sans-serif;
    margin-bottom: 1rem;
}

.main-container p {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: "Unbounded", sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(205, 70, 98, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-color);
    cursor: pointer;
    font-family: "Unbounded", sans-serif;
}

.btn {
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--accent-color);
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--accent-color);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card h5 {
    color: var(--primary-color);
    font-family: "Unbounded", sans-serif;
}

.alert {
    border: none;
    border-radius: 10px;
    font-family: "Unbounded", sans-serif;
}

.alert-success {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.table {
    border-radius: 10px;
    overflow: hidden;
    font-family: "Unbounded", sans-serif;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-family: "Unbounded", sans-serif;
    border: none;
    padding: 1rem;
}

.table td {
    border-color: #e9ecef;
    vertical-align: middle;
    padding: 1rem;
}

.ingredient-group {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.ingredient-group h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drink-section {
    display: none;
}

.drink-section.active {
    display: block;
}

.form-check-input:hover,
.btn:hover,
.nav-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .main-container {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .container {
        padding: 1rem 0;
    }
}

#drinkForm {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

#totalPrice {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.cart-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-total {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 10px;
    padding: 1.5rem;
    font-weight: bold;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form input[type="submit"] {
    font-family: "Unbounded", sans-serif;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-form input[type="submit"]:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-container {
    animation: fadeIn 0.5s ease-out;
}

/* Стили для cookie-баннера - АДАПТИВНАЯ ВЕРСИЯ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B2E42 100%);
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    font-family: "Unbounded", sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text h4 {
    font-family: "Unbounded", sans-serif;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 0.8rem;
    opacity: 0.95;
    line-height: 1.4;
    font-family: "Unbounded", sans-serif;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 8px 20px;
    border-radius: 10px;
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-cookie-accept {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.btn-cookie-accept:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cookie-decline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-cookie-decline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cookie-link {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
    transition: all 0.3s ease;
}

.cookie-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

/* Футер с ссылками в стиле сайта */
.legal-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f5e8e8 100%);
    padding: 1.5rem 0 1rem;
    margin-top: 2rem;
    border-top: 3px solid var(--primary-color);
}

.legal-links {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.legal-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: "Unbounded", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.legal-links a:hover::after {
    width: 100%;
}

.legal-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    font-size: 0.7rem;
    color: var(--primary-color);
    font-family: "Unbounded", sans-serif;
    opacity: 0.8;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ КУКИ-БАННЕРА ===== */

/* Планшеты */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 0.8rem 0;
    }
    
    .cookie-content {
        gap: 12px;
    }
    
    .cookie-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .cookie-text p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .btn-cookie {
        padding: 6px 15px;
        font-size: 0.7rem;
    }
    
    .legal-links {
        gap: 1rem;
    }
    
    .legal-links a {
        font-size: 0.7rem;
    }
    
    .copyright {
        font-size: 0.6rem;
    }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.6rem 0;
        max-height: 85vh;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cookie-text {
        width: 100%;
    }
    
    .cookie-text h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .cookie-text p {
        font-size: 0.65rem;
        line-height: 1.3;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-cookie {
        padding: 5px 12px;
        font-size: 0.65rem;
        flex: 1;
        max-width: 120px;
        white-space: nowrap;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .legal-links a {
        font-size: 0.65rem;
    }
    
    .legal-footer {
        padding: 1rem 0 0.8rem;
        margin-top: 1.5rem;
    }
}

/* Очень маленькие телефоны (до 380px) */
@media (max-width: 380px) {
    .cookie-banner {
        padding: 0.5rem 0;
    }
    
    .cookie-text h4 {
        font-size: 0.75rem;
    }
    
    .cookie-text p {
        font-size: 0.6rem;
        line-height: 1.2;
    }
    
    .btn-cookie {
        padding: 4px 10px;
        font-size: 0.6rem;
        max-width: 100px;
    }
    
    .legal-links a {
        font-size: 0.6rem;
    }
    
    .copyright {
        font-size: 0.55rem;
    }
}

/* Альбомная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .cookie-banner {
        padding: 0.4rem 0;
        max-height: 70vh;
    }
    
    .cookie-content {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .cookie-text h4 {
        font-size: 0.8rem;
    }
    
    .cookie-text p {
        font-size: 0.65rem;
    }
    
    .cookie-buttons {
        width: auto;
    }
    
    .btn-cookie {
        padding: 4px 12px;
    }
}

/* Стили для скролла внутри баннера (если нужно) */
.cookie-banner::-webkit-scrollbar {
    width: 3px;
}

.cookie-banner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cookie-banner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Юридический подвал */
.legal-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f5e8e8 100%);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: "Unbounded", sans-serif;
}

.footer-section p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #a63953;
    text-decoration: underline;
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 0.5rem;
}

.footer-links-list a {
    font-size: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-color);
}

.legal-warning {
    margin-top: 0.5rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Кнопка настроек cookies */
.btn-cookie-settings {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-cookie-settings:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}