/* =========================================================
Ultramarine École d'Art — Подарочный Сертификат
========================================================= */
:root {
  --blue: #15529e; --blue-dark: #0d386e; --blue-light: #eef4fc;
  --navy: #102a45; --ink: #1e293b; --text: #334155; --muted: #64748b;
  --line: #e2e8f0; --bg-soft: #f8fafc; --accent-gold: #d97706;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --navy-gradient: linear-gradient(135deg, #102a45 0%, #15529e 100%);
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(16,42,69,.05);
  --shadow-md: 0 8px 24px rgba(16,42,69,.08);
  --shadow-lg: 0 16px 36px rgba(16,42,69,.12);
}
*, *::before, *::after { box-sizing: border-box; }
.is-hidden { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: #ffffff; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
body.no-scroll { overflow: hidden; }   /* пока открыт конструктор на весь экран */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; transition: all .2s ease; padding: 12px 28px; text-align: center; }
.btn--primary { background: var(--blue); color: #ffffff; box-shadow: 0 4px 14px rgba(21,82,158,.3); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(21,82,158,.4); transform: translateY(-1px); }
.btn--xl { padding: 16px 36px; font-size: 17px; }
.btn--full { width: 100%; }
.btn--light { background: #ffffff; color: var(--navy); }
.btn--light:hover { background: var(--blue-light); transform: translateY(-1px); }
.page { padding-bottom: 90px; }
.breadcrumbs { margin: 28px 0 16px; font-size: 14px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { margin: 0 8px; color: var(--muted); }
.breadcrumbs__current { color: var(--muted); }
/* ---------- Заголовок с фото-фоном ---------- */
/* ---------- Заголовок с фото-фоном ---------- */
.hero-head {
  position: relative;
  margin-bottom: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
  padding: 56px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* блок у левой кромки, где тень */
  background: url('./img/hero-bg.png') center / cover no-repeat;
}

/* усиленное затемнение слева, чтобы светлый текст читался контрастно */
.hero-head::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(120deg, rgba(16,42,69,.78) 0%, rgba(16,42,69,.5) 45%, rgba(16,42,69,.05) 100%); */
  pointer-events: none;
}

/* отдельный блок для текста и кнопки */
.hero-head__card {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-right: auto; /* прижимает блок к стороне с тенью */
  background: rgba(16,42,69,.38); /* тёмная полупрозрачная панель поверх тени */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 24px 48px rgba(16,42,69,.35);
}

/* контрастный светлый текст */
.hero-head__card .badge {
  background: var(--blue);
  color: #ffffff;
  margin-bottom: 16px;
}
.hero-head__card .page__title {
  font-size: 34px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(16,42,69,.65);
  margin: 20px 0 20px 0;
}
.hero-head__card .page__subtitle {
  font-size: 16px;
  margin-bottom: 4px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(16,42,69,.55);
  margin: 20px 0 20px 0;
}

/* кнопка в блоке */
.hero-head__btn {
  margin-top: 24px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217,119,6,.45);
}
.hero-head__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16,42,69,.5);
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .hero-head { padding: 28px 16px; min-height: 0; }
  .hero-head__card { padding: 24px 20px; }
  .hero-head__card .page__title { font-size: 26px; }
}
.page__title { margin: 0 0 12px; font-size: 42px; font-weight: 800; line-height: 1.18; color: var(--navy); letter-spacing: -0.5px; }
.page__subtitle { margin: 0; font-size: 18px; color: var(--muted); line-height: 1.5; }
/* ---------- Оффер «Подарите искусство» ---------- */
.gift-pitch { margin-bottom: 70px; padding: 48px 40px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.gift-pitch__intro { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.gift-pitch__intro .badge { margin-bottom: 16px; }
.gift-pitch__title { margin: 0 0 10px; font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; }
.gift-pitch__lead { margin: 0 0 18px; font-size: 18px; font-weight: 700; color: var(--blue); }
.gift-pitch__intro p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--text); }
.gift-pitch__intro p:last-child { margin-bottom: 0; }
.gift-pitch__price-card { max-width: 440px; margin: 0 auto 40px; padding: 28px 32px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-sm); }
.gift-pitch__price-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.gift-pitch__price { margin-bottom: 10px; font-size: 28px; font-weight: 800; color: var(--accent-gold); white-space: nowrap; }
.gift-pitch__price-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gift-pitch__extra { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.gift-pitch__extra h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: var(--navy); }
.gift-pitch__extra p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--text); }
.gift-pitch__extra p:last-child { margin-bottom: 0; }
.gift-pitch__footer { text-align: center; }
.gift-pitch__closing { margin: 0 0 20px; font-size: 18px; font-weight: 700; font-style: italic; color: var(--navy); }
@media (max-width: 768px) {
  .gift-pitch { padding: 32px 20px; }
  .gift-pitch__title { font-size: 26px; }
  .gift-pitch__price-card { padding: 22px 20px; }
}
/* ---------- Конструктор ---------- */
.cert-constructor {
  margin-bottom: 70px;
  background: url('./img/table.png') center / cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  box-shadow: inset 0 0 70px rgba(20,14,6,.18);
}
.constructor-back { display: none; }
@keyframes constructorRise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes constructorFall { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(24px) scale(.98); } }
.constructor-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.constructor-form-card {
  position: relative;
  z-index: 0;
  background: linear-gradient(180deg, #fffdf8 0%, #faf6ec 100%);
  border: 1px solid rgba(30,20,10,.06);
  border-radius: 4px;
  padding: 40px 44px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 1px 2px rgba(35,28,15,.15),
    0 24px 40px rgba(20,14,6,.35);
  transform: rotate(-0.6deg);
}
/* пара листов «под низом», как будто бланк просто положили на стол */
.constructor-form-card::before,
.constructor-form-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fdfbf6;
  border-radius: 4px;
}
.constructor-form-card::before { transform: rotate(1.8deg) translate(7px, 10px); box-shadow: 0 16px 26px rgba(20,14,6,.18); }
.constructor-form-card::after { transform: rotate(-2.4deg) translate(-9px, 14px); box-shadow: 0 12px 22px rgba(20,14,6,.14); }
.constructor-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--navy); }
.constructor-desc { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.cert-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.form-hint { margin: -4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.form-section-title { margin: 8px 0 -6px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.denomination-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 10px 16px; font-family: inherit; font-size: 14px; font-weight: 700; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; color: var(--text); cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.chip-btn.is-selected { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; font-family: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #ffffff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form-input:focus, .form-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,82,158,.15); outline: none; }
.form-textarea { resize: vertical; }

/* ---------- Телефон: флаг + код страны + номер (phone.js) ---------- */
.phone-field__anchor { position: relative; }
.phone-field__box { display: flex; align-items: stretch; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.phone-field__box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,82,158,.15); }
.phone-field.is-invalid .phone-field__box { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.phone-field__country { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 0 10px 0 12px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: var(--bg-soft); border: 0; border-right: 1px solid var(--line); border-radius: calc(var(--radius-sm) - 1px) 0 0 calc(var(--radius-sm) - 1px); cursor: pointer; white-space: nowrap; transition: background .2s; }
.phone-field__country:hover, .phone-field__country[aria-expanded="true"] { background: var(--blue-light); }
.phone-field__country:focus-visible { outline-offset: -3px; }
.phone-field__flag { display: inline-flex; align-items: center; }
.phone-dial { font-variant-numeric: tabular-nums; }
.phone-chevron { color: var(--muted); transition: transform .2s; }
.phone-field__country[aria-expanded="true"] .phone-chevron { transform: rotate(180deg); }
.phone-field__input.form-input { flex: 1; min-width: 0; border: 0; border-radius: 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0; background: transparent; box-shadow: none; padding: 12px 14px; }
.phone-field__input.form-input:focus, .phone-field__input.form-input:focus-visible { box-shadow: none; outline: none; }
.phone-flag { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 22px; font-size: 20px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.phone-flag--iso { min-width: 28px; padding: 3px 0; border-radius: 4px; background: var(--blue-light); color: var(--blue); font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.phone-flag--globe { color: var(--muted); }
.phone-dropdown { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.phone-dropdown[hidden] { display: none; }
.phone-search { display: block; width: 100%; padding: 12px 14px; font-family: inherit; font-size: 16px; color: var(--text); background: var(--bg-soft); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.phone-search:focus, .phone-search:focus-visible { outline: none; background: #ffffff; }
.phone-list { position: relative; list-style: none; margin: 0; padding: 6px; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.phone-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); cursor: pointer; }
.phone-opt.is-active { background: var(--blue-light); }
.phone-opt[aria-selected="true"] .phone-opt__name { font-weight: 700; }
.phone-opt__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-opt__dial { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.phone-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.phone-empty { padding: 14px 10px; font-size: 14px; color: var(--muted); }
.phone-error { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #b91c1c; }
.phone-error[hidden] { display: none; }

.form-total-box { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.total-price-info { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: var(--ink); }
.total-price-info strong { font-size: 26px; font-weight: 800; color: var(--navy); }
.constructor-preview-card { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.preview-badge { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy); box-shadow: 0 8px 18px rgba(20,14,6,.16); }
/* Превью повторяет настоящий бумажный сертификат из папки sert: акварельный фон на всю карточку,
   слева — кремовая панель с текстом, справа фон виден "обрезанным" — как на реальном бланке fond.jpg */
.cert-mockup {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 7px solid var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 26px 44px rgba(16,42,69,.35);
  transform: rotate(0.5deg);
}
.cert-mockup__bg { display: block; width: 100%; height: auto; }
.cert-mockup__panel {
  position: absolute;
  left: 6%;
  top: 8%;
  width: 47%;
  z-index: 1;
  background: rgba(246,239,227,.97);
  border: 1px solid #e6dcc8;
  border-radius: 10px;
  padding: 16px 18px 14px;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  overflow: hidden;
}
.cert-mockup__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #e6dcc8; text-align: left; }
.cert-mockup__logo { height: 20px; }
.cert-mockup__type { font-size: 9px; letter-spacing: .4px; background: var(--navy); color: #ffffff; padding: 3px 8px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.cert-mockup__body { margin: 2px 0; display: flex; flex-direction: column; gap: 7px; }
.cert-mockup__title { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 700; letter-spacing: .2px; color: var(--navy); line-height: 1.15; }
.cert-mockup__rule { color: var(--accent-gold); font-size: 11px; margin-top: -3px; }
.cert-label { font-size: 10.5px; color: #6a739b; display: inline-block; margin-right: 4px; }
.cert-value-name, #mockupCourses { font-size: 13px; font-weight: 700; color: var(--ink); }
.cert-mockup__footer { border-top: 1px solid #e6dcc8; margin-top: 4px; padding-top: 8px; font-size: 10px; color: #6a739b; text-align: left; }
.cert-mockup__footer-row { display: flex; justify-content: space-between; margin-bottom: 4px; gap: 6px; }
.cert-mockup__code span { font-family: monospace; color: var(--ink); font-weight: 700; }
.cert-mockup__email span { color: var(--ink); font-weight: 600; }
@media (max-width: 480px) {
  .cert-mockup__panel { left: 4%; top: 3%; bottom: 3%; width: 60%; padding: 8px 9px 7px; gap: 4px; overflow-y: auto; }
  .cert-mockup__logo { height: 16px; }
  .cert-mockup__type { font-size: 7.5px; padding: 2px 6px; }
  .cert-mockup__header { padding-bottom: 6px; }
  .cert-mockup__body { margin: 0; gap: 4px; }
  .cert-mockup__title { font-size: 12px; }
  .cert-label, .cert-mockup__footer { font-size: 8px; }
  .cert-value-name { font-size: 10px; }
  #mockupCourses { font-size: 10px; }
  .cert-mockup__footer { margin-top: 2px; padding-top: 5px; }
  .cert-mockup__footer-row { flex-direction: column; gap: 2px; }
}
.preview-benefits { display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(20,14,6,.16); }
.benefit-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.benefit-item svg { color: var(--blue); flex-shrink: 0; }
/* ---------- Преимущества ---------- */
.advantages-section { margin-bottom: 70px; }
.section-title { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0 0 40px; }
.text-center { text-align: center; }
/* Заголовок блока преимуществ: градиент, золотой акцент, балансировка строк */
.section-title--fancy { width: fit-content; max-width: 100%; margin: 0 auto 52px; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; color: var(--navy); background: var(--navy-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-title--fancy::after {/* content: ""; *//* display: block; *//* width: 64px; *//* height: 4px; *//* margin: 20px auto 0; *//* border-radius: 4px; *//* background: var(--gold-gradient); */}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) { .section-title--fancy { background: none; -webkit-text-fill-color: currentColor; } }
.br-m { display: none; }   /* переносы строк заголовка включаются только на мобильных */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.adv-card__icon { width: 54px; height: 54px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.adv-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.adv-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
/* ---------- Слайдер ---------- */
.slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); margin-bottom: 60px; box-shadow: var(--shadow-md); }
.slider__viewport { overflow: hidden; touch-action: pan-y; }
.slider__track {display: flex;transition: transform .5s cubic-bezier(.4,0,.2,1);}
.slider__slide { min-width: 100%; }
.slide-content { position: relative; display: block; background: var(--navy-gradient); }
.slide-art { display: block; width: 100%; height: 440px; object-fit: cover; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; background: linear-gradient(0deg, rgba(16,42,69,.9) 0%, rgba(16,42,69,.4) 60%, transparent 100%); color: #ffffff; }
.slide-tag {display: inline-block;background: var(--blue);color: #ffffff;font-size: 12px;font-weight: 700;text-transform: uppercase;padding: 4px 12px;border-radius: 999px;margin-bottom: 10px;}
.slide-caption h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.slide-caption p { margin: 0; font-size: 15px; color: rgba(255,255,255,.85); max-width: 600px; }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(16,42,69,.6); color: #ffffff; cursor: pointer; transition: background .2s; z-index: 10; }
.slider__arrow:hover { background: rgba(16,42,69,.9); }
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; z-index: 10; }
.slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, transform .2s; }
.slider__dot.is-active { background: #ffffff; transform: scale(1.3); }
/* ---------- Табы ---------- */
.tabs { display: flex; gap: 36px; overflow-x: auto; margin-bottom: 32px; border-bottom: 2px solid var(--line); }
.tabs__btn { position: relative; padding: 12px 4px 16px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color .2s; }
.tabs__btn:hover { color: var(--navy); }
.tabs__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s; }
.tabs__btn.is-active { color: var(--navy); font-weight: 700; }
.tabs__btn.is-active::after { transform: scaleX(1); }
/* ---------- Карточка контента ---------- */
.content-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px; background: #ffffff; box-shadow: var(--shadow-sm); margin-bottom: 70px; }
.tab-panel { display: none; }
.tab-panel.is-visible { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.badge { display: inline-block; padding: 8px 18px; background: var(--blue); color: #ffffff; font-size: 14px; font-weight: 800; border-radius: 6px; }
.content-card__title { margin: 24px 0 16px; font-size: 28px; font-weight: 800; color: var(--navy); }
.content-card p { margin: 0 0 16px; max-width: 850px; }
.content-card h3 { margin: 32px 0 16px; font-size: 20px; color: var(--navy); }
.check-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.course-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.course-facts li { display: flex; flex-direction: column; background: var(--bg-soft); border-radius: var(--radius-md); padding: 16px 24px; }
.course-facts strong { font-size: 18px; color: var(--navy); }
.course-facts span { font-size: 13px; color: var(--muted); }
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li { display: flex; align-items: flex-start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.program-list li:last-child { border-bottom: 0; }
.program-list__num { min-width: 40px; font-size: 22px; font-weight: 800; color: var(--blue); }
.program-list__body { flex: 1; }
.program-list__body h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.program-list__body p { margin: 0; font-size: 14px; color: var(--muted); }
.program-list__time { padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--blue-light); border-radius: 999px; white-space: nowrap; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #ffffff; }
.work-art { display: block; width: 100%; height: 240px; object-fit: cover; }
/* Вкладка «Что можно нарисовать»: работы вертикальные, поэтому рамка задаётся пропорцией 2:3,
   а не фиксированной высотой — иначе они режутся в узкую горизонтальную полосу */
#tab-art .work-art { height: auto; aspect-ratio: 2 / 3; background: var(--bg-soft); }
#tab-art .work-art--sketch { object-position: 50% 42%; }   /* высокий эскиз: показываем башню и скутеры целиком */
.work-card figcaption { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.work-card strong { font-size: 15px; color: var(--navy); }
.work-card span { font-size: 13px; color: var(--muted); }
.review { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.review + .review { margin-top: 20px; }
.review__head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.review__name { margin: 0; font-size: 16px; color: var(--navy); }
.review__meta { font-size: 13px; color: var(--muted); }
.stars { color: #f59e0b; }
/* ---------- FAQ ---------- */
.faq-section { margin-bottom: 70px; }
.faq-accordion { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: #ffffff; transition: border-color .2s; }
.faq-item.is-open { border-color: var(--blue); }
.faq-question { width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--navy); text-align: left; cursor: pointer; gap: 16px; }
.faq-icon { flex-shrink: 0; transition: transform .25s; color: var(--blue); }
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease-out, padding .3s; padding: 0 24px; }
.faq-item.is-open .faq-answer { padding: 0 24px 20px 24px; }
.faq-answer p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
/* ---------- Нижний блок покупки: фото-фон + текст на блюр-карточке (как верхний) ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 56px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* карточка слева, солнце и цветы справа остаются видны */
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: url('./img/cta-bg.jpg') center 40% / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
/* отдельная карточка с блюром — те же параметры, что у .hero-head__card */
.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-right: auto;
  padding: 36px 40px;
  text-align: left;
  background: rgba(16,42,69,.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(16,42,69,.35);
}
.cta-banner .badge { background: var(--blue); border: 0; color: #ffffff; }
.cta-banner__title { margin: 20px 0; font-size: 34px; font-weight: 800; line-height: 1.18; letter-spacing: -.5px; color: #ffffff; text-shadow: 0 2px 14px rgba(16,42,69,.65); text-wrap: balance; }
.cta-banner__text { margin: 0 0 4px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(16,42,69,.55); text-wrap: pretty; }
.cta-banner__btn { margin-top: 24px; box-shadow: 0 10px 26px rgba(5,18,36,.35); }
.cta-banner__btn:hover { box-shadow: 0 14px 30px rgba(5,18,36,.45); }
@media (max-width: 768px) {
  .cta-banner {padding: 98px 16px;min-height: 0;background-position: 62% center;}
  .cta-banner__inner { padding: 24px 20px; }
  .cta-banner__title { margin: 18px 0; font-size: 26px; }
  .cta-banner__text { font-size: 15px; }
  .cta-banner__btn { width: 100%; max-width: 360px; padding: 16px 18px; font-size: 16px; }
}
/* ---------- Адаптивность ---------- */
@media (max-width: 1024px) {
  .constructor-grid { grid-template-columns: 1fr; }
  .constructor-preview-card { position: static; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-constructor { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .page__title { font-size: 32px; }
  .form-group-row { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .content-card { padding: 28px 20px; }
  .slide-art { height: 320px; }
  .slide-caption { padding: 20px; }
  .slide-caption h3 { font-size: 20px; }
  .cert-constructor { padding: 28px 14px; border-radius: var(--radius-md); }
  .constructor-form-card { padding: 28px 22px; transform: none; }
  .form-hint { font-size: 12.5px; line-height: 1.4; margin-top: -5px; }
  .form-section-title { font-size: 16px; margin: 4px 0 -8px; padding-top: 16px; }
  .constructor-form-card::before, .constructor-form-card::after { display: none; }
  .cert-mockup { transform: none; }

  /* ---------- Полноэкранный режим оформления сертификата ---------- */
  .cert-constructor.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 300;
    margin: 0;
    border-radius: 0;
    padding: 76px 14px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: constructorRise .45s cubic-bezier(.16,1,.3,1) both;
  }
  .cert-constructor.is-fullscreen.is-closing { animation: constructorFall .3s ease-in both; }

  .constructor-back {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 6;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(16,42,69,.94) 0%, rgba(16,42,69,.82) 65%, rgba(16,42,69,0) 100%);
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
  }
  .constructor-back svg { flex-shrink: 0; transition: transform .2s ease; }
  .constructor-back:active svg { transform: translateX(-3px); }

  /* Остальной сайт скрываем, пока конструктор открыт на весь экран */
  body.constructor-open .menu,
  body.constructor-open .breadcrumbs,
  body.constructor-open .hero-head,
  body.constructor-open .advantages-section,
  body.constructor-open .slider,
  body.constructor-open .tabs,
  body.constructor-open .content-card,
  body.constructor-open .faq-section,
  body.constructor-open .cta-banner,
  body.constructor-open .footer {
    display: none !important;
  }
}

/* =========================================================
   Мобильная версия: заголовок, слайдер, шаги «Как это работает»
========================================================= */
@media (max-width: 640px) {
  /* Заголовок: строки разбиты переносами <br class="br-m"> */
  .section-title--fancy { font-size: clamp(25px, 7.2vw, 30px); margin-bottom: 40px; }
  .section-title--fancy::after {/* margin-top: 16px; */}
  .br-m { display: inline; }

  /* Слайдер: картинка сверху, подпись — карточкой снизу, стрелки на картинке, точки под текстом */
  .slider { --art-h: 236px; border-radius: var(--radius-md); margin-bottom: 44px; }
  .slider__slide {display: flex;}
  .slide-content {flex: 1;/* display: flex; *//* flex-direction: column; */}
  .slide-art {height: var(--art-h);flex-shrink: 0;height: 80%;}
  .slide-caption {/* position: relative; */flex: 1;margin-top: -26px;padding: 26px 20px 54px;border-radius: 24px 24px 0 0;background: rgb(89 90 90 / 57%);backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(6px);box-shadow: 0 24px 48px rgba(16, 42, 69, .35);}
  .slide-tag { max-width: 100%; margin-bottom: 10px; padding: 4px 11px; font-size: 11px; letter-spacing: .04em; }
  .slide-caption h3 { margin: 0; font-size: 21px; line-height: 1.25; text-wrap: balance; }
  .slider__arrow { top: calc(var(--art-h) / 2); width: 38px; height: 38px; background: rgba(16,42,69,.55); }
  .slider__arrow svg { width: 18px; height: 18px; }
  .slider__arrow--prev { left: 10px; }
  .slider__arrow--next { right: 10px; }
  .slider__dots { bottom: 22px; gap: 8px; }
  .slider__dot { width: 8px; height: 8px; transition: background .2s, width .25s; }
  .slider__dot.is-active { width: 22px; border-radius: 999px; transform: none; }

  /* Шаги: цифра и тег в одной строке, основной текст — под ними на всю ширину */
  .program-list li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num time" "body body"; align-items: center; column-gap: 12px; row-gap: 10px; padding: 18px 0; }
  .program-list__num { grid-area: num; min-width: 0; font-size: 24px; line-height: 1; }
  .program-list__time { grid-area: time; justify-self: start; padding: 5px 12px; font-size: 12px; }
  .program-list__body { grid-area: body; }
  .program-list__body h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
  .program-list__body p { font-size: 14px; line-height: 1.55; }
}
