/* ---- RESPONSIVE ---- */
.header__login-full { display:inline; }
.header__login-short { display:none; }

@media (max-width:992px) { .profile { grid-template-columns:1fr; } .grid-4 { grid-template-columns:repeat(2,1fr); } .program__layout { flex-direction:column; } .program__sidebar { width:100%; } .sql-bottom { grid-template-columns:1fr; } .slot-columns { grid-template-columns:1fr; } }
@media (max-width:768px) { .grid-4,.grid-3,.grid-2 { grid-template-columns:1fr; } .header__user-name { display:none; } }
@media (min-width:769px) { .nav-profile-link { display:none; } }


/* ---- Двухколоночный layout для главной ---- */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 40%;
    gap: 40px;
}
.content-with-image__text .panel {
    padding: 25px 30px;
    font-size:1.05rem;
}
.content-with-image__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: space-between;
}
.content-with-image__text > br {
    display: none;
}
.content-with-image__image {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.content-with-image__image .page__controls {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}
.content-with-image__image .page__controls .btn {
    flex: 1;
    text-align: center;
}
/* .content-with-image__image h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    -webkit-text-stroke: 1px var(--accent);
    text-shadow: 0 0 10px var(--accent);
    margin-bottom: 10px;
    line-height: 1.2;
} */
.content-with-image__image img {
    flex: 1;
    width: 95%;
    min-height: 0;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .content-with-image {
        grid-template-columns: 1fr;
    }
    .content-with-image__image {
        flex: none;
        width: 100%;
        position: static;
        order: -1;
        margin-bottom: 16px;
    }
    .content-with-image__image h2 { font-size:1.3rem; }
    .content-with-image__image img { max-width:100%; }
}


/* ---- ГАЛЕРЕЯ: полностраничный скролл ---- */

html { scroll-behavior: smooth; }

.gallery-scroll { width:100%; }

/* Hero */
.gallery-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-hero__bg {
    position: absolute; inset:0;
    background: linear-gradient(135deg, #0b0b0b 0%, #301212 30%, #353434 60%, #0b0b0b 100%);
    background-size: 400% 400%;
    animation: heroShift 15s ease infinite;
}
@keyframes heroShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gallery-hero__overlay {
    position: absolute; inset:0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.6) 100%);
}
.gallery-hero__content {
    position: relative; z-index:1;
    text-align: center; color:#fff; padding:24px;
}
.gallery-hero__title {
    font-size: 4rem; font-weight:900; letter-spacing:8px;
    text-transform:uppercase; margin:0;
    background: linear-gradient(135deg, var(--accent), #ff6b6b, var(--accent));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}
.gallery-hero__subtitle {
    font-size:1.5rem; font-weight:300; letter-spacing:12px;
    color:var(--text-secondary); margin-top:8px; text-transform:uppercase;
}
.gallery-hero__desc {
    font-size:1.1rem; color:var(--text-muted); margin-top:24px; max-width:500px;
}
.gallery-hero__scroll {
    margin-top:60px; display:flex; flex-direction:column; align-items:center; gap:8px;
    color:var(--text-muted); font-size:0.85rem; animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
    0%,100% { transform:translateY(0); }
    50% { transform:translateY(8px); }
}
.gallery-hero__arrow { font-size:1.5rem; }

/* Sections */
.gallery-section {
    min-height:100vh; padding:80px 24px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    background: var(--bg-primary);
    border-bottom:1px solid var(--border);
}
.gallery-section--compact { min-height:auto; padding:80px 24px; }
.gallery-section__title {
    font-size:2rem; font-weight:800; margin-bottom:48px;
    text-transform:uppercase; letter-spacing:4px;
    color:var(--text-primary); text-align:center;
}
.gallery-section__grid {
    display:grid; grid-template-columns:1fr 1fr; gap:24px;
    max-width:1000px; width:100%;
}
.gallery-section__grid--team { max-width:700px; }

/* Photo cards */
.gallery-photo {
    border-radius:var(--radius-md); overflow:hidden;
    background-size:cover; background-position:center;
    min-height:450px; display:flex; align-items:flex-end;
    position:relative; cursor:pointer;
    transition:transform 0.5s ease, box-shadow 0.5s ease;
    border:1px solid var(--border);
}
.gallery-photo:hover {
    transform:scale(1.03); box-shadow:0 20px 60px rgba(0,0,0,.5);
    z-index:2;
}
.gallery-photo--wide { min-height:500px; }
.gallery-photo--full { min-height:450px; }
.gallery-photo--portrait { min-height:550px; }
.gallery-photo__label {
    width:100%; padding:20px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color:#fff; font-size:1rem; font-weight:500;
    display:flex; flex-direction:column; gap:4px;
}
.gallery-photo__label strong { font-size:1.1rem; }
.gallery-photo__label span { font-size:0.85rem; color:var(--text-muted); }

/* Анимация появления */
.gallery-section {
    opacity:0; transform:translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.gallery-section--visible {
    opacity:1; transform:translateY(0);
}

/* CTA */
.gallery-cta {
    min-height:60vh; display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
}
.gallery-cta__bg {
    position:absolute; inset:0;
    background: linear-gradient(135deg, #0b0b0b 0%, #1a0a0a 50%, #0b0b0b 100%);
}
.gallery-cta__content {
    position:relative; z-index:1; text-align:center; padding:24px;
    color:#fff;
}
.gallery-cta__content h2 { font-size:2rem; font-weight:800; margin-bottom:16px; }
.gallery-cta__content p { color:var(--text-secondary); margin-bottom:32px; font-size:1.1rem; }
.gallery-cta__content .btn--lg { padding:14px 40px; font-size:1.1rem; }

/* ====== МОДАЛКА ПРОСМОТРА ФОТО ====== */
.photo-modal {
    display:none; position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,.92);
    align-items:center; justify-content:center;
    cursor:zoom-out;
}
.photo-modal--open { display:flex; }
.photo-modal__close {
    position:absolute; top:16px; right:20px;
    background:none; border:none;
    color:#fff; font-size:2.5rem; cursor:pointer;
    z-index:10; line-height:1; opacity:0.8;
    transition:opacity 0.2s;
}
.photo-modal__close:hover { opacity:1; }
.photo-modal__image {
    width:90vw; max-width:1200px;
    height:85vh;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    border-radius:var(--radius-lg);
}


/* ---- Прайс: таблица + блок выгоды ---- */
.pricing-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.pricing-wrapper {
    flex: 1;
    min-width: 0;
}
.pricing-info {
    flex: 0 0 340px;
    position: sticky;
    top: 20px;
}
.pricing-info__card {
    background: linear-gradient(135deg, #1a1a1a, #151515);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.pricing-info__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}
.pricing-info__cols {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pricing-info__subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.pricing-info__subtitle--good {
    color: var(--accent);
}
.pricing-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pricing-info__list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
    line-height: 1.4;
}
.pricing-info__list li::before {
    content: "• ";
    color: var(--text-muted);
}
.pricing-info__bad {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .pricing-layout {
        flex-direction: column;
    }
    .pricing-info {
        flex: none;
        width: 100%;
        position: static;
    }
}


.pricing__price--best {
    color: var(--success) !important;
    font-weight: 700;
}
.pricing__price--best::after {
    content: " ✓";
    font-size: 0.65rem;
    opacity: 0.7;
}

.badge--vip{background:#d90429;color:#fff}
.badge--double{background:#f5a623;color:#000}
.badge--group{background:#17c964;color:#000}
.btn .badge { margin-left:4px; }

.calendar__slot--completed{background:var(--bg-surface);border-color:var(--border);opacity:0.6;pointer-events:auto}
.calendar__slot--completed .calendar__slot-time{color:var(--text-muted)}

.calendar__cell--empty{width:100%;height:100%;min-height:60px;border-radius:var(--radius-sm);transition:var(--transition)}
.calendar__cell--empty:hover{background:rgba(217,4,41,0.08)}
.calendar__slot-inner{display:flex;gap:4px;height:100%}.calendar__slot-info{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex-shrink:0;min-width:40px}.calendar__slot-clients{flex:1;min-width:0;list-style:none;padding:2px 2px 2px 6px;margin:0;font-size:0.75rem;line-height:1.3;display:flex;flex-direction:column;justify-content:center;border-left:1px solid rgba(255,255,255,0.08)}.calendar__slot-clients li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-primary);line-height:1.0;padding:0}

.calendar__row--divider td{border-top:2px solid rgba(255,255,255,0.15)}
.calendar__row--divider .calendar__time{border-top:2px solid rgba(255,255,255,0.25)}

/* ---- Streak / Discount counters ---- */
.streak-counter, .discount-counter {
    flex:1;min-width:160px;text-align:center;
    background:linear-gradient(135deg,var(--bg-elevated),var(--bg-surface));
    border-radius:var(--radius-lg);padding:20px 12px;
}
.streak-counter { border:2px solid var(--border); }
.streak-counter--warm { border-color:var(--warning); }
.streak-counter--hot { border-color:var(--accent); }
.discount-counter { border:2px solid var(--border); }
.discount-counter--warm { border-color:var(--warning); }
.discount-counter--hot { border-color:var(--accent); }
.counter-value { font-size:2.6rem;font-weight:800;color:var(--text-primary); }
.counter-value--warm { color:var(--warning); }
.counter-value--hot { color:var(--accent); }
.counter-label { font-size:1.0rem;color:var(--text-secondary);font-weight:600; }
.counter-sub { font-size:0.8rem;color:var(--text-muted);margin-top:6px; }

/* ====== МОБИЛЬНАЯ ВЁРСТКА ====== */

/* Бургер */
.burger {
    display:none; background:none; border:none; cursor:pointer;
    flex-direction:column; gap:5px; padding:8px;
    z-index:3001; position:relative;
}
.burger__line {
    display:block; width:24px; height:2px; background:var(--text-primary);
    border-radius:2px; transition:transform 0.3s ease, opacity 0.3s ease;
}
.burger--active .burger__line:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.burger--active .burger__line:nth-child(2) { opacity:0; }
.burger--active .burger__line:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* Оверлей */
.mobile-overlay {
    display:none; position:fixed; inset:0; z-index:2000;
    background:rgba(0,0,0,.6); backdrop-filter:blur(4px);
}
.mobile-overlay--visible { display:block; }

@media (max-width:768px){
    /* Header */
    .header { position:sticky; top:0; z-index:3000; background:var(--bg-primary); backdrop-filter:none; }
    .header__inner { gap:4px; padding:8px 12px; }
    .burger { display:flex; }
    .header__back { display:none; }
    .btn--back { display:none; }
    .header__brand { font-size:1.25rem; }
    .header__subtitle { font-size:0.65rem; }
    .header__accent-line { height:24px; }
    .header__logo { gap:6px; }
    .header__user .btn { font-size:0.75rem; padding:6px 10px; white-space:nowrap; }

    /* Навигация полный экран */
    .header__nav {
        display:flex !important; flex-direction:column !important;
        position:fixed; top:0; right:-100%; width:280px; height:100vh;
        background:var(--bg-secondary); z-index:3000;
        padding:80px 24px 24px; gap:4px;
        border-left:1px solid var(--border);
        transition:right 0.3s ease; overflow-y:auto;
    }
    .header__nav--open { right:0; }
    .header__nav-link {
        padding:14px 16px; font-size:1rem; border-radius:var(--radius-sm);
        width:100%; text-align:left;
    }
    .header__nav-link:hover { background:rgba(217,4,41,.08); }

    /* Контент */
    .container { padding:12px; }

    /* Заголовки */
    h1 { font-size:1.5rem; }
    h2 { font-size:1.3rem; }
    .page__title { flex-direction:column; gap:8px; align-items:flex-start; }

    /* Таблицы */
    .table__wrapper { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .table { font-size:0.8rem; }

    /* Формы */
    .form__group { margin-bottom:10px; }
    .form__input, .form__select, .form__textarea { font-size:0.9rem; padding:10px 12px; }
    .form--row { flex-direction:column; align-items:stretch; gap:8px; }
    .form__actions { flex-direction:column; gap:8px; }
    .form__actions .btn { width:100%; justify-content:center; }

    /* Панели */
    .panel { padding:16px; }

    /* Хлебные крошки / controls */
    .page__controls { flex-direction:column; gap:8px; align-items:stretch; }
    .page__controls .form--row { flex-direction:column; }
    .page__controls .btn,
    .page__controls .form__input,
    .page__controls .form__select { width:100%; }

    /* Статистика */
    .stats { grid-template-columns:1fr 1fr; gap:8px; }

    /* Инлайн-формы */
    .form--inline { display:flex; width:100%; }
    .flex-row { gap:6px !important; }

    /* Фильтры */
    .calendar__table { font-size:0.7rem; }
    .calendar__header-cell { padding:4px 2px; font-size:0.65rem; }
    .calendar__cell { padding:2px; min-width:0; }
    .calendar__slot { padding:4px; font-size:0.6rem; }
    .calendar__slot-inner { gap:2px; }
    .calendar__slot-info { min-width:0; }
    .calendar__slot-time { font-size:0.55rem; }
    .calendar__slot-capacity { font-size:0.5rem; }
    .calendar__slot-clients { display:none; }
    .calendar__cell--empty { min-height:30px; }
    .calendar__now-marker { display:none; }
    .calendar__time { font-size:0.65rem; white-space:nowrap; }

    /* Недельная навигация — в строку */
    .week-nav { display:flex; flex-direction:row; flex-wrap:wrap; gap:4px; width:100%; }
    .week-nav .btn { flex:1; min-width:0; font-size:0.75rem; padding:8px 4px; text-align:center; white-space:nowrap; }
}

@media (max-width:480px){
    .header__user .btn { font-size:0.7rem; padding:5px 8px; }
    .header__brand { font-size:1.1rem; }
    .stats { grid-template-columns:1fr; }
    .btn--lg { width:100%; justify-content:center; }
    .header__login-full { display:none; }
    .header__login-short { display:inline; }
}

/* ====== ГАЛЕРЕЯ: мобильная ====== */
@media (max-width:768px){
    .gallery-hero__title { font-size:2.5rem; letter-spacing:4px; }
    .gallery-hero__subtitle { font-size:1.1rem; letter-spacing:6px; }
    .gallery-section { min-height:auto; padding:40px 16px; }
    .gallery-section__title { font-size:1.4rem; margin-bottom:24px; }
    .gallery-section__grid { grid-template-columns:1fr; gap:16px; }
    .gallery-photo { min-height:350px; }
    .gallery-photo--wide { min-height:380px; }
    .gallery-photo--portrait { min-height:420px; }
    .gallery-photo--full { min-height:350px; }
}

/* ====== ПРАЙС: мобильная ====== */
.pricing-cards { display:none; }

@media (max-width:768px){
    .pricing-layout { flex-direction:column; gap:16px; }
    .pricing-wrapper { overflow-x:auto; }
    .pricing-table { display:none; }
    .pricing-info__cols { flex-direction:column; gap:12px; }

    .pricing-cards { display:flex; flex-direction:column; gap:12px; }
    .pricing-cards__slot {
        border:1px solid var(--border);
        border-radius:var(--radius-lg);
        background:var(--bg-elevated);
        overflow:hidden;
    }
    .pricing-cards__summary {
        display:flex; align-items:baseline; gap:12px;
        padding:14px 16px;
        cursor:pointer;
        font-weight:700; font-size:1rem;
        text-transform:uppercase; letter-spacing:0.5px;
        list-style:none;
        background:var(--bg-secondary);
    }
    .pricing-cards__summary::-webkit-details-marker { display:none; }
    .pricing-cards__summary::before {
        content:"▶";
        font-size:0.75rem;
        transition:transform 0.2s ease;
        color:var(--accent);
    }
    .pricing-cards__slot[open] > .pricing-cards__summary::before {
        transform:rotate(90deg);
    }
    .pricing-cards__summary-title { color:var(--text-primary); }
    .pricing-cards__summary .pricing__sub { font-weight:400; text-transform:none; color:var(--text-secondary); }

    .pricing-cards__grid {
        display:grid;
        grid-template-columns:1fr 1fr 1fr;
        gap:6px;
        padding:8px 12px 12px;
    }

    .pricing-card {
        border:1px solid var(--border);
        border-radius:var(--radius-md);
        background:var(--bg-surface);
        overflow:hidden;
        position:relative;
        text-align:center;
    }
    .pricing-card--best { border-color:var(--success); }

    .pricing-card__header {
        padding:6px 4px;
        font-weight:700; font-size:0.75rem;
        text-transform:uppercase; letter-spacing:0.2px;
    }
    .pricing-card__header--vip { color:#fff; background:var(--accent); }
    .pricing-card__header--double { color:#000; background:var(--warning); }
    .pricing-card__header--group { color:#000; background:var(--success); }
    .pricing-card__header .pricing__sub { display:none; }

    .pricing-card__body { padding:8px 4px; }
    .pricing-card__size { font-size:0.68rem; color:var(--text-secondary); margin-bottom:2px; }
    .pricing-card__price { font-size:0.95rem; font-weight:700; color:var(--text-primary); }
    .pricing-card__unit { font-size:0.65rem; color:var(--text-muted); margin-top:1px; }

    .pricing-card__badge {
        position:absolute; top:2px; right:2px;
        background:var(--success); color:#000;
        font-size:0.5rem; font-weight:700;
        padding:1px 4px; border-radius:3px;
        text-transform:uppercase;
        line-height:1.2;
    }
}

/* ====== КОНТАКТЫ: мобильная ====== */

/* ====== РАСПИСАНИЕ + ПИТАНИЕ + ПРОФИЛЬ: мобильная ====== */
@media (max-width:768px){
    /* === РАСПИСАНИЕ === */
    .calendar { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:0 -12px; padding:0 12px; }
    /* Форма добавления/очистки слотов */
    .page__controls form[action*="slots"] .form__input[type="datetime-local"] { font-size:0.75rem; padding:6px 4px; width:100% !important; }
    .page__controls form[action*="slots"] .text-muted { display:none; }
    .page__controls form[action*="slots"] select[name="capacity"] { width:100% !important; }

    /* === СЛОТ (детальная страница) === */
    .slot-columns { grid-template-columns:1fr; gap:16px; }
    .slot-columns__left .flex-row { flex-direction:column; gap:8px; }
    .slot-columns__left .flex-row select { width:100%; }
    .slot-columns__left .flex-row .btn { width:100%; justify-content:center; }
    .slot-columns__right .flex-row { flex-direction:column; gap:8px; }
    .slot-columns__right .flex-row label { font-size:0.85rem; }
    .slot-columns__right .flex-row input { width:100% !important; }
    .slot-columns__right .flex-row select { width:100% !important; }
    .slot-columns__right .flex-row .btn { width:100%; justify-content:center; }
    .slot__header { flex-direction:column; gap:8px; align-items:flex-start; }
    .slot__header-title { font-size:1.1rem; }
    .slot__header-meta { font-size:0.8rem; }
    .slot-columns__left .panel .flex-row.mt-2 { flex-direction:column; gap:8px; }
    .slot-columns__left .panel .flex-row.mt-2 select { width:100%; }
    /* client-list: кнопка прижата к правому краю (position:absolute) */
    .slot-columns__left .client-list__item { position:relative !important; padding-right:48px !important; white-space:nowrap; overflow:hidden; }
    .slot-columns__left .client-list__item .btn--small { position:absolute !important; right:2px; top:50%; transform:translateY(-50%); }
    /* Панель с кнопками План тренировки / Тренировка завершена */
    .panel.mb-3 > .flex-row { flex-wrap:wrap; gap:8px; }
    .panel.mb-3 > .flex-row > .flex-row { flex-direction:column; gap:6px; width:100%; }
    .panel.mb-3 > .flex-row > .flex-row > form { width:100%; }
    .panel.mb-3 > .flex-row .btn { width:100%; text-align:center; justify-content:center; white-space:nowrap; }

    /* === ЖУРНАЛ === */
    .journal__comment { padding-left:12px !important; font-size:0.8rem; }
    main.container:has(.panel--journal) { position:relative; height:calc(100vh - 56px); padding:0; overflow:hidden; }
    .panel--journal { position:absolute; inset:0; padding:0 !important; margin:0; border-radius:0; }
    .panel--journal .table__wrapper { height:100%; overflow:auto; max-height:none; }
    .panel--journal .table__wrapper table { width:100%; }
    .panel--journal thead { position:sticky; top:0; z-index:1; }
    .table tbody td:nth-child(2) { display:none; }
    .table thead th:nth-child(2) { display:none; }

    /* === ПИТАНИЕ === */
    .calorie-info__grid { grid-template-columns: repeat(2, 1fr); }
    .calorie-info__value { font-size:1.2rem; }
    .nutrition-panel .day-btn { flex:1; min-width:0 !important; font-size:0.75rem; padding:6px 2px; }
    .nutrition-panel #btn-toggle-kbju { min-width:150px; text-align:center; }
    .nutrition-panel #btn-shopping-list { font-size:0.75rem; padding:6px 8px; white-space:nowrap; }
    .nutrition-panel [data-meal-type] { flex-direction:column !important; }
    .nutrition-panel [data-meal-type] > div:first-child { width:100% !important; min-width:0 !important; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
    .nutrition-panel [data-meal-type] > div:first-child h4 { margin-bottom:0 !important; font-size:1rem; min-width:80px; }
    .nutrition-panel [data-meal-type] > div:first-child select { width:auto !important; flex:1; min-width:0; font-size:0.85rem; margin-bottom:0 !important; }
    .nutrition-panel [data-meal-type] > div:first-child .btn { width:auto !important; padding:4px 10px; }
    .meal-item { padding:8px 10px; }
    .meal-row-top { display:flex; gap:6px; align-items:center; }
    .meal-row-top .meal-name { flex:1; min-width:40px; font-size:0.85rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .meal-row-top .meal-prev,
    .meal-row-top .meal-next { flex-shrink:0; padding:2px 4px !important; }
    .meal-row-bottom { display:flex; gap:4px; align-items:center; flex-wrap:wrap; margin-top:4px; }
    .meal-row-bottom input[type="number"] { width:38px !important; max-width:38px !important; padding:2px 2px !important; font-size:0.7rem; }
    .meal-row-bottom .meal-protein,
    .meal-row-bottom .meal-fat,
    .meal-row-bottom .meal-carbs,
    .meal-row-bottom .meal-calories { font-size:0.7rem !important; white-space:nowrap; }
    .meal-row-bottom .meal-calories { font-weight:600; }
    .meal-item .btn--small { font-size:0.65rem; padding:2px 4px; }
    .meal-row-top > span:first-of-type { font-size:1rem !important; min-width:24px !important; width:24px !important; text-align:center; overflow:hidden; }
    .meal-row-top > span:first-of-type span { display:none; }

    /* === ПРОФИЛЬ === */
    .profile__sidebar { width:100%; }
    .tabs__nav { flex-wrap:wrap; gap:4px !important; }
    .tabs__nav .tab-btn { flex:1; min-width:0; font-size:0.75rem; padding:8px 4px; white-space:nowrap; text-align:center; }
    /* streak counter: сбрасываем фиксированную ширину */
    [style*="flex:0 0 420px"] { flex:1 1 100% !important; }
    .streak-counter, .discount-counter { min-width:140px; padding:14px 8px; }
    .counter-value { font-size:2rem; }
    .counter-label { font-size:0.85rem; }
    .counter-sub { font-size:0.7rem; }
    /* booking select */
    select[style*="min-width:300px"] { min-width:0 !important; width:100% !important; }
    /* обхваты stats */
    .profile .stats .stats__card { min-width:60px !important; padding:8px 10px !important; }
    .profile .stats .stats__value { font-size:0.95rem !important; }
    .profile .stats .stats__label { font-size:0.6rem !important; }
    /* freeze modal */
    .modal-overlay .modal { margin:12px; max-height:90vh; overflow-y:auto; }

    /* === ПЛАН ТРЕНИРОВКИ === */
    #slot-program.program__layout { align-items:stretch; }
    .program__editor { width:100%; }
    .program__editor .flex-row:last-child { flex-direction:column; gap:6px; }
    .program__editor .flex-row:last-child > .flex-row { flex-direction:column; gap:6px; width:100%; }
    .program__editor .flex-row:last-child .btn { width:100%; font-size:0.8rem; padding:10px 4px; text-align:center; }
    .program__editor #save-status { font-size:0.75rem; }
    .plan-exercises-wrapper { overflow-x:auto; -webkit-overflow-scrolling:touch; width:100%; max-width:100%; }
    .plan-table { font-size:0.72rem; min-width:450px; width:450px; table-layout:auto; }
    .plan-table th,
    .plan-table td { padding:4px 3px; }
    /* упражнение — разрешаем перенос */
    .plan-table th:nth-child(2),
    .plan-table td:nth-child(2) { word-break:break-word; max-width:100px; text-align:left; }
    .plan-table th:nth-child(3),
    .plan-table td:nth-child(3),
    .plan-table th:nth-child(4),
    .plan-table td:nth-child(4) { max-width:55px; }
    .plan-table th:nth-child(5),
    .plan-table td:nth-child(5),
    .plan-table th:nth-child(6),
    .plan-table td:nth-child(6) { max-width:45px; }
    .plan-table input[type="number"] { width:100% !important; max-width:45px; padding:2px !important; font-size:0.7rem; }
    .plan-table .plan-table__num { font-size:0.65rem; }
    #note-text { height:150px !important; font-size:0.85rem; }
    #slot-program .program__sidebar .btn--ghost { width:100%; text-align:center; }
    .client-list__item--interactive { padding:10px 12px; font-size:0.85rem; }
}

@media (max-width:480px){
    .nutrition-panel .day-btn { font-size:0.7rem; }
    .tabs__nav .tab-btn { font-size:0.7rem; padding:6px 2px; }
    .streak-counter, .discount-counter { min-width:120px; padding:10px 6px; }
    .counter-value { font-size:1.6rem; }
    .profile .stats { gap:4px; }
    .profile .stats .stats__card { min-width:50px !important; padding:6px 6px !important; }
    /* === ПЛАН ТРЕНИРОВКИ (очень мелкие) === */
    .plan-table th, .plan-table td { padding:3px 2px; }
    .plan-table input[type="number"] { max-width:45px !important; font-size:0.65rem; }
    .program__editor .flex-row:last-child .btn { font-size:0.75rem; padding:10px 4px; }
}
