/* ==========================================================================
   ОАО «Универмаг «Центральный» — подарочный сертификат
   Файл: templates/section/css/gift-card.css
   Файл самодостаточный: свои переменные, зависимостей от других файлов нет.
   ========================================================================== */

.tsm-gc {
  --tsm-brand: #57071a;
  --tsm-brand-deep: #3d0413;
  --tsm-accent: #b94a24;
  --tsm-accent-deep: #96381a;
  --tsm-accent-soft: #e08a67;
  --tsm-accent-wash: rgba(185, 74, 36, .09);
  --tsm-ink: #201a1c;
  --tsm-muted: #6f6469;
  --tsm-line: #e7e1e2;
  --tsm-paper: #f6f4f5;
  --tsm-white: #fff;

  --tsm-radius: 14px;

  color: var(--tsm-ink);
  font-size: 15px;
  line-height: 1.5;
}

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

.tsm-gc p { margin: 0; }

.tsm-gc__section {
  clear: both;
  margin-top: clamp(24px, 4vw, 36px);
}

/* --- вступление ------------------------------------------------------------------ */

.tsm-gc__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tsm-accent);
}

.tsm-gc__title {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: clamp(22px, 1.25rem + 1vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--tsm-ink);
}

.tsm-gc__lead {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tsm-muted);
}

.tsm-gc__subtitle {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tsm-line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tsm-muted);
}

/* --- номиналы: ряд «корешков» сертификата ----------------------------------------- */

.tsm-gc__nominals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.tsm-nominal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 16px 14px;
  border: 1px solid var(--tsm-line);
  border-left: 3px solid var(--tsm-accent);
  border-radius: 3px var(--tsm-radius) var(--tsm-radius) 3px;
  background: var(--tsm-paper);
}

.tsm-nominal__value {
  font-size: clamp(26px, 1.3rem + 1.2vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--tsm-brand);
}

.tsm-nominal__unit {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tsm-muted);
}

.tsm-nominal--custom {
  border: 1px dashed #c9bfc2;
  border-left: 3px solid var(--tsm-accent-soft);
  background: var(--tsm-white);
}

.tsm-nominal__custom {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tsm-accent-deep);
}

.tsm-nominal__note {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--tsm-muted);
}

/* --- плитка правил ------------------------------------------------------------------ */

.tsm-gc__plate {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tsm-line);
  border-radius: var(--tsm-radius);
  overflow: hidden;
  list-style: none;
  background: var(--tsm-line);
}

@media (min-width: 700px) {
  .tsm-gc__plate { grid-template-columns: 1fr 1fr; }
}

.tsm-gc__plate li {
  padding: 13px 16px;
  background: var(--tsm-white);
  font-size: 14px;
  line-height: 1.45;
  color: var(--tsm-muted);
}

.tsm-gc__plate strong {
  color: var(--tsm-ink);
  font-weight: 700;
}

/* --- ограничения --------------------------------------------------------------------- */

.tsm-gc__limits {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsm-gc__limits li {
  position: relative;
  padding: 0 0 0 26px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--tsm-muted);
}

.tsm-gc__limits li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--tsm-accent);
}

.tsm-gc__note {
  max-width: 72ch;
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--tsm-line);
  font-size: 14px;
  line-height: 1.45;
  color: var(--tsm-muted);
}

/* --- предупреждение --------------------------------------------------------------------- */

.tsm-gc__alert {
  margin-top: clamp(24px, 4vw, 36px);
  padding: 16px 18px;
  border: 1px solid rgba(185, 74, 36, .35);
  border-left: 3px solid var(--tsm-accent);
  border-radius: 3px var(--tsm-radius) var(--tsm-radius) 3px;
  background: var(--tsm-accent-wash);
}

.tsm-gc__alert-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tsm-accent-deep);
}

.tsm-gc__alert-text {
  margin-top: 4px;
  font-size: 14px;
  color: var(--tsm-muted);
}

/* --- призыв связаться -------------------------------------------------------------------- */

.tsm-gc__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(24px, 4vw, 36px);
  padding: 18px clamp(18px, 3vw, 26px);
  border-radius: var(--tsm-radius);
  background: linear-gradient(135deg, var(--tsm-brand) 0%, var(--tsm-brand-deep) 100%);
  color: var(--tsm-white);
}

.tsm-gc__cta-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.tsm-gc__cta-lead {
  max-width: 60ch;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
}

.tsm-gc__contact {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: var(--tsm-white);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}

.tsm-gc__contact:hover,
.tsm-gc__contact:focus-visible {
  border-color: var(--tsm-accent-soft);
  background: rgba(185, 74, 36, .32);
  color: var(--tsm-white);
}

.tsm-gc__contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.tsm-gc__legal {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tsm-muted);
}

@media (max-width: 520px) {
  .tsm-gc__cta { padding: 18px; }
  .tsm-gc__contact { white-space: normal; }
  .tsm-gc__nominals { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tsm-gc__contact { transition: none; }
}

@media print {
  .tsm-gc__cta { background: none; color: #000; border: 1px solid #999; }
  .tsm-gc__cta-lead, .tsm-gc__contact { color: #000; }
}

/* ==========================================================================
   ЗАЩИТА ОТ СТИЛЕЙ ШАБЛОНА
   style.css и os_pages.css бьют по #contentBox и .item-page, их специфичность
   выше наших классов. Блок должен оставаться последним в файле.
   ========================================================================== */

.tsm-gc h2, .tsm-gc h3 {
  display: block !important;
  float: none !important;
  padding-left: 0 !important;
  background: none !important;
  text-align: left !important;
}

.tsm-gc h3 { text-transform: uppercase !important; }
.tsm-gc h2 { text-transform: none !important; }

.tsm-gc__eyebrow,
.tsm-gc__lead,
.tsm-gc__note,
.tsm-gc__legal,
.tsm-gc__alert-title,
.tsm-gc__alert-text,
.tsm-gc__cta-title,
.tsm-gc__cta-lead {
  display: block !important;
  float: none !important;
  text-align: left !important;
  text-indent: 0 !important;
}

.tsm-gc .tsm-gc__plate li,
.tsm-gc .tsm-gc__limits li {
  list-style: none !important;
  background-image: none !important;
  margin: 0 !important;
}

.tsm-gc .tsm-gc__plate li { padding-left: 16px !important; }
.tsm-gc .tsm-gc__limits li { padding-left: 26px !important; }

.tsm-gc .tsm-gc__plate li::before { content: none !important; }

.tsm-gc .tsm-nominal__value,
.tsm-gc .tsm-nominal__unit,
.tsm-gc .tsm-nominal__custom,
.tsm-gc .tsm-nominal__note { display: block !important; }
