/* ONLINE PARK — личный кабинет (макет Account-1…6, Account-360).
   Размеры сняты с макета: меню 226px, колонка контента 930px, зазор 24px;
   белые блоки с полем 16px, таблицы на сетке колонок макета (320/149/149/208). */

/* ── Страница ────────────────────────────────────────────── */

.account-page { padding-top: 40px; padding-bottom: 32px; }
.account-page .crumbs { margin-bottom: 40px; }
.account-page h1 { font-size: 36px; line-height: 1.2; margin-bottom: 17px; }

.account { display: grid; grid-template-columns: 226px 1fr; gap: 24px; align-items: start; }
.account > * { min-width: 0; }

/* ── Меню кабинета ───────────────────────────────────────── */

.account-nav { position: sticky; top: 16px; display: flex; flex-direction: column; }
.account-nav a,
.account-nav button {
    display: flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-8);
    background: transparent; color: var(--ink); font-size: 16px; font-weight: 400;
    text-align: left; white-space: nowrap;
}
.account-nav a:hover, .account-nav button:hover { background: var(--white); color: var(--ink); }
.account-nav .on { background: var(--blue); color: var(--white); font-weight: 500; }
.account-nav .on:hover { background: var(--blue-h); color: var(--white); }
.account-nav .icon { color: var(--blue); }
.account-nav .on .icon { color: var(--white); }
.account-nav .acc-count { margin-left: auto; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-24); background: var(--green); font-size: 10px; font-weight: 600; line-height: 1; }

/* ── Белые блоки ─────────────────────────────────────────── */

.acc-box { background: var(--white); border-radius: var(--r-8); padding: 16px; }
.acc-box + .acc-box { margin-top: 8px; }
.acc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.acc-cols > * { min-width: 0; }
.acc-cols .acc-box + .acc-box { margin-top: 0; }

.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 8px; }
.acc-title { font-size: 24px; line-height: 32px; font-weight: 700; }
.acc-head .acc-title { padding: 6px 0; }
.acc-head-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc-title-row { display: flex; align-items: center; gap: 24px; }

/* Заголовок вложенного экрана: стрелка назад + название */
.acc-back { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 43px; }
.acc-back-btn { width: 56px; height: 43px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-8); color: var(--ink); }
.acc-back-btn:hover { background: var(--bg); color: var(--ink); }

.acc-text { font-size: 14px; line-height: 21px; }
.acc-big { font-size: 24px; line-height: 32px; font-weight: 700; margin-top: 8px; }
.acc-muted { opacity: .5; }

/* Список ссылок (обзор → быстрые ссылки) */
.acc-links { display: flex; flex-direction: column; gap: 8px; }
.acc-links a { display: block; padding: 4px 0; border-bottom: 1px solid var(--ink-10); font-size: 14px; line-height: 21px; }
.acc-links a:hover { color: var(--blue); }

/* ── Кнопки кабинета (в макете 47px, 16px) ───────────────── */

.acc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 47px; padding: 0 17px; border: 0; border-radius: var(--r-8);
    background: var(--bg-grey); color: var(--ink); font-size: 16px; font-weight: 500; white-space: nowrap;
    transition: background .15s;
}
.acc-btn:hover { background: #e3e3de; color: var(--ink); }
.acc-btn-blue { background: var(--blue); color: var(--white); }
.acc-btn-blue:hover { background: var(--blue-h); color: var(--white); }
.acc-btn-red { background: var(--red); color: var(--white); }
.acc-btn-red:hover { background: #d84545; color: var(--white); }
.acc-btn-wide { width: 100%; height: 55px; }
.acc-btn-sm { height: 45px; padding: 0 16px; }

/* Выпадающий фильтр «ВСЕ ЗАКАЗЫ» */
.acc-drop { position: relative; }
.acc-drop summary {
    list-style: none; display: inline-flex; align-items: center; gap: 16px; cursor: pointer;
    height: 44px; padding: 0 16px; border-radius: var(--r-8); background: var(--bg-grey);
    font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
}
.acc-drop summary::-webkit-details-marker { display: none; }
.acc-drop[open] summary .icon { transform: rotate(180deg); }
.acc-drop-menu {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 100%;
    background: var(--white); border-radius: var(--r-8); box-shadow: 0 8px 24px rgba(6, 6, 6, .12); padding: 6px;
}
.acc-drop-menu a { display: block; padding: 8px 12px; border-radius: var(--r-4); font-size: 13px; white-space: nowrap; }
.acc-drop-menu a:hover, .acc-drop-menu a.on { background: var(--bg); color: var(--ink); }

/* ── Таблицы (обзор, история заказов) ────────────────────── */

.acc-table { display: flex; flex-direction: column; gap: 8px; }
.acc-tr { display: grid; column-gap: 24px; align-items: start; padding: 4px 0; border-bottom: 1px solid var(--ink-10); font-size: 14px; line-height: 21px; }
.acc-tr > * { min-width: 0; }
.acc-th { font-weight: 500; line-height: 20px; opacity: .5; }
.acc-tr-4a { grid-template-columns: 320px 149px 149px 208px; }
.acc-tr-4b { grid-template-columns: 320px 149px 208px 149px; }
.acc-cell-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-cell-sub { display: block; opacity: .5; }
.acc-tr a.blue:hover { text-decoration: underline; }

/* Секция внутри карточки заказа: заголовок с линией + строки */
.acc-sec { margin-bottom: 16px; }
.acc-sec:last-child { margin-bottom: 0; }
.acc-sec-title { padding: 4px 0; border-bottom: 1px solid var(--ink-10); font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }
.acc-line { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; line-height: 21px; }
.acc-line + .acc-line { margin-top: 8px; }
.acc-line-qty { display: inline-block; width: 17px; margin-right: 8px; opacity: .5; }
.acc-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ── Поля с иконкой (профиль, адреса, отзыв) ─────────────── */

.acc-field { position: relative; }
.acc-field .icon { position: absolute; left: 17px; top: 17px; width: 16px; height: 16px; pointer-events: none; }
.acc-field .icon::after { content: ''; position: absolute; left: 32px; top: 0; width: 1px; height: 20px; background: var(--ink-10); }
.acc-field .input, .acc-field .textarea { height: 54px; padding-left: 65px; border-radius: var(--r-8); font-size: 14px; }
.acc-field .textarea { height: 193px; padding-top: 17px; resize: none; }
.acc-field .input:read-only { background: var(--bg); border-color: transparent; }
.acc-field-plain .input { padding-left: 17px; }
.acc-field .eye { position: absolute; right: 16px; top: 19px; width: 16px; height: 16px; border: 0; padding: 0; background: none; color: var(--ink); display: inline-flex; }
.acc-field .eye .icon { position: static; }
.acc-field .eye .icon::after { display: none; }
.acc-field .field-error { margin-top: 4px; }
.acc-form { display: flex; flex-direction: column; gap: 8px; }
.acc-form-title { display: flex; align-items: center; gap: 8px; font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 16px; }
.acc-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc-row-3 > * { min-width: 0; }
.req { color: var(--red); }

/* Чекбокс макета: квадрат 20px, синяя заливка с галочкой */
.acc-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; line-height: 21px; }
.acc-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.acc-check i {
    width: 20px; height: 20px; flex: none; border-radius: var(--r-4); border: 1px solid var(--ink-30);
    background: var(--white); display: inline-flex; align-items: center; justify-content: center; color: var(--white);
}
.acc-check i .icon { width: 12px; height: 12px; opacity: 0; }
.acc-check input:checked + i { background: var(--blue); border-color: var(--blue); }
.acc-check input:checked + i .icon { opacity: 1; }
.acc-check input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.acc-checks { display: flex; flex-direction: column; gap: 8px; }

/* ── Отзывы ──────────────────────────────────────────────── */

.acc-card { background: var(--bg-grey); border-radius: var(--r-8); padding: 16px; }
.acc-card + .acc-card { margin-top: 16px; }
.review-row { display: flex; gap: 20px; align-items: flex-start; }
.review-body { flex: 1 0 0; min-width: 0; }
.review-on { font-size: 14px; line-height: 20px; }
.review-on a { font-weight: 500; }
.review-head { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.review-rate { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.review-rate .icon { color: var(--orange); width: 24px; height: 24px; }
.review-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.review-text { margin-top: 8px; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-date { margin-top: 8px; font-size: 12px; line-height: 17px; opacity: .5; }
.review-pics { display: flex; gap: 10px; flex: none; }
.review-pics img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--r-8); display: block; }
.review-status { margin-top: 20px; font-size: 14px; line-height: 21px; }
.review-status-approved { color: var(--green-t); }
.review-status-rejected { color: var(--red); }

.review-form { display: grid; grid-template-columns: 322px 1fr; gap: 8px; }
.review-form > * { min-width: 0; }
.review-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.review-attach { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-thumb { position: relative; width: 63px; height: 47px; border-radius: var(--r-4); overflow: hidden; background: var(--bg-grey); }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-thumb button { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.review-stars { display: flex; gap: 4px; padding: 12px 16px; border: 1px solid var(--ink-10); border-radius: var(--r-8); }
.review-stars label { cursor: pointer; color: var(--ink-10); }
.review-stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.review-stars label .icon { width: 24px; height: 24px; }
.review-stars.is-1 label:nth-child(-n+1), .review-stars.is-2 label:nth-child(-n+2), .review-stars.is-3 label:nth-child(-n+3),
.review-stars.is-4 label:nth-child(-n+4), .review-stars.is-5 label:nth-child(-n+5) { color: var(--orange); }

/* Выбор товара списком, как нарисовано в макете */
.acc-dd { position: relative; }
.acc-dd summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 51px; padding: 0 16px; border: 1px solid var(--ink-10); border-radius: var(--r-8); background: var(--white); font-size: 14px;
}
.acc-dd summary::-webkit-details-marker { display: none; }
.acc-dd summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-dd[open] summary { border-color: var(--blue); }
.acc-dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 290px; overflow: auto; background: var(--white); border-radius: var(--r-8); box-shadow: 0 8px 24px rgba(6, 6, 6, .12); }
.acc-dd-list label { display: block; padding: 16px 12px; font-size: 14px; line-height: 19px; cursor: pointer; }
.acc-dd-list label:hover { background: var(--bg); }
.acc-dd-list label + label { border-top: 1px solid var(--ink-10); }
.acc-dd-list input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ── Адреса ──────────────────────────────────────────────── */

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 16px; }
.addr-grid > * { min-width: 0; }
.addr-head { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }
.addr-head .acc-muted { font-weight: 400; }
.addr-head a.blue { font-weight: 400; }
.addr-head .addr-edit { margin-left: auto; color: var(--ink); width: 20px; height: 20px; }
.addr-head .addr-edit:hover { color: var(--blue); }
.addr-foot { display: flex; gap: 16px; align-items: center; }
.addr-foot .acc-btn-wide { flex: 1 0 0; }
.addr-del { font-size: 14px; white-space: nowrap; border: 0; background: none; padding: 0; opacity: .5; }
.addr-del:hover { opacity: 1; color: var(--red); }
.addr-add { margin-top: 16px; }

/* ── Оповещения ──────────────────────────────────────────── */

.ntf { background: var(--bg-grey); border-radius: var(--r-8); padding: 16px 24px; }
.ntf + .ntf { margin-top: 16px; }
.ntf-top { display: flex; justify-content: space-between; gap: 48px; font-size: 14px; line-height: 20px; }
.ntf-title { display: flex; gap: 16px; min-width: 0; }
.ntf-title b { font-weight: 500; white-space: nowrap; padding-right: 16px; border-right: 1px solid var(--ink-10); }
.ntf-date { white-space: nowrap; }
.ntf-body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 16px; line-height: 21px; }
.ntf-price { display: inline-flex; align-items: center; gap: 4px; }
.ntf-price b { font-weight: 700; }
.ntf-price s { font-size: 14px; opacity: .5; }
.ntf-price .badge { margin-left: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-4); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.ntf-unread { box-shadow: inset 3px 0 0 var(--blue); }

.ntf-groups { display: flex; flex-direction: column; gap: 16px; }
.ntf-mass { display: flex; gap: 24px; margin-left: auto; }

/* Пагинация кабинета — квадраты 48px, как в макете */
.acc-pager { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.acc-pager-nums { display: flex; gap: 8px; }
.acc-pager a, .acc-pager span { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-8); background: var(--bg-grey); font-size: 14px; font-weight: 500; }
.acc-pager .on { background: var(--blue); color: var(--white); }
.acc-pager .off { opacity: .35; }

/* ── Бонусы и жалобы (без макета — в стиле остальных вкладок) ── */

.bonus-balance { display: flex; align-items: baseline; gap: 12px; }
.bonus-code { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-8); background: var(--bg); font-weight: 600; letter-spacing: 1px; }
.amount-plus { color: var(--green-t); font-weight: 600; }
.amount-minus { color: var(--red); font-weight: 600; }
.acc-tr-bonus { grid-template-columns: 150px 1fr 120px 120px; }
.complaint-status { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-16); background: var(--bg-grey); }
.complaint-answer { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-8); background: var(--white); font-size: 14px; line-height: 20px; }

/* ── Модалки подтверждения (макет delete / back: 420px) ───── */

.acc-modal { max-width: 420px; padding: 16px; border-radius: var(--r-8); }
.acc-modal-head { display: flex; justify-content: space-between; gap: 16px; min-height: 64px; margin-bottom: 16px; }
.acc-modal-head p { font-size: 18px; line-height: 1.2; font-weight: 600; max-width: 340px; }
.acc-modal-head button { border: 0; background: none; padding: 0; width: 24px; height: 24px; color: var(--ink); flex: none; }
.acc-modal-head button:hover { color: var(--red); }
.acc-modal-actions { display: flex; gap: 16px; }
.acc-modal-actions .acc-btn { flex: 1 0 0; height: 48px; }
.acc-modal-actions form { flex: 1 0 0; display: flex; }

/* Пустое состояние */
.acc-empty { padding: 32px 0; text-align: center; }
.acc-empty .acc-text { opacity: .5; margin-bottom: 16px; }

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .acc-tr-4a { grid-template-columns: minmax(200px, 1fr) 130px 140px 170px; }
    .acc-tr-4b { grid-template-columns: minmax(200px, 1fr) 150px 160px 100px; }
    .review-form { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .account { grid-template-columns: 1fr; gap: 16px; }
    .account-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); gap: 0; }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a, .account-nav button { height: 44px; padding: 0 12px; font-size: 14px; }
    .account-nav .icon { width: 16px; height: 16px; }
    .account-nav .acc-count { margin-left: 0; }
    .acc-cols { grid-template-columns: 1fr; }
    .addr-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 767px) {
    .account-page { padding-top: 24px; padding-bottom: 0; }
    .account-page .crumbs { margin-bottom: 24px; }
    .account-page h1 { font-size: 32px; line-height: 37px; margin-bottom: 16px; }
    /* В макете 360 белые блоки идут во всю ширину экрана, без боковых полей */
    .account > div { margin: 0 calc(var(--gutter) * -1); }
    .acc-box, .acc-cols .acc-box { border-radius: 0; }
    .acc-title { font-size: 18px; line-height: 24px; }
    .acc-head { min-height: 32px; }
    .acc-head .acc-title { padding: 4px 0; }
    .acc-big { font-size: 18px; line-height: 24px; }
    .acc-text, .acc-links a, .acc-line, .acc-tr, .review-on, .review-text, .review-status, .ntf-top { font-size: 12px; line-height: 19px; }
    .acc-table { overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .acc-table::-webkit-scrollbar { display: none; }
    .acc-tr-4a { grid-template-columns: 220px 104px 149px 208px; column-gap: 16px; width: 729px; }
    .acc-tr-4b { grid-template-columns: 220px 149px 160px 100px; column-gap: 16px; width: 677px; }
    .acc-th { line-height: 17px; }
    .acc-head { flex-wrap: wrap; }
    .acc-btn { font-size: 14px; height: 44px; }
    .acc-btn-wide { height: 48px; }
    .acc-back-btn { width: 40px; }
    .review-row { flex-direction: column; }
    .review-pics img { width: 120px; height: 90px; }
    .review-form-foot { flex-direction: column; align-items: stretch; }
    .review-form-foot .acc-btn-blue { width: 100%; }
    .acc-row-3 { grid-template-columns: 1fr; }
    .ntf { padding: 16px; }
    .ntf-top { flex-direction: column; gap: 8px; }
    .ntf-title { flex-direction: column; gap: 4px; }
    .ntf-title b { border: 0; padding: 0; }
    .ntf-body { font-size: 14px; }
    .ntf-mass { margin-left: 0; width: 100%; }
    .acc-check { font-size: 14px; }
    .acc-pager a, .acc-pager span { width: 40px; height: 40px; }
    .acc-tr-bonus { grid-template-columns: 120px 220px 100px 100px; width: 600px; }
    .addr-foot { flex-direction: column; align-items: stretch; }
}

/* ── Карточки кабинета по макету ─────────────────────────── */

.acc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.acc-two > * { min-width: 0; }
.acc-card { background: var(--white); border-radius: var(--r-24); padding: 28px; }
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.acc-card-head h2 { font-size: 28px; }
.acc-edit { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: 0; border: 0; color: var(--blue); }
.acc-edit:hover { color: var(--red); }
.acc-head-btn { height: 48px; padding: 0 20px; border-radius: var(--r-12); font-size: 14px; }

.acc-form { display: flex; flex-direction: column; gap: 12px; }
.acc-form .field-error:empty { display: none; }
.acc-submit { height: 56px; border-radius: var(--r-12); font-size: 15px; margin-top: 4px; }

.acc-address { display: flex; flex-direction: column; gap: 12px; }
.acc-address-head { display: flex; align-items: center; gap: 10px; }
.acc-address-head b { font-size: 16px; }
.acc-default { font-size: 13px; opacity: .4; }
.acc-make-default { background: 0; border: 0; padding: 0; color: var(--blue); font-size: 13px; text-decoration: underline; }
.acc-address-del { margin-left: auto; }
.acc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc-row .ffield { min-width: 0; padding: 0 12px; }
.acc-row .ffield input { min-width: 0; width: 100%; }

.acc-notes { display: flex; flex-direction: column; gap: 12px; }
.acc-note { background: var(--bg); border-radius: var(--r-12); padding: 16px 20px; }
.acc-note-verify { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 14px; }
.acc-note-verify .btn { height: 40px; padding: 0 14px; }
.acc-note.is-new { background: var(--white); border: 1px solid var(--blue); }
.acc-note-top { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: start; }
.acc-note-kind { color: var(--orange); font-size: 14px; }
.acc-note-text { font-size: 14px; line-height: 1.45; margin: 0; }
.acc-note-date { font-size: 13px; opacity: .4; white-space: nowrap; }
.acc-note-link { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 14px; text-decoration: underline; }

@media (max-width: 991px) {
    .acc-two { grid-template-columns: 1fr; }
    .acc-card { padding: 20px; }
    .acc-card-head h2 { font-size: 22px; }
    .acc-note-top { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Настройка оповещений (Account - 6 open) ─────────────── */

.acc-head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-head-links { display: flex; align-items: center; gap: 32px; flex: none; }
.acc-link-btn { font-size: 16px; line-height: 21px; color: var(--ink); background: none; border: 0; padding: 0; }
.acc-link-btn:hover { color: var(--blue); }

.acc-notes-form { display: flex; flex-direction: column; gap: 16px; }
.acc-notes-group { display: flex; flex-direction: column; gap: 8px; }
.acc-notes-title { font-size: 16px; line-height: 29px; font-weight: 600; }
.acc-notes-group .cat-check { gap: 8px; align-items: flex-start; }
.acc-notes-save { width: 100%; height: 55px; margin-top: 0; }

@media (max-width: 767px) {
    .acc-head-links { gap: 16px; }
    .acc-link-btn { font-size: 14px; }
    .acc-card-head { flex-wrap: wrap; }
}

/* ── Бонусы и жалобы (своих фреймов в макете нет) ────────── */

.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.acc-stats > * { min-width: 0; }
.acc-stat { background: var(--bg-grey); border-radius: var(--r-16); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.acc-stat-num { font-size: 28px; line-height: 36px; font-weight: 700; }
.acc-stat-cap { font-size: 14px; line-height: 21px; color: var(--ink-50); }

.acc-ref { position: relative; padding-right: 8px; }
.acc-ref input { text-overflow: ellipsis; }
.acc-ref-copy { flex: none; height: 36px; padding: 0 16px; border-radius: var(--r-8); background: var(--blue); color: var(--white); font-size: 14px; }
.acc-ref-copy:hover { background: var(--blue-h); }

.acc-table-scroll { overflow-x: auto; }
.acc-answer { margin-top: 12px; padding: 12px 16px; background: var(--bg-grey); border-radius: var(--r-8); font-size: 14px; line-height: 21px; }

@media (max-width: 991px) { .acc-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .acc-stats { grid-template-columns: 1fr; } }

/* ── Мои отзывы (Account - 3) ────────────────────────────── */

.acc-add-btn { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: var(--r-8); background: var(--blue); color: var(--white); font-size: 14px; }
.acc-add-btn:hover { background: var(--blue-h); color: var(--white); }
.rv-filter-field { height: 40px; padding: 0 12px; gap: 8px; text-transform: uppercase; font-size: 13px; }
.rv-filter-field select { text-transform: uppercase; font-size: 13px; }

.rv-card { background: var(--bg-grey); border-radius: var(--r-16); padding: 16px; }
.rv-card + .rv-card { margin-top: 16px; }
.rv-on { font-size: 14px; line-height: 20px; color: var(--ink-50); }
.rv-on a { color: var(--ink); }
.rv-on a:hover { color: var(--blue); }
.rv-rate { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rv-mark { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.rv-mark .icon { color: var(--orange); }
.rv-title { font-size: 16px; line-height: 24px; }
.rv-text { margin-top: 8px; font-size: 14px; line-height: 21px; }
.rv-photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rv-photos img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-8); }
.rv-date { margin-top: 12px; font-size: 14px; color: var(--ink-50); }
.rv-status { margin-top: 4px; font-size: 14px; color: var(--ink-50); }
.rv-status-approved { color: var(--green-t); }
.rv-status-rejected { color: var(--red); }

/* ── Форма отзыва (Account - 3 open / add) ───────────────── */

.rv-form-top { display: grid; grid-template-columns: 322px 1fr; gap: 24px; align-items: start; }
.rv-form-top > * { min-width: 0; }
.rv-pick-label { height: 51px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--blue); border-radius: var(--r-12) var(--r-12) 0 0; font-size: 14px; }
.rv-pick-list { border: 1px solid var(--blue); border-top: 0; border-radius: 0 0 var(--r-12) var(--r-12); max-height: 300px; overflow-y: auto; }
.rv-pick { display: flex; gap: 8px; align-items: flex-start; padding: 16px; cursor: pointer; }
.rv-pick + .rv-pick { border-top: 1px solid var(--ink-10); }
.rv-pick input { accent-color: var(--blue); margin-top: 2px; flex: none; }
.rv-pick-name { font-size: 14px; line-height: 19px; }
.rv-pick:has(input:checked) { background: var(--bg-grey); }

.rv-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 12px; }
.rv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rv-star { color: var(--ink-30); cursor: pointer; display: inline-flex; }
.rv-stars input:checked ~ .rv-star,
.rv-star:hover, .rv-star:hover ~ .rv-star { color: var(--orange); }
.rv-title-field { margin-bottom: 8px; }
.rv-text-field textarea { min-height: 140px; }
.rv-counter { margin-top: 4px; font-size: 13px; color: var(--ink-50); text-align: right; }

.rv-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.rv-photo-add { display: inline-flex; align-items: center; gap: 12px; height: 51px; padding: 0 16px; border: 1px dashed var(--blue); border-radius: var(--r-12); cursor: pointer; font-size: 14px; }
.rv-photo-add .icon { color: var(--blue); }
.rv-submit { height: 51px; padding: 0 24px; border-radius: var(--r-12); }

@media (max-width: 991px) {
    .rv-form-top { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
    .acc-card-head { flex-wrap: wrap; }
    .rv-form-bottom > * { width: 100%; justify-content: center; }
}
