/* ===== ТЕМЫ ===== */

:root {
    --bg-color: #f1ebe6;
    --sidebar-bg: #0b88f1;
    --sidebar-border: #085899;
    --sidebar-text: #f1ebe6;
    --text-color: #333;
    --card-bg: white;
    --card-border: #e9ecef;
    --input-border: #ccc;
    --label-color: #aaa;
    --accent-color: #0b88f1;
    --accent-dark: #085899;
}
[data-theme="cats"] {
    --bg-color: #f3f0fa;      /*  ← очень светлая лаванда*/
    --sidebar-bg: #ccbef1;      /*← твоя лаванда*/
    --sidebar-border: #a99dd4;  /*← чуть темнее*/
    --sidebar-text: #2d2640;    /*← тёмно-фиолетовый (читаемо на лаванде)*/
    --text-color: #2d2640;
    --card-bg: #ffffff;
    --card-border: #e0d8f5;     /*← лёгкий лавандовый*/
    --input-border: #c8bce8;
    --label-color: #a090c0;
    --accent-color: #a6bcd4;    /*← твой серо-голубой*/
    --accent-dark: #7a9ab8 ;    /*← темнее*/
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --sidebar-bg: #16213e;
    --sidebar-border: #0f3460;
    --sidebar-text: #e0e0e0;
    --text-color: #e0e0e0;
    --card-bg: #16213e;
    --card-border: #0f3460;
    --input-border: #444;
    --label-color: #888;
    --accent-color: #4d9fff;
    --accent-dark: #3a7fd4;
}

[data-theme="dark"] select {
    background-color: #16213e;
    color: #e0e0e0;
    border-color: #0f3460;
}

[data-theme="dark"] select option {
    background-color: #16213e;
    color: #e0e0e0;
}

.cat-decoration {
    position: fixed;
    z-index: -1;
    height: 40vh;
    width: auto;
    pointer-events: none;
    display: none;
}
[data-theme="cats"] .cat-decoration {
    display: block;
}
.cat-left-down {
    bottom: 0;
    height: 32vh;
}
.cat-right-up {
    top: 0%;
    right: 0;
    height: 36vh;
}
.cat-right-down {
    bottom: 0;
    right: 0;
    height: 40vh;
}
.cat-left-up {
    top: 0%;
    left: 20%;
    height: 48vh;
}
@media (max-width: 768px) {
    .cat-left-up {
        display: none !important;
    }
    .cat-left-down {
        position: absolute;
        left: 4vh;
        bottom: 0;
        height: 35vh;
    }
}


/* ===== БАЗОВЫЕ СТИЛИ ===== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg-color);
    transition: background 0.3s;
}

body {
    background: transparent;
    color: var(--text-color);
    margin-left: 25%;
    transition: color 0.3s;
}

/* ===== КНОПКА БУРГЕР ===== */

.hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    padding: 5px 12px;
    cursor: pointer;
    z-index: 1001;
}

/* ===== САЙДБАР ===== */

aside.nav {
    position: fixed;
    display: block;
    overflow: visible;
    left: 0;
    top: 0;
    background: var(--sidebar-bg);
    width: 20%;
    padding: 2.5%;
    height: 100%;
    box-sizing: border-box;
    border-right: 5px solid var(--sidebar-border);
    transition: background 0.3s;
}

.site-header {
    display: none;
}

@media (max-width: 768px) {
    
    .site-header {
        display: flex;
        align-items: center;
        background: var(--sidebar-bg);
        padding: 30px 20px;
        position: sticky;
        top: 0;
        z-index: 999;
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    body {
        margin-left: 0;
    }

    aside.nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        transition: left 0.3s;
        z-index: 1000;
        padding: 60px 20px 20px;
        display: block;
    }

    aside.nav.active {
        left: 0;
    }

    aside h1 {
        margin-top: 0;
        font-size: 22px;
        text-align: left;
    }
    
    aside h3 {
        margin-top: 10px;
        font-size: 20px;
        text-align: left;
    }
    
    aside ul {
        padding-left: 0;
    }
}

aside h1 {
    color: var(--sidebar-text);
    margin-bottom: 5vh;
    line-height: 1.1;
    font-size: 1.6rem;
}

aside h3 {
    margin-bottom: 5vh;
    margin-top: 0px;
    font-size: 28px;
    color: var(--sidebar-text);
}

aside ul {
    list-style: none;
}

aside ul li {
    color: var(--sidebar-text);
    display: block;
    margin-top: 20px;
    transition: all .2s ease;
}

a {
    text-decoration: none;
}

aside ul li:hover {
    transform: scale(1.05);
}

main .features {
    float: left;
    margin-top: 10px;
}

/* ===== ЭФФЕКТ 16 ДЛЯ ВСЕХ ПОЛЕЙ ===== */

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group textarea,
.input-group select {
    border: 0;
    padding: 4px 0;
    border-bottom: 1px solid var(--input-border);
    background-color: transparent;
    color: var(--text-color);
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-bottom-color 0.3s;
}

.input-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: 0.4s;
}

.input-group input:focus ~ .focus-border,
.input-group textarea:focus ~ .focus-border {
    width: 100%;
}

.input-group label {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--label-color);
    transition: 0.3s;
    z-index: 1;
    pointer-events: none;
    font-size: 15px;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -18px;
    font-size: 12px;
    color: var(--accent-color);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
}

.input-group select ~ label {
    top: -18px;
    font-size: 12px;
    color: var(--label-color);
}

.input-group select:focus ~ label {
    color: var(--accent-color);
}

/* ===== КНОПКА ВЫХОДА ===== */

.logout-btn {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    display: block;
    margin-top: 20px;
    transition: all .2s ease;
}

.logout-btn:hover {
    transform: scale(1.05);
}

/* ===== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ===== */

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--sidebar-bg);
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.doc-container {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 2rem;
    max-width: 120vh;
    white-space: pre-wrap;
}

.doc-container p {
    margin-bottom: 0px !important;
}

.about-docs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-doc {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.btn-doc:hover {
    background: var(--accent-dark);
    color: white;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.price-table th,
.price-table td {
    padding: 10px 14px;
    border: 1px solid var(--card-border);
    text-align: left;
}
.price-table thead tr {
    background: var(--accent-color);
    color: white;
}
.price-table tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.03);
}

.accordion-item {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.accordion-item summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
    background: var(--card-bg);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-item summary::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.accordion-item[open] summary::after {
    transform: rotate(180deg);
}
.accordion-content {
    padding: 12px 16px;
    border-top: 1px solid var(--card-border);
}