/* Гардероб: страница каталога, каталог поверх окна брони, опция в брони */

.ww-app,
.ww-hero,
.ww-dialog-backdrop,
.ww-lightbox {
    --ww-ink: #222;
    --ww-muted: #555;
    --ww-line: #e0e0e0;
    --ww-soft: #F8F8F8;
    --ww-ok: #27ae60;
    --ww-radius: 14px;
}

.ww-app svg,
.ww-hero svg,
.ww-bar svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Весь текст гардероба — шрифтом текста из брендбука */
.ww-app,
.ww-hero,
.ww-overlay,
.ww-dialog,
.ww-toast,
.ww-lightbox {
    font-family: var(--font-body);
}

/* Кнопки и поля не наследуют шрифт — по умолчанию даём им шрифт текста из брендбука (без веса селектора, чтобы классы ниже его переопределяли) */
:where(.ww-app, .ww-dialog, .ww-drawer, .ww-lightbox) :where(button, input) {
    font-family: var(--font-body);
}

/* --- Шапка страницы --- */
.wardrobe-page {
    background: #F8F8F8;
    padding-bottom: 40px;
}

.ww-hero {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    align-items: center;
    background: #000;
    color: #fff;
}

.ww-hero-collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.ww-hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    filter: saturate(0.85);
}

.ww-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 40%);
}

.ww-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 56px 20px 70px;
}

.ww-hero-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ww-hero-title {
    margin: 0 0 14px;
    text-align: left !important;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.ww-hero-lead {
    max-width: 520px;
    margin: 0 0 22px;
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.ww-hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.08);
}

.ww-hero-price strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.ww-hero-price span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.ww-hero-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ww-hero-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.ww-hero-steps b {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.85rem;
}

/* --- Поиск и разделы --- */
.ww-app--page {
    margin-top: -40px;
    position: relative; /* без z-index: иначе панель «Выбранные вещи» окажется под шапкой сайта */
}

.ww-toolbar {
    position: sticky;
    top: var(--ww-sticky-top, 0px);
    z-index: 20;
    padding: 10px 0 0;
}

.ww-toolbar-inner {
    padding: 14px;
    border-radius: var(--ww-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ww-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 14px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--ww-soft);
    color: var(--ww-muted);
    transition: border-color 0.2s, background-color 0.2s;
}

.ww-search:focus-within {
    border-color: var(--color-primary);
    background: #fff;
}

.ww-search-input {
    flex: 1;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ww-ink);
    outline: none;
}

.ww-search-input::-webkit-search-cancel-button {
    display: none;
}

.ww-search-clear {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #e4e4e4;
    color: #555;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ww-search-clear[hidden] {
    display: none;
}

.ww-sections {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ww-sections::-webkit-scrollbar {
    display: none;
}

.ww-section-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--ww-line);
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ww-section-chip span {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ww-soft);
    color: var(--ww-muted);
    font-size: 0.78rem;
    line-height: 20px;
    text-align: center;
}

.ww-section-chip:hover {
    border-color: #cfcfcf;
}

.ww-section-chip.is-active {
    border-color: var(--ww-ink);
    background: var(--ww-ink);
    color: #fff;
}

.ww-section-chip.is-active span {
    background: var(--color-secondary);
    color: #000;
}

.ww-limits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0 4px;
    font-size: 0.88rem;
    color: var(--ww-muted);
}

.ww-limits-label {
    margin-right: 2px;
}

.ww-limit-pill {
    padding: 4px 10px;
    border: 1px solid var(--ww-line);
    border-radius: 999px;
    background: #fff;
    color: #555;
}

.ww-limit-pill b {
    color: var(--color-primary);
}

/* --- Блок «Чем дольше съёмка — тем больше образов» --- */
.ww-plan {
    position: relative;
    margin: 0 0 6px;
    padding: 22px 24px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #FFFFFF;
    color: #000;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.ww-plan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.ww-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 18px;
}

.ww-plan-title {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.45rem;
    color: #000;
}

.ww-plan-sub {
    margin: 0;
    color: #555;
    font-size: 0.92rem;
}

.ww-plan-hours {
    display: inline-flex;
    gap: 6px;
}

.ww-plan-hour {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    min-width: 56px;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.ww-plan-hour small {
    font-size: 0.7em;
    color: inherit;
    opacity: 0.75;
}

.ww-plan-hour:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.ww-plan-hour.is-short {
    color: #bbb;
}

.ww-plan-hour.is-active {
    border-color: #000;
    background: var(--color-secondary);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.45);
}

.ww-plan-hours-label {
    color: #555;
    font-size: 0.92rem;
}

.ww-plan-hours-label b {
    color: #000;
    font-weight: 600;
}

.ww-plan-rows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 32px;
}

.ww-plan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name count" "track track";
    gap: 7px 12px;
    align-items: baseline;
    color: #555;
    font-size: 0.92rem;
}

.ww-plan-name {
    grid-area: name;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.ww-plan-name small {
    color: #999;
    font-size: 0.78rem;
    white-space: nowrap;
}

.ww-plan-row.is-used {
    color: #000;
}

.ww-plan-count {
    grid-area: count;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ww-plan-row.is-over .ww-plan-count {
    color: var(--color-primary);
    font-weight: 600;
}

.ww-plan-track,
.ww-meter-track {
    position: relative;
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(192, 192, 194, 0.22);
    overflow: hidden;
}

.ww-plan-track {
    grid-area: track;
    height: 10px;
    background: #F8F8F8;
    box-shadow: inset 0 0 0 1px #e0e0e0;
}

.ww-plan-track i {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* В светлой панели риски часов белые, в тёмной нижней — чёрные */
.ww-plan .ww-plan-track b {
    background: #FFFFFF;
}

.ww-plan-track i,
.ww-meter-track i {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--color-secondary);
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ww-plan-track.is-over i,
.ww-meter-track.is-over i {
    background: var(--color-primary);
    animation: ww-pulse 1.2s ease-in-out infinite;
}

/* Риски между часами */
.ww-plan-track b,
.ww-meter-track b {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: #000;
    z-index: 1;
}

.ww-plan-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.95rem;
}

.ww-plan-foot--sum {
    color: #000;
}

.ww-plan-foot b {
    color: var(--color-primary);
    font-weight: 600;
}

.ww-plan-clock {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.ww-plan-clock small {
    font-size: 0.65em;
}

.ww-plan--compact {
    margin: 4px 0 12px;
    padding: 16px;
}

.ww-plan--compact .ww-plan-title {
    font-size: 1.1rem;
}

.ww-plan--compact .ww-plan-rows {
    grid-template-columns: 1fr;
    gap: 10px;
}

.ww-plan-rows--n1 {
    grid-template-columns: 1fr !important;
}

.ww-plan-rows--n2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Полоски часов в окне брони */
.ww-plan-pips {
    display: inline-flex;
    gap: 4px;
}

.ww-plan-pips i {
    width: 22px;
    height: 10px;
    border-radius: 3px;
    border: 1.5px solid #ccc;
    background: #FFFFFF;
}

.ww-plan-pips i.is-need {
    border-color: #000;
    background: var(--color-secondary);
}

.ww-plan-pips i.is-need:not(.is-have) {
    border-color: var(--color-primary);
    background: #FFFFFF;
    border-style: dashed;
}

.ww-plan-pips i.is-have:not(.is-need) {
    border-color: #000;
    background: #000;
}

/* --- Индикатор лимитов в нижней панели --- */
.ww-bar .ww-bar-meter {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 10px 6px 6px;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    text-align: left;
}

.ww-bar .ww-bar-meter:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ww-meter-hours {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--color-secondary);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.1;
}

.ww-meter-hours small {
    font-size: 0.6em;
    white-space: nowrap;
}

.ww-meter-hours.is-short {
    background: var(--color-primary);
    color: #FFFFFF;
}

.ww-meter-groups {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.ww-meter-g {
    flex: 0 1 160px;
    min-width: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name num" "track track";
    gap: 3px 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
}

.ww-meter-name {
    grid-area: name;
    overflow: hidden;
    color: #C0C0C2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ww-meter-num {
    grid-area: num;
    font-variant-numeric: tabular-nums;
}

.ww-meter-g.is-over .ww-meter-num {
    color: var(--color-primary);
    font-weight: 600;
}

.ww-meter-track {
    grid-area: track;
    height: 6px;
}

.ww-meter-hint {
    overflow: hidden;
    color: #C0C0C2;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ww-bar .ww-bar-location {
    flex: 0 1 auto;
    max-width: 230px;
}

@keyframes ww-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.ww-hero-note {
    max-width: 520px;
    margin: -8px 0 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

/* --- Разделы и карточки --- */
.ww-group {
    margin: 34px 0 8px;
}

.ww-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
    color: #000;
}

.ww-group-title span {
    padding: 2px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #555;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.ww-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #ddd, transparent);
}

.ww-found {
    margin: 22px 0 12px;
    color: var(--ww-muted);
}

.ww-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ww-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ww-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
}

.ww-card.is-selected {
    box-shadow: 0 0 0 3px #2ecc71, 0 14px 30px rgba(46, 204, 113, 0.25);
}

.ww-card-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 0;
    background: #F8F8F8;
    cursor: zoom-in;
    overflow: hidden;
    text-align: left;
}

.ww-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform 0.6s ease;
}

.ww-card:hover .ww-card-photo img {
    transform: scale(1.05);
}

.ww-card-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 56px 16px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
}

.ww-card-kind {
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ww-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    color: #fff;
}

.ww-card-photos {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
}

.ww-card-photos svg {
    width: 15px;
    height: 15px;
}

.ww-card-check {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ww-card.is-selected .ww-card-check {
    transform: scale(1);
}

.ww-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

.ww-card-desc {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    line-height: 1.5;
    color: #555;
}

.ww-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.ww-card-tags li {
    padding: 3px 9px;
    border-radius: 999px;
    background: #F8F8F8;
    color: #555;
    font-size: 0.78rem;
}

.ww-card-add {
    margin-top: auto;
    padding: 11px 12px;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    background: var(--color-secondary);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.ww-card-add:hover {
    background: #000;
    border-color: #000;
    color: var(--color-secondary);
}

.ww-card-add:active {
    transform: scale(0.98);
}

.ww-card.is-selected .ww-card-add {
    border-color: #2ecc71;
    background: #fff;
    color: #27ae60;
}

.ww-empty {
    padding: 40px 0;
    text-align: center;
    color: #555;
}

/* --- Плавающая панель подборки --- */
.ww-bar {
    position: sticky;
    bottom: 14px;
    z-index: 30;
    margin-top: 36px;
    pointer-events: none;
}

.ww-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.ww-bar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.ww-bar-location {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
}

.ww-bar-location svg {
    color: var(--color-secondary);
}

.ww-bar-loc-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ww-bar-loc-text small {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ww-bar-loc-change {
    margin-left: 4px;
    color: var(--color-secondary);
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ww-app--modal .ww-bar-selected {
    margin-left: auto;
}

.ww-bar-selected {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
}

.ww-bar-selected:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ww-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.ww-app.has-items .ww-count {
    background: var(--color-secondary);
    color: #000;
}

.ww-bar-main,
.ww-drawer-main {
    border: 0;
    background: var(--color-primary);
    color: #fff;
}

.ww-bar-main:hover,
.ww-drawer-main:hover {
    background: #a50403;
}

.ww-bar-main:disabled {
    background: rgba(192, 192, 194, 0.25);
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
}

/* --- Панель «Выбранные вещи» --- */
.ww-drawer {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.5);
    animation: ww-fade 0.2s ease;
}

.ww-drawer[hidden] {
    display: none;
}

.ww-drawer-panel {
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    animation: ww-slide 0.25s ease;
}

.ww-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #e0e0e0;
}

.ww-drawer-head h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.6rem;
}

.ww-drawer-close,
.ww-dialog-close,
.ww-overlay-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #222;
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ww-drawer-close:hover,
.ww-dialog-close:hover,
.ww-overlay-close:hover {
    background: #e2e2e2;
}

.ww-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}

.ww-drawer-foot {
    padding: 16px 22px 20px;
    border-top: 1px solid #e0e0e0;
}

.ww-drawer-main {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}

.ww-drawer-loc {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F8F8F8;
    color: #555;
    font-size: 0.92rem;
}

.ww-picked {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.ww-picked li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ww-picked img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 8px;
}

.ww-picked-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    line-height: 1.25;
    color: #000;
}

.ww-picked-name small {
    color: #555;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ww-picked-remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #fbeceb;
    color: var(--color-primary);
    font-size: 20px;
    cursor: pointer;
}

.ww-usage {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    color: #555;
}

.ww-usage span {
    color: #999;
}

.ww-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef8f1;
    color: #1e7e44;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ww-note.is-error {
    background: #fdecea;
    color: #b3261e;
}

/* --- Выбор локации --- */
.ww-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    animation: ww-fade 0.2s ease;
}

.ww-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.ww-dialog h3 {
    margin: 0 0 6px;
    padding-right: 44px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.9rem;
}

.ww-dialog p {
    margin: 0 0 18px;
    color: #555;
}

.ww-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.ww-loc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ww-loc-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.ww-loc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ww-loc-card:hover img {
    transform: scale(1.06);
}

.ww-loc-card:focus-visible,
.ww-loc-card:hover {
    outline: 3px solid var(--color-secondary);
    outline-offset: -3px;
}

.ww-loc-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 34px 12px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.ww-loc-hall {
    color: var(--color-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ww-loc-name {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.2;
}

/* --- Каталог поверх окна брони --- */
.ww-lock {
    overflow: hidden;
}

.ww-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow-y: auto;
    background: #F8F8F8;
    animation: ww-fade 0.2s ease;
}

.ww-overlay-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 10px;
}

.ww-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 6px;
}

.ww-overlay-head h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
}

.ww-overlay-head h2 span {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* --- Лайтбокс --- */
.ww-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    animation: ww-fade 0.2s ease;
}

.ww-lightbox figure {
    margin: 0;
    text-align: center;
    cursor: default;
}

.ww-lightbox img {
    max-width: 92vw;
    max-height: 84vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ww-lightbox figcaption {
    margin-top: 12px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.ww-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 26px;
    cursor: pointer;
}

.ww-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ww-prev { left: 16px; }
.ww-next { right: 16px; }

/* --- Подсказка --- */
.ww-toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    z-index: 1250;
    width: max-content;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 18px;
    border-left: 4px solid var(--color-secondary);
    border-radius: 10px;
    background: #000;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}

.ww-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes ww-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ww-slide {
    from { transform: translateX(30px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
}

/* --- Опция «Гардероб» в окне брони --- */
.modal-wardrobe-block {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #ece7d6;
    border-left: 4px solid var(--color-secondary, #FFD700);
    border-radius: 10px;
    background: #FFFFFF;
}

.modal-wardrobe-block[hidden] {
    display: none;
}

.modal-wardrobe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.modal-wardrobe-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.modal-wardrobe-toggle:disabled {
    color: #555;
    text-decoration: none;
    cursor: default;
}

.modal-wardrobe-open {
    margin-left: auto;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.modal-wardrobe-open:hover {
    background: #555;
}

.modal-wardrobe-list {
    margin: 10px 0 0 18px;
    font-size: 0.92em;
    color: #555;
}

.modal-wardrobe-note {
    margin-top: 8px;
    font-size: 0.88em;
    color: #555;
}

.modal-wardrobe-note.is-error {
    color: #D60604;
    font-weight: 600;
}

.modal-wardrobe-hours {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #000;
}

.modal-wardrobe-addhour {
    margin-top: 10px;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary, #D60604);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
}

.modal-wardrobe-addhour:hover {
    background: #a50403;
}


/* Короткие подписи кнопок — только на телефоне */
.ww-short {
    display: none;
}

/* --- Адаптив --- */
@media (max-width: 1100px) {
    .ww-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .ww-plan-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .ww-hero { min-height: 0; }
    .ww-hero-collage { grid-template-columns: repeat(3, 1fr); }
    .ww-hero-collage img:nth-child(n+4) { display: none; }
    .ww-hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.45) 100%); }
    .ww-hero-content { padding: 40px 16px 64px; }
    .ww-hero-lead { font-size: 1rem; }
    .ww-hero-price { flex-wrap: wrap; row-gap: 0; }
    .ww-hero-steps { flex-direction: column; gap: 8px; }
    .ww-app--page { margin-top: -36px; }
    .ww-toolbar-inner { padding: 10px; }
    .ww-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ww-group-title { font-size: 1.5rem; }
    .ww-card-caption { padding: 40px 10px 10px; }
    .ww-card-title { font-size: 1.05rem; }
    .ww-card-kind { font-size: 0.66rem; }
    .ww-card-body { padding: 10px; }
    .ww-card-desc { font-size: 0.84rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .ww-full { display: none; }
    .ww-short { display: inline; }
    .ww-toolbar { padding-top: 6px; }
    .ww-search-input { padding: 10px 0; }
    .ww-sections { margin-top: 8px; }
    .ww-section-chip { padding: 6px 12px; font-size: 0.86rem; }
    .ww-bar-inner { flex-wrap: nowrap; }
    .ww-bar-loc-text, .ww-bar-loc-change { display: none !important; }
    .ww-bar-location { flex: 0 0 44px; justify-content: center; border: 1px dashed rgba(255, 255, 255, 0.35) !important; }
    .ww-bar-location svg { color: rgba(255, 255, 255, 0.6); width: 20px; height: 20px; }
    .ww-bar-location.is-set { border-style: solid !important; border-color: var(--color-secondary) !important; }
    .ww-bar-location.is-set svg { color: var(--color-secondary); }
    .ww-bar-selected, .ww-bar-main { flex: 1 1 auto !important; }
    .ww-card-tags { display: none; }
    .ww-card-add { font-size: 0.82rem; padding: 9px 6px; }
    .ww-limits-label { width: 100%; }
    .ww-plan { padding: 18px 16px 14px; }
    .ww-plan-title { font-size: 1.2rem; }
    .ww-plan-hours { width: 100%; }
    .ww-plan-hour { flex: 1; min-width: 0; padding: 8px 4px; font-size: 1.1rem; }
    .ww-plan-rows { grid-template-columns: 1fr; gap: 12px; }
    .ww-meter-g:nth-child(n+3) { display: none; }
    .ww-bar-inner { flex-wrap: wrap !important; }
    .ww-bar .ww-bar-meter { flex: 1 1 100%; order: -1; padding: 2px 2px 6px; gap: 10px; border-bottom: 1px solid rgba(192, 192, 194, 0.2) !important; border-radius: 0; }
    .ww-meter-hours { font-size: 1.1rem; padding: 4px 9px; }
    .ww-meter-groups { gap: 10px; }
    .ww-meter-g { flex: 1 1 0; min-width: 0; }
    .ww-meter-hint { white-space: normal; font-size: 0.78rem; line-height: 1.3; }
    .ww-bar { bottom: 8px; }
    .ww-bar-inner { gap: 6px; padding: 8px; }
    .ww-bar-location { padding: 6px 4px !important; gap: 6px !important; font-size: 0.85rem !important; }
    .ww-bar-selected, .ww-bar-main { flex: 0 0 auto; justify-content: center; padding: 10px 10px !important; font-size: 0.86rem !important; }
    .ww-bar-selected svg { display: none; }
    .ww-loc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ww-dialog { padding: 20px 16px; }
    .ww-dialog h3 { font-size: 1.5rem; }
    .ww-overlay-inner { padding: 0 12px 10px; }
    .ww-overlay-head h2 { font-size: 1.5rem; }
    .ww-toast { bottom: 140px; }
}

/* В каталоге поверх брони панель лимитов идёт сразу под заголовком */
.ww-app--modal .ww-plan-wrap .ww-plan {
    margin-top: 10px;
}

/* Опция «Гардероб» выключена в админке: каталог только для просмотра */
.ww-note.ww-paused {
    margin: 28px 0 0;
    background: #fff8e1;
    color: #8a6d00;
    text-align: center;
}
