/* /gifts/ — подарок доли токена акции по ссылке (seo-1107, зона page-gifts).
   Только токены r26 (assets/r26.css): тёмная тема без атрибута, светлая — html[data-theme="light"]
   получает свои значения тех же токенов. Приставка gft-. Телефон: 899 / 719 / 559 / 359.
   RTL — логические свойства, стрелки зеркалятся. Новых шрифтов и градиентов нет. */

.gft-top { padding-top: 12px; }
.gft-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

/* ── Открытка в первом экране (переключатель — радиокнопки, без скрипта) ── */
.gft-art { flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.gft-d-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gft-card {
  --gft-c: var(--r-brand);
  position: relative; overflow: hidden; width: 300px; max-width: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px; padding: 28px 22px 22px;
  background: var(--r-surface); border: 1px solid var(--r-line-2); border-radius: 24px;
  box-shadow: var(--r-pop-shadow);
}
.gft-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 6px; background: var(--gft-c); transition: background .2s ease; }
#gft-d-nexus:checked ~ .gft-card { --gft-c: var(--r-brand); }
#gft-d-birthday:checked ~ .gft-card { --gft-c: var(--r-red); }
#gft-d-thanks:checked ~ .gft-card { --gft-c: var(--r-green); }
#gft-d-congrats:checked ~ .gft-card { --gft-c: var(--r-accent); }
.gft-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gft-card-brand { font-size: 13px; font-weight: 800; color: var(--r-text); }
.gft-card-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--r-brand-tint); color: var(--r-link); white-space: nowrap;
}
.gft-card-ttl { min-height: 64px; display: flex; align-items: flex-end; }
.gft-t { display: none; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--r-text); }
#gft-d-nexus:checked ~ .gft-card .gft-t--nexus,
#gft-d-birthday:checked ~ .gft-card .gft-t--birthday,
#gft-d-thanks:checked ~ .gft-card .gft-t--thanks,
#gft-d-congrats:checked ~ .gft-card .gft-t--congrats { display: block; }
.gft-card-pos { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--r-fill-3); border: 1px solid var(--r-line); }
.gft-card-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--r-surface-3); color: var(--gft-c); }
.gft-card-pos-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gft-card-pos-t b { font-size: 16px; font-weight: 800; color: var(--r-text); }
.gft-card-pos-t span { font-size: 13px; color: var(--r-muted); }
.gft-card-msg { margin: 0; font-size: 14px; line-height: 1.5; color: var(--r-text-2); font-style: italic; }
.gft-card-btn {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px;
  background: var(--r-brand); color: #FFFFFF; font-size: 14px; font-weight: 800;
}
.gft-designs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; }
.gft-designs label {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--r-fill-3); border: 1px solid var(--r-line-2); font-size: 12.5px; font-weight: 700; color: var(--r-text-2);
  transition: background .15s ease, color .15s ease;
}
.gft-designs label:hover { background: var(--r-hover); }
#gft-d-nexus:checked ~ .gft-designs label[for="gft-d-nexus"],
#gft-d-birthday:checked ~ .gft-designs label[for="gft-d-birthday"],
#gft-d-thanks:checked ~ .gft-designs label[for="gft-d-thanks"],
#gft-d-congrats:checked ~ .gft-designs label[for="gft-d-congrats"] { background: var(--r-brand); border-color: var(--r-brand); color: #FFFFFF; }
#gft-d-nexus:focus-visible ~ .gft-designs label[for="gft-d-nexus"],
#gft-d-birthday:focus-visible ~ .gft-designs label[for="gft-d-birthday"],
#gft-d-thanks:focus-visible ~ .gft-designs label[for="gft-d-thanks"],
#gft-d-congrats:focus-visible ~ .gft-designs label[for="gft-d-congrats"] { outline: 2px solid var(--r-accent); outline-offset: 3px; }

/* ── Карточки «что дарите» и «кому подходит» ── */
.gft-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gft-tile { padding: 26px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.gft-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.gft-tile-t { margin: 4px 0 0; font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--r-text); }
.gft-tile-d { margin: 0; font-size: 15px; line-height: 1.55; color: var(--r-muted); }
.gft-sub { margin: 0; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--r-text-2); }
.gft-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--r-link); text-decoration: none; }
.gft-more:hover { color: var(--r-link-hover); }
[dir="rtl"] .gft-arr { transform: scaleX(-1); }

/* ── Шаги ── */
.gft-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gft-col { padding: 32px; display: flex; flex-direction: column; gap: 22px; box-sizing: border-box; }
.gft-col-t { margin: 0; font-size: 22px; font-weight: 800; color: var(--r-text); }
.gft-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.gft-step { display: flex; gap: 14px; align-items: flex-start; }
.gft-step-n {
  width: 32px; height: 32px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: var(--r-brand); color: #FFFFFF; font-size: 14px; font-weight: 800;
}
.gft-col--get .gft-step-n { background: var(--r-green-tint); color: var(--r-green); }
.gft-step-b { min-width: 0; }
.gft-step-t { margin: 4px 0 0; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--r-text); }
.gft-step-d { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--r-muted); }
.gft-col-note {
  margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--r-fill-2); border: 1px solid var(--r-red-line);
  font-size: 14px; line-height: 1.5; color: var(--r-text-2);
}

/* ── Таблица условий ── */
.gft-tbl-wrap { border: 1px solid var(--r-line); border-radius: 24px; background: var(--r-surface); overflow: hidden; }
.gft-tbl { width: 100%; border-collapse: collapse; }
.gft-tbl tr + tr th, .gft-tbl tr + tr td { border-top: 1px solid var(--r-line); }
.gft-tbl th { width: 36%; padding: 16px 24px; text-align: start; vertical-align: top; font-size: 15px; font-weight: 700; color: var(--r-text); }
.gft-tbl td { padding: 16px 24px; text-align: start; font-size: 15px; line-height: 1.5; color: var(--r-text-2); }
.gft-foot { margin: 0; font-size: 13px; color: var(--r-faint); }

/* ── Жизнь подарка ── */
.gft-life { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gft-life-i { padding: 22px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.gft-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--r-accent); }
.gft-life-i--ok .gft-dot { background: var(--r-green); }
.gft-life-i--off .gft-dot { background: var(--r-faint); }
.gft-life-i--back .gft-dot { background: var(--r-link); }
.gft-life-t { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: var(--r-text); }
.gft-life-d { margin: 0; font-size: 14px; line-height: 1.55; color: var(--r-muted); }

/* ── Риски ── */
.gft-k-warn { color: var(--r-red); }
.gft-risks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gft-risk { display: flex; gap: 14px; padding: 22px; border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-red-line); }
.gft-risk-i { flex: none; color: var(--r-red); padding-top: 1px; }
.gft-risk-t { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--r-text); }
.gft-risk-d { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--r-muted); }

/* ── Статьи блога ── */
.gft-blog-h { margin: 8px 0 0; font-size: 20px; font-weight: 800; color: var(--r-text); }
.gft-blog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gft-blog a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; box-sizing: border-box;
  padding: 16px 18px; border-radius: 16px; background: var(--r-surface); border: 1px solid var(--r-line);
  font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--r-text); text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.gft-blog a:hover { background: var(--r-hover); border-color: var(--r-line-3); }
.gft-blog .gft-arr { flex: none; color: var(--r-link); }

/* ── Финальный призыв ── */
.gft-end { padding-top: 56px; }
.gft-final { padding: 44px 56px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.gft-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.gft-final .r-btns { position: relative; flex: none; }

/* ── Телефон ── */
@media (max-width: 1099px) {
  .gft-life { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .gft-hero { grid-template-columns: minmax(0, 1fr); }
  .gft-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gft-how { grid-template-columns: 1fr; }
  .gft-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .gft-grid3, .gft-risks, .gft-blog { grid-template-columns: 1fr; }
  .gft-tile { padding: 22px; }
  .gft-col { padding: 22px 20px; }
  .gft-tbl th, .gft-tbl td { display: block; width: auto; }
  .gft-tbl th { padding: 14px 18px 2px; }
  .gft-tbl td { padding: 0 18px 14px; }
  .gft-tbl tr + tr td { border-top: 0; }
  .gft-end { padding-top: 40px; }
  .gft-final { padding: 26px 20px; }
  .gft-final .r-btns, .gft-final .r-btn { width: 100%; }
  .gft-final .r-btn { white-space: normal; text-align: center; }
}
@media (max-width: 559px) {
  .gft-life { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .gft-card { padding: 24px 16px 18px; }
  .gft-t { font-size: 24px; }
  .gft-hero .r-btns .r-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gft-card::before, .gft-designs label, .gft-blog a { transition: none; }
}

/* qa seo-1107: на узком телефоне (320–375) длинная подпись кнопки (de/pt/fr) переносится, а не вылезает за кнопку. */
@media (max-width: 379px) {
  main .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
