/* ==========================================================
   SCRAPBOOK MAX SHOP — ЕДИНЫЙ ФАЙЛ СТИЛЕЙ
   Очищены повторения и устаревшие переопределения.
   Существующие классы и оформление разделов сохранены.
   ========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    color: #403632;

    background-color: #fcf6f2;
}
header {
    background: rgba(255, 255, 255, 0.94);
    padding: 18px 20px;
    border-bottom: 1px solid #eaded7;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

header > div {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

header span {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2e1d7;
    border-radius: 16px;
    font-size: 28px;
}

header strong {
    font-size: 20px;
    font-weight: 700;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 20px 45px;
}

main > section:first-child {
    text-align: center;
    padding: 15px 10px 30px;
}

main > section:first-child > div {
    font-size: 36px;
    margin-bottom: 12px;
}

h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
}

main > section:first-child p {
    max-width: 620px;
    margin: 0 auto;
    color: #806f68;
    font-size: 17px;
    line-height: 1.6;
}

main > section:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

main > section:nth-child(2) a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 19px 20px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eaded7;
    box-shadow: 0 5px 20px rgba(80, 55, 45, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

main > section:nth-child(2) a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(80, 55, 45, 0.13);
}

main > section:nth-child(2) a > div:first-child {
    width: 62px;
    height: 62px;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7e9e0;
    border-radius: 18px;
    font-size: 30px;
}

main > section:nth-child(2) a > div:nth-child(2) {
    flex: 1;
}

h2 {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.3;
}

main > section:nth-child(2) a p {
    margin: 0;
    color: #8b7770;
    font-size: 14px;
    line-height: 1.4;
}

main > section:nth-child(2) a > div:last-child {
    font-size: 25px;
    color: #a38c82;
    transition: transform 0.2s ease;
}

main > section:nth-child(2) a:hover > div:last-child {
    transform: translateX(4px);
}

main > section:nth-child(3) {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

main > section:nth-child(3) > div {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #eaded7;
    border-radius: 14px;
    color: #76645d;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(80, 55, 45, 0.04);
}

footer {
    text-align: center;
    padding: 10px 20px 25px;
    color: #9b8880;
    font-size: 12px;
}

@media (max-width: 600px) {
    main {
        padding: 25px 14px 35px;
    }

    h1 {
        font-size: 25px;
    }

    main > section:first-child p {
        font-size: 15px;
    }

    main > section:nth-child(2) a {
        gap: 13px;
        padding: 16px;
    }

    main > section:nth-child(2) a > div:first-child {
        width: 53px;
        height: 53px;
        min-width: 53px;
        font-size: 25px;
        border-radius: 15px;
    }

    h2 {
        font-size: 16px;
    }

    main > section:nth-child(2) a p {
        font-size: 13px;
    }

    header strong {
        font-size: 18px;
    }

}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #eaded7;
    border-radius: 12px;
    color: #76645d;
    text-decoration: none;
    font-size: 14px;
}

.back-button:hover {
    background: #f8eee8;
}

.catalog-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalog-main-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.catalog-header p {
    max-width: 620px;
    margin: 0 auto;
    color: #806f68;
    line-height: 1.6;
}

.catalog-products {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(280px, 1fr) );
    gap: 20px;
}

.product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eaded7;
    border-radius: 22px;
    box-shadow: 0 7px 25px rgba(80, 55, 45, 0.08);
}

.product-placeholder {
    min-height: 240px;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    color: #8b7770;
    font-size: 14px;
}

.product-placeholder-icon {
    font-size: 45px;
}

.product-content {
    padding: 20px;
}

.product-status {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #edf7ed;
    border-radius: 20px;
    font-size: 12px;
}

.product-description {
    color: #806f68;
    font-size: 14px;
    line-height: 1.6;
}

.product-price {
    margin: 18px 0;
    font-size: 22px;
    font-weight: 700;
}

.product-delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.product-delivery span {
    padding: 7px 10px;
    background: #f8f2ee;
    border-radius: 10px;
    color: #76645d;
    font-size: 12px;
}

.order-button {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: #765b50;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.order-button:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.admin-login-card {
    max-width: 440px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eaded7;
    border-radius: 22px;
    box-shadow: 0 7px 25px rgba(80, 55, 45, 0.08);
}

.admin-login-icon {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
}

.admin-login-card h1 {
    font-size: 25px;
    text-align: center;
    margin-bottom: 12px;
}

.admin-login-description {
    color: #806f68;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.admin-login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-login-field label {
    font-size: 14px;
    font-weight: 600;
}

.admin-login-field input {
    width: 100%;
    padding: 14px;
    border: 1px solid #eaded7;
    border-radius: 12px;
    font-size: 16px;
}

.admin-login-note {
    margin-top: 18px;
    color: #8b7770;
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .admin-login-card {
        padding: 22px;
    }

}

a.admin-menu-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ============================================================
   ОТЧЁТ ПЛАНИРОВЩИКА
   ============================================================ */

.scheduler-report-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 20px;
}

.scheduler-report-main {
    width: min(1600px, calc(100% - 32px));
    max-width: 1600px;
}

.scheduler-report-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    min-width: 0;
}

.scheduler-report-toolbar > div {
    min-width: 0;
}

.scheduler-report-toolbar h2 {
    margin-top: 0;
    line-height: 1.25;
}

.scheduler-report-toolbar .admin-login-note {
    margin: 6px 0 0;
    text-align: left;
    font-size: 14px;
}

.scheduler-report-download {
    flex: 0 0 auto;
    width: auto;
    min-width: 190px;
    max-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
}

.scheduler-report-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid #e4d6cc;
    border-radius: 12px;
}

.scheduler-report-table {
    width: 100%;
    min-width: 2100px;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 14px;
}

.scheduler-report-table th,
.scheduler-report-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8ddd5;
    vertical-align: top;
    text-align: left;
}

.scheduler-report-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #ffffff;
    background: #7c5c4e;
    font-weight: 700;
    white-space: normal;
}

.scheduler-report-table td:nth-child(1),
.scheduler-report-table td:nth-child(2) {
    text-align: center;
}

.scheduler-status-paid_queued td {
    background: #f4ebdd;
}

.scheduler-status-in_production td {
    background: #fff2cc;
}

.scheduler-status-preparing td,
.scheduler-status-ready_for_pickup td {
    background: #e2f0d9;
}

.scheduler-status-shipped td {
    background: #ddebf7;
}

.scheduler-status-received td {
    background: #e7e6e6;
}

.scheduler-status-cancelled td {
    background: #f4cccc;
}

.scheduler-report-table td.scheduler-report-date-delayed {
    color: #9c0006;
    background: #f4cccc;
    font-weight: 700;
}

.scheduler-report-empty {
    padding: 22px !important;
    color: #756962;
    text-align: center !important;
}

@media (max-width: 720px) {
    .scheduler-report-main {
        width: auto;
    }

    .scheduler-report-toolbar {
        flex-direction: column;
    }

    .scheduler-report-download {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* На компьютере вся таблица помещается в ширину отчёта без прокрутки. */
@media (min-width: 721px) {
    .scheduler-report-toolbar {
        align-items: center;
    }

    .scheduler-report-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: clamp(9px, 0.72vw, 12px);
    }

    .scheduler-report-table th,
    .scheduler-report-table td {
        padding: clamp(4px, 0.45vw, 8px);
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.25;
    }

    .scheduler-report-table th {
        font-size: clamp(9px, 0.68vw, 11px);
    }

    .scheduler-report-table tr > :nth-child(1) { width: 4%; }
    .scheduler-report-table tr > :nth-child(2) { width: 4%; }
    .scheduler-report-table tr > :nth-child(3) { width: 7%; }
    .scheduler-report-table tr > :nth-child(4),
    .scheduler-report-table tr > :nth-child(5),
    .scheduler-report-table tr > :nth-child(6) { width: 5%; }
    .scheduler-report-table tr > :nth-child(7) { width: 6%; }
    .scheduler-report-table tr > :nth-child(8) { width: 7%; }
    .scheduler-report-table tr > :nth-child(9),
    .scheduler-report-table tr > :nth-child(10),
    .scheduler-report-table tr > :nth-child(11),
    .scheduler-report-table tr > :nth-child(12),
    .scheduler-report-table tr > :nth-child(13),
    .scheduler-report-table tr > :nth-child(14) { width: 5%; }
    .scheduler-report-table tr > :nth-child(15),
    .scheduler-report-table tr > :nth-child(16) { width: 5%; }
    .scheduler-report-table tr > :nth-child(17) { width: 12%; }
}

a.admin-menu-card:hover {
    background: #fff8f4;
    border-color: #d8bfb3;
}

.admin-menu-arrow {
    margin-left: auto;
    font-size: 24px;
    color: #a38c82;
}

/* ============================================================
   ГЛАВНОЕ МЕНЮ АДМИНИСТРАТОРА

   Здесь используются названия классов, а не положение блока
   на странице. Поэтому карточки не потеряют оформление, если
   над ними появится ещё одна кнопка или пояснение.
   ============================================================ */

main > section.admin-welcome {
    display: block;
    margin-top: 0;
    padding: 10px 10px 28px;
    text-align: center;
}

.admin-welcome-icon {
    margin-bottom: 12px;
    font-size: 38px;
}

.admin-welcome p {
    max-width: 620px;
    margin: 0 auto;
    color: #806f68;
    font-size: 16px;
    line-height: 1.6;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.admin-menu-card {
    min-height: 150px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: inherit;
    background: #ffffff;
    border: 1px solid #eaded7;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(80, 55, 45, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease, background 0.2s ease;
}

a.admin-menu-card:hover {
    transform: translateY(-3px);
    background: #fffaf7;
    border-color: #d8bfb3;
    box-shadow: 0 10px 28px rgba(80, 55, 45, 0.13);
}

a.admin-menu-card:focus-visible {
    outline: 3px solid rgba(118, 91, 80, 0.28);
    outline-offset: 3px;
}

.admin-menu-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #f7e9e0;
    font-size: 28px;
}

.admin-menu-text {
    flex: 1;
    min-width: 0;
}

.admin-menu-text h2 {
    margin-bottom: 7px;
}

.admin-menu-text p {
    margin: 0;
    color: #806f68;
    font-size: 14px;
    line-height: 1.5;
}

div.admin-menu-card {
    opacity: 0.68;
}

.admin-menu-note {
    max-width: 700px;
    margin: 24px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    color: #806f68;
    background: #f6ebe5;
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .admin-menu {
        grid-template-columns: 1fr;
    }

    .admin-menu-card {
        min-height: 0;
        padding: 17px;
    }
}

@media (max-width: 430px) {
    .admin-menu-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .admin-menu-arrow {
        font-size: 21px;
    }
}

.admin-add-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 15px;
}

.product-placeholder {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #f7eee9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#product-list .product-card {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

#product-list .product-placeholder {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

#product-list .product-content {
    box-sizing: border-box;
}

#product-list .product-card {
    border: 1px solid #e8d8cf;
    border-radius: 18px;
    background: #ffffff;
}

#product-list .product-placeholder {
    height: 440px;
    padding: 8px;
    box-sizing: border-box;
    background: #fff8f4;
}

.product-clickable-photo {
    cursor: zoom-in;
}

#photo-viewer {
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(35, 28, 25, 0.86);
}

#photo-viewer.photo-viewer-open {
    display: flex;
}

#photo-viewer-image {
    display: block;
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
}

#photo-viewer-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

body.photo-viewer-body-lock {
    overflow: hidden;
}

#product-list .product-thumbnails {
    overflow-x: auto;
}

#product-list .product-thumbnail:focus-visible {
    outline: 2px solid #796158;
    outline-offset: 2px;
}

#product-list .product-card {
    width: 100%;
    max-width: 380px;
    min-width: 0;
    overflow: hidden;
}

#product-list .product-thumbnails {
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 14px;
    background: #fff8f4;
    border-bottom: 1px solid #e8d8cf;
}

#product-list .product-thumbnail {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

#product-list .product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

#product-list .product-thumbnail[aria-pressed="true"] {
    border-color: #796158;
}

#product-list .product-content {
    min-width: 0;
    padding: 16px;
}

#product-list .product-thumbnails {
    display: none;
}

#product-list .product-placeholder, #product-list .product-placeholder:has(img) {
    width: 100%;
    height: 390px;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff8f4;
}

#product-list .product-card {
    display: flex;
    flex-direction: column;
}

#product-list .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#product-list .product-content > .order-button {
    margin-top: auto;
}

#product-list .product-content {
    align-items: flex-start;
}

#product-list .product-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: max-content;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    background: #e8f3e7;
}

#product-list .product-status-unavailable {
    background: #f5e7e7;
}

#product-list .product-placeholder:has(img) {
    width: 100%;
    height: auto !important;
    min-height: 0;
    padding: 6px !important;
    display: block;
    box-sizing: border-box;
    background: #fff8f4;
}

#product-list .product-placeholder img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    max-height: none;
    object-fit: contain !important;
    border-radius: 10px;
}

#photo-viewer {
    position: fixed;
    inset: 0;
}

#photo-viewer .photo-viewer-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    z-index: 10001;
}

#photo-viewer-prev {
    left: 20px;
}

#photo-viewer-next {
    right: 20px;
}

#photo-viewer-counter {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    z-index: 10001;
}

#photo-viewer .photo-viewer-arrow:hover, #photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.admin-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e8d8cf;
    border-radius: 12px;
    background: #fffaf7;
}

.admin-photo-card > img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.admin-photo-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.admin-photo-icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e8d8cf;
    border-radius: 10px;
    background: #ffffff;
    color: #796158;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.admin-photo-icon-button:hover {
    background: #f7eee9;
}

.admin-photo-main-star {
    color: #b88735;
}

.admin-photo-delete-button {
    color: #a34d4d;
}

.admin-photo-icon-button:disabled {
    opacity: 0.5;
    cursor: default;
}

#product-list .product-video-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: auto;
    min-height: 36px;
    margin: 12px 0;
    padding: 8px 14px;
    border: 1px solid #e8d8cf;
    border-radius: 10px;
    background: #fff8f4;
    color: #796158;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

#product-list .product-video-button:hover {
    background: #f3e8e1;
}

#video-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10010 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(35, 28, 25, 0.88);
}

#video-viewer.video-viewer-open {
    display: flex !important;
}

#video-viewer .video-viewer-content {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff8f4;
}

#video-viewer #video-viewer-player {
    display: block;
    width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    background: #000000;
}

#video-viewer #video-viewer-close {
    position: absolute;
    top: -15px;
    right: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #796158;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

#product-list .product-delivery-section {
    width: 100%;
    margin: 14px 0;
}

#product-list .product-delivery-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #5f4941;
}

#product-list .product-delivery-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#product-list .product-delivery-option {
    flex: 1 1 120px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e8d8cf;
    border-radius: 10px;
    background: #fffaf7;
    color: #796158;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

#product-list .product-delivery-option-selected {
    border-color: #796158;
    background: #f3e8e1;
    font-weight: 600;
}

#product-list .product-delivery-message {
    margin: 7px 0 0;
    font-size: 12px;
    color: #8b7770;
}

#product-list .product-delivery-message-error {
    color: #b54747;
    font-weight: 600;
}

#product-list .product-cdek-city {
    width: 100%;
    margin-top: 12px;
}

#product-list .product-cdek-city[hidden] {
    display: none !important;
}

#product-list .product-cdek-city label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #5f4941;
}

#product-list .product-cdek-city input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid #e8d8cf;
    border-radius: 10px;
    background: #ffffff;
    color: #5f4941;
    font: inherit;
    font-size: 14px;
}

#product-list .product-cdek-city, #product-list .product-cdek-point {
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
}

#product-list .product-cdek-city label, #product-list .product-cdek-point label {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #5f4941;
}

#product-list .product-cdek-city input, #product-list .product-cdek-point select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px solid #e5cec2;
    border-radius: 11px;
    background-color: #ffffff;
    color: #493a35;
    font: inherit;
    font-size: 14px;
    line-height: normal;
}

#product-list .product-cdek-point select:disabled {
    background-color: #f8f3f0;
    color: #8f7b71;
    opacity: 1;
    cursor: not-allowed;
}

#product-list .product-cdek-city input:focus, #product-list .product-cdek-point select:focus {
    outline: 2px solid #b99480;
    outline-offset: 2px;
}

#product-list .product-delivery-calculate {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid #795f53;
    border-radius: 12px;
    background-color: #795f53;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#product-list .product-delivery-calculate:hover {
    background-color: #654d43;
    border-color: #654d43;
}

#product-list .product-delivery-calculate:focus-visible {
    outline: 2px solid #b99480;
    outline-offset: 3px;
}

#product-list .product-cdek-city[hidden], #product-list .product-cdek-point[hidden], #product-list .product-delivery-calculate[hidden], #product-list .product-order-total[hidden] {
    display: none !important;
}

#product-list .product-delivery-message {
    margin-top: 12px;
    line-height: 1.5;
}

#product-list .product-order-total {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 17px 16px;
    border: 1px solid #e5d5cc;
    border-radius: 14px;
    background: #fffaf7;
    box-shadow: 0 3px 12px rgba(83, 58, 47, 0.04);
}

#product-list .product-order-total::before {
    content: "Стоимость заказа";
    display: block;
    margin-bottom: 15px;
    color: #49372f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

#product-list .product-order-total p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    color: #66534a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

#product-list .product-order-total .product-order-total-final {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 4px 0 0 !important;
    padding-top: 14px;
    border-top: 1px solid #e7d8cf;
    color: #49372f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

#product-list .product-order-total[hidden] {
    display: none !important;
}

.custom-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 18px 55px;
    box-sizing: border-box;
}

.custom-page .custom-hero {
    max-width: 620px;
    margin: 22px auto 36px;
    text-align: center;
}

.custom-hero-icon {
    font-size: 35px;
    margin-bottom: 12px;
}

.custom-eyebrow {
    margin: 0 0 10px;
    color: #9e7866;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.custom-hero h1 {
    margin: 0 0 14px;
    color: #49372f;
    font-size: clamp(25px, 5vw, 36px);
    line-height: 1.2;
}

.custom-hero > p:last-child {
    max-width: 480px;
    margin: 0 auto;
    color: #79665c;
    font-size: 15px;
    line-height: 1.7;
}

.custom-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.custom-step {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #f5e9e1;
    color: #806557;
    font-weight: 700;
}

.custom-section-heading h2 {
    margin: 0 0 6px;
    font-size: 21px;
    color: #49372f;
}

.custom-section-heading p {
    margin: 0;
    color: #8b776c;
    font-size: 13px;
    line-height: 1.5;
}

.custom-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.custom-option-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #ead8ce;
    border-radius: 19px;
    background: #ffffff;
    color: #49372f;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 22px rgba(83, 58, 47, 0.05);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-option-card:hover {
    border-color: #b89483;
    box-shadow: 0 8px 25px rgba(83, 58, 47, 0.10);
}

.custom-option-card:focus-visible {
    outline: 3px solid #b89483;
    outline-offset: 3px;
}

.custom-option-card.custom-option-selected {
    border: 2px solid #806557;
    padding: 21px;
    background: #fffaf7;
}

.custom-option-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.custom-option-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: #f7ebe3;
    font-size: 23px;
}

.custom-option-check {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid #e0c9bc;
    border-radius: 50%;
    color: transparent;
}

.custom-option-selected .custom-option-check {
    border-color: #806557;
    background: #806557;
    color: #ffffff;
}

.custom-option-name {
    display: block;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
}

.custom-option-kind {
    display: block;
    margin-bottom: 12px;
    color: #a07965;
    font-size: 13px;
    font-weight: 700;
}

.custom-option-description {
    display: block;
    min-height: 62px;
    margin-bottom: 17px;
    color: #78665d;
    font-size: 13px;
    line-height: 1.6;
}

.custom-option-details {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    color: #66534a;
    font-size: 12px;
    line-height: 1.5;
}

.custom-option-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #f0e3dc;
}

.custom-option-bottom strong {
    font-size: 23px;
    color: #49372f;
}

.custom-option-bottom > span {
    color: #806557;
    font-size: 12px;
    font-weight: 700;
}

.custom-selection {
    max-width: 650px;
    margin: 28px auto;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #dfc9bd;
    border-radius: 19px;
    background: #fffaf7;
    box-shadow: 0 5px 22px rgba(83, 58, 47, 0.05);
}

.custom-selection[hidden] {
    display: none !important;
}

.custom-selection-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-selection-heading > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #806557;
    color: #ffffff;
}

.custom-selection-heading h2 {
    margin: 0;
    font-size: 19px;
}

.custom-selected-name {
    margin: 18px 0 8px;
    font-weight: 700;
}

.custom-selected-details, .custom-selection-note {
    color: #78665d;
    font-size: 13px;
    line-height: 1.6;
}

.custom-selection-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 19px 0;
    padding-top: 16px;
    border-top: 1px solid #e8d5c9;
}

.custom-selection-price span {
    color: #78665d;
    font-size: 13px;
}

.custom-selection-price strong {
    color: #49372f;
    font-size: 23px;
    white-space: nowrap;
}

.custom-selection .order-button {
    width: 100%;
    margin-top: 15px;
}

.custom-order-coming {
    margin: 11px 0 0;
    color: #8b776c;
    font-size: 12px;
    text-align: center;
}

.custom-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
}

.custom-info-card {
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #ead8ce;
    border-radius: 17px;
    background: #ffffff;
}

.custom-info-icon {
    font-size: 24px;
}

.custom-info-card h3 {
    margin: 12px 0;
    color: #49372f;
    font-size: 16px;
}

.custom-info-card p {
    margin: 0 0 10px;
    color: #78665d;
    font-size: 12px;
    line-height: 1.7;
}

.custom-info-card p:last-child {
    margin-bottom: 0;
}

.custom-cdek-note {
    color: #9e7866 !important;
}

@media (max-width: 680px) {
    .custom-page {
        padding: 18px 14px 42px;
    }

    .custom-hero {
        margin-bottom: 28px;
    }

    .custom-options-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .custom-option-card {
        padding: 19px;
    }

    .custom-option-card.custom-option-selected {
        padding: 18px;
    }

    .custom-option-description {
        min-height: 0;
    }

    .custom-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .custom-selection {
        padding: 20px;
    }

}

.custom-checkout-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 55px;
    box-sizing: border-box;
}

.custom-checkout-hero {
    margin: 22px auto 28px;
    text-align: center;
}

.custom-checkout-hero h1 {
    margin: 8px 0 12px;
    color: #49372f;
    font-size: clamp(25px, 5vw, 32px);
}

.custom-checkout-hero p {
    max-width: 480px;
    margin: 0 auto;
    color: #79665c;
    font-size: 14px;
    line-height: 1.6;
}

.custom-checkout-card {
    margin-bottom: 18px;
    padding: 25px;
    border: 1px solid #ead8ce;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 5px 22px rgba(83, 58, 47, 0.05);
}

.custom-checkout-card h2 {
    margin: 0 0 20px;
    color: #49372f;
    font-size: 19px;
}

.custom-checkout-album-name {
    margin-bottom: 20px;
    color: #806557;
    font-size: 16px;
    font-weight: 700;
}

.custom-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    margin: 0 0 12px;
    color: #78665d;
    font-size: 13px;
}

.custom-checkout-summary-row strong {
    color: #49372f;
    font-size: 16px;
    white-space: nowrap;
}

.custom-checkout-note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eee0d8;
    color: #8b776c;
    font-size: 12px;
    line-height: 1.6;
}

.custom-checkout-delivery {
    display: grid;
    gap: 10px;
}

.custom-checkout-delivery-option {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #d7bcad;
    border-radius: 12px;
    background: #fffaf7;
    color: #49372f;
}

.custom-checkout-delivery-option strong {
    font-size: 14px;
}

.custom-checkout-delivery-option span {
    color: #79665c;
    font-size: 12px;
    line-height: 1.5;
}

.custom-checkout-delivery-disabled {
    border-color: #e9e0db;
    background: #f8f5f3;
    opacity: 0.7;
}

.custom-checkout-agreement {
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background: #fffaf7;
}

.custom-checkout-agreement p {
    margin: 0 0 10px;
    color: #78665d;
    font-size: 12px;
    line-height: 1.6;
}

.custom-checkout-agreement p:last-child {
    margin-bottom: 0;
}

.custom-checkout-message {
    margin: 12px 0 0;
    color: #8b776c;
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .custom-checkout-page {
        padding: 18px 14px 42px;
    }

    .custom-checkout-card {
        padding: 19px;
    }

    .custom-checkout-summary-row {
        align-items: flex-start;
    }

    .custom-checkout-summary-row strong {
        text-align: right;
    }

}

.custom-checkout-album-card {
    text-align: left;
}

.custom-checkout-album-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.custom-checkout-album-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #f7ebe3;
    font-size: 19px;
}

.custom-checkout-album-heading h2 {
    margin: 0;
    font-size: 18px;
}

.custom-checkout-album-card .custom-checkout-summary {
    display: grid;
    gap: 0;
    border: 1px solid #ead8ce;
    border-radius: 12px;
    background: #fffaf7;
}

.custom-checkout-album-card .custom-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: #78665d;
}

.custom-checkout-album-card .custom-checkout-summary-row + .custom-checkout-summary-row {
    border-top: 1px solid #ead8ce;
}

.custom-checkout-album-card .custom-checkout-summary-row strong {
    color: #49372f;
    font-weight: 700;
    text-align: right;
    white-space: normal;
}

.custom-checkout-photo-info {
    margin-top: 15px;
    padding: 14px 16px;
    border: 1px solid #e6d7ce;
    border-radius: 12px;
    background: #f8f1eb;
    color: #66534a;
    font-size: 13px;
    line-height: 1.7;
}

.custom-checkout-photo-info[hidden] {
    display: none !important;
}

.custom-checkout-timing {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ead8ce;
}

.custom-checkout-timing > span {
    display: block;
    margin-bottom: 8px;
    color: #49372f;
    font-size: 13px;
    font-weight: 700;
}

.custom-checkout-timing p {
    margin: 0;
    color: #78665d;
    font-size: 12px;
    line-height: 1.7;
}

.custom-checkout-album-card .custom-checkout-album-name {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    color: #49372f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.custom-checkout-album-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#custom-checkout-photo-info[hidden], #custom-checkout-photo-info:empty {
    display: none !important;
}

.custom-checkout-album-card .custom-checkout-album-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #ead8ce;
    border-radius: 13px;
    background: #fffaf7;
}

.custom-checkout-heading-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.custom-checkout-heading-text h2 {
    margin: 0 0 4px;
    color: #8b776c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.custom-checkout-album-card .custom-checkout-heading-text .custom-checkout-album-name {
    display: block;
    width: auto;
    padding: 0;
}

.custom-checkout-album-card .custom-checkout-heading-text h2 {
    margin: 0 0 5px;
    color: #49372f;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.custom-checkout-album-card .custom-checkout-heading-text .custom-checkout-album-name {
    margin: 0;
    color: #806557;
    font-weight: 600;
}

.custom-checkout-album-card .custom-checkout-heading-text .custom-checkout-album-name {
    font-size: 16px;
    line-height: 1.5;
}

.custom-checkout-album-card .custom-checkout-summary-row {
    padding: 15px 0;
    font-size: 15px;
    line-height: 1.5;
}

.custom-checkout-album-card .custom-checkout-summary-row strong {
    font-size: 17px;
    line-height: 1.4;
}

.custom-checkout-album-card .custom-checkout-photo-info {
    font-size: 15px;
    line-height: 1.6;
}

.custom-checkout-album-card .custom-checkout-summary .custom-checkout-photo-info {
    font-size: 15px;
    line-height: 1.6;
}

.custom-checkout-album-card .custom-checkout-timing > span {
    font-size: 15px;
    line-height: 1.5;
}

.custom-checkout-album-card .custom-checkout-timing p {
    font-size: 14px;
    line-height: 1.6;
}

.custom-checkout-album-card .custom-checkout-summary {
    padding: 6px 16px;
}

.custom-checkout-album-card .custom-checkout-timing {
    padding-top: 17px;
    margin-top: 18px;
}

.custom-ready-date-block {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #e5c9aa;
    border-radius: 14px;
    background: #fff8ee;
}

.custom-ready-date-label {
    margin-bottom: 8px;
    font-weight: 700;
    color: #6c5145;
}

#custom-ready-date-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #765649;
}

#custom-ready-date-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #77675f;
}

#admin-custom-orders-list {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

#admin-custom-orders-list > article {
    box-sizing: border-box;
    height: 100%;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

#admin-custom-orders-list > article > div:last-child {
    margin-top: auto !important;
}

@media (max-width: 700px) {
    #admin-custom-orders-list {
        grid-template-columns: 1fr;
    }

}

body:has(#admin-custom-orders-list) main {
    width: min(96%, 1200px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#admin-custom-orders-list {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#admin-custom-orders-list > article {
    max-width: none;
    min-width: 0;
    width: 100%;
}

@media (max-width: 700px) {
    #admin-custom-orders-list {
        grid-template-columns: 1fr;
    }

}

.custom-order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.custom-order-card-header h2 {
    margin: 0;
    min-width: 0;
}

.custom-order-cancel-button {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f5;
    border: 1px solid #e5c9aa;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
}

.custom-order-cancel-button:hover {
    background: #fbe8e3;
}

.custom-order-cancel-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.admin-order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.admin-order-tab {
    padding: 11px 18px;
    border: 1px solid #e5c9aa;
    border-radius: 12px;
    background: #fffaf5;
    color: #765649;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.admin-order-tab-active {
    background: #765649;
    border-color: #765649;
    color: #ffffff;
}

#admin-custom-orders-archive {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

#admin-custom-orders-archive > article {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: none;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

#admin-current-orders-panel[hidden], #admin-archive-orders-panel[hidden] {
    display: none;
}

@media (max-width: 700px) {
    #admin-custom-orders-archive {
        grid-template-columns: 1fr;
    }

}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ==========================================================
   АЛЬБОМЫ НА ЗАКАЗ — РОВНЫЕ КАРТОЧКИ ВАРИАНТОВ
   Карточки в одном ряду одинаковой высоты; цена и выбор внизу.
   ========================================================== */
.custom-options-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.custom-option-card {
    height: 100%;
    min-height: 0;
}

.custom-option-description {
    min-height: 0;
}

.custom-option-details {
    margin-bottom: auto;
    padding-bottom: 16px;
}

.custom-option-bottom {
    margin-top: 0;
}

/* Умеренная ширина экрана — компактные четыре карточки. */
@media (min-width: 720px) and (max-width: 1000px) {
    .custom-options-grid { gap: 9px; }
    .custom-option-card { padding: 14px; }
    .custom-option-card.custom-option-selected { padding: 13px; }
    .custom-option-name { font-size: 16px; }
    .custom-option-description { font-size: 12px; }
    .custom-option-details { font-size: 11px; }
    .custom-option-bottom { gap: 4px; }
    .custom-option-bottom strong { font-size: 18px; }
    .custom-option-bottom > span { font-size: 11px; }
}

/* Узкий планшет — две карточки; телефон — одна. */
@media (min-width: 681px) and (max-width: 719px) {
    .custom-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .custom-options-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ГЛАВНАЯ СТРАНИЦА — РОМАНТИЧНАЯ АВТОРСКАЯ ВИТРИНА
   ============================================================ */


/* 1. ШИРИНА ГЛАВНОЙ СТРАНИЦЫ */

main:has(> section.home-hero) {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 22px 55px;
}


/* 2. ЗАГОЛОВОК НАД КАРУСЕЛЬЮ */

main > section.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    gap: 29px;

    padding: 10px 0 35px;
    text-align: center;
}

main > section.home-hero > .home-hero-copy {
    width: 100%;
    max-width: 900px;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
    font-size: inherit;
}


/* Небольшая надпись над заголовком */

main > section.home-hero .home-hero-eyebrow {
    display: block;
    margin: 0 0 17px;

    color: #ad8879;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;

    letter-spacing: 0.09em;
}


/* Главный романтичный заголовок */

main > section.home-hero .home-hero-copy h1 {
    max-width: 860px;
    margin: 0 auto 19px;

    color: #79574d;

    font-family:
        "Palatino Linotype",
        "Book Antiqua",
        Georgia,
        serif;

    font-size: clamp(36px, 4.8vw, 58px);
    font-style: italic;
    font-weight: 400;

    line-height: 1.23;
    letter-spacing: -0.025em;

    text-wrap: balance;
}


/* Описание под заголовком */

main > section.home-hero .home-hero-description {
    max-width: 610px;
    margin: 0 auto;

    color: #90796e;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;

    line-height: 1.75;
}


/* Подпись мастера */

main > section.home-hero .home-hero-signature {
    margin: 15px 0 0;

    color: #ae8d80;

    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
}


/* Убираем дублирующие кнопки над основным меню */

.home-hero-actions {
    display: none;
}


/* ============================================================
   ГЛАВНАЯ — МЯГКАЯ ТИПОГРАФИКА И КРУПНЫЕ ФОТО
   ============================================================ */

/* Упорядочиваем текст над каруселью */

main > section.home-hero {
    gap: 30px;
    padding-top: 18px;
}

main > section.home-hero > .home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 860px;

    margin: 0 auto;
    text-align: center;
}

/* Небольшая надпись над заголовком */

main > section.home-hero .home-hero-eyebrow {
    margin: 0 0 16px;

    color: #b28d80;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;

    letter-spacing: 0.13em;
}

/* Главный заголовок — мягкий курсив без острых засечек */

main > section.home-hero .home-hero-copy h1 {
    max-width: 820px;

    margin: 0 0 18px;

    color: #805e55;

    font-family:
        "Segoe UI",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(32px, 4.4vw, 49px);
    font-style: italic;
    font-weight: 400;

    line-height: 1.28;
    letter-spacing: -0.025em;

    text-wrap: balance;
}

/* Описание — лёгкое и хорошо читаемое */

main > section.home-hero .home-hero-description {
    max-width: 590px;

    margin: 0;

    color: #937d74;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;

    line-height: 1.7;
}

/* Подпись отделяем небольшим отступом */

main > section.home-hero .home-hero-signature {
    margin: 17px 0 0;

    color: #b48c7f;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}

/* Карусель остаётся лёгкой, без массивной рамки */

main > section.home-hero > .home-carousel {
    width: 100%;
    max-width: 1120px;

    padding: 0;
    border: none;
    border-radius: 16px;

    background: transparent;
    box-shadow: none;
}

/* Увеличиваем высоту окна: квадратные фотографии
   теперь смогут занимать гораздо больше ширины */

.home-carousel-viewport {
    width: 100%;
    aspect-ratio: 5 / 4;

    border-radius: 14px;
    background: #faf5f1;
}

/* Сам альбом остаётся целиком в кадре */

.home-carousel-slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #faf5f1;
}

/* На телефоне фотографии займут почти всю ширину */

@media (max-width: 600px) {

    main > section.home-hero {
        gap: 22px;
        padding-top: 8px;
    }

    main > section.home-hero .home-hero-copy h1 {
        font-size: clamp(29px, 7vw, 36px);
        line-height: 1.3;
    }

    main > section.home-hero .home-hero-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .home-carousel-viewport {
        aspect-ratio: 1 / 1;
    }
}
/* ============================================================
   ИСПРАВЛЕНИЕ КАРУСЕЛИ — ПОКАЗЫВАЕМ ОДНО ФОТО ЗА РАЗ
   ============================================================ */

/* Единое окно для всех фотографий */

.home-carousel-viewport {
    position: relative;
    isolation: isolate;

    width: 100%;
    aspect-ratio: 5 / 4;

    overflow: hidden;
    border-radius: 14px;

    background: #faf5f1;
}

/* Все слайды занимают одно место, а не стоят друг под другом */

.home-carousel-slide {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

/* Показываем только текущую фотографию */

.home-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* Фото целиком, без обрезки */

.home-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
    background: #faf5f1;
}

/* Стрелки находятся поверх фотографии */

.home-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    padding: 0;

    transform: translateY(-50%);

    border: 1px solid #eaded7;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.88);
    color: #947267;

    font-family: Arial, sans-serif;
    font-size: 26px;
    line-height: 1;

    cursor: pointer;
}

.home-carousel-prev {
    left: 12px;
}

.home-carousel-next {
    right: 12px;
}

/* Подпись и точки под фотографией */

.home-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 10px;
    padding: 12px 8px 4px;
}

.home-carousel-caption {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #a08375;
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
}

.home-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: none;
    border-radius: 50%;
    background: #ddc9be;

    cursor: pointer;
}

.home-carousel-dot.is-active {
    width: 23px;
    border-radius: 999px;
    background: #ab8173;
}

/* На телефоне сохраняем квадратное окно */

@media (max-width: 600px) {
    .home-carousel-viewport {
        aspect-ratio: 1 / 1;
    }

    .home-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 23px;
    }

    .home-carousel-prev {
        left: 7px;
    }

    .home-carousel-next {
        right: 7px;
    }

    .home-carousel-footer {
        justify-content: center;
        text-align: center;
    }
}
/* ============================================================
   КАРУСЕЛЬ — АККУРАТНАЯ ПОДПИСЬ И МАЛЕНЬКИЕ СТРЕЛКИ
   ============================================================ */

/* Подпись и точки выравниваем относительно фотографии */

.home-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;

    width: 100%;
    min-height: 42px;

    margin: 0;
    padding: 10px 12px 4px;
}

/* Сердечко и текст держим рядом */

.home-carousel-caption {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-width: 0;
    margin: 0;

    color: #9e7d70;
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
}

.home-carousel-caption-icon {
    flex: 0 0 auto;
    font-size: 17px;
}

/* Точки остаются справа */

.home-carousel-dots {
    flex: 0 0 auto;
    margin-left: 12px;
}

/* Маленькие полупрозрачные стрелки поверх фотографии */

.home-carousel-arrow {
    width: 36px;
    height: 36px;

    padding: 0;
    border: 1px solid rgba(230, 211, 201, 0.8);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.78);
    color: #8c6c60;

    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;

    box-shadow: 0 2px 8px rgba(80, 55, 45, 0.06);
}

.home-carousel-prev {
    left: 8px;
}

.home-carousel-next {
    right: 8px;
}

/* На телефоне подпись остаётся читаемой */

@media (max-width: 600px) {

    .home-carousel-footer {
        justify-content: space-between;
        gap: 8px;
        padding: 10px 4px 4px;
    }

    .home-carousel-caption {
        font-size: 11px;
    }

    .home-carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 23px;
    }

    .home-carousel-prev {
        left: 5px;
    }

    .home-carousel-next {
        right: 5px;
    }
}
/* ============================================================
   ГЛАВНАЯ — МЕНЮ ПО ШИРИНЕ ФОТОГРАФИИ
   ============================================================ */

/* Четыре кнопки меню располагаются по центру
   и не растягиваются шире области фотографии. */

main:has(> section.home-hero) > section:nth-child(2) {
    width: 100%;
    max-width: 690px;
    margin: 0 auto;
}

/* Каждая кнопка занимает всю ширину меню. */

main:has(> section.home-hero) > section:nth-child(2) > a {
    width: 100%;
}
/* ============================================================
   ГЛАВНАЯ — МЕНЮ ПО ШИРИНЕ ФОТОГРАФИИ
   НЕЖНЫЕ БЕЖЕВО-ПУДРОВЫЕ КАРТОЧКИ
   ============================================================ */

/* Общая ширина фотографии и меню */

main:has(> section.home-hero) {
    --home-photo-width: 1000px;
}

/* Карусель и меню имеют одинаковую ширину */

main > section.home-hero > .home-carousel {
    width: 100%;
    max-width: var(--home-photo-width);
    margin-left: auto;
    margin-right: auto;
}

main:has(> section.home-hero) > section:nth-child(2) {
    width: 100%;
    max-width: var(--home-photo-width);

    margin: 12px auto 0;
    gap: 14px;
}

/* Нежные карточки меню */

main:has(> section.home-hero) > section:nth-child(2) > a {
    width: 100%;
    min-height: 80px;

    padding: 17px 22px;

    background: linear-gradient(
        120deg,
        #f7ebe7 0%,
        #fbf3ef 55%,
        #f4e6e0 100%
    );

    border: 1px solid #e9d6cf;
    border-radius: 18px;

    box-shadow: 0 3px 12px rgba(118, 82, 72, 0.035);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* При наведении — чуть более насыщенный пудровый оттенок */

main:has(> section.home-hero) > section:nth-child(2) > a:hover {
    background: linear-gradient(
        120deg,
        #f3e2db 0%,
        #f9ede7 55%,
        #f0dcd5 100%
    );

    border-color: #dec3b9;

    box-shadow: 0 5px 16px rgba(118, 82, 72, 0.07);

    transform: translateY(-2px);
}

/* Иконки в мягких пудровых квадратах */

main:has(> section.home-hero)
> section:nth-child(2) > a > div:first-child {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 13px;
}

/* Названия разделов */

main:has(> section.home-hero)
> section:nth-child(2) > a h2 {
    color: #74564f;
}

/* Описания разделов */

main:has(> section.home-hero)
> section:nth-child(2) > a p {
    color: #9b7f75;
}

/* Стрелки перехода */

main:has(> section.home-hero)
> section:nth-child(2) > a > div:last-child {
    color: #b38d80;
}

/* На телефоне обе области занимают всю доступную ширину */

@media (max-width: 600px) {

    main:has(> section.home-hero) {
        --home-photo-width: 100%;
    }

    main:has(> section.home-hero)
    > section:nth-child(2) {
        gap: 11px;
    }

    main:has(> section.home-hero)
    > section:nth-child(2) > a {
        min-height: 70px;
        padding: 14px 15px;
        border-radius: 15px;
    }
}
/* ============================================================
   ГЛАВНАЯ — ФИНАЛЬНЫЕ ШТРИХИ
   ============================================================ */


/* 1. Нежная подложка под текстом */

main > section.home-hero > .home-hero-copy {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 850px;

    padding: 24px 22px 22px;
    margin: 0 auto;

    text-align: center;
}

main > section.home-hero > .home-hero-copy::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    border-radius: 28px;

    background: radial-gradient(
        ellipse at center,
        rgba(255, 251, 248, 0.94) 0%,
        rgba(255, 251, 248, 0.72) 55%,
        rgba(255, 251, 248, 0) 100%
    );

    pointer-events: none;
}


/* 2. Читаемый романтичный заголовок */

main > section.home-hero .home-hero-copy h1 {
    max-width: 760px;

    margin: 0 auto 18px;

    color: #79584f;

    font-family:
        "Segoe UI",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(32px, 4.4vw, 49px);
    font-style: italic;
    font-weight: 400;

    line-height: 1.25;
    letter-spacing: -0.02em;
}


/* Описание под заголовком */

main > section.home-hero .home-hero-description {
    max-width: 620px;

    margin: 0 auto;

    color: #765d54;

    font-size: 16px;
    line-height: 1.7;
}


/* Подпись мастера */

main > section.home-hero .home-hero-signature {
    margin: 16px 0 0;

    color: #987367;

    font-size: 14px;
    line-height: 1.5;
}


/* 3. Убираем белые поля вокруг фотографии */

/* Карусель без белой внешней подложки */

main > section.home-hero > .home-carousel {
    width: 100%;

    padding: 0;
    border: none;

    background: transparent;
    box-shadow: none;
}


/* Нейтральный фон окна вместо белых полос */

.home-carousel-viewport {
    background: transparent;
}


/* Фотографии остаются целиком, без обрезки */

.home-carousel-slide img {
    object-fit: contain;
    object-position: center;

    background: transparent;
}


/* 4. Телефон */

@media (max-width: 600px) {

    main > section.home-hero > .home-hero-copy {
        padding: 15px 10px 18px;
    }

    main > section.home-hero .home-hero-copy h1 {
        font-size: clamp(29px, 7vw, 36px);
        line-height: 1.27;
    }

    main > section.home-hero .home-hero-description {
        font-size: 14px;
        line-height: 1.65;
    }

    main > section.home-hero .home-hero-signature {
        font-size: 13px;
    }
}
/* ============================================================
   ГЛАВНАЯ — ОДИН НЕЖНЫЙ ФОН БЕЗ ПОВТОРЕНИЙ
   ============================================================ */

body.home-page {
    background-color: #fcf6f2;

    background-image: url("/images/retro-lace-bg.png");

    /* Одна картинка, а не повторяющиеся плитки */
    background-repeat: no-repeat;

    /* Сухоцветы и кружево остаются по краям */
    background-position: center top;

    /* Фон занимает ширину экрана */
    background-size: 100% auto;

    /* Ниже изображения продолжается спокойный кремовый фон */
    background-attachment: scroll;
}

/* Достаточно места для большой карусели и четырёх кнопок */

body.home-page main {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
    padding: 32px 28px 48px;
}

/* На телефоне не сжимаем содержимое лишними отступами */

@media (max-width: 600px) {

    body.home-page {
        background-size: auto 100vh;
        background-position: center top;
    }

    body.home-page main {
        padding: 20px 12px 36px;
    }
}
/* ============================================================
   ГЛАВНАЯ — ФОН НА ВЕСЬ ЭКРАН ТЕЛЕФОНА
   ============================================================ */

@media (max-width: 600px) {

    body.home-page {
        min-height: 100vh;

        /* Фон заполняет весь экран */
        background-size: cover;

        /* Центр изображения остаётся по центру экрана */
        background-position: center top;

        /* Не размножаем рисунок плитками */
        background-repeat: no-repeat;

        background-attachment: scroll;
    }
}
/* Главная — фоновое изображение на всю высоту страницы */

body.home-page {
    min-height: 100vh;

    background-color: #fcf6f2;
    background-image: url("/images/retro-lace-bg.png");

    background-repeat: no-repeat;
    background-position: center top;

    /* Картинка покрывает область страницы */
    background-size: cover;

    /* Фон остаётся на месте при прокрутке страницы */
    background-attachment: fixed;
}

/* ============================================================
   ГЛАВНАЯ — КОМПАКТНОЕ МЕНЮ 2 × 2
   ============================================================ */

/*
   Эти правила находятся в конце файла и используют отдельные
   названия классов. Поэтому старые стили длинных кнопок больше
   не влияют на новое компактное меню.
*/

body.home-page main > .home-menu-grid {
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px auto 0;
}

body.home-page main > .home-menu-grid > .home-menu-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 18px 14px;

    color: #6f5048;
    text-align: center;
    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            rgba(255, 252, 249, 0.96) 0%,
            rgba(247, 232, 226, 0.96) 58%,
            rgba(242, 220, 214, 0.95) 100%
        );

    border: 1px solid rgba(218, 189, 179, 0.88);
    border-radius: 23px 11px 23px 11px;
    box-shadow:
        0 8px 22px rgba(107, 76, 66, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Едва заметный цветочный штрих внутри каждой карточки. */

body.home-page main > .home-menu-grid > .home-menu-card::after {
    content: "✿";
    position: absolute;
    right: 11px;
    bottom: 2px;
    z-index: -1;
    color: rgba(183, 139, 126, 0.10);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    line-height: 1;
    transform: rotate(-12deg);
}

body.home-page main > .home-menu-grid > .home-menu-card:hover {
    transform: translateY(-3px);
    border-color: #cfaa9e;
    box-shadow:
        0 12px 28px rgba(107, 76, 66, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.home-page main > .home-menu-grid > .home-menu-card:focus-visible {
    outline: 3px solid rgba(161, 116, 103, 0.27);
    outline-offset: 3px;
}

/*
   Один общий знак вместо разных эмодзи: фигурный пудровый
   четырёхугольник с белой звездочкой.
*/

.home-menu-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;

    color: #ffffff;
    background: linear-gradient(145deg, #d5b1a5, #bd8f82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 14px 5px 14px 5px;
    box-shadow: 0 4px 11px rgba(118, 82, 72, 0.13);
    transform: rotate(45deg);
}

.home-menu-mark > span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1;
    transform: rotate(-45deg);
}

body.home-page main > .home-menu-grid > .home-menu-card h2 {
    margin: 0;
    color: #6f5048;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    body.home-page main > .home-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 10px;
    }

    body.home-page main > .home-menu-grid > .home-menu-card {
        min-height: 102px;
        gap: 11px;
        padding: 15px 8px;
        border-radius: 19px 9px 19px 9px;
    }

    .home-menu-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 12px 4px 12px 4px;
    }

    .home-menu-mark > span {
        font-size: 19px;
    }

    body.home-page main > .home-menu-grid > .home-menu-card h2 {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    body.home-page main > .home-menu-grid > .home-menu-card {
        min-height: 96px;
        padding-left: 6px;
        padding-right: 6px;
    }

    body.home-page main > .home-menu-grid > .home-menu-card h2 {
        font-size: 14px;
    }
}

/* ============================================================
   СТРАНИЦЫ «УСЛОВИЯ» И «КОНТАКТЫ»
   ============================================================ */

body.information-page {
    background:
        linear-gradient(
            rgba(252, 246, 242, 0.93),
            rgba(252, 246, 242, 0.97)
        ),
        url("/images/retro-lace-bg.png") center top / cover no-repeat;
}

.information-main {
    max-width: 760px;
}

.information-heading {
    text-align: center;
    padding: 8px 12px 25px;
}

.information-heading > div {
    margin-bottom: 10px;
    font-size: 38px;
}

.information-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: #806f68;
    line-height: 1.65;
}

.information-main > .information-card-list {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 14px;
    margin-top: 0;
}

.information-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e9d6cf;
    border-radius: 18px;
    background: rgba(255, 252, 250, 0.94);
    box-shadow: 0 5px 18px rgba(80, 55, 45, 0.06);
}

.information-card-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f4e4de;
    font-size: 25px;
}

.information-card > div:last-child {
    min-width: 0;
}

.information-card h2 {
    color: #74564f;
}

.information-card p {
    margin: 0;
    color: #765f57;
    line-height: 1.65;
}

.information-card small {
    display: block;
    margin-top: 8px;
    color: #9b7f75;
    line-height: 1.5;
}

.information-link {
    color: #79584f;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.information-card-muted {
    opacity: 0.72;
}

.information-status {
    margin: 18px 0 0;
    color: #8b6d63;
    text-align: center;
}

.information-card-accent {
    border-color: #d8b8aa;
    background: #fff8f4;
}

.information-card ul {
    margin: 9px 0 0;
    padding-left: 21px;
    color: #765f57;
    line-height: 1.65;
}

.information-card li + li {
    margin-top: 6px;
}

.information-agreement-note {
    margin: 18px 0 0;
    padding: 16px 18px;
    border-left: 4px solid #9a7465;
    border-radius: 0 12px 12px 0;
    color: #6f574f;
    background: rgba(247, 233, 224, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   СОХРАНЁННАЯ ССЫЛКА НА ПОСЛЕДНИЙ ИНДИВИДУАЛЬНЫЙ ЗАКАЗ
   ============================================================ */

.last-custom-order-card {
    max-width: 760px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    margin: 0 auto 22px;
    padding: 17px 18px;
    border: 1px solid #dec8bd;
    border-radius: 18px;
    background: rgba(255, 250, 247, 0.96);
    box-shadow: 0 5px 18px rgba(80, 55, 45, 0.06);
}

.last-custom-order-card[hidden] {
    display: none;
}

.last-custom-order-icon {
    font-size: 28px;
}

.last-custom-order-text h2 {
    margin: 0 0 5px;
    color: #74564f;
    font-size: 17px;
}

.last-custom-order-text p {
    margin: 0;
    color: #806f68;
    font-size: 13px;
    line-height: 1.5;
}

.last-custom-order-link {
    width: auto;
    min-width: 205px;
    text-align: center;
    text-decoration: none;
}

.custom-order-link-reminder {
    margin: 14px 0 0;
    color: #735548;
    font-weight: 600;
}

.custom-order-link-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.custom-order-action-link {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.custom-order-copy-button {
    padding: 12px 18px;
    border: 1px solid #d9c4b7;
    border-radius: 12px;
    color: #735548;
    background: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 650px) {
    .last-custom-order-card {
        grid-template-columns: auto 1fr;
    }

    .last-custom-order-link {
        width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {

    .information-card {
        gap: 12px;
        padding: 16px;
        border-radius: 15px;
    }

    .information-card-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .information-card p,
    .information-link {
        font-size: 14px;
    }
}


/* Recipient choice on both checkout forms */
.recipient-choice-block {
    gap: 10px;
    margin: 18px 0 22px;
    padding: 16px 18px;
    border: 1px solid #d9b9a9;
    border-radius: 14px;
    background: #fff8f4;
    box-shadow: 0 3px 12px rgba(80, 55, 45, 0.06);
}

.recipient-choice-title {
    color: #49372f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-login-field label.recipient-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cba895;
    border-radius: 11px;
    background: #ffffff;
    color: #49372f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
}

.admin-login-field label.recipient-choice input[type="checkbox"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    padding: 0;
    accent-color: #8b5e4c;
    cursor: pointer;
}

.recipient-choice:focus-within {
    outline: 3px solid rgba(139, 94, 76, 0.28);
    outline-offset: 2px;
}

.recipient-choice-hint {
    margin: 0;
    color: #705e55;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .recipient-choice-block {
        padding: 14px;
    }

    .admin-login-field label.recipient-choice {
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
        font-size: 14px;
    }

    .admin-login-field label.recipient-choice input[type="checkbox"] {
        margin-top: 1px;
    }
}


/* ============================================================
   ПРАВОВЫЕ ДОКУМЕНТЫ
   ============================================================ */

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 16px;
    max-width: 900px;
    margin: 8px auto 0;
}

.legal-footer-links a {
    color: #80675d;
    font-size: 12px;
    line-height: 1.45;
    text-underline-offset: 3px;
}

.legal-footer-links a:hover {
    color: #5f463d;
}

.legal-documents-section {
    margin: 22px 0 8px;
    padding: 20px;
    border: 1px solid #dfc9bf;
    border-radius: 18px;
    background: rgba(255, 250, 247, 0.96);
    box-shadow: 0 5px 18px rgba(80, 55, 45, 0.06);
}

.legal-documents-section h2 {
    margin: 0 0 8px;
    color: #74564f;
    text-align: center;
}

.legal-documents-section > p {
    margin: 0 0 16px;
    color: #806f68;
    text-align: center;
    line-height: 1.55;
}

.legal-documents-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.legal-document-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #d9c1b6;
    border-radius: 13px;
    background: #ffffff;
    color: #6d5147;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.legal-document-link:hover {
    border-color: #ba9382;
    background: #fff8f4;
}

.personal-data-consent {
    margin: 18px 0 10px;
    padding: 14px 15px;
    border: 1px solid #d8beb2;
    border-radius: 13px;
    background: #fffaf7;
}

.personal-data-consent label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #5f4b43;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.personal-data-consent input[type="checkbox"] {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin: 1px 0 0;
    accent-color: #8b5e4c;
    cursor: pointer;
}

.personal-data-consent a,
.legal-order-note a {
    color: #6d4d42;
    font-weight: 700;
    text-underline-offset: 2px;
}

.personal-data-consent:focus-within {
    outline: 3px solid rgba(139, 94, 76, 0.23);
    outline-offset: 2px;
}

.legal-order-note {
    margin: 0 0 16px;
    color: #806f68;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.legal-admin-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.legal-admin-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #dfc9bf;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(80, 55, 45, 0.06);
}

.legal-admin-card h2 {
    min-height: 50px;
    margin: 0 0 10px;
    color: #74564f;
    font-size: 18px;
    line-height: 1.4;
}

.legal-document-status {
    min-height: 44px;
    margin: 0 0 14px;
    color: #765f57;
    font-size: 13px;
    line-height: 1.5;
}

.legal-document-upload-form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.legal-document-upload-form .order-button {
    margin-top: auto;
}

.legal-upload-message {
    min-height: 42px;
}

.legal-preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    text-align: center;
}

.legal-admin-note {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.legal-document-main {
    max-width: 980px;
}

.legal-document-heading {
    padding-bottom: 16px;
}

.legal-document-container {
    padding: 18px;
    border: 1px solid #dfc9bf;
    border-radius: 18px;
    background: rgba(255, 252, 250, 0.97);
    box-shadow: 0 5px 18px rgba(80, 55, 45, 0.06);
}

.legal-document-container > p {
    margin: 0 0 12px;
    color: #806f68;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.legal-document-text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #443936;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
}

.legal-document-error {
    color: #9a4545 !important;
}

.legal-document-bottom-back {
    margin-top: 18px;
    margin-bottom: 0;
}

@media (max-width: 850px) {
    .legal-admin-grid {
        grid-template-columns: 1fr;
    }

    .legal-admin-card h2,
    .legal-document-status {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .legal-documents-links {
        grid-template-columns: 1fr;
    }

    .legal-document-link {
        min-height: 48px;
    }

    .legal-document-container {
        padding: 12px;
    }

    .legal-document-text {
        font-size: 14px;
        line-height: 1.6;
    }

}

.cdek-picker{padding:14px 0;display:grid;gap:12px}.cdek-picker[hidden]{display:none}.cdek-picker input,.cdek-picker select,#delivery-method{width:100%;max-width:100%;box-sizing:border-box;padding:12px;border:1px solid #d6c2b5;border-radius:9px;background:#fffaf6;color:#513e36;font:inherit}.payment-summary{background:#f7ece4;padding:14px;border-radius:12px;line-height:1.65}#order-details p,#order-message{overflow-wrap:anywhere;line-height:1.6}#order-details button,#my-orders-list a{display:block;width:100%;box-sizing:border-box;margin:12px 0}#order-details details{padding:12px 0;border-top:1px solid #e5d5c8}summary{cursor:pointer;line-height:1.6}.my-orders-link{text-align:center}

/* The HTML hidden attribute must win over component display rules. */
[hidden] { display: none !important; }

/* ============================================================
   ГЛАВНАЯ — ВИНТАЖНАЯ ТИПОГРАФИКА И ВИНЬЕТКИ HERO-БЛОКА
   Локальные правила: не влияют на карусель и другие страницы.
   ============================================================ */

body.home-page main > section.home-hero .hero-vintage {
    box-sizing: border-box;
    overflow: hidden;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__ornament {
    width: min(100%, 380px);
    margin-right: auto;
    margin-left: auto;

    color: #aa8275;
    opacity: 0.78;

    line-height: 0;
    pointer-events: none;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__ornament--top {
    margin-top: -2px;
    margin-bottom: 8px;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__ornament--bottom {
    margin-top: 13px;
    margin-bottom: -3px;
    opacity: 0.68;
    transform: rotate(180deg);
    transform-origin: center;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__ornament svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

body.home-page main > section.home-hero
.hero-vintage .hero-vintage__ornament-side,
body.home-page main > section.home-hero
.hero-vintage .hero-vintage__ornament-center {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

body.home-page main > section.home-hero
.hero-vintage .hero-vintage__ornament-side {
    stroke-width: 1.15;
}

body.home-page main > section.home-hero
.hero-vintage .hero-vintage__ornament-center {
    stroke-width: 1.05;
}

body.home-page main > section.home-hero
.hero-vintage .hero-vintage__ornament-center circle {
    fill: currentColor;
    stroke: none;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__eyebrow {
    max-width: 100%;
    margin: 0 auto 15px;

    color: #a57c70;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(11px, 1.7vw, 13px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;

    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-wrap: balance;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__title {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 18px;

    color: #765248;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(38px, 5.2vw, 56px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;

    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    text-wrap: balance;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__text {
    width: 100%;
    max-width: 610px;
    margin: 0 auto;

    color: #765e55;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.72;

    text-wrap: pretty;
}

body.home-page main > section.home-hero
.hero-vintage > .hero-vintage__signature {
    margin: 18px auto 0;

    color: #956f63;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;

    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    body.home-page main > section.home-hero .hero-vintage {
        padding: 16px 10px 18px;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__ornament {
        width: min(100%, 330px);
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__ornament--top {
        margin-bottom: 7px;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__eyebrow {
        margin-bottom: 13px;
        font-size: clamp(11px, 3.2vw, 12px);
        line-height: 1.6;
        letter-spacing: 0.12em;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__title {
        margin-bottom: 16px;
        font-size: clamp(29px, 8.1vw, 35px);
        line-height: 1.24;
        letter-spacing: -0.015em;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__text {
        font-size: 15px;
        line-height: 1.68;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__signature {
        margin-top: 17px;
        font-size: 14px;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__ornament--bottom {
        margin-top: 11px;
    }
}

@media (max-width: 340px) {
    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__title {
        font-size: 28px;
    }

    body.home-page main > section.home-hero
    .hero-vintage > .hero-vintage__text {
        font-size: 14.5px;
    }
}

/* ============================================================
   ГЛАВНАЯ — КНОПКА «МОИ ЗАКАЗЫ»
   Компактный акцент в той же кремово-пудровой гамме, что и меню.
   ============================================================ */
body.home-page > .my-orders-link {
    margin: 22px auto 30px;
    padding: 0 16px;
}

body.home-page > .my-orders-link > .home-orders-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 182px;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 24px;

    border: 1px solid rgba(218, 189, 179, 0.92);
    border-radius: 23px 11px 23px 11px;
    background: linear-gradient(
        145deg,
        rgba(255, 252, 249, 0.98) 0%,
        rgba(247, 232, 226, 0.97) 58%,
        rgba(242, 220, 214, 0.96) 100%
    );
    box-shadow:
        0 6px 18px rgba(107, 76, 66, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);

    color: #6f5048;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

body.home-page > .my-orders-link > .home-orders-button:hover {
    border-color: rgba(190, 145, 130, 0.98);
    box-shadow:
        0 8px 20px rgba(107, 76, 66, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

body.home-page > .my-orders-link > .home-orders-button:focus-visible {
    outline: 2px solid #a47d70;
    outline-offset: 3px;
}

body.home-page > .my-orders-link > .home-orders-button:active {
    transform: translateY(0);
}

@media (max-width: 360px) {
    body.home-page > .my-orders-link {
        margin-top: 18px;
        margin-bottom: 26px;
    }

    body.home-page > .my-orders-link > .home-orders-button {
        min-width: 174px;
        min-height: 46px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page > .my-orders-link > .home-orders-button {
        transition: none;
    }
}
