:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #6c757d;
    --vu: 8px;
    --gap: 16px;
    --radius: 8px;
}

html { scroll-behavior: smooth; }

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--white);
}

.main {
    max-width: 800px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.main>* {
    width: 100%;
    max-width: 650px;
    margin-left: 0;
    margin-right: auto;
}

.offer__breadcrumbs {
    margin-bottom: 10px;
}

.breadcrumb {
    overflow: hidden;
    text-align: left;
}

.breadcrumb * {
    color: var(--gray);
    font-size: 16px;
    text-decoration: none;
}

.breadcrumb__item:hover {
    color: var(--black);
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    display: inline;
    height: 100%;
    text-align: center;
    padding: 0 10px;
    font-size: 16px;
    text-decoration: none;
    pointer-events: none;
}

h1 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ===== ПЛАШКИ ===== */
.book__plate {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 2px solid var(--black);
    width: 100%;
    max-width: 650px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.book__plate:hover {
    background-color: var(--black);
    border-color: var(--black);
}

.book__plate:hover .book__plate-text {
    color: var(--white);
}

.book__plate:hover .book__plate-icon svg path,
.book__plate:hover .book__plate-icon svg circle,
.book__plate:hover .book__plate-icon svg rect {
    fill: var(--white);
    stroke: var(--white);
}

.book__plate-select {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    height: 90px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.book__plate-text {
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 18px;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.book__plate-icon {
    display: grid;
    align-content: center;
    justify-content: center;
}

.book__plate-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.book__plate-icon svg path,
.book__plate-icon svg circle,
.book__plate-icon svg rect {
    transition: all 0.3s ease;
}

/* ===== КНОПКА ОЧИСТКИ ===== */
.clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 400;
    line-height: 1;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid var(--black);
    text-decoration: none;
    box-sizing: border-box;
    padding: 0;
    font-size: 16px;
}

.clear-button:hover {
    background-color: var(--white);
    color: var(--black);
}

.book__plate .book__plate-select {
    width: calc(100% - 50px);
}

.book__plate.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.book__plate.disabled .book__plate-select {
    cursor: not-allowed;
}

.book__plate.disabled:hover {
    background-color: transparent;
    border-color: var(--black);
}

.book__plate.disabled:hover .book__plate-text {
    color: var(--black);
}

.book__plate.disabled:hover .book__plate-icon svg path {
    fill: var(--black);
}

/* ===== СТУДИИ ===== */
.studio-card .book__plate-select {
    grid-template-columns: 70px 1fr;
    height: auto;
    min-height: 110px;
}

.studio-card .book__plate-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.studio-card .book__plate-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--black);
    transition: color 0.3s ease;
}

.studio-card .book__plate-subtitle {
    font-weight: 400;
    font-size: 15px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.studio-card .book__plate-hours {
    font-weight: 500;
    font-size: 14px;
    color: var(--black);
    opacity: 0.8;
    transition: color 0.3s ease;
}

.studio-card:hover .book__plate-title,
.studio-card:hover .book__plate-subtitle,
.studio-card:hover .book__plate-hours {
    color: var(--white);
}

.studio-card:hover .book__plate-subtitle {
    opacity: 0.9;
}

/* ===== МАСТЕРА ===== */
.master-card .book__plate-select {
    grid-template-columns: 80px 1fr;
    height: auto;
    min-height: 100px;
    padding: 15px 35px;
    gap: 15px;
}

.master-card .book__plate-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.master-card .avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--black);
}

.master-card .book__plate-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.master-card .book__plate-name {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--black);
    transition: color 0.3s ease;
}

.master-card .book__plate-specialty {
    font-weight: 400;
    font-size: 15px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.master-card:hover .avatar-circle {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.master-card:hover .book__plate-name {
    color: var(--white);
}

.master-card:hover .book__plate-specialty {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== УСЛУГИ ===== */
.services-page .main>* {
    max-width: 600px;
}

.services-category {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--black);
    letter-spacing: 0.5px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.service-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.service-checkbox {
    display: flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--black);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked+.checkbox-custom {
    background-color: var(--black);
}

.checkbox-input:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-info {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.service-name {
    font-weight: 500;
    font-size: 16px;
    color: var(--black);
}

.service-duration {
    font-size: 14px;
    color: var(--gray);
    white-space: nowrap;
}

.service-duration::before {
    content: '⏱ ';
    font-size: 12px;
}

.service-price {
    font-weight: 600;
    font-size: 16px;
    color: var(--black);
    white-space: nowrap;
}

/* ===== НИЖНЯЯ ПАНЕЛЬ УСЛУГ ===== */
.services-footer {
    position: sticky;
    bottom: 20px;
    width: 100%;
    max-width: 600px;
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 16px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    box-sizing: border-box;
}

.services-total {
    display: flex;
    flex-direction: column;
}

.total-count {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray);
}

.total-price {
    font-weight: 700;
    font-size: 24px;
    color: var(--black);
}

/* ===== КНОПКИ ===== */
.continue-button {
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 12px 30px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--black);
    white-space: nowrap;
}

.continue-button:hover:not(:disabled) {
    background-color: var(--white);
    color: var(--black);
}

.continue-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== КНОПКА НАЗАД ===== */
.nav-back-button {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    margin-top: 30px;
    align-self: flex-end;
    box-sizing: border-box;
}

.nav-back-button:hover {
    background: var(--black);
    color: var(--white);
}

/* Старая кнопка назад (для обратной совместимости) */
.back-button {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.back-button:hover {
    background: var(--black);
    color: var(--white);
}

/* ===== КНОПКА НА ГЛАВНОЙ ===== */
.index-footer {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.index-continue {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 14px 40px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.index-continue:hover {
    background-color: var(--white);
    color: var(--black);
}

/* ===== СТРАНИЦА ДАТЫ/ВРЕМЕНИ ===== */
.datetime-container {
    max-width: 800px;
    margin: 0 auto;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.date-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
    display: block;
    position: relative;
}

.date-card:hover {
    background: #000;
    color: #fff;
}

.date-card.selected {
    background: #000;
    color: #fff;
}

.date-card .day {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    min-height: 100px;
}

.time-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-card:hover {
    background: #000;
    color: #fff;
}

.time-card.selected {
    background: #000;
    color: #fff;
}

.no-slots {
    text-align: center;
    padding: 40px;
    color: #666;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin-top: 20px;
}

.datetime-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 16px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== ПОДТВЕРЖДЕНИЕ ===== */
.confirm-container {
    max-width: 600px;
    margin: 0 auto;
}

.confirm-section {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirm-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.confirm-item {
    display: flex;
    margin-bottom: 10px;
}

.confirm-label {
    width: 120px;
    color: var(--gray);
    font-size: 14px;
    flex-shrink: 0;
}

.confirm-value {
    flex: 1;
    font-weight: 500;
    word-break: break-word;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray);
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list .service-name {
    font-size: 14px;
}

.services-list .service-price {
    font-weight: 500;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--black);
    font-weight: bold;
    font-size: 18px;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ===== СООБЩЕНИЯ ===== */
.success-message {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message h2 {
    color: var(--black);
    margin-bottom: 15px;
    font-size: 24px;
}

.success-message p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--black);
}

.booking-details {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    border: 1px solid var(--gray);
}

.booking-details p {
    margin: 5px 0;
}

.error-message {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message h2 {
    color: var(--black);
    margin-bottom: 15px;
    font-size: 24px;
}

.error-message p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--black);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    color: #000;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.time-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    display: none;
}

.time-loading .spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* ======================================== */
/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ (768px) ===== */
/* ======================================== */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 0;
    }
    
    .main {
        padding: 20px 15px;
        min-height: 100vh;
    }

    .main>* {
        max-width: 100%;
        margin-right: 0;
    }

    .book__plate {
        max-width: 100%;
        margin-bottom: 12px;
    }

    .book__plate-select {
        grid-template-columns: 50px 1fr;
        height: 70px;
        padding: 0 12px;
    }

    .book__plate-text {
        font-size: 15px;
    }

    .book__plate-icon svg {
        width: 24px;
        height: 24px;
    }

    .breadcrumb * {
        font-size: 13px;
        word-wrap: break-word;
    }
    
    .breadcrumb__item:not(:last-child)::after {
        padding: 0 5px;
        font-size: 13px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .book__plate .book__plate-select {
        width: calc(100% - 45px);
    }
    
    .clear-button {
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    /* Студии на мобильных */
    .studio-card .book__plate-select {
        grid-template-columns: 50px 1fr;
        padding: 12px;
        min-height: 90px;
        gap: 10px;
    }

    .studio-card .book__plate-title {
        font-size: 16px;
    }

    .studio-card .book__plate-subtitle {
        font-size: 13px;
    }

    .studio-card .book__plate-hours {
        font-size: 12px;
    }
    
    .studio-card .book__plate-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Мастера на мобильных */
    .master-card .book__plate-select {
        grid-template-columns: 60px 1fr;
        padding: 12px 15px;
        min-height: 80px;
        gap: 10px;
    }

    .master-card .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .master-card .book__plate-name {
        font-size: 16px;
    }

    .master-card .book__plate-specialty {
        font-size: 13px;
    }
    
    /* Услуги на мобильных */
    .services-page .main {
        padding: 20px 15px;
    }
    
    .services-page .main>* {
        max-width: 100%;
    }

    .service-info {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .service-duration,
    .service-price {
        display: inline-block;
        margin-right: 15px;
    }

    .service-duration {
        font-size: 13px;
    }

    .service-price {
        font-size: 15px;
    }
    
    .service-name {
        font-size: 14px;
    }

    .services-footer {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        padding: 12px 15px;
        bottom: 10px;
    }
    
    .services-footer .nav-back-button {
        margin-top: 0;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .total-price {
        font-size: 18px;
    }
    
    .total-count {
        font-size: 12px;
    }

    .continue-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .category-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .service-item {
        padding: 10px 0;
    }
    
    /* Даты/время на мобильных */
    .datetime-container {
        padding: 0;
    }
    
    .dates-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .date-card {
        padding: 10px 5px;
    }
    
    .date-card .day {
        font-size: 20px;
    }
    
    .date-card div:not(.day) {
        font-size: 13px;
    }
    
    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .time-card {
        padding: 10px 6px;
        font-size: 14px;
    }
    
    .datetime-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .datetime-actions .back-button,
    .datetime-actions .continue-button,
    .datetime-actions .nav-back-button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
        margin-top: 0;
        align-self: center;
    }
    
    .no-slots {
        padding: 25px 15px;
        font-size: 14px;
    }
    
    .empty-state {
        padding: 25px 15px;
        font-size: 14px;
    }
    
    /* Подтверждение на мобильных */
    .confirm-item {
        flex-direction: column;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .confirm-actions {
        flex-direction: column;
    }

    .confirm-actions .back-button, 
    .confirm-actions .continue-button {
        width: 100%;
        text-align: center;
    }
    
    .confirm-section {
        padding: 15px;
    }
    
    .confirm-section h2 {
        font-size: 16px;
    }
    
    .total-row {
        font-size: 16px;
    }
    
    .services-list li {
        font-size: 13px;
    }
    
    .success-message,
    .error-message {
        padding: 20px 15px;
    }
    
    .success-message h2,
    .error-message h2 {
        font-size: 20px;
    }
    
    .success-message p,
    .error-message p {
        font-size: 14px;
    }
    
    .booking-details {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Главная на мобильных */
    .index-footer {
        justify-content: center;
    }

    .index-continue {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Кнопки навигации */
    .nav-back-button {
        width: 100%;
        max-width: 100%;
        padding: 14px 25px;
        font-size: 16px;
        align-self: center;
        margin-top: 25px;
    }
    
    .back-button {
        width: 100%;
        max-width: 100%;
        padding: 14px 25px;
        font-size: 16px;
    }
}

/* ======================================== */
/* ===== АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ (480px) ===== */
/* ======================================== */
@media (max-width: 480px) {
    .main {
        padding: 15px 10px;
    }
    
    .book__plate-select {
        grid-template-columns: 40px 1fr;
        height: 60px;
        padding: 0 10px;
    }
    
    .book__plate-text {
        font-size: 14px;
    }
    
    .book__plate-icon svg {
        width: 22px;
        height: 22px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .breadcrumb * {
        font-size: 12px;
    }
    
    .breadcrumb__item:not(:last-child)::after {
        padding: 0 3px;
    }
    
    .clear-button {
        right: 5px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .book__plate .book__plate-select {
        width: calc(100% - 35px);
    }
    
    /* Студии */
    .studio-card .book__plate-select {
        grid-template-columns: 40px 1fr;
        padding: 10px;
        min-height: 80px;
        gap: 8px;
    }
    
    .studio-card .book__plate-title {
        font-size: 14px;
    }
    
    .studio-card .book__plate-subtitle {
        font-size: 12px;
    }
    
    .studio-card .book__plate-hours {
        font-size: 11px;
    }
    
    .studio-card .book__plate-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* Мастера */
    .master-card .book__plate-select {
        grid-template-columns: 50px 1fr;
        padding: 10px 12px;
        min-height: 70px;
        gap: 8px;
    }
    
    .master-card .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .master-card .book__plate-name {
        font-size: 14px;
    }
    
    .master-card .book__plate-specialty {
        font-size: 12px;
    }
    
    /* Услуги */
    .services-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 12px;
    }
    
    .services-footer>div {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .services-footer .nav-back-button,
    .services-footer .continue-button {
        width: 100%;
        text-align: center;
    }
    
    .services-total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .total-price {
        font-size: 18px;
    }
    
    .continue-button, 
    .back-button,
    .nav-back-button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 14px;
    }
    
    .category-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .service-name {
        font-size: 13px;
    }
    
    .service-price {
        font-size: 14px;
    }
    
    .service-duration {
        font-size: 12px;
    }
    
    .checkbox-custom {
        width: 20px;
        height: 20px;
        padding-right: 15px;
        padding-bottom: 7px;
        padding-left: 6px;
        padding-top: 15px;
    }
    
    /* Даты/время */
    .dates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .date-card {
        padding: 8px 3px;
    }
    
    .date-card .day {
        font-size: 18px;
    }
    
    .date-card div:not(.day) {
        font-size: 11px;
    }
    
    .times-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .time-card {
        padding: 8px 4px;
        font-size: 13px;
    }
    
    .datetime-actions .back-button,
    .datetime-actions .continue-button,
    .datetime-actions .nav-back-button {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    /* Подтверждение */
    .confirm-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .confirm-value {
        font-size: 14px;
    }
    
    .confirm-label {
        font-size: 12px;
    }
    
    /* Главная */
    .index-footer {
        margin-top: 20px;
    }
    
    .index-continue {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .nav-back-button {
        padding: 12px 20px;
        font-size: 15px;
        margin-top: 20px;
    }
    
    .no-slots,
    .empty-state {
        padding: 20px 15px;
        font-size: 13px;
    }
    
    .datetime-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.datetime-actions .back-button,
.datetime-actions .continue-button {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    border: 2px solid var(--black);
    height: auto;
    line-height: 1.2;
}

.datetime-actions .back-button {
    background: var(--white);
    color: var(--black);
}

.datetime-actions .back-button:hover {
    background: var(--black);
    color: var(--white);
}

.datetime-actions .continue-button {
    background: var(--black);
    color: var(--white);
}

.datetime-actions .continue-button:hover {
    background: var(--white);
    color: var(--black);
}

.datetime-actions .continue-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .datetime-actions {
        flex-direction: column;
    }
    
    .datetime-actions .back-button,
    .datetime-actions .continue-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}
}
/* ========================================= */
/* ===== СТИЛЬ ПОД ДИЗАЙН САЙТА ETHOS.RU ===== */
/* ========================================= */

/* Цвета */
:root {
    --ethos-green: #5C7C51; /* Тёмно-зелёный (основной цвет кнопок) */
    --ethos-light-green: #E8F0E4; /* Светло-зелёный (фон) */
    --ethos-border: #D1D5DB; /* Серый для рамок */
    --ethos-text: #1F2937;
}

/* Общий фон страницы (если открывается отдельно) */
body {
    background-color: #F3F4F6;
}

/* Карточки (плашки) */
.book__plate {
    border: 1px solid var(--ethos-border) !important;
    background: #fff;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.book__plate:hover {
    border-color: var(--ethos-green) !important;
    background-color: #fff !important;
}
.book__plate:hover .book__plate-text {
    color: var(--ethos-green) !important;
}
.book__plate:hover .book__plate-icon svg path {
    fill: var(--ethos-green) !important;
}

/* Кнопки "Продолжить" */
.continue-button, .index-continue {
    background-color: var(--ethos-green) !important;
    border-color: var(--ethos-green) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 14px 30px !important;
    font-weight: 500 !important;
}
.continue-button:hover, .index-continue:hover {
    background-color: #4a6340 !important; /* Чуть темнее при наведении */
    border-color: #4a6340 !important;
    color: #fff !important;
}

/* Кнопки "Назад" */
.back-button, .nav-back-button {
    background-color: #fff !important;
    border: 1px solid var(--ethos-border) !important;
    color: var(--ethos-text) !important;
    border-radius: 8px !important;
    padding: 14px 30px !important;
}
.back-button:hover, .nav-back-button:hover {
    background-color: #f9fafb !important;
    border-color: var(--ethos-border) !important;
    color: var(--ethos-text) !important;
}

/* Даты (календарь) */
.date-card {
    border: 1px solid var(--ethos-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--ethos-text) !important;
    transition: all 0.2s ease;
}
.date-card:hover {
    border-color: var(--ethos-green) !important;
    background: #fff !important;
    color: var(--ethos-green) !important;
}
.date-card.selected {
    background: var(--ethos-green) !important;
    border-color: var(--ethos-green) !important;
    color: #fff !important;
}

/* Время (слоты) */
.slot-card {
    border: 1px solid var(--ethos-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--ethos-text) !important;
    padding: 14px 10px !important;
}
.slot-card:hover {
    border-color: var(--ethos-green) !important;
    background: #fff !important;
    color: var(--ethos-green) !important;
    transform: none !important; /* Убираем прыжок */
}
.slot-card.selected {
    background: var(--ethos-green) !important;
    border-color: var(--ethos-green) !important;
    color: #fff !important;
}

/* Поля ввода (Имя, Телефон) */
.form-input {
    border: 1px solid var(--ethos-border) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    background: #fff !important;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: var(--ethos-green) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 124, 81, 0.1);
}

/* Информационные блоки */
.confirm-section {
    border: 1px solid var(--ethos-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Карточки мастеров */
.master-card {
    border: 1px solid var(--ethos-border) !important;
    background: #fff;
}
.master-card:hover {
    border-color: var(--ethos-green) !important;
    background: #fff !important;
}
.master-card:hover .book__plate-name {
    color: var(--ethos-green) !important;
}
.master-card.selected {
    background-color: var(--ethos-light-green) !important;
    border-color: var(--ethos-green) !important;
}
.master-card.selected .book__plate-name {
    color: var(--ethos-green) !important;
}
.master-card.selected .avatar-circle {
    background-color: var(--ethos-green) !important;
    color: #fff !important;
    border-color: var(--ethos-green) !important;
}

/* Заголовки */
h1, h2, .category-title {
    color: var(--ethos-text) !important;
    font-weight: 700;
}

/* Зелёная полоса-подсказка (info-hint) */
.info-hint {
    background-color: var(--ethos-light-green) !important;
    border-left: 4px solid var(--ethos-green) !important;
    color: #3b5a32 !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    font-size: 14px;
}

/* Убираем черные рамки у услуг */
.service-item {
    border-bottom: 1px solid #e5e7eb !important;
}
.checkbox-custom {
    border: 2px solid var(--ethos-border) !important;
}
.checkbox-input:checked + .checkbox-custom {
    background-color: var(--ethos-green) !important;
    border-color: var(--ethos-green) !important;
}

/* Кнопка очистки (крестик) */
.clear-button {
    background-color: #f3f4f6 !important;
    color: var(--ethos-text) !important;
    border: 1px solid var(--ethos-border) !important;
}
.clear-button:hover {
    background-color: #e5e7eb !important;
    color: var(--ethos-text) !important;
}