/* ==========================================================================
   /tools/translit-zagranpasport
   Наследует форму/faq/author/share/hero из bmi-calculator.css.
   ========================================================================== */
@import url("/assets/css/bmi-calculator.css");

/* ==========================================================================
   PAGE & HERO
   ========================================================================== */
.tz-page {
  background: #fdf7f6 !important;
}

.tz-hero {
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%, rgba(253, 247, 246, 0.55) 0%, rgba(253, 247, 246, 0) 70%),
    url("/assets/images/translit-zagranpasport-hero-bg.webp") center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f7e6e5 100%) !important;
  border-bottom-color: #efc9c8 !important;
}

.tz-hero .mb-hero-title span::after {
  background: linear-gradient(90deg, rgba(247, 203, 202, 0.7), rgba(189, 160, 0, 0.35));
}

@media (max-width: 760px) {
  .tz-page .bc-form-row { grid-template-columns: 1fr; gap: 14px; }
}

.tz-reset {
  position: static;
  margin-top: 16px;
  width: auto;
}

.tz-share { margin-bottom: 32px; }

/* ==========================================================================
   РЕЗУЛЬТАТ
   ========================================================================== */
.tz-result { margin-top: 22px; }
.tz-result[hidden] { display: none; }

.tz-card {
  background: #ffffff;
  border: 1px solid #eee6e6;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 18px 40px -26px rgba(60, 30, 30, 0.35);
  animation: tz-fade .4s ease both;
}

@keyframes tz-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tz-card-head {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b58e8a;
  margin-bottom: 14px;
}

.tz-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2ecec;
}
.tz-row:first-of-type { padding-top: 0; }

.tz-row-label {
  font-size: 14px;
  color: var(--dark-text-color, #6a6a6a);
  flex-shrink: 0;
}

.tz-row-val {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: 0.04em;
  color: var(--main-bg-color, #1c1c1c);
  text-align: right;
  word-break: break-word;
}

.tz-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--gold-color, #bda000);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .2s ease, transform .1s ease;
}
.tz-copy:hover { filter: brightness(1.07); }
.tz-copy:active { transform: scale(0.97); }

.tz-copy-toast {
  margin-left: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #5bb978;
}
.tz-copy-toast[hidden] { display: none; }

.tz-note {
  margin: 16px 0 0 !important;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--dark-text-color, #6a6a6a);
}

/* ==========================================================================
   ТАБЛИЦА ТРАНСЛИТЕРАЦИИ (в SEO-блоке)
   ========================================================================== */
.tz-translit-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.tz-translit-table div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  background: #faf8f8;
  border: 1px solid #f1ebeb;
  border-radius: 10px;
  font-size: 15px;
}

.tz-translit-table b {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--main-bg-color, #1c1c1c);
  min-width: 18px;
}

.tz-translit-table span {
  color: #c25b4f;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
}

.tz-translit-table em {
  font-style: normal;
  color: #b3a9a9;
  font-size: 13px;
}

/* ==========================================================================
   Нумерованные списки в SEO-блоке — карточки с кружком-номером
   ========================================================================== */
.tz-seo ol {
  counter-reset: tz-step;
  list-style: none;
  padding-left: 0;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tz-seo ol > li {
  counter-increment: tz-step;
  position: relative;
  padding: 16px 22px 16px 64px;
  background: linear-gradient(135deg, #fdf6f5 0%, #ffffff 60%);
  border: 1px solid #efdcdb;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--main-bg-color, #222);
}

.tz-seo ol > li::before {
  content: counter(tz-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0908a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(224, 144, 138, 0.35);
}

@media (max-width: 480px) {
  .tz-seo ol > li { padding: 14px 16px 14px 54px; font-size: 14.5px; }
  .tz-seo ol > li::before { left: 12px; top: 12px; width: 28px; height: 28px; font-size: 13px; }
}
