/* ---------- Hero ---------- */
.tpl-hero { background: var(--white); }
.tpl-hero__head { padding: 60px; display: flex; gap: 40px; align-items: flex-start; }
.tpl-hero__text, .tpl-hero__media { flex: 1 1 0; min-width: 0; }
.tpl-hero__text { display: flex; flex-direction: column; gap: 32px; }
.tpl-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.tpl-crumbs__list img { width: 5px; height: 9px; }
.tpl-crumbs__link, .tpl-crumbs__muted { font-size: 16px; line-height: 25px; color: var(--ink-60); }
.tpl-crumbs__link { border-bottom: 1px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.tpl-crumbs__link:hover, .tpl-crumbs__link:focus-visible { color: var(--ink); border-color: var(--ink); }
.tpl-crumbs__current { font-size: 16px; line-height: 25px; color: var(--ink); }
.tpl-hero__titles { display: flex; flex-direction: column; gap: 15px; max-width: 532px; }
.tpl-hero__title .ink { color: var(--ink); }
.tpl-hero__media img { width: 296px; height: 227px; object-fit: cover; }

/* ---------- Email template ---------- */
.tpl-email { display: grid; grid-template-columns: 1fr 352px; border-top: 1px solid var(--line); }
.tpl-email__main { padding: 60px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tpl-email__cats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tpl-email__cats-title { font-size: 16px; line-height: 25px; color: var(--ink); }
.tpl-email__tags { display: flex; gap: 12px; flex-wrap: wrap; }
.tpl-email__tags .tag { font-size: 12px; line-height: 12px; padding: 8px; }
.tpl-email__card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tpl-email__subject { padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); }
.tpl-email__body { padding: 24px; display: flex; flex-direction: column; gap: 19px; background: var(--white); }
.tpl-email__body p { max-width: 650px; font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }

.tpl-email__side { padding: 24px; background: var(--surface); border-left: 1px solid var(--line); }
.tpl-panel { padding: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.tpl-panel__actions { display: flex; flex-direction: column; gap: 8px; }
.tpl-panel__actions .btn { width: 100%; }
.tpl-copy { display: inline-grid; place-items: center; }
.tpl-copy__label, .tpl-copy__done { grid-area: 1 / 1; font-size: 16px; line-height: 16px; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.tpl-copy__done { opacity: 0; transform: scale(0.3); }
.tpl-copy.is-copied .tpl-copy__label { opacity: 0; transform: scale(0.3); }
.tpl-copy.is-copied .tpl-copy__done { opacity: 1; transform: none; }
.tpl-panel__block { display: flex; flex-direction: column; gap: 14px; }
.tpl-panel__block--get { padding: 24px 0; margin-top: 8px; border-bottom: 1px solid var(--line); }
.tpl-panel__block--best { padding: 24px 0 0; }
.tpl-panel__label { font-size: 12px; line-height: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
.tpl-panel__list { display: flex; flex-direction: column; gap: 7px; }
.tpl-panel__list li { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }
.tpl-panel__list img { width: 16px; height: 16px; flex: none; }
.tpl-panel__goals { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tpl-panel__goals div { display: flex; flex-direction: column; gap: 9px; }
.tpl-panel__goals dt { font-size: 12px; line-height: 14px; color: var(--muted); font-weight: 400; }
.tpl-panel__goals dd { margin: 0; font-size: 14px; line-height: 17px; color: var(--ink); }
.tpl-panel__rating { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tpl-panel__rating img { width: 120px; height: 30px; object-fit: fill; }
.tpl-panel__rating p { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }

/* ---------- FAQ ---------- */
.tpl-faq { display: grid; grid-template-columns: 520px 1fr; border-top: 1px solid var(--line); }
.tpl-faq__intro { padding: 80px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tpl-faq__title { max-width: 400px; }
.tpl-faq__title .ink { display: block; }
.tpl-faq__list { border-left: 1px solid var(--line); }
.tpl-faq__item { border-bottom: 1px solid var(--line); }
.tpl-faq__item:last-child { border-bottom: 0; }
.tpl-faq__item h3 { font: inherit; }
.tpl-faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; text-align: left;
  font-size: 18px; line-height: 29px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.tpl-faq__q:hover { background: var(--surface); }
.tpl-faq__icon { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.tpl-faq__q[aria-expanded="true"] .tpl-faq__icon { transform: rotate(45deg); }
.tpl-faq__a { padding: 0 32px 32px; max-width: 760px; font-size: 16px; line-height: 25px; font-weight: 400; color: var(--ink-60); }

/* ---------- Principles ---------- */
.tpl-principles { border-top: 1px solid var(--line); }
.tpl-principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tpl-principle { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; border-right: 1px solid var(--line); background: var(--white); }
.tpl-principle:last-child { border-right: 0; }
.tpl-principle__text { display: flex; flex-direction: column; gap: 11px; }

/* ---------- Banner ---------- */
.tpl-banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.tpl-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.tpl-banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tpl-banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.tpl-banner__text { margin-top: 12px; font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }
.tpl-banner .btn { margin-top: 32px; }

/* ================= Desktop only ================= */
@media (min-width: 1200px) {
  .tpl-hero { padding-top: 68px; }
  .tpl-hero__media { display: flex; justify-content: flex-end; }
}

/* ================= Tablet ================= */
@media (max-width: 1199px) and (min-width: 810px) {
  .tpl-principles .title-wrapper { padding: 40px 20px; }
  .tpl-principles .title-wrapper > .tag { display: none; }
  .tpl-principles .title-wrapper .t-h2 { max-width: 400px; }
  .tpl-principles .title-wrapper .t-h2 .ink { display: inline; }
  .tpl-principles .tpl-principles__grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-principles .tpl-principle { padding: 20px 20px 80px; gap: 40px; border-bottom: 0; border-right: 1px solid var(--line); }
  .tpl-principles .tpl-principle:last-child { border-right: 0; }
  .tpl-principle .t-title { font-size: 20px; line-height: 27px; }
  .tpl-principle .t-small { font-size: 14px; line-height: 19px; }
}

@media (max-width: 1199px) {
  .tpl-hero__head { flex-direction: column; padding: 40px; gap: 40px; }
  .tpl-hero__text { max-width: 560px; }
  .tpl-hero__lead { font-size: 16px; line-height: 22px; }
  .tpl-hero__media { width: 100%; }
  .tpl-hero__media img { width: 100%; height: auto; aspect-ratio: 296 / 227; }

  .tpl-email { grid-template-columns: 1fr; }
  .tpl-email__main { padding: 40px; }
  .tpl-email__side { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }

  .tpl-faq { grid-template-columns: 1fr; }
  .tpl-faq__intro { padding: 40px 20px; }
  .tpl-faq__list { border-left: 0; border-top: 1px solid var(--line); }
  .tpl-faq__q { padding: 19px 20px; }
  .tpl-faq__a { padding: 0 20px 20px; }

  .tpl-principles__grid { grid-template-columns: 1fr; }
  .tpl-principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .tpl-principle:last-child { border-bottom: 0; }

  .tpl-banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* ================= Phone ================= */
@media (max-width: 809px) {
  .tpl-hero__head { padding: 40px 20px; gap: 40px; }
  .tpl-hero__text { gap: 40px; }
  .tpl-crumbs__list { gap: 16px; }
  .tpl-crumbs__link, .tpl-crumbs__muted, .tpl-crumbs__current { font-size: 16px; }
  .tpl-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
  .tpl-hero__lead { font-size: 14px; line-height: 19px; }

  .tpl-email__main { padding: 40px 20px; gap: 24px; }
  .tpl-email__cats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tpl-email__cats-title { font-size: 16px; }
  .tpl-email__tags { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tpl-email__tags .tag { font-size: 12px; line-height: 12px; }
  .tpl-email__card { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -20px; }
  .tpl-email__body { padding: 20px; gap: 19px; }
  .tpl-email__body p { font-size: 14px; line-height: 19px; }
  .tpl-email__side { padding: 40px 20px; }
  .tpl-panel { padding: 48px 20px 24px; }
  .tpl-panel__actions .btn { font-size: 16px; }
  .tpl-copy__label, .tpl-copy__done { font-size: 16px; line-height: 16px; }

  .tpl-faq__intro { padding: 32px 20px 40px; }
  .tpl-faq__intro .tag { display: none; }
  .tpl-faq__q { padding: 20px; font-size: 16px; line-height: 19px; }
  .tpl-faq__a { padding: 0 20px 20px; font-size: 14px; line-height: 21px; }

  .tpl-principles .title-wrapper > .tag { display: none; }
  .tpl-principle { padding: 20px; gap: 40px; }
  .tpl-principle .t-title { font-size: 20px; line-height: 27px; text-wrap: wrap; }
  .tpl-principle .t-small { font-size: 14px; line-height: 19px; }

  .tpl-banner { padding: 120px 60px; }
  .tpl-banner__inner { max-width: 230px; }
  .tpl-banner__title { font-size: 36px; line-height: 40px; }
  .tpl-banner__text { font-size: 16px; line-height: 21.7px; margin-top: 16px; }
  .tpl-banner .btn { margin-top: 28px; }
}
