/* ========== CSS Variables ========== */
:root {
    --bg-color: #f6f6f4;
    --text-color: #2e2e2e;
    --accent-color: #5b523e;
    --accent-light: #926946;
    --dark-color: #050504;
    --white: #ffffff;
    --gray: #e5e5e5;
    --overlay: rgba(0, 0, 0, 0.5);
    --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-color);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.logo img {
    height: 40px;
    width: auto;
}

/* Burger menu */
.burger-menu {
    width: 30px;
    height: 30px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.burger-menu span:first-child { top: 6px; }
.burger-menu span:nth-child(2) { top: 14px; }
.burger-menu span:last-child { bottom: 6px; }

.burger-menu.active span:first-child {
    transform: rotate(45deg);
    top: 14px;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:last-child {
    transform: rotate(-45deg);
    bottom: 14px;
}

/* Side menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -33%;
    width: 33%;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    padding: 2rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.side-menu.open { right: 0; }

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.side-menu-title {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.side-menu-nav { flex: 1; }

.menu-items {
    list-style: none;
}

.menu-items li {
    margin-bottom: 1rem;
}

.menu-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.menu-link:hover {
    color: var(--accent-light);
}

.side-menu-footer {
    border-top: 1px solid var(--gray);
    padding-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.menu-phone a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    margin-top: var(--header-height);
}

/* ========== Global Section Styles ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-align: center;
}

/* ========== Buttons ========== */
.btn, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn {
    background: var(--accent-color);
    color: var(--white);
}

.btn:hover {
    background: var(--accent-light);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

.btn-outline:disabled,
.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-large {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-align: center;
    display: block;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    margin: 0 auto;
}

.btn-small:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ========== Footer ========== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-light);
}

.footer-links {
    margin: 0 15px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-light);
}

/* ========== Notifications ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: #4caf50;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== Messenger Selection ========== */
.messenger-section {
    margin: 30px 0 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.messenger-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.messenger-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.messenger-option {
    flex: 0 1 auto;
    min-width: 200px;
}

.messenger-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    user-select: none;
}

.messenger-label:hover {
    background: #e9ecef;
}

.messenger-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.messenger-label.disabled:hover {
    background: transparent;
}

.messenger-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.messenger-checkbox:disabled {
    cursor: not-allowed;
}

.messenger-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.messenger-input-container {
    margin-top: 10px;
    margin-left: 42px;
}

.messenger-input {
    width: 100%;
    min-width: 280px;
    max-width: 350px;
    padding: 10px 14px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.messenger-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(91,82,62,0.1);
}

.messenger-input.error {
    border-color: #ff6b6b;
    background: #fff0f0;
}

.messenger-input.error:focus {
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.messenger-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff0f0;
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
}

/* ========== Utility Classes ========== */
#addBath:disabled + label {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== Responsive (only global) ========== */
@media (max-width: 768px) {
    .side-menu {
        width: 100%;
        right: -100%;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .section {
        padding: 40px 0;
    }
    .messenger-options {
        flex-direction: column;
        gap: 20px;
    }
    .messenger-option {
        width: 100%;
    }
    .messenger-input {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .consent-checkbox {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Header слоган */
.header-slogan {
    font-size: 1.25rem;       /* ≈20px, как у второстепенных заголовков */
    font-weight: 700;         /* жирный */
    color: var(--accent-color);
    letter-spacing: 1px;
    text-align: center;
    flex: 1;
    white-space: nowrap;      /* чтобы не переносился на двух строках */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .header-slogan {
        font-size: 0.9rem;
        font-weight: 600;
        display: none;        /* можно скрыть на телефонах, если не влезает */
    }
}