/* ═══════════════════════════════════════════════════════════
   page-giftcard.css — /podarochnye-karty/ page
   Layout follows the rest of storefront static pages
   (topmenu offset, centered 1200px wrap).
   ═══════════════════════════════════════════════════════════ */

body.giftcard-page {
    margin: 0;
    padding: 0;
    padding-top: 78px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 1024px) { body.giftcard-page { padding-top: 60px; } }
@media (max-width: 640px)  { body.giftcard-page { padding-top: 44px; } }

.giftcard-wrap {
    max-width: min(1200px, 70vw);
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .giftcard-wrap { max-width: 100%; }
}

/* ─── Breadcrumb ───────────────────────────────────────────── */
.giftcard-breadcrumb {
    padding: 16px 0 10px;
    font-size: 0.82rem;
    color: #999;
}
.giftcard-breadcrumb a { color: #767676; text-decoration: none; transition: color .2s; }
.giftcard-breadcrumb a:hover { color: #222; }
.giftcard-breadcrumb__sep { margin: 0 6px; color: #ccc; }
.giftcard-breadcrumb__current { color: #555; }

/* ─── Main ─────────────────────────────────────────────────── */
.giftcard-main {
    background: #fff;
    padding: 8px 0 80px;
}

.giftcard-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    color: #222;
    margin: 13px 0 19px;
    letter-spacing: 0.3px;
}
@media (max-width: 640px) {
    .giftcard-title {
        font-size: 2rem;
        margin: 2px 0 -10px;
        font-weight: 400;
    }
}

/* ─── Hero: two-column (image / text) ──────────────────────── */
.giftcard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 24px 0 72px;
}
@media (max-width: 900px) {
    .giftcard-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 8px 0 48px;
    }
}

.giftcard-hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.giftcard-hero__pic {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.giftcard-hero__text {
    padding: 0 16px;
}
@media (max-width: 900px) {
    .giftcard-hero__text { padding: 0; text-align: center; }
}

.giftcard-hero__heading {
    font-size: 1.6rem;
    font-weight: 400;
    color: #222;
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}
@media (max-width: 640px) {
    .giftcard-hero__heading {
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        margin-bottom: 16px;
    }
}

.giftcard-hero__lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #8c8372;
    margin: 0 0 28px;
}
@media (max-width: 640px) {
    .giftcard-hero__lead { font-size: 0.88rem; margin-bottom: 20px; }
}

.giftcard-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .giftcard-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ─── Buttons ──────────────────────────────────────────────── */
.giftcard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 16px 32px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
    border: 1px solid transparent;
    box-sizing: border-box;
}
.giftcard-btn:active { transform: translateY(1px); }

.giftcard-btn--primary {
    background: #2b2b2b;
    color: #fff;
    border-color: #2b2b2b;
}
.giftcard-btn--primary:hover { background: #000; border-color: #000; }

.giftcard-btn--secondary {
    background: #fff;
    color: #2b2b2b;
    border-color: #d9d9d9;
}
.giftcard-btn--secondary:hover { border-color: #2b2b2b; }

/* ─── Balance section ──────────────────────────────────────── */
.giftcard-balance {
    padding: 56px 0 24px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}
@media (max-width: 640px) {
    .giftcard-balance { padding: 32px 0 16px; }
}

.giftcard-balance__title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    color: #222;
    margin: 0 0 32px;
    letter-spacing: 0.2px;
}
@media (max-width: 640px) {
    .giftcard-balance__title {
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        margin-bottom: 20px;
    }
}

.giftcard-balance__form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .giftcard-balance__form {
        flex-direction: column;
        gap: 10px;
        max-width: 340px;
    }
}

.giftcard-balance__input {
    flex: 0 1 320px;
    height: 54px;
    padding: 0 22px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.giftcard-balance__input::placeholder { color: #9a9a9a; }
.giftcard-balance__input:focus { border-color: #2b2b2b; }
@media (max-width: 640px) {
    .giftcard-balance__input { width: 100%; flex: 0 0 auto; }
}

.giftcard-balance__btn {
    height: 54px;
    min-width: 200px;
}
@media (max-width: 640px) {
    .giftcard-balance__btn { width: 100%; }
}

.giftcard-balance__result {
    max-width: 420px;
    margin: 22px auto 0;
    padding: 18px 22px;
    border: 1px solid #e6e0d4;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    color: #222;
    background: #faf7f1;
}
.giftcard-balance__result.is-error { background: #fff4f4; border-color: #f0c9c9; color: #a33; }
.giftcard-balance__result b { font-size: 1.4rem; color: #E30613; }

/* ─── About ───────────────────────────────────────────────── */
.giftcard-about { padding: 16px 0 40px; }
.giftcard-about__title {
    text-align: center; font-size: 1.6rem; font-weight: 400; color: #222; margin: 0 0 28px;
}
.giftcard-about__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 980px; margin: 0 auto;
}
@media (max-width: 900px) { .giftcard-about__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .giftcard-about__grid { grid-template-columns: 1fr; } }
.giftcard-about__item {
    background: #faf7f1; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.giftcard-about__item b { font-size: 0.98rem; color: #222; }
.giftcard-about__item span { font-size: 0.86rem; color: #8c8372; line-height: 1.5; }

/* ═══ Wizard / overlays ═══════════════════════════════════════ */
/* [hidden]-гард: класс .gcw-* перебивает UA-правило [hidden]{display:none},
   поэтому явно прячем при наличии атрибута hidden. */
.gcw-overlay[hidden], .gcw-sched[hidden], .giftcard-balance__result[hidden] { display: none !important; }

.gcw-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(20,18,14,.55); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gcw-modal {
    position: relative; background: #fff; border-radius: 18px;
    width: min(760px, 100%); max-height: 92vh; overflow: auto;
    padding: 28px 28px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.gcl-modal, .gcp-modal { width: min(440px, 100%); }
.gcc-modal { width: min(560px, 100%); }
.gcw-close {
    position: absolute; top: 12px; right: 14px; border: 0; background: none;
    font-size: 28px; line-height: 1; color: #999; cursor: pointer;
}
.gcw-close:hover { color: #222; }

.gcw-steps { display: flex; gap: 8px; justify-content: center; margin: 4px 0 22px; }
.gcw-step { width: 34px; height: 6px; border-radius: 999px; background: #e2ddd2; transition: background .2s; }
.gcw-step.is-active { background: #E30613; }

.gcw-body { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
@media (max-width: 640px) { .gcw-body { grid-template-columns: 1fr; gap: 16px; } }

.gcw-preview { position: sticky; top: 0; }
.gcw-card {
    aspect-ratio: 1.6 / 1; border-radius: 16px; padding: 18px; color: #fff;
    background: #E30613; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 14px 30px rgba(0,0,0,.2); background-size: cover; background-position: center;
}
.gcw-card__brand { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; opacity: .9; }
.gcw-card__label { font-size: .82rem; opacity: .85; margin-top: auto; }
.gcw-card__amount { font-size: 1.8rem; font-weight: 700; }

.gcw-h { font-size: 1.4rem; font-weight: 400; margin: 0 0 6px; color: #222; }
.gcw-sub { color: #8c8372; font-size: .9rem; margin: 0 0 16px; }

.gcw-designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gcw-design {
    aspect-ratio: 1.6 / 1; border-radius: 10px; cursor: pointer; border: 2px solid transparent;
    background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.gcw-design.is-active { border-color: #E30613; box-shadow: 0 0 0 2px rgba(227,6,19,.25); }
.gcw-design span { position: absolute; left: 6px; bottom: 4px; font-size: .68rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

.gcw-amount-field { position: relative; max-width: 320px; }
.gcw-amount-field input {
    width: 100%; height: 52px; padding: 0 36px 0 18px; border: 1px solid #d9d9d9; border-radius: 12px;
    font-size: 1.1rem; outline: none; box-sizing: border-box;
}
.gcw-amount-field input:focus { border-color: #2b2b2b; }
.gcw-amount-cur { position: absolute; right: 16px; top: 14px; color: #999; }
.gcw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.gcw-chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid #d9d9d9; background: #fff;
    cursor: pointer; font-size: .9rem; transition: all .15s;
}
.gcw-chip:hover { border-color: #2b2b2b; }
.gcw-chip.is-active { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }

.gcw-label { display: block; margin: 0 0 14px; font-size: .86rem; color: #555; }
.gcw-label input, .gcw-label textarea, .gcw-sched input, .gcw-sched select {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #d9d9d9;
    border-radius: 10px; font-size: .95rem; font-family: inherit; outline: none; box-sizing: border-box;
}
.gcw-label input:focus, .gcw-label textarea:focus { border-color: #2b2b2b; }
.gcw-counter { display: block; text-align: right; font-size: .76rem; color: #aaa; margin-top: 4px; }
.gcw-hint { display: block; font-size: .78rem; color: #999; margin-top: 4px; }
.gcw-req { color: #E30613; }

.gcw-radio { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .9rem; color: #333; cursor: pointer; }
.gcw-radio input { margin-top: 3px; }
.gcw-radio small { color: #999; }
.gcw-sched { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 0 26px; }
.gcw-sched input, .gcw-sched select { width: auto; margin-top: 0; }

.gcw-review { font-size: .92rem; color: #333; line-height: 1.7; }
.gcw-review b { color: #222; }

.gcw-err { color: #c0392b; font-size: .84rem; margin-top: 10px; }
.gcw-loading { color: #999; font-size: .9rem; padding: 20px; }

.gcw-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.gcw-back {
    width: 48px; height: 48px; border-radius: 999px; border: 1px solid #d9d9d9; background: #fff;
    font-size: 22px; color: #555; cursor: pointer;
}
.gcw-back:hover { border-color: #2b2b2b; color: #222; }
.gcw-back:disabled { opacity: .4; cursor: default; }
.gcw-next { min-width: 160px; }

/* ─── Cart ─────────────────────────────────────────────────── */
.gcc-title { text-align: center; }
.gcc-list { margin: 8px 0 16px; }
.gcc-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee;
}
.gcc-item__thumb { width: 64px; height: 40px; border-radius: 8px; background: #E30613 center/cover; flex: 0 0 auto; }
.gcc-item__info { flex: 1 1 auto; font-size: .9rem; }
.gcc-item__info small { color: #999; display: block; }
.gcc-item__amount { font-weight: 700; color: #222; }
.gcc-item__btns { display: flex; gap: 6px; }
.gcc-item__btns button { border: 0; background: none; cursor: pointer; font-size: 18px; color: #999; padding: 4px; }
.gcc-item__btns button:hover { color: #E30613; }
.gcc-empty { color: #999; text-align: center; padding: 24px; }
.gcc-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: #666; margin: 6px 0 16px; }
.gcc-agree a { color: #0a66c2; }
.gcc-actions { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.gcc-actions .giftcard-btn { flex: 1 1 200px; min-width: 0; }
.gcc-total { text-align: right; font-size: 1rem; margin: 0 0 12px; }
.gcc-total b { font-size: 1.3rem; color: #222; }
