/* ===== Шрифты ===== */
/* Golos Text для заголовков — кириллица родная, рисунок спокойный.
   Inter для основного текста — хорошо читается с телефона. */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600&family=Inter:wght@400;500&display=swap');

:root {
    --font-heading: 'Golos Text', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Палитра «шалфей» */
    --bg-page: #F2F5F3;
    --bg-card: #FFFFFF;
    --accent: #2F6B57;
    --accent-dark: #22503F;
    --danger: #B23A3A;
    --danger-dark: #8E2C2C;
    --text-main: #2E332F;
    --text-muted: #6E736F;
    --line: #DFE5E1;
}

/* ===== Общие стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
/* Запрет горизонтального скролла на всех страницах */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
 
body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-main);
}
/* ===== Header поверх hero ===== */
/* ===== HEADER ===== */
header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
 
    display:flex;
    justify-content:space-between;
    align-items:center;
 
    padding:25px 60px;
 
    z-index:1000;
 
    background:transparent;
}
 
header strong{
    color:white;
    font-size:20px;
}
 
header nav{
    display:flex;
    align-items:center;
}
 
header nav a{
    color:white;
    text-decoration:none;
    font-weight:700;
    margin-left:25px;
    position:relative;
}
 
/* линии */
header nav a:not(:last-child)::after{
    content:"";
    position:absolute;
    right:-15px;
    top:50%;
    transform:translateY(-50%);
    height:18px;
    width:1px;
    background:rgba(255,255,255,0.6);
}
 
header nav a:hover{
    opacity:0.8;
}
 
/* Разделительная линия */
header nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 1px;
    background: rgba(255,255,255,0.6);
}
 
header nav a:hover {
    opacity: 0.8;
}
/* ===== Hero ===== */
.hero {
    height: 90vh;
    background: url("img/background.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
}
 
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}
 
.hero h1,
.hero p,
.hero .btn {
    position: relative;
    z-index: 2;
}
 
.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
 
.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}
 
/* ===== Обычные секции ===== */
.section {
    padding: 80px 20px;
    text-align: center;
}
 
.card {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
 
footer {
    text-align: center;
    padding: 30px;
    background: #fff;
    margin-top: 40px;
}
/* ===== Кнопки ===== */
.btn, .confirm-btn {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
}
 
.btn {
    background-color: var(--accent);
    color: white;
    font-family: var(--font-body);
    font-size: 16px;
}
.btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}
 
.confirm-btn {
    background-color: #3498db;
    color: white;
    font-size: 16px;
}
.confirm-btn:disabled {
    background-color: grey;
    cursor: not-allowed;
}
.confirm-btn:hover:not(:disabled) {
    background-color: #2a7ac0;
}
 
/* ===== Карточка расписания ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
 
/* Слоты записи */
.slot {
    padding: 18px 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    color: white;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #2ecc71; /* по умолчанию зеленый */
}
 
.slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
 
/* Статусы слотов */
.free {
    background-color: #2ecc71;
}
.free:hover {
    background-color: #27ae60;
}
 
.pending {
    background-color: #f1c40f;
    color: black;
    cursor: not-allowed;
}
 
.busy {
    background-color: #e74c3c;
    cursor: not-allowed;
}
 
.selected {
    background-color: #f39c12 !important;
    color: black !important;
}
 
/* ===== Карточка формы бронирования ===== */
.booking-section {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}
 
.booking-section:hover {
    transform: translateY(-5px);
}
 
.booking-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}
 
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
 
.booking-form input,
.booking-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.3s;
}
 
.booking-form input:focus,
.booking-form textarea:focus {
    border-color: #6c8cff;
    outline: none;
    box-shadow: 0 0 5px rgba(108, 140, 255, 0.4);
}
 
.booking-form textarea {
    min-height: 80px;
    resize: vertical;
}
 
.booking-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #6c8cff;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}
 
.booking-form button:hover {
    background: #4e6fff;
}
 
.checkbox {
    font-size: 13px;
}
 
/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
/* ===== Dropdown ===== */
.dropdown {
    position: relative;
    display: inline-block;
}
 
.dropbtn {
    background-color: #2c3e50;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
 
.dropdown-content{
    display:none;
    position:absolute;
    top:100%;
    left:0;
 
    min-width:260px;
 
    background:white;
    border-radius:12px;
 
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
 
    overflow:hidden;
 
    z-index:1000;
}
 
.dropdown-content a{
    color:#1f2a38;
    padding:14px 18px;
    text-decoration:none;
    display:block;
    font-size:14px;
    transition:0.2s;
}
.dropdown-content a:hover{
    background:#f4f7fa;
}
 
.dropdown:hover .dropdown-content {
    display: block;
}
.login-container {
    width: 300px;
    margin: 40px auto;
}
 
.login-container form {
    display: flex;
    flex-direction: column;
}
 
.login-container input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
 
.login-container button {
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
}
 
.login-container button:hover {
    background-color: #1a252f;
}
 
.profile-container {
    width: 400px;
    margin: 40px auto;
}
.auth-section {
    max-width: 400px;
    margin: 120px auto;
    text-align: center;
}
 
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
 
.auth-form input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
 
.profile {
    max-width: 700px;
    margin: 120px auto;
    padding: 20px;
}
 
.profile-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
 
.appointments {
    margin: 20px 0;
}
 
.appointment {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #eee;
}
/* ===== DASHBOARD ===== */
 
.dashboard{
display:flex;
min-height:100vh;
background:#f4f7fa;
}
 
/* SIDEBAR */
 
.sidebar{
width:250px;
background:#1f2a38;
color:white;
display:flex;
flex-direction:column;
padding:30px;
}
 
.logo{
margin-bottom:40px;
}
 
.menu{
display:flex;
flex-direction:column;
gap:15px;
}
 
.menu a{
color:white;
text-decoration:none;
padding:10px;
border-radius:6px;
transition:0.3s;
}
 
.menu a:hover{
background:#2f3c4f;
}
 
.logout{
margin-top:auto;
color:#ff6b6b;
text-decoration:none;
}
 
/* MAIN */
 
.main{
flex:1;
padding:40px;
}
 
.dashboard-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}
 
/* CARDS */
 
.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-bottom:40px;
}
 
.card-stat{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 8px 20px rgba(0,0,0,0.05);
}
 
.card-stat p{
font-size:28px;
font-weight:bold;
margin-top:10px;
}
 
/* APPOINTMENTS */
 
.appointments{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 8px 20px rgba(0,0,0,0.05);
}
 
.appointment-card{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 0;
border-bottom:1px solid #eee;
}
 
.appointment-card:last-child{
border-bottom:none;
}
 
.status{
padding:6px 12px;
border-radius:20px;
font-size:14px;
}
 
.confirmed{
background:#2ecc71;
color:white;
}
 
.pending{
background:#f1c40f;
}
.cancel-btn{
padding:10px 15px;
border:none;
background:#e74c3c;
color:white;
border-radius:6px;
cursor:pointer;
}
/* USER BOX */
 
.user-box{
display:flex;
align-items:center;
gap:10px;
background:white;
padding:6px 12px;
border-radius:30px;
box-shadow:0 4px 10px rgba(0,0,0,0.05);
}
 
.user-avatar{
width:32px;
height:32px;
border-radius:50%;
background:#6c8cff;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}
 
.user-name{
font-weight:600;
}
#newsForm {
    background:#fff; 
    padding:20px; 
    border-radius:8px; 
    box-shadow:0 2px 5px rgba(0,0,0,0.1); 
    margin-bottom:30px; 
    display:none; 
    flex-direction:column; 
    gap:10px; 
    transition: all 0.3s ease;
}
 
/* класс для показа формы */
.show-form {
    display: flex !important;
}
.status.pending{
background:#fff3cd;
color:#856404;
}
 
.status.confirmed{
background:#d4edda;
color:#155724;
}
 
.status.rejected{
background:#f8d7da;
color:#721c24;
}
.profile-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}
 
.profile-nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}
 
.appointment-card, .news-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.book-btn{
display:inline-block;
margin:20px 0;
}
/* ===== ОБЩЕЕ ===== */
/* Старое правило body убрано: оно шло ниже основного и возвращало
   шрифт Segoe UI, голубоватый фон #f5f7fb и серый текст,
   перебивая выбранные шрифты и палитру «шалфей».
   Выравнивание заголовков оставлено как было. */

h1, h2 {
    text-align: center;
}
 
/* Старое правило .btn с ярко-зелёным #4CAF50 убрано: оно шло ниже
   основного и перекрашивало все кнопки сайта мимо палитры.
   Действующее правило .btn — в начале файла. */
 
/* ===== КОНТЕЙНЕР ===== */
.schedule-container,
.profile,
.admin-section {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
 
/* ===== INPUT ===== */
input, select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin: 5px;
}
 
/* ===== СЛОТЫ ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
 
.slot-btn {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #4CAF50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
 
.slot-btn:hover {
    background: #45a049;
}
 
.slot-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
 
/* ===== КАРТОЧКИ ===== */
.appointment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafc;
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
    border-left: 5px solid #4CAF50;
}
 
.status {
    font-weight: bold;
}
 
.status.pending { color: orange; }
.status.confirmed { color: green; }
 
/* ===== КНОПКИ В ПРОФИЛЕ ===== */
.profile-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
 
/* ===== АДМИН ===== */
.admin-section h2 {
    margin-top: 30px;
}
 
#adminSlots div,
#adminBookings div {
    background: #f9fafc;
    padding: 10px;
    margin: 8px 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
button {
    cursor: pointer;
}
 
/* ===== АНИМАЦИЯ ===== */
* {
    transition: all 0.2s ease;
}
/* ===== DASHBOARD 2.0 ===== */
 
.dashboard {
    display: flex;
    min-height: 100vh;
}
 
/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #1e293b;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
 
.logo {
    margin-bottom: 40px;
    font-size: 20px;
}
 
.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
 
.menu a {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
}
 
.menu a:hover {
    background: #334155;
}
 
.logout {
    margin-top: auto;
    color: #f87171;
}
 
/* MAIN */
.main {
    flex: 1;
    padding: 40px;
}
 
/* HEADER */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
/* USER */
.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
 
/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
    margin: 30px 0;
}
 
.card-stat {
    background: white;
    padding: 20px;
    border-radius: 12px;
}
 
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}
 
/* ADMIN LIST */
#adminSlots div,
#adminBookings div {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 10px;
}
.programs {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    text-align: center;
}
 
.programs h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
 
.programs-subtitle {
    color: #777;
    margin-bottom: 50px;
    font-size: 16px;
}
 
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
 
.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
 
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
 
.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
 
.program-card h3 {
    margin: 20px 15px 10px;
    font-size: 18px;
}
 
.program-card p {
    padding: 0 15px 20px;
    color: #555;
    font-size: 14px;
}
/* ===================== */
/* СЕТКА ОТЗЫВОВ */
/* ===================== */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
 
/* ===================== */
/* КАРТОЧКА */
/* ===================== */
.review-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s ease;
 
    display: flex;
    flex-direction: column;
}
 
.review-card:hover {
    transform: translateY(-5px);
}
 
/* ===================== */
/* ШАПКА (аватар + имя) */
/* ===================== */
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
 
/* Аватар (буква) */
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
 
/* Имя */
.review-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}
 
/* ===================== */
/* ТЕКСТ */
/* ===================== */
.review-text {
    color: #444;
    line-height: 1.5;
    margin-top: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow: hidden;
}
 
/* ===================== */
/* ФОРМА */
/* ===================== */
.review-form {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}
 
/* Поля */
.review-form input,
.review-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}
 
/* Текстовое поле */
.review-form textarea {
    min-height: 100px;
    resize: vertical;
}
 
/* Кнопка */
.review-form button {
    padding: 12px;
    border: none;
    background: #ffcc00;
    color: #000;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
 
.review-form button:hover {
    background: #e6b800;
}
.section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ===================== */
/* АДАПТИВ */
/* ===================== */
@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* Старый блок .calendar удалён: он делал контейнер семиколоночной сеткой,
   из-за чего шапка, дни недели и числа расползались по колонкам,
   а .calendar button перекрашивал ячейки в серый.
   Действующие правила календаря — в конце файла. */

.status.pending { color: orange; }
.status.confirmed { color: green; }
.status.rejected { color: red; }
 
/* ===== PROGRAMS MODERN DESIGN ===== */
 
.programs-page {
    max-width: 900px;
    margin: 140px auto 60px;
    padding: 20px;
}
 
/* заголовок */
.programs-page h1 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
    color: #1f2a38;
}
 
/* карточка */
.program-block {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    margin-bottom: 40px;
 
    /* 🔥 эффект */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
 
    /* цветная линия слева */
    border-left: 6px solid #6c8cff;
 
    transition: 0.3s;
    scroll-margin-top: 80px;
}
 
/* hover эффект */
.program-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
 
/* заголовки */
.program-block h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #2c3e50;
}
 
/* подзаголовки */
.program-block h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #4f6df5;
}
 
/* текст */
.program-block p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}
 
/* списки */
.program-block ul {
    margin: 15px 0 20px;
    padding-left: 20px;
}
 
.program-block li {
    margin-bottom: 8px;
}
 
/* теги */
.tags {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    background: #f4f7ff;
    padding: 12px;
    border-radius: 10px;
}
 
/* примечание */
.note {
    margin-top: 15px;
    font-size: 14px;
    color: #888;
    font-style: italic;
}
 
/* 🔥 РАЗНЫЕ ЦВЕТА ДЛЯ КАРТОЧЕК */
.program-block:nth-child(2) {
    border-left-color: #6c8cff;
}
 
.program-block:nth-child(3) {
    border-left-color: #2ecc71;
}
 
.program-block:nth-child(4) {
    border-left-color: #e67e22;
}
 
/* фикс header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #543F41;
}
 
/* чтобы контент не прятался */
body {
    padding-top: 80px;
}
/* =========================
   MOBILE
========================= */
 
@media (max-width:768px){
 
   body {
    padding-top: 110px;
}
 
    .main-header{
        flex-direction:column;
        gap:15px;
        padding:15px;
    }
 
    .nav-menu{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }
 
    .hero h1{
        font-size:28px;
    }
 
    .hero p{
        font-size:16px;
    }
 
    .program-grid{
        grid-template-columns:1fr;
    }
 
    .profile{
        margin:20px;
    }
 
    .dashboard{
        flex-direction:column;
    }
 
    .sidebar{
        width:100%;
    }
 
    .main{
        padding:20px;
    }
 
    .schedule-grid{
        grid-template-columns:repeat(2,1fr);
    }
 
}
.program-link{
    text-decoration:none;
    color:inherit;
    display:block;
}
 
.program-link:hover{
    color:inherit;
}
 
/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
 
    /* Header */
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        background: #543F41;
    }
 
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
 
    header nav a {
        margin-left: 10px;
        font-size: 13px;
    }
 
    header nav a:not(:last-child)::after {
        display: none;
    }
 
    /* Dropdown на мобильных */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
    }
 
    .dropdown-content a {
        color: white;
        font-size: 13px;
    }
 
    /* Hero */
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 100px 20px 60px;
    }
 
    .hero h1 {
        font-size: 22px;
    }
 
    .hero p {
        font-size: 15px;
    }
 
    /* Programs grid */
    .program-grid {
        grid-template-columns: 1fr;
    }
 
    /* Dashboard */
    .dashboard {
        flex-direction: column;
    }
 
    .sidebar {
        width: 100%;
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
 
    .sidebar .logo {
        margin-bottom: 0;
        flex-basis: 100%;
    }
 
    .menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
 
    .menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
 
    .logout {
        margin-top: 0;
    }
 
    .main {
        padding: 20px;
    }
 
    /* Cards stat */
    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
 
    /* Appointment card */
    .appointment-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
 
    /* Schedule grid */
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
 
    /* Auth */
    .auth-section {
        margin: 80px 20px;
    }
 
    /* Programs page */
    .programs-page {
        margin: 100px 15px 40px;
        padding: 10px;
    }
 
    .program-block {
        padding: 20px;
    }
 
    /* Admin */
    #adminSlots div,
    #adminBookings div {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
 
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
 
/* ===== КОНТЕНТ ИЗ РЕДАКТОРА (Quill) ===== */
#pageContent,
#aboutContent,
#contactsContent {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    line-height: 1.85;
    font-size: 16px;
    color: #333;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
 
/* Все дочерние элементы — без center */
#pageContent p, #aboutContent p, #contactsContent p,
#pageContent li, #aboutContent li, #contactsContent li,
#pageContent h1, #aboutContent h1, #contactsContent h1,
#pageContent h2, #aboutContent h2, #contactsContent h2,
#pageContent h3, #aboutContent h3, #contactsContent h3 {
    text-align: left;
}
 
#pageContent h1, #aboutContent h1, #contactsContent h1,
#pageContent h2, #aboutContent h2, #contactsContent h2,
#pageContent h3, #aboutContent h3, #contactsContent h3 {
    color: #1f2a38;
    margin: 22px 0 10px;
    line-height: 1.35;
    font-weight: 600;
}
 
#pageContent p, #aboutContent p, #contactsContent p {
    margin-bottom: 14px;
    min-height: 0;
}
 
/* Убираем лишние пустые абзацы от Quill */
#pageContent p:empty, #aboutContent p:empty, #contactsContent p:empty,
#pageContent p br:only-child, #aboutContent p br:only-child {
    display: none;
}
 
#pageContent ul, #aboutContent ul, #contactsContent ul,
#pageContent ol, #aboutContent ol, #contactsContent ol {
    padding-left: 28px;
    margin: 0 0 14px;
    text-align: left;
}
 
#pageContent li, #aboutContent li, #contactsContent li {
    margin-bottom: 7px;
    line-height: 1.7;
    text-align: left;
}
 
/* Quill классы выравнивания */
.ql-align-center { text-align: center !important; }
.ql-align-right  { text-align: right !important; }
.ql-align-justify { text-align: justify !important; }
 
 
/* ===== СЕКЦИЯ С ТЕКСТОМ РЕДАКТОРА ===== */
.page-content-section {
    padding: 50px 60px;
    text-align: left !important;
    background: #fff;
}
 
@media (max-width: 768px) {
    .page-content-section {
        padding: 30px 20px;
    }
}
 
/* ===== ВЫБОР ТИПА ЗАНЯТИЯ ===== */
.service-select-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
 
.service-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #4b79a1;
    font-size: 15px;
    color: #1f2a38;
    background: white;
    min-width: 280px;
    cursor: pointer;
}
 
.service-select:focus {
    outline: none;
    border-color: #3a5d7c;
    box-shadow: 0 0 0 3px rgba(75,121,161,0.2);
}
 
.schedule-hint {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}
 
.slot-btn { min-width: 110px; font-size: 14px; }
 
#slotDuration {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-left: 8px;
}
 /* ===== ТЕСТОВЫЙ РЕЖИМ ===== */

.test-banner {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    background: #fff3cd;
    color: #664d03;
    border-bottom: 1px solid #ffecb5;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.test-banner strong {
    font-weight: 700;
}

@media (max-width: 600px) {
    .test-banner {
        flex-direction: column;
        gap: 2px;
        padding: 10px 15px;
    }
}
 

/* ==============================
   КОНТАКТЫ
   ============================== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e6e3dd;
    border-radius: 12px;
}

.contact-label {
    font-size: 13px;
    letter-spacing: .02em;
    color: #8a8580;
}

.contact-value {
    font-size: 20px;
    color: #2f3b36;
    text-decoration: none;
}

a.contact-value:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 14px;
    color: #8a8580;
}

.contacts-cta {
    margin-top: 8px;
    font-size: 16px;
    color: #4a4a46;
}

/* ==============================
   ЗАПИСЬ НА ПРИЁМ
   ============================== */
.schedule-intro {
    max-width: 640px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #5a5a55;
}

.schedule-legend {
    display: flex;
    gap: 20px;
    margin: 0 0 16px;
    font-size: 14px;
    color: #6a6a65;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-item::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-free::before {
    background: #e4efe8;
    border: 1px solid #2f6b57;
}

.legend-busy::before {
    background: #ececea;
    border: 1px solid #b8b5ae;
}

.schedule-empty {
    color: #8a8580;
    font-size: 15px;
}

.slot-btn {
    position: relative;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.slot-btn--free {
    background: #e4efe8;
    border: 1px solid #2f6b57;
    color: #22503f;
}

.slot-btn--free:hover {
    background: #2f6b57;
    color: #fff;
}

.slot-btn--busy {
    background: #f2f1ef;
    border: 1px solid #d6d3cc;
    color: #9a968f;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-status {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: .02em;
    text-decoration: none;
}

/* ==============================
   ФОРМА ЗАПИСИ БЕЗ РЕГИСТРАЦИИ
   ============================== */
.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 40, 35, .45);
    overflow-y: auto;
}

.booking-modal {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    background: var(--bg-card);
    border-radius: 16px;
}

.booking-modal h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.booking-summary {
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #E4EFE8;
    border-radius: 8px;
    color: var(--accent-dark);
    font-size: 15px;
}

.booking-modal label {
    display: block;
    margin: 14px 0 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.booking-modal input,
.booking-modal textarea,
.manage-page input {
    width: 100%;
    padding: 11px 13px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.booking-modal input:focus,
.booking-modal textarea:focus,
.manage-page input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 107, 87, .12);
}

.booking-modal textarea {
    resize: vertical;
}

.booking-note {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.booking-error {
    margin: 14px 0 0;
    padding: 10px 13px;
    background: #FCEBEB;
    border-radius: 8px;
    color: #8E2C2C;
    font-size: 14px;
}

.booking-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}

.btn-secondary {
    padding: 11px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
}

.admin-booking-actions .btn-danger {
    padding: 11px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #fff;
    background: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 8px;
    cursor: pointer;
}

.admin-booking-actions .btn-danger:hover {
    background: var(--danger-dark);
}

/* ==============================
   СТРАНИЦА УПРАВЛЕНИЯ ЗАПИСЬЮ
   ============================== */
.manage-page {
    max-width: 640px;
}

.manage-page h2 {
    margin: 34px 0 6px;
    font-size: 19px;
}

.manage-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    align-items: baseline;
    margin: 24px 0;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.manage-card .contact-value {
    font-size: 16px;
}

/* ==============================
   СТРАНИЦА ЗАПИСИ НА ПРИЁМ
   ============================== */
.booking-page,
.auth-page,
.profile-page {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.booking-form-page {
    margin-top: 32px;
}

.form-step {
    margin-bottom: 28px;
    padding: 24px 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.form-step legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--accent);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
}

.form-step label,
.auth-form label,
.add-booking label {
    display: block;
    margin: 16px 0 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-step input,
.form-step select,
.form-step textarea,
.auth-form input,
.add-booking input,
.add-booking select {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus,
.auth-form input:focus,
.add-booking input:focus,
.add-booking select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 107, 87, .12);
}

.form-step textarea {
    resize: vertical;
}

.field-hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.chosen-time {
    margin-top: 14px;
    padding: 10px 14px;
    background: #E4EFE8;
    border-radius: 8px;
    color: var(--accent-dark);
    font-size: 15px;
}

.slot-btn--chosen {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.success-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.success-card h2 {
    margin-bottom: 14px;
}

.success-card p {
    margin-bottom: 14px;
}

/* ==============================
   ВХОД И КАБИНЕТ
   ============================== */
.auth-form {
    max-width: 420px;
    margin: 28px auto;
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 22px;
}

.profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-page h2 {
    margin: 36px 0 12px;
    font-size: 19px;
}

.booking-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.booking-item-main {
    line-height: 1.6;
}

.booking-item-actions {
    display: flex;
    gap: 10px;
}

.status-confirmed {
    color: var(--accent);
    font-size: 14px;
}

.status-pending {
    color: #9A6B12;
    font-size: 14px;
}

.add-booking {
    padding: 24px 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.admin-booking {
    margin-bottom: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    line-height: 1.7;
}

.admin-booking button {
    margin: 10px 8px 0 0;
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 600px) {
    .booking-item,
    .profile-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================
   ВНУТРЕННИЕ СТРАНИЦЫ
   Шапка намеренно не переопределяется: она одинакова на всех
   страницах — фиксированная, тёмная, задана ниже правилом header.
   Отступ под неё даёт body { padding-top }.
   ============================== */
body.inner-page .section {
    /* Ниже по файлу .section сделана флекс-колонкой с центрированием —
       из-за этого карточки и календарь сжимались по содержимому.
       Внутренним страницам нужен обычный поток. */
    display: block;
    padding: 32px 20px 80px;
}










.slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.35;
}

.slot-label {
    font-size: 12px;
    opacity: .85;
    text-decoration: none;
}

/* Панель администратора: расписание дня */
.day-schedule {
    margin-top: 18px;
}

.day-schedule h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.day-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}

.day-controls {
    margin-top: 18px;
}

.day-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 15px;
    cursor: pointer;
}

.day-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ==============================
   КАЛЕНДАРЬ ВЫБОРА ДНЯ
   ============================== */
.calendar {
    display: block;
    width: 100%;
    margin: 16px 0 8px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calendar-head span {
    font-family: var(--font-heading);
    font-size: 17px;
}

.calendar-head button {
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    color: var(--accent-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.calendar-head button:hover:not(:disabled) {
    background: #E4EFE8;
}

.calendar-head button:disabled {
    color: #C3C7C4;
    cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-weekdays span {
    padding: 4px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Ячейка тянется вместе с колонкой, высота держится пропорцией */
.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 62px;
    padding: 6px 4px;
    font-family: var(--font-body);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.cal-blank {
    border: none;
    background: transparent;
    cursor: default;
}

.cal-num {
    font-size: 18px;
}

.cal-note {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.cal-free {
    background: #E4EFE8;
    border-color: #A9CFBE;
    color: var(--accent-dark);
}

.cal-free:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cal-chosen,
.cal-chosen:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Занятые и закрытые дни — серые и неактивные */
.cal-full,
.cal-closed {
    background: #F2F1EF;
    border-color: #DCD9D3;
    color: #9A968F;
    cursor: not-allowed;
}

.cal-past {
    background: transparent;
    border-color: transparent;
    color: #C3C7C4;
    cursor: not-allowed;
}

@media (max-width: 560px) {
    .calendar {
        padding: 12px;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 5px;
    }

    .cal-day {
        min-height: 44px;
        border-radius: 8px;
    }

    .cal-num {
        font-size: 15px;
    }

    .cal-note {
        font-size: 10px;
    }
}

/* Плашка демонстрационной страницы */
.demo-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #FAEEDA;
    border: 1px solid #EFC98F;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #6B4308;
}

.demo-banner strong {
    white-space: nowrap;
}

.demo-banner a {
    color: #6B4308;
}

/* ==============================
   ИСПРАВЛЕНИЯ ПОСЛЕ ПРОВЕРКИ СТРАНИЦ
   ============================== */

/* Сообщения внутри сеток занимали одну узкую колонку, и текст
   разваливался по одному слову в строку. Растягиваем на всю ширину. */
.calendar-grid > p,
.schedule-grid > p,
.reviews-grid > p {
    grid-column: 1 / -1;
    margin: 8px 0;
    text-align: center;
}

/* Страница отзывов: содержимое прижималось к левому краю,
   потому что у секции не было ограничения ширины и центрирования. */
body.inner-page .section > h1 {
    margin-bottom: 8px;
}

.reviews-grid {
    max-width: 760px;
    margin: 28px auto 0;
}

.review-form {
    max-width: 520px;
    margin: 32px auto 0;
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
}

.review-form h2 {
    margin-bottom: 16px;
    font-size: 19px;
}

.review-form input,
.review-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.review-form textarea {
    min-height: 110px;
    resize: vertical;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 107, 87, .12);
}

.review-form button {
    width: 100%;
    padding: 13px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.review-form button:hover {
    background: var(--accent-dark);
}

/* Контакты: карточки друг под другом, одинаковой ширины */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
    margin: 32px auto;
}

.contact-card {
    align-items: center;
    text-align: center;
    padding: 24px 26px;
}

.contacts-cta {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

/* Предупреждение, когда занятость не загрузилась, но записаться можно */
.booking-warning {
    margin: 10px 0 0;
    padding: 11px 14px;
    background: #FAEEDA;
    border: 1px solid #EFC98F;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #6B4308;
}

/* Напоминание в админ-панели про стандартный пароль */
.admin-warning {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
    padding: 16px 20px;
    background: #FCEBEB;
    border: 1px solid #E8B4B4;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #7A2626;
}

.admin-warning code {
    padding: 1px 6px;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
}

/* ==============================
   АДМИН-ПАНЕЛЬ: ИСПРАВЛЕНИЕ РАЗМЕТКИ
   Старое правило "#adminSlots div, #adminBookings div { display: flex }"
   превращало в строку каждый вложенный блок, поэтому расписание дня
   растягивалось по горизонтали и вылезало за карточку.
   ============================== */
#adminSlots,
#adminBookings {
    display: block;
    width: 100%;
}

#adminSlots div,
#adminBookings div {
    display: block;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
}

.card {
    max-width: none;
}

.day-schedule {
    display: block;
    margin-top: 16px;
}

.day-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}

.day-row-time {
    min-width: 132px;
    font-weight: 500;
    color: var(--accent-dark);
}

.day-row-name {
    flex: 1;
    min-width: 160px;
    color: var(--text-main);
}

.day-row-state {
    font-size: 14px;
}

.day-controls {
    display: block;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.day-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 15px;
    cursor: pointer;
}

.day-toggle input {
    flex: none;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Список заявок: видно примерно десять, дальше прокрутка */
.bookings-scroll {
    max-height: 720px;
    overflow-y: auto;
    padding-right: 6px;
    margin-top: 14px;
}

.bookings-scroll::-webkit-scrollbar {
    width: 8px;
}

.bookings-scroll::-webkit-scrollbar-thumb {
    background: #CFD6D2;
    border-radius: 4px;
}

.admin-booking {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    line-height: 1.6;
}

.admin-booking-main {
    flex: 1;
    min-width: 220px;
}

.admin-booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-booking button {
    margin: 0;
    padding: 9px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}

.admin-booking-actions .btn-confirm {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.admin-booking-actions .btn-confirm:hover {
    background: var(--accent-dark);
}

.bookings-count {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}
/* Убираем отступ под фиксированную шапку на админке */
body:has(.dashboard) {
    padding-top: 0;
}
