* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(255,255,255,0.95), transparent 30%),
        linear-gradient(135deg, #fbf6ee 0%, #f3eadc 48%, #eadcc9 100%);
    color: #35241b;
}

.page {
    min-height: 100vh;
    padding: 26px 54px 22px;
}

.top-panel {
    max-width: 1260px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.brand-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    letter-spacing: 0.12em;
    color: #3f2a20;
}

.brand-mark {
    color: #b49361;
    font-size: 18px;
}

.brand-subtitle {
    margin-top: 6px;
    margin-left: 27px;
    font-size: 13px;
    color: #8b765f;
}

.progress-wrap {
    text-align: right;
    color: #7b6856;
}

.progress-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #4b2d22;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.progress {
    width: 220px;
    height: 4px;
    background: #e1d3c1;
    border-radius: 20px;
    overflow: hidden;
}

.progress-line {
    width: 14%;
    height: 100%;
    background: #4b2d22;
}

.intro {
    max-width: 1260px;
    margin: 0 auto 22px;
}

h1 {
    max-width: 1050px;
    margin: 0 0 14px;
    font-size: 52px;
    line-height: 1.04;
    font-weight: 500;
    color: #36241b;
}

h1 span {
    display: inline-block;
    margin-top: 6px;
    font-size: 1.12em;
    color: #8a6232;
}

.subtitle {
    max-width: 850px;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #5e4e41;
}

.style-grid {
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.style-card {
    position: relative;
    overflow: visible;
    padding: 22px 20px 23px;
    border-radius: 28px;
    border: 1px solid rgba(216, 198, 174, 0.95);
    background: rgba(255, 253, 248, 0.78);
    box-shadow: 0 18px 46px rgba(69, 47, 33, 0.08);
    text-align: center;
    cursor: pointer;
    transition: 0.28s ease;
}

.style-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 28px 70px rgba(69, 47, 33, 0.15);
}

.style-grid.has-active .style-card:not(.active) {
    opacity: 0.72;
    filter: saturate(0.82);
}

.style-card.active {
    border: 2px solid #b49361;
    transform: translateY(-7px) scale(1.045);
    box-shadow:
        0 34px 80px rgba(74, 45, 34, 0.2),
        0 0 0 1px rgba(180, 147, 97, 0.18);
}

.checkmark {
    position: absolute;
    z-index: 10;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c2a06d, #9d7a45);
    color: #fffaf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.7);
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(180, 147, 97, 0.35);
}

.style-card.active .checkmark {
    opacity: 1;
    transform: scale(1);
}

.book-preview {
    width: 96%;
    height: 282px;
    margin: 0 auto 18px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow:
        18px 24px 44px rgba(46, 30, 22, 0.29),
        inset 0 0 0 1px rgba(255,255,255,0.10);
}

/* Р›СЊРЅСЏРЅР°СЏ С‚РµРєСЃС‚СѓСЂР° */
.book-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 0px,
            rgba(255,255,255,0.018) 1px,
            rgba(0,0,0,0.018) 2px,
            transparent 5px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.012) 0px,
            rgba(255,255,255,0.012) 1px,
            rgba(0,0,0,0.012) 2px,
            transparent 5px
        );
    opacity: 0.16;
    pointer-events: none;
    z-index: 1;
}

/* РћС‡РµРЅСЊ РјСЏРіРєРѕРµ Р·Р°С‚РµРјРЅРµРЅРёРµ, Р±РµР· Р±Р»РёРєРѕРІ */
.book-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.01),
        transparent 60%,
        rgba(0,0,0,0.018) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* РљСЂРµРјРѕРІР°СЏ РєРЅРёРіР° - СЂРѕРІРЅС‹Р№ РґРѕСЂРѕРіРѕР№ ivory */
.cream {
    background: #f3e6d3;
}

.cream::after {
    background: none;
}

.cream::before {
    opacity: 0.22;
}

/* РћР»РёРІРєРѕРІР°СЏ РєРЅРёРіР° */
.olive {
    background:
        linear-gradient(135deg, #908f52 0%, #76763f 50%, #5c5d31 100%);
}

/* РЁРѕРєРѕР»Р°РґРЅР°СЏ РєРЅРёРіР° */
.chocolate {
    background:
        linear-gradient(135deg, #744026 0%, #542819 48%, #2e140d 100%);
}

.shine {
    display: none;
}

.spine {
    position: absolute;
    left: 24px;
    top: 0;
    width: 6px;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(35, 22, 16, 0.12), rgba(255,255,255,0.04));
    z-index: 2;
}

.cream .spine {
    background:
        linear-gradient(
            90deg,
            rgba(120, 95, 70, 0.16) 0%,
            rgba(120, 95, 70, 0.08) 50%,
            rgba(120, 95, 70, 0.14) 100%
        );
}

.olive .spine {
    background:
        linear-gradient(
            90deg,
            #37401f 0%,
            #59662f 55%,
            #2c3519 100%
        );
}

.chocolate .spine {
    background:
        linear-gradient(
            90deg,
            #3c1c12 0%,
            #63311f 55%,
            #261008 100%
        );
}

.decor {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    font-size: 25px;
    color: #d8b46a;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.18),
        0 1px 3px rgba(74,45,16,0.22);
    z-index: 2;
}

.cover-title {
    position: absolute;
    top: 122px;
    left: 34px;
    right: 34px;
    text-align: center;
    color: #d8b46a;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.18),
        0 1px 4px rgba(74,45,16,0.28);
    z-index: 2;
}

.cover-title strong {
    display: block;
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    letter-spacing: 0.055em;
    font-weight: 600;
    text-transform: uppercase;
}

.cover-title span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

/* РўРёСЃРЅРµРЅРёРµ РЅР° РєСЂРµРјРѕРІРѕР№ РєРЅРёРіРµ - Р±РѕР»РµРµ С‚С‘РјРЅРѕРµ Р·РѕР»РѕС‚Рѕ, С‡С‚РѕР±С‹ С‡РёС‚Р°Р»РѕСЃСЊ */
.cream .cover-title,
.cream .decor {
    color: #b8862d;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.45),
        0 1px 3px rgba(90,60,20,0.16);
}

.style-card h2 {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 500;
}

.style-card p {
    margin: 0 auto;
    max-width: 270px;
    font-size: 16px;
    line-height: 1.42;
    color: #665344;
}

.bottom-panel {
    max-width: 1260px;
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.next-button {
    width: 320px;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: #d8cab7;
    color: rgba(255, 250, 242, 0.7);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    cursor: not-allowed;
    box-shadow: none;
    transition: 0.32s ease;
}

.next-button.active {
    background: linear-gradient(135deg, #5a3529, #351d16);
    color: #fffaf2;
    cursor: pointer;
    box-shadow:
        0 20px 46px rgba(74, 45, 34, 0.28),
        0 0 0 1px rgba(180, 147, 97, 0.22);
}

.next-button.active:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow:
        0 30px 66px rgba(74, 45, 34, 0.36),
        0 0 0 1px rgba(180, 147, 97, 0.32);
}

@media (max-width: 980px) {
    .page {
        padding: 24px;
    }

    .top-panel {
        display: block;
    }

    .progress-wrap {
        margin-top: 16px;
        text-align: left;
    }

    h1 {
        font-size: 36px;
    }

    h1 span {
        font-size: 1.08em;
    }

    .subtitle {
        font-size: 17px;
    }

    .style-grid {
        grid-template-columns: 1fr;
    }

    .style-card.active {
        transform: translateY(-4px) scale(1.01);
    }

    .book-preview {
        height: 240px;
    }

    .next-button {
        width: 100%;
    }
}
/* =========================
   STEP 2 - РўР•РњРђ РљРќРР“Р
========================= */

.step2-page {
    min-height: 100vh;
    padding: 28px 60px 12px;
    box-sizing: border-box;
}

.step2-page .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.step2-page .brand {
    font-size: 22px;
    letter-spacing: 0.18em;
    color: #2c201b;
}

.step2-page .brand-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #6f5b4c;
}

.step-label {
    text-align: right;
    color: #2c201b;
}

.step-name {
    font-size: 15px;
    margin-bottom: 8px;
}

.step-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #4b372d;
}

.progress-line {
    width: 150px;
    height: 3px;
    background: rgba(74, 33, 27, 0.18);
    border-radius: 20px;
    display: inline-block;
    overflow: hidden;
}

.progress-line span {
    display: block;
    width: 28.5%;
    height: 100%;
    background: #4a211b;
    border-radius: 20px;
}

.step2-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 20px;
}

.step2-hero h1 {
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 500;
    color: #2c201b;
}

.step2-hero p {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.35;
    color: #4e4139;
}

.idea-card {
    max-width: 1120px;
    margin: 0 auto 28px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(110, 90, 70, 0.18);
    border-radius: 26px;
    padding: 32px 42px 28px;
    box-shadow: 0 18px 40px rgba(60, 40, 25, 0.08);
}

.idea-card h2 {
    margin: 0 0 18px;
    font-size: 27px;
    color: #2c201b;
    font-weight: 500;
}

.idea-example-text {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.35;
    color: #6f5b4c;
}

.idea-textarea-wrap {
    position: relative;
}

.idea-textarea-wrap textarea {
    width: 100%;
    min-height: 145px;
    resize: vertical;
    border: 1px solid rgba(110, 90, 70, 0.22);
    outline: none;
    border-radius: 18px;
    background: #fbf8f4;
    padding: 18px 20px 30px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.45;
    color: #352821;
    box-sizing: border-box;
}

.idea-textarea-wrap textarea:focus {
    border-color: rgba(122, 90, 66, 0.55);
    box-shadow: 0 0 0 4px rgba(122, 90, 66, 0.08);
}

.idea-counter {
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: #8d7a6d;
    font-size: 14px;
}

.idea-hint {
    margin-top: 10px;
    color: #766558;
    font-size: 14px;
}

.inspiration-block {
    max-width: 1320px;
    margin: 0 auto;
}

.inspiration-block h2 {
    margin: 0 0 16px;
    font-size: 23px;
    font-weight: 600;
    color: #2c201b;
}

.inspiration-grid-step2 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
}

.idea-example {
    min-height: 100px;
    border: 1px solid rgba(122, 90, 66, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 28px rgba(60, 40, 25, 0.07);
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: #2c201b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.22s;
}

.idea-example:hover,
.idea-example.active {
    transform: translateY(-3px);
    border-color: rgba(122, 90, 66, 0.55);
    box-shadow: 0 18px 34px rgba(60, 40, 25, 0.12);
}

.example-icon {
    font-size: 27px;
    color: #a97b2b;
}

.step2-footer {
    max-width: 1320px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step2-back {
    min-width: 160px;
    height: 50px;
    padding: 0 26px;
    border: 1px solid rgba(74, 33, 27, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    color: #2c201b;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(60, 40, 25, 0.06);
    transition: all .25s ease;
}
.step2-back:hover {
    background: #5b3526;
    color: #fff;
    border-color: #5b3526;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 30px rgba(91, 53, 38, 0.28);
}

.step2-back:active {
    transform: scale(0.98);
}

.secure-note {
    color: #7d6d60;
    font-size: 14px;
}

.step2-next {
    min-width: 220px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 14px 26px rgba(46, 20, 14, 0.20);
}

.step2-next:hover {
    transform: translateY(-2px);
}

.step2-next:disabled {
    background: #d8cec4;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 1100px) {
    .inspiration-grid-step2 {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* =========================
   STEP 3 - РљРђРљ Р­РўРћ Р РђР‘РћРўРђР•Рў
========================= */

.step3-page {
    min-height: 100vh;
    padding: 34px 6vw 26px;
    box-sizing: border-box;
}

.step3-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step3-top .brand {
    font-size: 22px;
    letter-spacing: 0.26em;
    color: #2c201b;
}

.step3-top .brand-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: #6f5b4c;
}

.step3-progress-box {
    text-align: right;
    color: #2c201b;
    min-width: 300px;
}

.step3-progress-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #4a211b;
}

.step3-progress-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-size: 14px;
}

.step3-line {
    width: 150px;
    height: 4px;
    border-radius: 20px;
    background: rgba(74, 33, 27, 0.14);
    overflow: hidden;
}

.step3-line span {
    display: block;
    width: 43%;
    height: 100%;
    background: #4a211b;
    border-radius: 20px;
}

.step3-intro {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 32px;
}

.step3-intro h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 500;
    color: #2c201b;
}

.step3-intro h1 span {
    color: #6f7a3f;
}

.step3-intro p {
    margin: 22px auto 0;
    max-width: 740px;
    font-size: 19px;
    line-height: 1.45;
    color: #3f332d;
}

.step3-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-bottom: 28px;
}

.step3-card {
    min-height: 310px;
    padding: 32px 34px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(120, 95, 70, 0.16);
    box-shadow: 0 18px 38px rgba(60, 40, 25, 0.05);
    box-sizing: border-box;
}

.step3-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step3-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #f5f1e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.step3-icon.olive {
    color: #6f7a3f;
}

.step3-icon.chocolate {
    color: #4a211b;
}

.step3-icon.gold {
    color: #a77b35;
}

.step3-number {
    font-size: 34px;
    color: #6f7a3f;
    opacity: 0.9;
}

.step3-card h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    color: #2c201b;
}

.step3-decor {
    width: 44px;
    height: 1px;
    background: #b08a45;
    margin: 18px 0 18px;
}

.step3-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.48;
    color: #3f332d;
}

.step3-note {
    max-width: 1080px;
    margin: 0 auto 22px;
    padding: 22px 34px;
    border-radius: 22px;
    background: rgba(245, 248, 241, 0.86);
    border: 1px solid rgba(111, 122, 63, 0.2);
    display: flex;
    gap: 28px;
    align-items: center;
}

.step3-note-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #6f7a3f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    flex-shrink: 0;
}

.step3-note p {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #2c201b;
}

.step3-note h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 600;
    color: #6f7a3f;
}

.step3-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -12px;
margin-bottom: 26px;
}

.step3-back,
.step3-next {
    height: 64px;
    min-width: 160px;
    border-radius: 999px;
    border: 1px solid rgba(120, 95, 70, 0.22);
    background: rgba(255, 255, 255, 0.5);
    color: #2c201b;
    font-size: 22px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.step3-back{
    min-width:160px;
    height:50px;
    border-radius:999px;
    background:rgba(255,255,255,.48);
    border:1px solid rgba(74,33,27,.42);
    transition:all .25s ease;
}

.step3-next {
    background: linear-gradient(135deg, #5a251d, #351d16);
    color: #fff;
    border: none;
}

.step3-back:hover{
    background:#5b3526;
    color:#fff;
    border-color:#5b3526;
    transform:translateY(-2px) scale(1.04);
    box-shadow:0 14px 30px rgba(91,53,38,.28);
}

.step3-back:active{
    transform:scale(.98);
}

.step3-next:hover {
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%);
    color: #fff;
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(91, 53, 38, .28);
}

.step3-next:active{
    transform:scale(.98);
}


@media (max-width: 1200px) {
    .step3-page {
        padding: 28px 5vw 22px;
    }

    .step3-intro h1 {
        font-size: 46px;
    }

    .step3-cards {
        gap: 18px;
    }

    .step3-card {
        padding: 26px 24px;
        min-height: 285px;
    }

    .step3-card h2 {
        font-size: 26px;
    }

    .step3-card p {
        font-size: 15px;
    }
}
/* STEP 3 - С„РёРЅР°Р»СЊРЅР°СЏ РїРѕРґРіРѕРЅРєР° v2 */

.step3-page {
    padding-top: 26px !important;
    padding-bottom: 14px !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step3-top {
    margin-bottom: 18px !important;
}

.step3-intro {
    margin-bottom: 40px !important;
}

.step3-intro h1 {
    font-size: 43px !important;
    line-height: 1.05 !important;
}

.step3-intro p {
    font-size: 17px !important;
    line-height: 1.42 !important;
    margin-top: 14px !important;
}

.step3-cards {
    gap: 22px !important;
    margin-bottom: 34px !important;
}

.step3-card {
    min-height: 260px !important;
    padding: 24px 28px !important;
}

.step3-card-top {
    margin-bottom: 22px !important;
}

.step3-icon {
    width: 64px !important;
    height: 64px !important;
    font-size: 28px !important;
}

.step3-number {
    font-size: 30px !important;
}

.step3-card h2 {
    font-size: 24px !important;
    line-height: 1.12 !important;
}

.step3-decor {
    margin: 14px 0 14px !important;
}

.step3-card p {
    font-size: 15.5px !important;
    line-height: 1.42 !important;
}

.step3-note {
    padding: 14px 26px !important;
    margin-bottom: 10px !important;
}

.step3-note-icon {
    width: 62px !important;
    height: 62px !important;
    font-size: 28px !important;
}

.step3-note p {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
}

.step3-note h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
}

.step3-footer {
    margin-top: 22px !important;
}

.step3-back,
.step3-next {
    height: 54px !important;
    min-width: 200px !important;
    font-size: 20px !important;
}

.step3-back:hover {
    background: #3b211b !important;
    color: #fff !important;
    transform: scale(1.04);
}

.step3-back:active,
.step3-next:active {
    transform: scale(0.98);
}
next-button.saving,
.step2-next.saving {
    background: #3b211b !important;
    color: #fff !important;
    transform: scale(1.03);
}
/* COMMON BRAND */
.memora-logo{
    font-size:28px;
    letter-spacing:8px;
    font-weight:600;
}

.memora-tagline{
    margin-top:2px;
    font-size:16px;
    font-weight:400;
    color:#4f4740;
    letter-spacing:0.2px;
}
/* STEP 4 */

.step4-page{
    min-height:100vh;
    padding:28px 5vw 24px;
    background:linear-gradient(135deg,#f7f1e8 0%,#efe4d5 100%);
    color:#2c201b;
    font-family:Georgia,"Times New Roman",serif;
}

.step4-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:24px;
}

.step4-logo{
    font-size:28px;
    letter-spacing:8px;
    font-weight:600;
}

.step4-tagline{
    margin-top:2px;
    font-size:16px;
    font-weight:400;
    color:#4f4740;
    letter-spacing:0.2px;
}

.step4-progress{
    text-align:right;
}

.step4-step-title{
    font-size:16px;
    margin-bottom:10px;
}

.step4-step-row{
    display:flex;
    align-items:center;
    gap:14px;
    font-size:15px;
}

.step4-line{
    width:170px;
    height:3px;
    background:#d8cabb;
}

.step4-line div{
    width:57%;
    height:100%;
    background:#4a211b;
}

.step4-content{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:24px;
}

.step4-main-card,
.step4-side-card{
    background:rgba(255,255,255,.48);
    border:1px solid rgba(120,95,70,.18);
    border-radius:24px;
    box-shadow:0 18px 40px rgba(70,45,25,.07);
}

.step4-main-card{
    padding:26px;
}

.step4-small{
    margin:0 0 8px;
    font-size:16px;
    font-weight:600;
}

.step4-main-card h1{
    margin:0;
    font-size:38px;
    line-height:1.1;
    font-weight:500;
}

.step4-main-card h1 span{
    color:#6f7a3f;
}

.step4-subtitle{
    max-width:720px;
    margin:16px 0 22px;
    font-size:18px;
    line-height:1.45;
    color:#4f443d;
}

.step4-chat{
    min-height:300px;
    max-height:360px;
    overflow-y:auto;
    background:rgba(255,255,255,.38);
    border:1px solid rgba(120,95,70,.16);
    border-radius:22px;
    padding:22px;
}

.step4-message{
    display:flex;
    margin-bottom:20px;
}

.step4-message.ai{
    justify-content:flex-start;
}

.step4-message.user{
    justify-content:flex-end;
}

.step4-bubble{
    max-width:58%;
    padding:14px 18px;
    border-radius:18px;
    font-size:16px;
    line-height:1.4;
}

.step4-message.ai .step4-bubble{
    background:#f5efe8;
}

.step4-message.user .step4-bubble{
    background:#efe3d7;
}

.step4-message.user .step4-bubble {
    position: relative;
    padding-right: 44px;
}

.step4-answer-actions {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #4b2f26;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.step4-answer-actions:hover {
    background: rgba(75, 47, 38, 0.08);
}

.step4-answer-menu {
    display: none;
    position: absolute;
    top: 38px;
    right: 8px;
    z-index: 20;
    min-width: 190px;
    padding: 6px;
    border: 1px solid rgba(75, 47, 38, 0.14);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(75, 47, 38, 0.16);
}

.step4-answer-menu.open {
    display: block;
}

.step4-answer-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #4b2f26;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.step4-answer-menu button:hover {
    background: #f5efe8;
}

.step4-answer-delete {
    color: #8a3a2a !important;
}

.step4-author{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
}

.step4-answer-area{
    display:flex;
    gap:14px;
    margin-top:18px;
}

.step4-answer-area textarea{
    flex:1;
    height:58px;
    resize:none;
    border-radius:18px;
    border:1px solid rgba(120,95,70,.24);
    padding:16px 18px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    background:rgba(255,255,255,.62);
    outline:none;
}

.step4-answer-area textarea.story-mode{
    height:150px;
}

.step4-send,
.step4-next{
    border:none;
    background:#4a211b;
    color:#fff;
    border-radius:18px;
    padding:0 28px;
    font-size:18px;
    font-family:Georgia,"Times New Roman",serif;
    cursor:pointer;
    transition:.25s ease;
    box-shadow:0 14px 28px rgba(60,30,20,.18);
}

.step4-send:hover {
    transform:none;
    background:#76763f;
}

.step4-send{
    background:rgba(255,255,255,.55);
    color:#5f641d;
    border:1px solid rgba(95,100,29,.45);
}

.step4-send:hover{
    background:#5f641d;
    border-color:#5f641d;
    color:#fff;
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 14px 28px rgba(86,100,58,.22);
}

.step4-hint{
    margin:10px 0 18px;
    color:#7d7168;
    font-size:14px;
}

.step4-actions{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.step4-action-btn{
    min-height:74px;
    border-radius:18px;
    border:1px solid rgba(120,95,70,.20);
    background:rgba(255,255,255,.50);
    color:#2c201b;
    text-align:left;
    padding:14px 18px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    cursor:pointer;
    transition:.25s ease;
}

.step4-action-btn span{
    display:block;
    margin-top:6px;
    color:#7d7168;
    font-size:14px;
}

.step4-action-btn:hover,
.step4-action-btn.active{
    border-color:#5b3526;
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(60,40,25,.10);
}

.step4-save-note{
    margin-top:18px;
    padding:16px 18px;
    border-radius:18px;
    background:rgba(255,255,255,.52);
    display:flex;
    align-items:center;
    gap:14px;
}

.step4-save-note p{
    margin:4px 0 0;
    color:#7d7168;
    font-size:14px;
}

.step4-save-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#6f7a3f;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:700;
}

.step4-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:20px;
}

.step4-back{
    min-width:160px;
    height:50px;
    border-radius:999px;
    border:1px solid rgba(74,33,27,.42);
    background:rgba(255,255,255,.48);
    color:#2c201b;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    transition:.25s ease;
}

.step4-back:hover{
    background:#5b3526;
    color:#fff;
    transform:translateY(-2px) scale(1.04);
    box-shadow:0 14px 30px rgba(91,53,38,.28);
}

.step4-next{
    height:54px;
    min-width:200px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg, #5a251d 0%, #2b100d 100%);;
    color:#fff;
    font-size:20px;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s ease;
}

.step4-next:hover {
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%);
    color: #fff;
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(91, 53, 38, .28);
}

.step4-sidebar{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.step4-side-card{
    padding:22px;
}

.step4-side-card h3{
    margin:0 0 18px;
    font-size:22px;
}

.step4-next-item{
    display:flex;
    gap:14px;
    padding:14px 0;
    border-bottom:1px solid rgba(120,95,70,.16);
}

.step4-next-item:last-child{
    border-bottom:none;
}

.step4-next-item span{
    width:28px;
    height:28px;
    min-width:28px;
    min-height:28px;
    flex:0 0 28px;
    box-sizing:border-box;

    border-radius:50%;
    border:1px solid rgba(120,95,70,.30);

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

    color:#8a6a55;
    line-height:1;
}

.step4-next-item.done span{
    background:#7b563f;
    color:#fff;
}

.step4-next-item strong{
    font-size:16px;
}

.step4-next-item p{
    margin:5px 0 0;
    color:#6f6258;
    font-size:14px;
    line-height:1.35;
}

.step4-progressbar{
    height:8px;
    border-radius:999px;
    background:#ded2c6;
    overflow:hidden;
    margin:14px 0;
}

.step4-progressbar div{
    width:0%;
    height:100%;
    background:#8a6a55;
    transition:.3s ease;
}

.step4-side-card.light{
    background:rgba(255,255,255,.38);
}

.step4-side-card.light p{
    font-size:16px;
    line-height:1.45;
    color:#4f443d;
}
.step4-save-note{
    display:flex;
    align-items:center;
    gap:14px;
}

.step4-save-text{
    flex:1;
}

.step4-save-btn{
    background: #6F7F3A;
    color: #ffffff;
    border: 1.5px solid #6F7F3A;
    border-radius:999px;
    padding:14px 26px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.step4-save-btn:hover{
    background:#5C6A2F;
    color:#fff;
    border-color:#5C6A2F;
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 14px 28px rgba(85,107,47,.25);
}

.save-modal{
    position:fixed;
    inset:0;
    background:rgba(44,32,27,.35);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999;
}

.save-modal.active{
    display:flex;
}

.save-modal-card{
    width:min(440px,90vw);
    background:#f8f1e8;
    border:1px solid rgba(120,95,70,.22);
    border-radius:26px;
    padding:30px;
    box-shadow:0 24px 60px rgba(44,32,27,.25);
    position:relative;
    font-family:Georgia,"Times New Roman",serif;
    color:#2c201b;
}

.save-modal-close{
    position:absolute;
    top:14px;
    right:16px;
    border:none;
    background:none;
    font-size:30px;
    cursor:pointer;
    color:#5b3526;
}

.save-modal-card h2{
    margin:0 0 12px;
    font-size:30px;
    font-weight:500;
}

.save-modal-card p{
    margin:0 0 20px;
    font-size:16px;
    line-height:1.45;
    color:#5d5149;
}

.save-modal-card input{
    width:100%;
    height:52px;
    border-radius:16px;
    border:1px solid rgba(120,95,70,.26);
    padding:0 16px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    outline:none;
    background:rgba(255,255,255,.7);
    box-sizing:border-box;
}

.save-modal-btn{
    width:100%;
    height:54px;
    margin-top:16px;
    border:none;
    border-radius:16px;
    background:#6F7F3A;
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:18px;
    cursor:pointer;
    transition:.25s ease;
}

.save-modal-btn:hover{
    transform:translateY(-2px) scale(1.02);
    background:#5C6A2F;
}

.save-modal-message{
    margin-top:14px;
    font-size:15px;
    color:#6f7a3f;
}
/* ===========================
   STEP 5
=========================== */

.step5-page {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 34px 28px 70px;
    box-sizing: border-box;
    color: #2f241f;
}

.step5-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:52px;
}

.memora-logo{
    font-size:28px;
    letter-spacing:8px;
    font-weight:600;
    color:#2f241f;
}

.memora-tagline{
    margin-top:2px;
    font-size:16px;
    font-weight:400;
    color:#4f4740;
    letter-spacing:.2px;
}

.step5-progress{
    display:flex;
    align-items:center;
    gap:28px;
}
.step5-step-title{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:12px;
}

.step5-step-name{
    font-size:16px;
    font-weight:600;
    color:#6f7a3f;
    letter-spacing:.3px;
}

.step5-progress-row{
    display:flex;
    align-items:center;
    gap:18px;
}

.step5-step-label{
    padding:12px 22px;
    border:1px solid rgba(120,95,70,.22);
    border-radius:10px;
    background:rgba(255,255,255,.5);
    font-size:18px;
    font-weight:600;
}

.step5-steps{
    display:flex;
    align-items:center;
    gap:12px;
}

.step5-steps span{
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(120,95,70,.28);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    color:#3d3029;
    background:rgba(255,255,255,.45);
    position:relative;
}

.step5-steps span:not(:last-child)::after{
    content:"";
    position:absolute;
    left:38px;
    width:12px;
    height:1px;
    background:#b9aa96;
}

.step5-steps .done{
    background:#5f641d;
    color:#fff;
    border-color:#5f641d;
}

.step5-steps .active{
    background:rgba(255,255,255,.65);
    color:#5f641d;
    border:2px solid #5f641d;
}

.step5-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    align-items: start;
}

.step5-hero h1{
    font-size:48px;
    line-height:1.05;
    margin:0 0 22px;
    font-weight:500;
}

.step5-hero p{
    max-width:680px;
    font-size:18px;
    line-height:1.55;
    margin:0;
    color:#3f352f;
}

.step5-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: nowrap;
}

.step5-primary-small,
.step5-help-btn {
    height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 16px;
    white-space: nowrap;
    cursor: pointer;
    transition: .25s ease;
}

.step5-primary-small{
    border:1px solid #5f641d;
    background:#5f641d;
    color:#fff;
    transition: all .25s ease;
}
.step5-primary-small:hover{
    transform: scale(1.03);
    background:#56643a;
    box-shadow:0 8px 18px rgba(86,100,58,.25);
}

.step5-help-btn{
    border:1px solid rgba(120,95,70,.24);
    background:rgba(255,255,255,.55);
    color:#2f241f;
}

.step5-help-btn:hover{
    border-color:#6f7a3f;
    background:#f6f8ee;
    transform:scale(1.02);
    box-shadow:0 12px 24px rgba(60,40,25,.08);
}

.step5-recommendation{
    border:1px solid rgba(120,95,70,.18);
    border-radius:18px;
    padding:20px 24px;
    background:rgba(255,255,255,.55);
    box-shadow:0 20px 50px rgba(60,40,25,.05);
}

.step5-recommendation h3{
    margin:0 0 8px;
    font-size:22px;
    font-weight:500;
}

.step5-recommendation p{
    font-size:17px;
    line-height:1.35;
    margin:0 0 8px;
}

.step5-sections{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.step5-section-card{
    display:grid;
    grid-template-columns:26px 56px 270px 1fr 110px 80px;
    gap:24px;
    align-items:center;
    min-height:132px;
    border:1px solid rgba(120,95,70,.16);
    border-radius:14px;
    background:rgba(255,255,255,.55);
    padding:22px 24px;
}

.step5-drag{
    color:#a98d72;
    font-size:24px;
}

.step5-number{
    font-size:48px;
    color:#9a8065;
    font-weight:400;
}

.step5-text p{
    font-size:17px;
    line-height:1.35;
    margin:0 0 14px;
}

.step5-text em{
    font-size:15px;
    color:#6d5848;
}

.step5-photos{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.photo-thumb,
.upload-preview{
    width:94px;
    height:78px;
    border-radius:8px;
    background:
        linear-gradient(135deg, rgba(95,100,29,.25), rgba(70,40,30,.18)),
        #e8e1d8;
    box-shadow:inset 0 0 0 1px rgba(90,70,50,.08);
}

.photo-thumb:nth-child(2){
    background:
        linear-gradient(135deg, rgba(90,60,45,.25), rgba(95,100,29,.18)),
        #d9d0c6;
}

.photo-thumb:nth-child(3){
    background:
        linear-gradient(135deg, rgba(130,110,75,.25), rgba(80,90,45,.2)),
        #e4dacd;
}

.photo-thumb:nth-child(4){
    background:
        linear-gradient(135deg, rgba(50,80,55,.22), rgba(120,95,70,.18)),
        #ded5ca;
}

.photo-count{
    width:100%;
    font-size:15px;
    font-style:italic;
    color:#6d5848;
}

.step5-add-photo{
    width:106px;
    height:96px;
    border:1px dashed rgba(120,95,70,.35);
    border-radius:10px;
    background:rgba(255,255,255,.55);
    color:#5b4537;
    font-size:15px;
    cursor:pointer;
    transition:.25s ease;
}

.step5-add-photo:hover{
    border-color:#4a211b;
    border-style:solid;
    border-width:2px;
    background:#fffaf4;
    transform:scale(1.03);
    box-shadow:0 12px 24px rgba(60,40,25,.10);
    color:#4a211b;
}

.step5-add-photo:hover::first-line{
    font-size:34px;
}

.step5-card-actions{
    display:flex;
    gap:20px;
    justify-content:center;
}

.step5-card-actions button{
    border:0;
    background:transparent;
    font-size:22px;
    cursor:pointer;
    color:#2f241f;
}

.step5-upload-all{
    margin-top:14px;
    display:grid;
    grid-template-columns:70px 1fr repeat(3,94px) 78px;
    align-items:center;
    gap:18px;
    border:1px dashed rgba(120,95,70,.24);
    border-radius:14px;
    padding:22px 26px;
    background:rgba(255,255,255,.45);
}

.upload-icon{
    width:52px;
    height:52px;
    border-radius:50%;
    border:1px solid rgba(120,95,70,.24);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.step5-upload-all strong{
    font-size:18px;
}

.step5-upload-all p{
    margin:6px 0 0;
    color:#5f554d;
}

.upload-more{
    width:70px;
    height:70px;
    border-radius:8px;
    background:#f4eee6;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:18px;
    color:#5b4537;
}

.step5-footer{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:24px;
    width:100%;
}

.step5-footer-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    width:100%;
}

.step5-footer-actions{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
    margin-left:auto;
    width:640px;
    max-width:100%;
}

.step5-back{
    height:60px;
    border:1px solid rgba(120,95,70,.2);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#2f241f;
    font-size:20px;
    background:rgba(255,255,255,.55);
}

.step5-next{
    height:68px;
    border:none;
    border-radius:999px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    font-size:21px;
    background:linear-gradient(135deg, #5a251d 0%, #2b100d 100%);
    transition:.25s ease;
    width: 640px;
    max-width: 100%;
    justify-self: center;
}

.step5-next span{
    margin-top:4px;
    font-size:14px;
    color:rgba(255, 255, 255, 82);
}

.step5-next:hover {
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 14px 30px rgba(91,53,38,.28);
}

.step5-primary-small:active{
    transform: scale(0.99);
    box-shadow: 0 3px 8px rgba(86,100,58,.18);
}

.memora-back-btn{
    height:54px;
    min-width: 160px;
    padding:0 42px;
    gap: 12px;
    white-space: nowrap;
    border:1px solid rgba(91,47,34,.35);
    border-radius:999px;
    background:rgba(255,255,255,.55);
    color:#2f241f;
    font-size:20px;
    font-weight:500;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all .25s ease;
}

.memora-back-btn:hover{
    background:#5b2f22;
    border-color:#5b2f22;
    color:#fff;
    transform:scale(1.03);
    box-shadow:0 14px 26px rgba(60,40,25,.16);
}

.memora-back-btn:active{
    transform:scale(.98);
}


@media(max-width:1000px){
    .step5-header,
    .step5-hero{
        display:block;
    }

    .step5-progress{
        margin-top:24px;
        align-items:flex-start;
    }

    .step5-section-card{
        grid-template-columns:40px 1fr;
    }

    .step5-photos,
    .step5-add-photo,
    .step5-card-actions{
        grid-column:2;
    }

    .step5-upload-all,
    .step5-footer{
        grid-template-columns:1fr;
    }
}
/* ---------- РњРѕРґР°Р»СЊРЅРѕРµ РѕРєРЅРѕ "РљР°Рє РІС‹Р±СЂР°С‚СЊ С„РѕС‚РѕРіСЂР°С„РёРё" ---------- */

.photo-help-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:9999;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.photo-help-content {
    position: relative;
    background: #fffdf9;
    width: 700px;
    max-width: 90%;
    padding: 28px 42px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    animation: photoModal .25s ease;

    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-sizing: border-box;
}

@keyframes photoModal{
    from{
        opacity:0;
        transform:translateY(20px) scale(.97);
    }
    to{
        opacity:1;
        transform:none;
    }
}

.photo-help-content h2{
    margin-bottom:22px;
    font-size:34px;
}

#memoraRecommendationModal .photo-help-content {
    width: 620px;
    padding: 24px 34px;
}

#memoraRecommendationModal .photo-help-content h2 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-title-icon {
    font-size: 20px;
    line-height: 1;
}

.photo-help-content p{
    line-height:1.7;
    margin-bottom:18px;
}

.photo-help-content ul{
    margin:15px 0 22px 25px;
    line-height:1.8;
}

.photo-help-close{
    position:absolute;
    top:18px;
    right:24px;
    font-size:34px;
    cursor:pointer;
}

.photo-help-ok{
    margin-top:18px;
    padding:14px 34px;
    border:none;
    border-radius:12px;
    background:#6f7a3f;
    color:white;
    font-size:16px;
    cursor:pointer;
}

.photo-help-ok:hover{
    background:#5f6835;
}
.photo-help-ok{
    transition: all .25s ease;
}

.photo-help-ok:hover{
    transform: scale(1.05);
    background:#56643a;
    box-shadow:0 8px 18px rgba(86,100,58,.25);
}
.step5-progress-wrap{
    width:760px;
    margin-left:auto;
    margin-bottom:20px;
}

.step5-progress-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:18px;
}

.step5-count{
    font-size:16px;
    font-weight:500;
    color:#3b332d;
    margin-left:-30px;
}

.step5-current-title{
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 500;
    color: #6f743b;
}

.step5-progress{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.step5-progress-line{
    position:absolute;
    top:18px;
    left:38px;
    right:38px;
    height:1px;
    background:#d8d4cc;
    z-index:1;
}

.step5-progress-item{
    position:relative;
    z-index:2;
    width:82px;
    text-align:center;
}

.step5-progress-circle{
    width:36px;
    height:36px;
    margin:0 auto 8px;
    border-radius:50%;
    border:2px solid #d8d4cc;
    background:#f8f5ee;
    color:#9a968f;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:600;
}

.step5-progress-label{
    font-size:12px;
    line-height:1.25;
    font-weight:400;
    color:#3b332d;
}

.step5-progress-item.done .step5-progress-circle{
    background:#76763f;
    border-color:#76763f;
    color:#fff;
}

.step5-progress-item.current .step5-progress-circle{
    background:#f8f5ee;
    border-color:#76763f;
    color:#76763f;
}

.step5-progress-item:not(.done):not(.current) .step5-progress-circle{
    opacity:.7;
}

@media(max-width:1000px){
    .step5-progress-wrap{
        width:100%;
        margin-left:0;
    }
}
.app-progress-wrap{
    width:760px;
    margin-left:auto;
    margin-bottom:20px;
}

.app-progress-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:12px;
}

.app-progress-count{
    font-size:16px;
    font-weight:500;
    color:#3b332d;
    margin-left:-30px;
}

.app-progress-title{
    font-family:Georgia,"Times New Roman",serif;
    font-size:18px;
    font-weight:500;
    color:#6f743b;
}

.app-progress{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.app-progress-line{
    position:absolute;
    top:18px;
    left:38px;
    right:38px;
    height:1px;
    background:#d8d4cc;
    z-index:1;
}

.app-progress-item{
    position:relative;
    z-index:2;
    width:82px;
    text-align:center;
}

.app-progress-circle{
    width:36px;
    height:36px;
    margin:0 auto 8px;
    border-radius:50%;
    border:2px solid #d8d4cc;
    background:#f8f5ee;
    color:#9a968f;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:600;
}

.app-progress-label{
    font-size:12px;
    line-height:1.25;
    font-weight:400;
    color:#3b332d;
}

.app-progress-item.done .app-progress-circle{
    background:#76763f;
    border-color:#76763f;
    color:#fff;
}

.app-progress-item.current .app-progress-circle{
    background:#f8f5ee;
    border-color:#76763f;
    color:#76763f;
}

.app-progress-item:not(.done):not(.current) .app-progress-circle{
    opacity:.7;
}

@media(max-width:1000px){
    .app-progress-wrap{
        width:100%;
        margin-left:0;
    }
}

.step6-content{
    padding:30px 60px 60px;
}

.step6-main-card{
    max-width:1180px;
    margin:0 auto;
    background:rgba(255,255,255,.55);
    border-radius:28px;
    padding:36px;
    box-shadow:0 18px 50px rgba(70,50,35,.08);
}

.step6-main-card h1{
    font-size:44px;
    margin:0 0 12px;
    color:#2c201b;
}

.step6-main-card h1 span{
    color:#6f743b;
}

.step6-subtitle{
    font-size:18px;
    line-height:1.5;
    color:#4d463f;
    margin-bottom:26px;
}

.step6-summary{
    display:grid;
    grid-template-columns:repeat(4,1fr) 220px;
    gap:24px;
    align-items:center;
    background:#fff;
    border-radius:20px;
    padding:24px;
    margin-bottom:18px;
}

.step6-summary span{
    display:block;
    font-size:14px;
    color:#756d65;
    margin-bottom:8px;
}

.step6-summary strong{
    font-size:30px;
    color:#2c201b;
}

.step6-summary small{
    display:block;
    color:#4f8a43;
    margin-top:6px;
}

.step6-recalculate,
.step6-recalculate-bottom{
    height:54px;
    border:none;
    border-radius:14px;
    background:#76763f;
    color:#fff;
    font-size:17px;
    cursor:pointer;
}

.step6-warning{
    background:#fff7e8;
    border:1px solid #ead4aa;
    border-radius:16px;
    padding:18px 22px;
    margin-bottom:22px;
    color:#5a3d22;
}

.step6-section-card,
.step6-section-row{
    background:#fff;
    border-radius:20px;
    padding:24px;
    margin-bottom:16px;
    box-shadow:0 10px 30px rgba(70,50,35,.06);
}

.step6-section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #eee8df;
    padding-bottom:18px;
    margin-bottom:22px;
}

.step6-section-head h2{
    margin:0 0 10px;
    font-size:24px;
}

.step6-section-head span{
    background:#f1eee8;
    padding:7px 12px;
    border-radius:999px;
    margin-right:8px;
    font-size:14px;
}

.step6-status{
    background:#e3f4df;
    color:#3d7836;
    padding:8px 18px;
    border-radius:999px;
}

.step6-section-body{
    display:grid;
    grid-template-columns:1fr 1.25fr;
    gap:34px;
}

.step6-text-preview{
    min-height:170px;
    border:1px solid #e2ddd4;
    border-radius:16px;
    padding:20px;
    line-height:1.7;
    color:#2c201b;
}

.step6-link-btn{
    margin-top:12px;
    border:none;
    background:transparent;
    color:#6f743b;
    cursor:pointer;
}

.step6-text-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:22px;
}

.step6-text-actions button,
.step6-photos-head button,
.step6-section-row button{
    border:1px solid #d9d3ca;
    background:#fff;
    border-radius:12px;
    padding:12px 16px;
    cursor:pointer;
}

.step6-photos-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.step6-photo-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:18px;
}

.step6-photo-card,
.step6-add-photo{
    height:120px;
    border-radius:14px;
    background:linear-gradient(135deg,#d8d2c7,#9b9286);
    position:relative;
    overflow:hidden;
}

.step6-photo-overlay{
    position:absolute;
    inset:0;
    background:rgba(44,32,27,.65);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.2s;
    cursor:pointer;
}

.step6-photo-card:hover .step6-photo-overlay{
    opacity:1;
}

.step6-add-photo{
    border:1.5px dashed #cfc8bd;
    background:#faf8f3;
    color:#6f675f;
    cursor:pointer;
}

.step6-photo-hint{
    font-size:14px;
    color:#756d65;
}

.step6-section-row{
    display:grid;
    grid-template-columns:1fr 140px 140px 160px;
    align-items:center;
    gap:16px;
}

.step6-footer{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:24px;
    width:100%;
}

.step6-footer-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    width:100%;
}

.step6-footer-actions{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
    margin-left:auto;
    width:640px;
    max-width:100%;
}

.step6-next-wide {
    width: 640px;
    max-width: 100%;
    height: 54px;
    padding: 0;

    border: none !important;
    border-radius: 999px !important; 
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%) !important; 
    color: #fff !important; 
}

.step6-next-wide:hover {
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%) !important; 
    color: #fff !important; 
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(91, 53, 38, .28);
}

.step6-save-later{
    margin-top:0px;
    align-self:flex-end;

    background:#737544;
    border:1px solid #737544;
    border-radius:999px;

    color:#ffffff;
    font-size:19px;
    font-weight:500;

    width:640px;
    max-width:100%;
    height:54px;

    cursor:pointer;
    transition:.25s ease;
}

.step6-save-later:hover{
    background:#5f6137;
    border-color:#5f6137;
    color:#ffffff;
    transform: scale(1.015);
}

step5-uploaded-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.step5-uploaded-photo {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

#uploadedGallery {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin-top: 20px;
}

#uploadedGallery .step5-uploaded-photo {
    width: 140px !important;
    height: 140px !important;
    max-width: 140px !important;
    min-width: 140px !important;
    object-fit: cover !important;
    border-radius: 14px;
    display: block !important;
    flex: 0 0 140px !important;
}

.step5-photo-card{
    position:relative;
    width:140px;
    height:140px;
}

.step5-delete-photo{
    position:absolute;
    top:6px;
    right:6px;
    transition: transform 0.2s ease, filter 0.2s ease;

    width:24px;
    height:24px;

    border:none;
    border-radius:50%;

    background:#d9534f;
    color:#fff;

    cursor:pointer;

    font-size:16px;
    font-weight:bold;

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

.step5-delete-photo:hover {
    background: #c9302c;
    transform: scale(1.12);
    filter: brightness(0.9);
}

.step5-delete-all-btn{
    display:block;
    margin:18px auto 0;
    padding:14px 34px;

    background:#fff;
    color:#2e2e2e;

    border:2px solid #333;
    border-radius:999px;

    font-size:18px;
    font-weight:600;

    cursor:pointer;

    transition:.25s;
}

.step5-delete-all-btn:hover{
    background:#b33131;
    border-color:#b33131;
    color:#fff;
}

.step5-upload-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    min-width: 220px;
}

/* РћСЃРЅРѕРІРЅР°СЏ РєРЅРѕРїРєР° - РєР°Рє "РћС‚РїСЂР°РІРёС‚СЊ" РЅР° С€Р°РіРµ 4 */
.step5-upload-button {
    width: 210px;
    min-height: 46px;
    padding: 10px 22px;

    background: transparent;
    color: #62683d;

    border: 1px solid rgba(98, 104, 61, 0.55);
    border-radius: 18px;

    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;

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

.step5-upload-button:hover {
    background: #62683d;
    color: #fff;
    border-color: #62683d;
    box-shadow: 0 5px 12px rgba(65, 69, 37, 0.14);
}

/* РЎС‡РµС‚С‡РёРє */
.step5-upload-status {
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: #5b524b;
    text-align: center;
}

/* Р’С‚РѕСЂРѕСЃС‚РµРїРµРЅРЅР°СЏ РєРѕРјРїР°РєС‚РЅР°СЏ РєРЅРѕРїРєР° */
.step5-clear-button {
    width: 120px;
    min-height: 36px;
    padding: 7px 16px;

    background: transparent;
    color: #a45a58;

    border: 1px solid rgba(164, 90, 88, 0.55);
    border-radius: 15px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;

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

.step5-clear-button {
    width: 155px;
    min-height: 46px;
    padding: 8px 20px;

    background: transparent;
    color: #a45a58;

    border: 1px solid rgba(164, 90, 88, 0.55);
    border-radius: 17px;

    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

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

.step5-clear-button:hover {
    background: #a33f3d;
    color: #ffffff;
    border-color: #a33f3d;
    box-shadow: 0 5px 12px rgba(163, 63, 61, 0.14);
    transform: translateY(-1px);
}

.section-added-notice {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid #d8d0c5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 16px;
}

.section-notice {
    display: none;
    position: absolute;
    left: 0;
    top: -42px;

    background: #2f7d32;
    color: #fff;

    padding: 10px 18px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 100;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;

}

.step5-actions{
    position: relative;
}

.step5-section-card {
    transition: opacity .3s ease, transform .3s ease;
}

.section-delete-success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.section-delete-notice {
    padding: 10px 18px;
    background: #2f7d32;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.section-photo-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:9999;

    align-items:center;
    justify-content:center;
}

.section-photo-content{
    width:900px;
    max-width:90%;
    max-height:80vh;

    background:#fff;
    border-radius:18px;

    padding:30px;

    overflow:auto;
}

.section-photo-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}

.section-photo-header h3{
    margin:0;
    font-size:28px;
}

#closeSectionPhotoModal{
    border:none;
    background:none;
    font-size:30px;
    cursor:pointer;
}

.section-photo-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:16px;
    margin-bottom:25px;
}

.section-photo-item {
    position: relative;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.section-photo-item img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.section-photo-item.selected {
    border-color: #556321;
}

.section-photo-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;

    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: #556321;
    color: #fff;

    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.section-photo-item.selected .section-photo-check {
    display: flex;
}

.step5-section-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.step5-section-photo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.used-in-other-section {
    opacity: 0.45;
    position: relative;
}

.used-in-other-section img {
    filter: grayscale(100%);
}

.step5-section-title{
    display:flex;
    align-items:center;
    gap:8px;
}

.edit-section-btn{
    background:none;
    border:none;
    cursor:pointer;
    color:#777;
    opacity:.45;
    transition:all .2s ease;
    padding:0;
}

.step5-section-title:hover .edit-section-btn {
    opacity: 1;
    transform: scale(1.15);
    color: #556B2F;
}

.step5-drag {
    cursor: grab !important;
    user-select: none;
    -webkit-user-select: none;
}

.step5-reorder-hint {
    margin: 0 0 14px;
    color: #756c61;
    font-size: 15px;
    line-height: 1.5;
}

.delete-section-btn {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    transform-origin: center;
}

.delete-section-btn:hover {
    transform: scale(1.15);
    filter: brightness(0.75);
}

/* ===== STEP 5 вЂ” РєР°СЂС‚РѕС‡РєР° "Р’Р°С€Р° РєРЅРёРіР°" ===== */

.step5-book-summary {
    width: 100%;
    max-width: 430px;
    box-sizing: border-box;

    padding: 18px 20px;

    background: #fffdf9;
    border: 1px solid #e6d3ad;
    border-radius: 18px;

    box-shadow:
        0 10px 28px rgba(91, 70, 37, 0.08),
        0 2px 6px rgba(91, 70, 37, 0.04);

    color: #30291f;
}

/* Р—Р°РіРѕР»РѕРІРѕРє */

.step5-book-summary h3 {
    margin: 0;
    padding-bottom: 13px;

    border-bottom: 1px solid #eadfce;

    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
    color: #2f281f;
}

/* РўСЂРё РѕСЃРЅРѕРІРЅС‹С… РїРѕРєР°Р·Р°С‚РµР»СЏ */

.step5-summary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;

    margin-top: 14px;
    padding-bottom: 14px;

    border-bottom: 1px solid #eadfce;
}

.step5-summary-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 0 12px;

    text-align: center;
}

.step5-summary-metric + .step5-summary-metric {
    border-left: 1px solid #eadfce;
}

.step5-summary-metric span {
    margin-bottom: 7px;

    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
    color: #5b5146;
}

.step5-summary-metric strong {
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    color: #354522;
}

.step5-summary-metric-price strong {
    white-space: nowrap;
    font-size: 27px;
    letter-spacing: 0.01em;
    color: #667A1E;
}

/* РЈСЃР»РѕРІРёСЏ СЃС‚РѕРёРјРѕСЃС‚Рё */

.step5-summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding-top: 13px;
}

.step5-summary-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    font-size: 13px;
    line-height: 1.35;
    color: #453c32;
}

.step5-summary-info strong {
    font-weight: 700;
    color: #354522;
}

.step5-summary-icon {
    flex: 0 0 auto;
    line-height: 1.2;
}

/* РќРёР¶РЅСЏСЏ РёРЅС„РѕСЂРјР°С†РёРѕРЅРЅР°СЏ РїР»Р°С€РєР° */

.step5-summary-update {
    margin-top: 13px;
    padding: 9px 11px;

    background: #f6f2ea;
    border-radius: 10px;

    font-size: 11px;
    line-height: 1.4;
    color: #756b60;
}

/* РђРґР°РїС‚Р°С†РёСЏ РєР°СЂС‚РѕС‡РєРё */

@media (max-width: 1100px) {
    .step5-book-summary {
        max-width: 390px;
        padding: 16px 17px;
    }

    .step5-book-summary h3 {
        font-size: 19px;
    }

    .step5-summary-metric {
        padding: 0 8px;
    }

    .step5-summary-metric strong {
        font-size: 22px;
    }

    .step5-summary-metric-price strong {
        font-size: 24px;
    }

    .step5-summary-info {
        font-size: 12px;
    }
}

.step5-summary-header {
    border-bottom: 1px solid #e6dfd5;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.step5-summary-header h3 {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

.step5-book-format {
    font: inherit;
    color: inherit;
    white-space: nowrap;
}

#bookFormatSelect {
    min-width: 108px;
    height: 40px;
    padding: 0 34px 0 14px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #2f281f;
    border: 1px solid #cbbfae;
    border-radius: 10px;
    background: #fffdf9;
    cursor: pointer;
}

/* ===========================
   STEP 7 вЂ” Р’РР—РЈРђР›Р¬РќР«Р™ РњРђРљР•Рў
=========================== */

.step7-content {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 64px;
    color: #33251f;
}

.step7-intro-row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 34px;
}

.step7-intro {
    padding-top: 4px;
}

.step7-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 4vw, 50px);
    line-height: 1.1;
    font-weight: 500;
    color: #392820;
}

.step7-intro h1 span {
    color: #9a7556;
}

.step7-intro p {
    max-width: 900px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #70645d;
}

.step7-progress-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 29px;
    border: 1px solid #e4dbcf;
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 12px 35px rgba(73, 52, 40, 0.06);
}

.step7-progress-label {
    margin-bottom: 9px;
    font-size: 14px;
    color: #83766e;
}

.step7-progress-value {
    margin-bottom: 18px;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 500;
    color: #392820;
}

.step7-progress-value strong {
    color: #676a3c;
}

.step7-progress-track {
    height: 11px;
    overflow: hidden;
    border-radius: 100px;
    background: #e9e7d9;
}

.step7-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #666a39, #96985d);
    transition: width 0.35s ease;
}

.step7-progress-percent {
    margin-top: 10px;
    text-align: right;
    font-size: 13px;
    color: #83766e;
}

.step7-spreads-heading {
    margin: 0 0 17px;
}

.step7-spreads-heading h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 600;
    color: #392820;
}

.step7-spreads-heading p {
    margin: 0;
    font-size: 14px;
    color: #83766e;
}

.step7-cover-heading {
    margin: 0 0 17px;
}

.step7-cover-heading h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 600;
    color: #392820;
}

.step7-cover-heading p {
    margin: 0;
    font-size: 14px;
    color: #83766e;
}

.step7-cover-section {
    margin-bottom: 28px;
}

.step7-cover-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(131, 118, 110, 0.18);
    border-radius: 18px;
    overflow: hidden;
}

.step7-cover-card-header {
    min-height: 76px;
    padding: 16px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.step7-cover-card-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #392820;
}

.step7-cover-card-header p {
    margin: 0;
    font-size: 13px;
    color: #83766e;
}

.step7-cover-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step7-cover-status {
    padding: 7px 13px;
    border-radius: 999px;
    background: #eee9e3;
    color: #756a63;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.step7-cover-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #eee9e3;
    color: #5f554f;
    cursor: pointer;

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

/* =========================================
   STEP 7 вЂ” РћР‘Р›РћР–РљРђ: Р’РќРЈРўР Р•РќРќРЇРЇ Р§РђРЎРўР¬
========================================= */

.step7-cover-body {
    padding: 24px 25px 26px;
    border-top: 1px solid #eee6dc;

    display: grid;
    grid-template-columns: minmax(440px, 1.12fr) minmax(340px, 0.88fr);
    gap: 24px;
    align-items: start;
}


/* Р›РµРІР°СЏ С‡Р°СЃС‚СЊ вЂ” РїСЂРµРІСЊСЋ РѕР±Р»РѕР¶РєРё */

.step7-cover-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    padding: 24px;
    border: 1px solid #e4dbcf;
    border-radius: 16px;
    background: #fffdf9;
}

.step7-cover-preview {
    position: relative;

    width: 290px;
    max-width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;
    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.30),
            rgba(255, 255, 255, 0)
        ),
        #e8ddc8;

    border: 1px solid #d3c4b3;

    box-shadow:
        0 18px 35px rgba(70, 49, 36, 0.13),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

/* Р¦РІРµС‚ РѕР±Р»РѕР¶РєРё РЅР° Step 7 вЂ” С‚РѕС‡РЅРѕ РєР°Рє РЅР° Step 1 */

.step7-book-preview.cream {
    background: #f3e6d3;
}

.step7-book-preview.olive {
    background: linear-gradient(
        135deg,
        #908f52 0%,
        #76763f 50%,
        #5c5d31 100%
    );
}

.step7-book-preview.chocolate {
    background: linear-gradient(
        135deg,
        #744026 0%,
        #542819 48%,
        #2e140d 100%
    );
}


.step7-cover-title {
    position: absolute;

    top: 44%;
    left: 28px;
    right: 28px;
    transform: translateY(-50%);

    text-align: center;

    color: #59483d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
}

.step7-cover-brand {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 24px;

    text-align: center;

    color: #78695e;
    font-size: 12px;
    letter-spacing: 4px;
}

.step7-cover-preview-note {
    margin: 0;

    max-width: 360px;

    color: #93877f;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* РџСЂР°РІР°СЏ С‡Р°СЃС‚СЊ */

.step7-cover-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step7-cover-name,
.step7-cover-design,
.step7-cover-ai {
    padding: 18px;

    border: 1px solid #e4dbcf;
    border-radius: 16px;

    background: #fffdf9;
}


/* РќР°Р·РІР°РЅРёРµ РєРЅРёРіРё */

.step7-cover-name {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.step7-cover-name span {
    color: #93877f;
    font-size: 12px;
}

.step7-cover-name strong {
    color: #493930;
    font-size: 18px;
    font-weight: 600;
}

/* РљРЅРѕРїРєР° В«РР·РјРµРЅРёС‚СЊ РЅР°Р·РІР°РЅРёРµВ» */

.step7-cover-change-title {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 6px;
    padding: 10px 16px;

    border: 1px solid #8b8d5e;
    border-radius: 11px;

    background: #eef1e5;
    color: #5f6238;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

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

.step7-cover-change-title:hover {
    border-color: #85875a;
    background: #85875a;
    color: #ffffff;

    transform: scale(1.025);
    box-shadow: 0 8px 18px rgba(92, 95, 48, 0.18);
}


/* РћС„РѕСЂРјР»РµРЅРёРµ РЅР°Р·РІР°РЅРёСЏ */

.step7-cover-design h4 {
    margin: 0 0 7px;

    color: #4a382e;
    font-size: 16px;
}

.step7-cover-design p {
    margin: 0 0 14px;

    color: #83766e;
    font-size: 13px;
    line-height: 1.5;
}

.step7-cover-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.step7-cover-variant-wide {
    grid-column: 1 / -1;
}

.step7-cover-color-palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d8d0c4;
    border-radius: 12px;
    background: #fffdf8;
}

.step7-cover-color-palette[hidden] {
    display: none;
}

.step7-cover-color-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d8d0c4;
    border-radius: 10px;
    background: #ffffff;
    color: #5f6238;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.step7-cover-color-swatch {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

/* РљРЅРѕРїРєРё РѕС„РѕСЂРјР»РµРЅРёСЏ РѕР±Р»РѕР¶РєРё */

.step7-cover-buttons button {
    min-height: 44px;
    padding: 10px 16px;

    border: 1px solid #8b8d5e;
    border-radius: 11px;

    background: #eef1e5;
    color: #5f6238;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

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

.step7-cover-buttons button:hover {
    border-color: #85875A;
    background: #85875A;
    color: #ffffff;

    transform: scale(1.025);

    box-shadow:
        0 8px 18px rgba(92, 95, 48, 0.18);
}


/* РџРѕР»Рµ РїРѕР¶РµР»Р°РЅРёСЏ РґР»СЏ РР */

.step7-cover-ai {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step7-cover-ai label {
    color: #4a382e;
    font-size: 14px;
    font-weight: 700;
}

.step7-cover-ai textarea {
    width: 100%;
    min-height: 82px;

    padding: 12px 13px;

    resize: vertical;

    border: 1px solid #cfc2b5;
    border-radius: 11px;

    background: #fffaf4;
    color: #514138;

    font: inherit;
    font-size: 13px;
    line-height: 1.5;

    box-sizing: border-box;
}

.step7-cover-ai > button {
    align-self: flex-start;

    min-height: 40px;
    padding: 8px 18px;

    border: 1px solid #85875a;
    border-radius: 11px;

    background: #f0f1e5;
    color: #5f6238;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.step7-cover-ai-response {
    min-height: 18px;

    color: #83766e;
    font-size: 12px;
}


/* РЈС‚РІРµСЂР¶РґРµРЅРёРµ РѕР±Р»РѕР¶РєРё */

.step7-cover-approve {
    width: 100%;
    min-height: 47px;

    padding: 10px 16px;

    border: 1px solid #737544;
    border-radius: 12px;

    background: #fffdf7;
    color: #5f6238;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.step7-cover-body {
    display: none;
}

.step7-cover-card.open .step7-cover-body {
    display: grid;
}

.step7-spread-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step7-spread {
    overflow: hidden;
    border: 1px solid #e2d8cc;
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 25px rgba(73, 52, 40, 0.045);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.step7-spread.open {
    border-color: #d7c7b5;
    box-shadow: 0 14px 32px rgba(73, 52, 40, 0.075);
}

.step7-spread-head {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 20px 23px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.step7-spread-number {
    margin-bottom: 4px;
    font-size: 19px;
    font-weight: 700;
    color: #392820;
}

.step7-spread-title {
    font-size: 13px;
    color: #8a7e76;
}

.step7-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.step7-status.waiting {
    background: #eee9e2;
    color: #74685f;
}

.step7-status.ready {
    background: #737544 !important;
    color: #ffffff !important;
}

.step7-status.approved {
    background: #e6eee2;
    color: #4f6449;
}

.step7-chevron {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1ebe3;
    color: #725e4d;
    font-size: 17px;
    transition:
        transform 0.25s ease,
        background 0.2s ease;
}

.step7-spread.open .step7-chevron {
    transform: rotate(180deg);
}

.step7-spread-body {
    display: none;
    padding: 0 23px 25px;
    border-top: 1px solid #eee6dc;
}

.step7-spread.open .step7-spread-body {
    display: block;
}

.step7-spread-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
    gap: 28px;
    padding-top: 24px;
}

.step7-block-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #4a382e;
}

/* ===========================
   STEP 7 вЂ” РџР Р•Р’Р¬Р® Р РџР РђР’РђРЇ РџРђРќР•Р›Р¬
=========================== */

.step7-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step7-book-preview {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #d8ccbf;
    border-radius: 18px;
    background: #efe8dd;
    box-shadow:
        0 18px 40px rgba(70, 49, 36, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.step7-preview-page {
    position: relative;
    min-width: 0;
    padding: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0)
        ),
        #f8f3ea;
}

.step7-preview-page-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step7-preview-page-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step7-preview-fold {
    position: relative;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(80, 56, 42, 0.04),
            rgba(80, 56, 42, 0.16),
            rgba(255, 255, 255, 0.5),
            rgba(80, 56, 42, 0.13),
            rgba(80, 56, 42, 0.04)
        );
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.65),
        inset -1px 0 0 rgba(80, 56, 42, 0.08);
}

.step7-preview-photo-area {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 290px;
}

.step7-preview-photo {
    width: 100%;
    height: 100%;
    min-height: 290px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(65, 45, 33, 0.1);
}

.step7-preview-photo-area .step7-preview-photo:only-child {
    grid-column: 1 / -1;
}

.step7-preview-placeholder {
    grid-column: 1 / -1;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #cbbca8;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.42);
    color: #8b7c71;
    text-align: center;
}

.step7-preview-placeholder span {
    font-size: 31px;
}

.step7-preview-placeholder small {
    font-size: 13px;
}

.step7-preview-decoration {
    margin-top: 17px;
    color: #85875a;
    font-size: 25px;
    text-align: center;
}

.step7-preview-small-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 98px;
}

.step7-preview-small-photos:empty {
    display: none;
}

.step7-preview-small-photos img {
    width: 100%;
    height: 98px;
    display: block;
    object-fit: cover;
    border-radius: 9px;
}

.step7-preview-text {
    flex: 1;
    overflow: hidden;
    padding: 8px 5px 5px;
    color: #493930;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.65;
    white-space: normal;
}

.step7-preview-text-empty {
    color: #9a8d83;
    font-family: inherit;
    font-style: italic;
}

.step7-fullscreen-button {
    align-self: flex-start;
    min-height: 42px;
    padding: 0 15px;

    border: 1px solid #8b8d5e;
    border-radius: 11px;

    background: #eef1e5;
    color: #5f6238;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

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

.step7-fullscreen-button:hover {
    border-color: #737544;
    background: #737544;
    color: #ffffff;

    transform: scale(1.025);

    box-shadow:
        0 8px 18px rgba(92, 95, 48, 0.18);
}

.step7-update-time {
    margin-top: 12px;
    font-size: 12px;
    color: #93877f;
}

/* РџСЂР°РІР°СЏ РєРѕР»РѕРЅРєР° */

.step7-details-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step7-details-block {
    padding: 18px;
    border: 1px solid #e4dbcf;
    border-radius: 16px;
    background: #fffdf9;
}

.step7-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.step7-photo-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #e9e1d7;
}

.step7-photo-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.step7-empty-photos {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px dashed #cdbfad;
    border-radius: 11px;
    background: #f7f2eb;
    color: #978a80;
    font-size: 13px;
    text-align: center;
}

.step7-text-block {
    min-height: 190px;
}

.step7-generated-text {
    max-height: 255px;
    overflow-y: auto;
    padding-right: 6px;
    color: #514138;
    font-size: 14px;
    line-height: 1.7;
}

.step7-generated-text::-webkit-scrollbar {
    width: 7px;
}

.step7-generated-text::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cec3b7;
}

.step7-generated-text::-webkit-scrollbar-track {
    background: transparent;
}

/* РљРЅРѕРїРєРё РґРµР№СЃС‚РІРёР№ */

.step7-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* РћР‘Р©РР™ Р’РР” Р’РЎР•РҐ РљРќРћРџРћРљ */

.step7-approve-button,
.step7-regenerate-button,
.step7-edit-button {
    width: 100%;
    min-height: 47px;
    padding: 10px 16px;

    border: 1px solid #8b8d5e;
    border-radius: 12px;

    background: #eef1e5;
    color: #5f6238;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

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


/* РќРђР’Р•Р”Р•РќРР• вЂ” Р’РЎР• РЎРўРђРќРћР’РЇРўРЎРЇ РћР›РР’РљРћР’Р«РњР */

.step7-approve-button:not(:disabled):hover,
.step7-regenerate-button:hover,
.step7-edit-button:hover {
    border-color: #737544;
    background: #737544;
    color: #ffffff;

    transform: scale(1.025);

    box-shadow:
        0 9px 20px rgba(92, 95, 48, 0.20);
}


/* РЈР–Р• РЈРўР’Р•Р Р–Р”РЃРќРќР«Р™ Р РђР—Р’РћР РћРў */

.step7-approve-button.approved {
    border-color: #737544;
    background: #737544;
    color: #ffffff;

    cursor: default;
    transform: none;
    box-shadow: none;
}


/* РЈРўР’Р•Р Р–Р”РЃРќРќРђРЇ РљРќРћРџРљРђ РџР Р РќРђР’Р•Р”Р•РќРР РќР• РњР•РќРЇР•РўРЎРЇ */

.step7-approve-button.approved:not(:disabled):hover {
    border-color: #737544;
    background: #737544;
    color: #ffffff;

    transform: none;
    box-shadow: none;
}

/* РЎС‚Р°С‚СѓСЃ СѓС‚РІРµСЂР¶РґС‘РЅРЅРѕРіРѕ СЂР°Р·РІРѕСЂРѕС‚Р° РІ Р·Р°РєСЂС‹С‚РѕР№ РєР°СЂС‚РѕС‡РєРµ */

.step7-status.approved {
    background: #85875A;
    color: #ffffff;
    border-color: #85875A;
}

/* РџСѓСЃС‚РѕРµ СЃРѕСЃС‚РѕСЏРЅРёРµ */

.step7-empty-state {
    padding: 40px 25px;
    border: 1px dashed #cabbaa;
    border-radius: 18px;
    background: #fffaf4;
    color: #76695f;
    text-align: center;
}

/* РќРёР¶РЅСЏСЏ РЅР°РІРёРіР°С†РёСЏ */

.step7-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
    width: 100%;
}

.step7-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.step7-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    width: 640px;
    max-width: 100%;
}

.step7-order-button {
    width: 640px;
    max-width: 100%;
    height: 54px;
    padding: 0;
}

.step7-order-button:hover {
    background: linear-gradient(135deg, #5a251d 0%, #2b100d 100%);
    color: #fff;
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(91, 53, 38, .28);
}

.step7-save-later {
    width: 640px;
    max-width: 100%;
    height: 54px;

    background: #737544;
    border: 1px solid #737544;
    border-radius: 999px;

    color: #ffffff;
    font-size: 19px;
    font-weight: 500;

    cursor: pointer;
    transition: .25s ease;
}

.step7-save-later:hover {
    background: #5f6137;
    border-color: #5f6137;
    color: #ffffff;
    transform: scale(1.015);
}

/* ===========================
   STEP 7 вЂ” РњРћР”РђР›Р¬РќР«Р• РћРљРќРђ
=========================== */

.step7-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(35, 26, 22, 0.48);
}

.step7-modal.open {
    display: flex;
}

.step7-modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 32px;
    border: 1px solid #e1d7ca;
    border-radius: 22px;
    background: #fffdf9;
    box-shadow: 0 24px 70px rgba(36, 25, 20, 0.23);
}

.step7-edit-modal-card {
    width: min(680px, 100%);
}

.step7-modal-card h2 {
    margin: 0 40px 10px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: #392820;
}

.step7-modal-card p {
    margin: 0 0 20px;
    color: #76695f;
    font-size: 14px;
    line-height: 1.6;
}

.step7-modal-close {
    position: absolute;
    top: 17px;
    right: 19px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1ebe3;
    color: #725e4d;
    font: inherit;
    font-size: 25px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.step7-modal-close:hover {
    background: #e8e8d8;
    color: #5f6238;
    transform: rotate(4deg);
}

.step7-modal-textarea {
    width: 100%;
    min-height: 155px;
    resize: vertical;
    padding: 15px 16px;
    border: 1px solid #d9cec1;
    border-radius: 13px;
    background: #ffffff;
    color: #3e3028;
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
}

.step7-modal-textarea:focus {
    border-color: #85875a;
    box-shadow: 0 0 0 4px rgba(115, 117, 68, 0.13);
}

.step7-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.step7-modal-primary,
.step7-modal-secondary {
    min-height: 45px;
    padding: 0 18px;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.step7-modal-primary {
    border: 1px solid #737544;
    background: #737544;
    color: #ffffff;
}

.step7-modal-primary:hover {
    background: #67693c;
    border-color: #67693c;
    transform: translateY(-1px);
}

.step7-modal-secondary {
    border: 1px solid #cbbcad;
    background: #fffaf4;
    color: #6d594c;
}

.step7-modal-secondary:hover {
    border-color: #9a9b70;
    background: #f0f1e5;
    color: #5f6238;
    transform: translateY(-1px);
}

.step7-modal-cancel-wide {
    width: 100%;
    margin-top: 14px;
}

/* Р’С‹Р±РѕСЂ, С‡С‚Рѕ СЂРµРґР°РєС‚РёСЂРѕРІР°С‚СЊ */

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

.step7-edit-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 105px;
    padding: 18px;
    border: 1px solid #ded2c4;
    border-radius: 15px;
    background: #fffaf4;
    color: #49382f;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.step7-edit-option:hover {
    border-color: #8f9163;
    background: #f0f1e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(92, 95, 48, 0.12);
}

.step7-edit-option-icon {
    flex: 0 0 auto;
    font-size: 30px;
}

.step7-edit-option span:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step7-edit-option strong {
    font-size: 15px;
    color: #423127;
}

.step7-edit-option small {
    font-size: 12px;
    color: #83766e;
}

/* ===========================
   РџРћР›РќРћР­РљР РђРќРќР«Р™ РџР РћРЎРњРћРўР 
=========================== */

.step7-fullscreen-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(27, 20, 17, 0.86);
}

.step7-fullscreen-modal.open {
    display: flex;
}

.step7-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font: inherit;
    font-size: 30px;
    cursor: pointer;
}

.step7-fullscreen-content {
    width: min(1200px, 100%);
    max-height: calc(100vh - 60px);
    overflow: auto;
}

.step7-fullscreen-content .step7-book-preview {
    min-height: 680px;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.step7-fullscreen-content .step7-book-preview.step7-cover-fullscreen-preview {
    width: min(680px, 78vw, 78vh);
    height: min(680px, 78vw, 78vh);
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
    margin: 0 auto;
}

body.step7-modal-open {
    overflow: hidden;
}

/* ===========================
   STEP 7 вЂ” РђР”РђРџРўРР’РќРћРЎРўР¬
=========================== */

@media (max-width: 1120px) {
    .step7-intro-row,
    .step7-spread-workspace {
        grid-template-columns: 1fr;
    }

    .step7-progress-card {
        min-height: 170px;
    }

    .step7-details-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step7-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .step7-content {
        width: min(100% - 24px, 1500px);
        padding-top: 26px;
    }

    .step7-intro h1 {
        font-size: 34px;
    }

    .step7-spread-head {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 17px;
    }

    .step7-status {
        grid-column: 1 / 2;
        width: fit-content;
    }

    .step7-chevron {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .step7-spread-body {
        padding: 0 17px 20px;
    }

    .step7-book-preview {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .step7-preview-fold {
        display: none;
    }

    .step7-preview-page {
        min-height: 360px;
    }

    .step7-preview-page + .step7-preview-page {
        border-top: 1px solid #d8ccbf;
    }

    .step7-details-column {
        grid-template-columns: 1fr;
    }

    .step7-photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .step7-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .step7-footer .step4-back,
    .step7-footer .step4-next,
    .step7-order-button {
        width: 100%;
        min-width: 0;
    }

    .step7-edit-options {
        grid-template-columns: 1fr;
    }

    .step7-modal-actions {
        flex-direction: column;
    }

    .step7-modal-primary,
    .step7-modal-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step7-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step7-preview-photo-area {
        grid-template-columns: 1fr;
    }

    .step7-preview-photo {
        min-height: 220px;
    }

    .step7-preview-small-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step7-modal-card {
        padding: 25px 18px 20px;
    }

    .step7-modal-card h2 {
        font-size: 24px;
    }
}

.step5-section-card.step5-selected-section {
    border-color: #737544;
    box-shadow:
        0 0 0 3px rgba(115, 117, 68, 0.14),
        0 14px 32px rgba(73, 52, 40, 0.09);
}

.step5-return-to-layout{

    grid-column:2;
    justify-self:center;

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

    height:54px;

    border:1px solid rgba(74,33,27,.42);
    border-radius:999px;

    background:rgba(255,255,255,.55);

    color:#4a211b;

    text-decoration:none;

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

    font-size:19px;
    font-weight:500;

    transition:.25s ease;
}


.step5-return-to-layout:hover {
    background: #737544;
    border-color: #737544;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 12px 22px rgba(92, 95, 48, .18);
}

.step5-return-to-layout[hidden] {
    display: none;
}

.step5-save-later {
    margin-top: 0px;
    align-self: flex-end;

    background: #737544;
    border-color: #737544;
    color: #ffffff;
}

.step5-save-later:hover {
    background: #5f6137;
    border-color: #5f6137;
    color: #ffffff;
}

/* РљРЅРѕРїРєР° В«РџСЂРёРјРµРЅРёС‚СЊВ» */
.step7-cover-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
    padding: 10px 16px;

    border: 1px solid #8b8d5e;
    border-radius: 11px;

    background: #eef1e5;
    color: #5f6238;

    font-size: 13px;
    font-weight: 700;
    cursor: pointer;

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

.step7-cover-apply:hover {
    border-color: #85875a;
    background: #85875a;
    color: #ffffff;

    transform: scale(1.025);
    box-shadow: 0 8px 18px rgba(92, 95, 48, 0.18);
}


/* РљРЅРѕРїРєР° В«РЈС‚РІРµСЂРґРёС‚СЊ РѕР±Р»РѕР¶РєСѓВ» */
.step7-cover-approve {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 1px solid #8b8d5e;
    border-radius: 11px;

    background: #eef1e5;
    color: #5f6238;

    font-size: 13px;
    font-weight: 700;
    cursor: pointer;

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

.step7-cover-approve:hover {
    border-color: #85875a;
    background: #85875a;
    color: #ffffff;

    transform: scale(1.025);
    box-shadow: 0 8px 18px rgba(92, 95, 48, 0.18);
}

/* РЎРѕСЃС‚РѕСЏРЅРёРµ РїРѕСЃР»Рµ СѓС‚РІРµСЂР¶РґРµРЅРёСЏ */
.step7-cover-approve.is-approved {
    border-color: #85875a;
    background: #85875a;
    color: #ffffff;
}

.step7-cover-status.approved {
    background: #85875a;
    border-color: #85875a;
    color: #ffffff;
}

/* Step 5 вЂ” С„РѕС‚РѕРіСЂР°С„РёРё РЅРµРґРѕСЃС‚СѓРїРЅС‹ РїРѕСЃР»Рµ РґРѕСЃС‚РёР¶РµРЅРёСЏ Р»РёРјРёС‚Р° */
.section-photo-item:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   Step 5 вЂ” РїСЂРµРґСѓРїСЂРµР¶РґРµРЅРёРµ:
   РЅРµ РґРѕР±Р°РІР»РµРЅС‹ РѕР±СЏР·Р°С‚РµР»СЊРЅС‹Рµ С„РѕС‚РѕРіСЂР°С„РёРё
========================================== */

.step5-photos-required-notice {
    position: relative;
    display: block;

    max-width: 920px;
    margin: 22px 0 28px;
    padding: 20px 24px 20px 76px;

    background:
        linear-gradient(
            180deg,
            #fff8f6 0%,
            #fdf1ee 100%
        );

    border: 1px solid rgba(151, 78, 62, 0.30);
    border-left: 5px solid #9a5547;
    border-radius: 15px;

    box-shadow:
        0 7px 22px rgba(108, 63, 53, 0.09);

    color: #514441;
}

.step5-photos-required-notice[hidden] {
    display: none;
}

.step5-photos-required-notice::before {
    content: "!";

    position: absolute;
    left: 22px;
    top: 50%;

    width: 36px;
    height: 36px;

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

    transform: translateY(-50%);

    border-radius: 50%;

    background: #9a5547;
    color: #ffffff;

    font-size: 21px;
    line-height: 1;
    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(108, 63, 53, 0.18);
}

.step5-photos-required-notice strong {
    display: block;
    margin-bottom: 5px;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    color: #81483d;
}

.step5-photos-required-notice span {
    display: block;

    font-size: 16px;
    line-height: 1.55;

    color: #5e504c;
}


/* Р Р°Р·РІРѕСЂРѕС‚С‹, РІ РєРѕС‚РѕСЂС‹С… РЅРµ С…РІР°С‚Р°РµС‚ С„РѕС‚РѕРіСЂР°С„РёР№ */

.step5-section-card.photos-required {
    border-color: rgba(157, 73, 62, 0.62);

    background:
        linear-gradient(
            90deg,
            rgba(255, 242, 239, 0.96) 0%,
            rgba(255, 250, 249, 0.99) 100%
        );

    box-shadow:
        0 0 0 2px rgba(157, 73, 62, 0.10),
        0 6px 18px rgba(108, 63, 53, 0.07);
}

.step5-section-card.photos-required .photo-count {
    color: #95483f;
    font-weight: 700;
}