/* ==========================================================================
   Страница «Подарочные карты» (/gift-cards). Подключается только на ней.
   Префикс gp- (класс .gc занят каруселью на главной). Токены — из style.css.
   ========================================================================== */
body.is-gifts main { padding-top: 0; }
.gp { --gp-gap: clamp(72px, 9vw, 140px); overflow-x: clip; }
.gp [hidden] { display: none !important; }
.gp-arrow { width: 14px; height: 14px; margin-left: 10px; flex: none; }
body.gp-lock { overflow: hidden; }

.gp-kicker { margin: 0 0 clamp(14px, 1.6vw, 22px); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.gp-h2 { margin: 0; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.1; color: var(--white); text-wrap: balance; overflow-wrap: break-word; }
.gp-h3 { margin: 0 0 18px; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--gold); }
.gp-p { max-width: 62ch; margin: clamp(16px, 1.8vw, 26px) 0 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; color: var(--ash); }
.gp-lead { max-width: 52ch; margin: clamp(16px, 1.8vw, 26px) 0 0; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--ash); }
.gp-sec { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: var(--gp-gap) var(--pad) 0; }
.gp-sec:last-of-type { padding-bottom: var(--gp-gap); }

/* ---------- Hero ---------- */
.gp-hero { max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding: calc(var(--header-h) + 60px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.gp-hero__title { margin: 0; color: var(--gold); }

.gp-pick { min-width: 0; }
.gp-stage { position: relative; aspect-ratio: 1.586 / 1; max-width: 560px; margin-inline: auto; outline: none; touch-action: pan-y; }
.gp-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.96) translateX(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.gp-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.gp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: calc(var(--r) * 2); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(220,173,118,.25); }
.gp-slide__ph { width: 100%; height: 100%; display: grid; place-items: center; border-radius: calc(var(--r) * 2); border: 1px solid rgba(220,173,118,.4); background: linear-gradient(135deg, #1a1409, #0b0b0b); }
.gp-slide__ph b { font-family: var(--ff-display); font-size: 2rem; color: var(--gold); }
.gp-stage:focus-visible { outline: 1px solid var(--gold); outline-offset: 8px; }
.gp-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: rgba(0,0,0,.55); border: 1px solid var(--line); backdrop-filter: blur(4px); transition: color .2s, border-color .2s; }
.gp-nav:hover { color: var(--gold); border-color: var(--gold); }
.gp-nav svg { width: 16px; height: 16px; }
.gp-nav--prev { left: -22px; }
.gp-nav--next { right: -22px; }

.gp-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(22px, 2.6vw, 34px); }
.gp-choice { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ash); background: transparent; transition: color .2s, border-color .2s, background .2s; }
.gp-choice:hover { color: var(--white); border-color: var(--gold); }
.gp-choice.is-on { color: #000; background: var(--gold); border-color: var(--gold); }
.gp-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; margin-top: clamp(20px, 2.4vw, 30px); }
.gp-price { font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(2rem, 3.4vw, 3rem); color: var(--white); white-space: nowrap; }
.gp-note { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--faint); }

/* ---------- Три шага ---------- */
.gp-steps { list-style: none; margin: clamp(28px, 3.4vw, 50px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gp-steps li { padding: clamp(22px, 2.4vw, 34px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.gp-steps__n { display: block; margin-bottom: 18px; font-family: var(--ff-display); font-size: 1.1rem; color: var(--gold); }
.gp-steps h3 { margin: 0 0 10px; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: clamp(1.2rem, 1.7vw, 1.5rem); color: var(--white); }
.gp-steps p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ash); }

/* ---------- Корпоративный блок ---------- */
.gp-corp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding: clamp(28px, 4vw, 64px); border: 1px solid rgba(220,173,118,.35); border-radius: calc(var(--r) * 2); background: linear-gradient(135deg, rgba(220,173,118,.1), rgba(220,173,118,.02)); }
.gp-corp > div { flex: 1 1 420px; min-width: 0; }
.gp-corp .gp-kicker { margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.gp-faq { margin-top: clamp(24px, 3vw, 44px); max-width: 860px; border-top: 1px solid var(--line); }
.gp-faq details { border-bottom: 1px solid var(--line); }
.gp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--ff-display); font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--white); }
.gp-faq summary::-webkit-details-marker { display: none; }
.gp-faq summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform .3s var(--ease); }
.gp-faq details[open] summary::after { transform: rotate(45deg); }
.gp-faq details p { margin: 0 0 22px; max-width: 64ch; font-size: 15.5px; line-height: 1.7; color: var(--ash); }

/* ---------- Контакты ---------- */
.gp-contacts dl { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 0; }
.gp-contacts dt { margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.gp-contacts dd { margin: 0; font-size: 1.05rem; color: var(--white); }
.gp-contacts a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(220,173,118,.5); text-underline-offset: 4px; }
.gp-contacts a:hover { color: var(--gold); }

/* ---------- Окно заказа ---------- */
.gp-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.gp-modal__back { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.gp-modal__box { position: relative; width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(24px, 3vw, 38px); background: #0d0d0d; border: 1px solid rgba(220,173,118,.4); border-radius: var(--r); outline: none; animation: gpIn .45s var(--ease); }
@keyframes gpIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.gp-modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ash); }
.gp-modal__x:hover { color: var(--gold); }
.gp-modal__x svg { width: 16px; height: 16px; }
.gp-modal__t { margin: 0 36px 6px 0; font-family: var(--ff-display); font-weight: var(--fw-strong); font-size: 1.6rem; color: var(--gold); line-height: 1.2; }
.gp-modal__sub { margin: 0 0 20px; color: var(--ash); font-size: 15px; line-height: 1.55; }
.gp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gp-field { min-width: 0; }
.gp-field--full { grid-column: 1 / -1; }
.gp-field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ash); }
.gp-field input, .gp-field select { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--white); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--r); }
.gp-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.gp-field select option { color: #000; }
.gp-field input:focus, .gp-field select:focus { outline: none; border-color: var(--gold); }
.is-bad { border-color: #d46a5a !important; }
.gp-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--faint); }
.gp-check { margin-top: 14px; }
.gp-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--ash); }
.gp-check input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); }
.gp-sumrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.gp-sumrow span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.gp-sumrow strong { font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold); white-space: nowrap; }
.gp-error { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #d46a5a; border-radius: var(--r); color: #f0b3a8; font-size: 14px; line-height: 1.5; }
.gp-modal__act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.gp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gp-done { text-align: center; padding: 10px 0; }
.gp-done__chk { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold); color: #000; }
.gp-done__chk svg { width: 30px; height: 30px; }
.gp-done h3 { margin: 0 0 10px; font-family: var(--ff-display); font-size: 1.7rem; color: var(--gold); }
.gp-done p { color: var(--ash); line-height: 1.6; }
.gp-done strong { display: block; margin: 14px 0; font-family: var(--ff-display); font-size: 2rem; color: var(--white); }
.gp-done .btn { margin-top: 18px; }
.gp-help { font-size: 13px; color: var(--faint); }

@media (max-width: 960px) {
  .gp-hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + 36px); }
  .gp-steps { grid-template-columns: minmax(0, 1fr); }
  .gp-nav--prev { left: 6px; }
  .gp-nav--next { right: 6px; }
}
@media (max-width: 560px) {
  .gp-fields { grid-template-columns: minmax(0, 1fr); }
  .gp-modal { padding: 0; align-items: end; }
  .gp-modal__box { max-height: 94dvh; border-radius: var(--r) var(--r) 0 0; }
  .gp-modal__act .btn { flex: 1; justify-content: center; }
  .gp-buy .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-slide, .gp-modal__box { transition: none; animation: none; }
}
