/* ==========================================================================
   Страницы «Сертификаты и подписки» (с 28.10.2026): /certificate/, /podpiska-na-tsvety/,
   /svadebnaya-podpiska/. Деплой: /local/assets/gifts/gifts.css, подключает ShipGifts::assets()
   только на этих страницах. Всё заскоуплено на .gf.

   Верх страницы - в стиле макетов дизайнера (сертификат A5): розовый #F6A9F1, красный #F7053A,
   узкий жирный заголовок, рукописная строка, чёрные каракули. Остальное - в стиле сайта
   (шрифт Chiron GoRound TC, сиреневые акценты).
   Шрифты свои, не с Google: Oswald 700 и Amatic SC 700, кириллица и латиница.
   ========================================================================== */

@font-face{font-family:'Amatic SC Ship';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/amatic-sc-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Amatic SC Ship';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/amatic-sc-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Oswald Ship';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/oswald-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Oswald Ship';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/oswald-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

.gf {
  --gf-pink: #F6A9F1;
  --gf-pink-soft: #FDEBFB;
  --gf-red: #F7053A;
  --gf-red-soft: #FFF0F3;
  --gf-lilac: var(--theme-base-color, #e8a2e1);
  --gf-ink: #1d1d1f;
  --gf-muted: #6b6470;
  --gf-line: #ece7ed;
  --gf-soft: #F7F3F8;
  --gf-ok: #17885A;
  --gf-display: 'Oswald Ship', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --gf-hand: 'Amatic SC Ship', 'Marker Felt', 'Comic Sans MS', cursive;
  max-width: 1200px;
  margin: 0 auto 56px;
  color: var(--gf-ink);
  font-size: 16px;
  line-height: 1.5;
}
.gf *, .gf *::before, .gf *::after { box-sizing: border-box; }
.gf img { max-width: 100%; height: auto; }
.gf button { font-family: inherit; }
.gf [hidden] { display: none !important; }   /* иначе display:flex у .gf-own перебивает hidden */
.gf :focus-visible { outline: 3px solid var(--gf-red); outline-offset: 2px; }
/* Редактор Битрикса дописывает <br> после последнего блока области */
.gf-lead > br, .gf-steps > br, .gf-faq > br, .gf-benefits > br, .gf-seo > br { display: none; }

.gf-crumbs { font-size: 13px; color: #8b8090; margin: 4px 0 12px; }
.gf-crumbs a { color: inherit; text-decoration: none; }
.gf-crumbs a:hover { color: var(--gf-ink); }

/* Переключатель трёх страниц - как кнопки «Акции / Премиум / Хиты» в шапке: сиреневая обводка,
   текущая залита сиреневым */
.gf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.gf-tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px var(--gf-lilac);
  background: transparent;
  color: var(--gf-lilac);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
}
.gf a.gf-tab:hover { background: var(--gf-pink-soft); color: var(--gf-lilac); }
.gf-tab.is-on { background: var(--gf-lilac); color: #fff; }
.gf-tab-short { display: none; }

/* ---------- розовый блок вверху ---------- */
.gf-band {
  position: relative;
  overflow: hidden;
  background: var(--gf-pink);
  border-radius: 28px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 40px;
  align-items: center;
}
.gf-band > * { position: relative; z-index: 1; }
.gf-band .gf-scr { position: absolute; z-index: 0; pointer-events: none; }
.gf-hand {
  display: inline-block;
  font-family: var(--gf-hand);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: #111;
  transform: rotate(-3deg);
}
.gf .gf-h1 {
  font-family: var(--gf-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gf-red);
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: .93;
  letter-spacing: -.005em;
  margin: 8px 0 14px;
  text-wrap: balance;
}
.gf-lead p { margin: 0 0 8px; font-size: 17px; max-width: 46ch; color: #2a1f2c; }
.gf-art { text-align: center; }
.gf-art img { border-radius: 6px; box-shadow: 0 20px 44px rgba(80, 0, 50, .28); }
.gf--cert .gf-art img { transform: rotate(3deg); }
.gf-cap {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--gf-hand);
  font-weight: 700;
  font-size: 26px;
  transform: rotate(-2deg);
}

/* ---------- форма в белой карточке ---------- */
.gf-buy {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-top: 22px;
  box-shadow: 0 12px 30px rgba(120, 20, 90, .14);
}
.gf-lab {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #8b8090;
  margin: 0 0 8px;
}
.gf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gf-chip {
  border: 2px solid var(--gf-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  color: var(--gf-ink);
  cursor: pointer;
}
.gf-chip.is-on { border-color: var(--gf-red); color: var(--gf-red); background: var(--gf-red-soft); }
.gf-own { display: flex; gap: 8px; align-items: center; margin: -4px 0 14px; }
.gf-own input { width: 160px; }

.gf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.gf-field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #8b8090; margin: 0; }
.gf input[type="text"], .gf input[type="tel"], .gf input[type="date"], .gf input[type="number"], .gf textarea {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--gf-line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--gf-ink);
  background: #fff;
}
.gf input.gf-invalid, .gf .gf-invalid input { border-color: var(--gf-red); }
.gf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--gf-muted); margin: 4px 0 12px; font-weight: 400; cursor: pointer; }
/* Свой квадратик вместо синего браузерного: красный, как выбранный номинал */
.gf .gf-consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #d9cfdb;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.gf .gf-consent input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .12s;
}
.gf .gf-consent input[type="checkbox"]:checked { background: var(--gf-red); border-color: var(--gf-red); }
.gf .gf-consent input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.gf .gf-consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--gf-pink); outline-offset: 1px; }
.gf-consent.gf-invalid input[type="checkbox"] { border-color: var(--gf-red); }
.gf-consent.gf-invalid span { color: var(--gf-red); }
.gf-consent a { color: inherit; }
.gf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  background: var(--gf-red);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.gf-btn:hover { color: #fff; filter: brightness(.95); }
.gf-btn[disabled] { opacity: .6; cursor: default; }
.gf-btn--ghost { background: #fff; color: var(--gf-ink); border: 2px solid var(--gf-line); }
.gf-btn--ghost:hover { color: var(--gf-ink); }
.gf-btn--dark { background: #111; }
.gf-note { margin: 10px 0 0; font-size: 13px; color: var(--gf-muted); }
.gf-msg { margin: 8px 0 0; font-size: 14px; font-weight: 700; min-height: 0; }
.gf-msg:empty { display: none; }
.gf-msg.is-ok { color: var(--gf-ok); }
.gf-msg.is-err { color: var(--gf-red); }
.gf-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: #4a3f4d; }
.gf-facts li { display: inline-flex; gap: 6px; align-items: center; margin: 0; padding: 0; }
/* У сайта общий маркер li::before (серый квадрат со сдвигом) - всё его перебиваем */
.gf-facts li::before {
  content: ""; flex: none; position: static; top: auto; left: auto; margin: 0;
  width: 12px; height: 7px; background: none; border-radius: 0;
  border: 0; border-left: 2.5px solid var(--gf-ok); border-bottom: 2.5px solid var(--gf-ok);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- секции ниже ---------- */
.gf-sec { padding-top: 48px; }
.gf .gf-h2 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.gf .gf-h2 em { font-style: normal; color: var(--gf-lilac); }

/* Шаги и преимущества: пары h3 + p из области. Сетка раскладывает пару в колонку:
   h3 - верх карточки, p - низ. Номер шага - счётчик на h3. */
.gf-steps, .gf-benefits {
  display: grid;
  grid-template-columns: repeat(var(--gf-cols, 3), minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: 14px;
  counter-reset: gfstep;
}
.gf-steps--4 { --gf-cols: 4; }
.gf-steps h3, .gf-benefits h3 {
  margin: 0;
  padding: 20px 20px 4px;
  background: var(--gf-soft);
  border-radius: 20px 20px 0 0;
  font-size: 16px;
  line-height: 1.3;
}
.gf-steps p, .gf-benefits p {
  margin: 0;
  padding: 0 20px 20px;
  background: var(--gf-soft);
  border-radius: 0 0 20px 20px;
  font-size: 14px;
  color: #5d5260;
}
.gf-steps h3::before {
  counter-increment: gfstep;
  content: counter(gfstep);
  display: block;
  font-family: var(--gf-display);
  font-size: 40px;
  line-height: 1;
  color: var(--gf-red);
  margin-bottom: 8px;
}
.gf-benefits h3, .gf-benefits p { background: #fff; border: 2px solid #f0eaf1; }
.gf-benefits h3 { border-bottom: 0; }
.gf-benefits p { border-top: 0; }

/* Вопросы: пары h3 + p; gifts.js делает из них раскрывашки, без JS всё видно. */
.gf-faq h3 {
  margin: 8px 0 0;
  padding: 14px 44px 14px 18px;
  background: var(--gf-soft);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.35;
  position: relative;
}
.gf-faq.is-js h3 { cursor: pointer; }
.gf-faq.is-js h3::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gf-red); font-size: 20px; }
.gf-faq.is-js h3[aria-expanded="true"]::after { content: "-"; }
.gf-faq.is-js h3[aria-expanded="true"] { border-radius: 14px 14px 0 0; }
.gf-faq p, .gf-faq ul { margin: 0; padding: 0 18px 14px; background: var(--gf-soft); font-size: 14px; color: #5d5260; }
.gf-faq.is-js p, .gf-faq.is-js ul { border-radius: 0 0 14px 14px; }
.gf-faq.is-js [hidden] { display: none !important; }

.gf-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; }
.gf-box { border: 2px solid #f0eaf1; border-radius: 20px; padding: 22px; }
.gf-box--pink { background: var(--gf-pink-soft); border-color: var(--gf-pink-soft); }
.gf-box h3 { margin: 0 0 6px; font-size: 18px; }
.gf-box p { margin: 0 0 14px; font-size: 14px; color: #5d5260; }
.gf-box .status-result { margin: 0; }
/* Проверка номера: у виджета своя рамка, вторую не рисуем. Стили кабинета (status.css)
   центруют .status-result с полями по бокам - здесь он встаёт ровно под заголовок. */
.gf-check h3 { margin: 0 0 10px; font-size: 18px; }
.gf .gf-check .status-result { max-width: none; margin: 0; padding: 0; }
.gf-check--top { margin-bottom: 20px; }

.gf-seo { font-size: 13.5px; color: #7b707e; line-height: 1.6; max-width: 90ch; }
.gf-seo p { margin: 0 0 8px; }
.gf-seo a, .gf-more a { color: var(--gf-lilac); font-weight: 700; text-decoration: none; }
.gf-more { font-size: 13.5px; color: #7b707e; margin: 4px 0 0; }
.gf-editnote { margin: 10px 0 0; padding: 10px 12px; border: 1px dashed #c9b8c8; border-radius: 10px; font-size: 13px; background: #fff; }

/* ---------- подписка ---------- */
.gf-seg { display: inline-flex; background: #F4EEF5; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.gf-seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--gf-muted); cursor: pointer; }
.gf-seg button.is-on { background: #fff; color: var(--gf-ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.gf-giftnote { font-size: 13px; background: var(--gf-pink-soft); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.gf-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.gf-tier {
  border: 2px solid var(--gf-line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  color: var(--gf-ink);
  text-align: left;
  cursor: pointer;
}
.gf-tier.is-on { border-color: var(--gf-red); background: var(--gf-red-soft); }
.gf-tier .t { display: block; font-family: var(--gf-display); font-size: 28px; line-height: 1; color: var(--gf-red); }
.gf-tier .p { display: block; font-weight: 700; font-size: 17px; margin-top: 4px; }
.gf-tier small { display: block; font-size: 12px; color: #7a6f7d; }
.gf-date { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.gf-date .gf-lab { margin: 0; }
.gf-date input { width: auto; }
.gf-sched { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.gf-sched div { background: var(--gf-soft); border-radius: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.3; }
.gf-sched b { display: block; font-size: 13px; }
.gf-fan { position: relative; height: 380px; }
.gf-fan figure {
  position: absolute;
  margin: 0;
  width: 36%;
  background: #fff;
  padding: 8px 8px 10px;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(80, 0, 50, .22);
  text-align: center;
}
.gf-fan figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; display: block; }
.gf-fan figcaption { font-family: var(--gf-hand); font-weight: 700; font-size: 22px; line-height: 1; margin-top: 6px; }
.gf-fan figure:nth-child(1) { left: 0; top: 56px; transform: rotate(-10deg); }
.gf-fan figure:nth-child(2) { left: 21%; top: 12px; transform: rotate(-3deg); }
.gf-fan figure:nth-child(3) { left: 42%; top: 30px; transform: rotate(4deg); }
.gf-fan figure:nth-child(4) { left: 63%; top: 66px; transform: rotate(11deg); }

/* ---------- свадебная ---------- */
.gf-plate { width: 78%; max-width: 330px; margin: 0 auto; transform: rotate(-3deg); }
.gf-plate img { display: block; border-radius: 6px; box-shadow: 0 22px 46px rgba(80, 0, 50, .3); }
.gf-wedform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.gf-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Режим правки Битрикса: рамка области встаёт между сеткой и детьми - раскладку не ломаем. */
.gf-steps:has([id^="bx_incl_area"]), .gf-benefits:has([id^="bx_incl_area"]) { display: block; }

@media (max-width: 1023px) {
  .gf-band { padding: 34px 28px; gap: 24px; }
  .gf-fan { height: 300px; }
}

@media (max-width: 767px) {
  .gf { margin-bottom: 36px; }
  .gf-band { grid-template-columns: minmax(0, 1fr); padding: 26px 18px 22px; border-radius: 22px; gap: 14px; }
  .gf-art, .gf-fan, .gf-plate-wrap { order: -1; }
  .gf-cap { display: none; }
  .gf-hand { font-size: 28px; }
  .gf-buy { padding: 16px; margin-top: 16px; }
  .gf-fields, .gf-wedform, .gf-two { grid-template-columns: minmax(0, 1fr); }
  .gf-tabs { gap: 6px; flex-wrap: nowrap; }
  .gf-tab { flex: 1 1 auto; justify-content: center; padding: 8px 8px; font-size: 12px; }
  .gf-tab-full { display: none; }
  .gf-tab-short { display: inline; }
  .gf-band .gf-scr--desk { display: none; }
  .gf-tiers { grid-template-columns: minmax(0, 1fr); }
  .gf-tier { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: center; }
  .gf-tier .t { grid-row: 1 / 3; }
  .gf-tier .p { margin: 0; }
  .gf-sched { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-btn { width: 100%; }
  .gf-cta .gf-btn { width: auto; flex: 1 1 auto; }
  .gf-sec { padding-top: 34px; }
  .gf-steps, .gf-benefits { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .gf-steps p, .gf-benefits p { margin-bottom: 10px; }
  .gf-fan { height: 250px; }   /* повёрнутые фото выходят ниже блока - иначе наезжают на рукописную строку */
  .gf-fan figure { padding: 5px 5px 7px; }
  .gf-fan figcaption { font-size: 17px; }
  .gf-plate { width: 64%; }
  .gf-band .gf-scr { opacity: .8; }
}
