/* ==========================================================
   БЛОЧНАЯ СИСТЕМА — БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ БЛОКОВ
   ========================================================== */

.block {
  padding: 64px 24px;
  background: #ffffff;
}
.block:nth-of-type(even) {
  background: #f7f8f9;
}
.block__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.block__title {
  font-family: 'TT Travels', 'Onest', -apple-system, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 16px;
}
.block__lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.55;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Hero */
.block--hero {
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, #ECECEC 0%, #fff 100%);
  text-align: center;
}
.block-hero__title {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  line-height: 1.1;
}
.block-hero__sub {
  font-size: 1.5rem;
  color: #05604E;
  margin: 0 0 32px;
}
.block-hero__cta {
  display: inline-block;
  padding: 18px 40px;
  background: #05604E;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.block-hero__lead {
  margin-top: 24px;
  color: #2a2a2a;
}

/* Facts — inline-абзацы с выделенной цифрой */
.block-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px 32px;
}
.block-facts__card {
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #2a2a2a;
}
.block-facts__num {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.55em;
  font-weight: 700;
  color: #05604E;
  margin-right: 8px;
  display: inline-block;
  vertical-align: baseline;
}
.block-facts__label {
  font-size: 1em;
  color: #2a2a2a;
  display: inline;
  margin-top: 0;
}
@media (max-width: 560px) {
  .block-facts__card { font-size: 1rem; }
}

/* KPIs */
.block-kpis__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.block-kpis__card {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #05604E;
}
.block-kpis__num {
  font-family: 'TT Travels', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #05604E;
}
.block-kpis__label {
  color: #444;
  font-size: 0.95rem;
  margin-top: 6px;
}
.block-kpis__note {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  max-width: 720px;
  margin: 24px auto 0;
}

/* Projects */
.block-projects__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.block-project {
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e6e8ea;
}
.block-project h3 {
  color: #05604E;
  margin: 0 0 12px;
}

/* Partners */
.block-partners__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.block-partners__item {
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #e6e8ea;
  border-radius: 999px;
  color: #444;
  font-weight: 500;
}

/* Map */
.block-map__frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.block-map__frame iframe {
  display: block;
  border: 0;
  width: 100%;
}

/* === Contacts — 2 колонки (фото+контакты | форма), карта на всю ширину снизу === */
.block--contacts { background: #f5f7f8; }

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

/* Левая колонка — фото + контакты единым блоком */
.contacts-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e6efeb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.contacts-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f9f7;
}
.contacts-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contacts-card__list {
  list-style: none;
  margin: 0;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contacts-card__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.5;
}
.contacts-card__icon {
  flex: 0 0 22px;
  margin-top: 2px;
  color: #05604E;
}
.contacts-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.contacts-card__body a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: max-content;
  max-width: 100%;
  word-break: break-word;
  transition: color .15s ease, border-color .15s ease;
}
.contacts-card__body a:hover { color: #05604E; border-bottom-color: #c2dfd9; }
.contacts-card__body span { display: block; color: #2a2a2a; }

/* Ссылка "Мы ВКонтакте" */
.contacts-card__row--vk .contacts-card__icon { color: #2787f5; }
.contacts-card__row--vk .contacts-card__body a {
  color: #2787f5;
  font-weight: 600;
  border-bottom-color: rgba(39,135,245,0.3);
}
.contacts-card__row--vk .contacts-card__body a:hover {
  color: #1a6fc4;
  border-bottom-color: #1a6fc4;
}

/* Мессенджеры */
.contacts-card__row--messengers {
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e6efeb;
  margin-top: 4px;
  flex-wrap: wrap;
}
.contacts-msgr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  color: #fff;
  border-radius: 99px;
  border: 0 !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}
.contacts-msgr svg { display: block; }
.contacts-msgr--wa { background: #25D366; }
.contacts-msgr--tg { background: #2AABEE; }
.contacts-msgr--vk { background: #2787f5; }
.contacts-msgr--max {
  background: linear-gradient(135deg, #8a35ff 0%, #2b6cff 100%);
  color: #fff;
}
.contacts-msgr--max img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}
.contacts-msgr:hover { transform: translateY(-2px); opacity: 0.92; }

/* Правая колонка — форма full-height */
.contacts-form-card {
  background: linear-gradient(160deg, #05604E 0%, #034a3c 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  box-shadow: 0 16px 48px rgba(5, 96, 78, 0.18);
}
.contacts-form-card::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.contacts-form-card__inner {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
}
.contacts-form-card__title {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.contacts-form-card__lead {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  margin: 0 0 28px;
  line-height: 1.5;
}
.contacts-form-card .callback-form,
.contacts-form-card form,
.contacts-form-card .tn-elem__feedback-form { width: 100%; }
.contacts-form-card .callback-form input[type="text"],
.contacts-form-card .callback-form input[type="tel"],
.contacts-form-card .callback-form input[type="email"],
.contacts-form-card form input[type="text"],
.contacts-form-card form input[type="tel"],
.contacts-form-card form input[type="email"],
.contacts-form-card form textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin: 0 0 14px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: #ffffff;
  border-radius: 14px;
  font-family: 'Onest', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease;
}
.contacts-form-card .callback-form input::placeholder,
.contacts-form-card form input::placeholder,
.contacts-form-card form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contacts-form-card .callback-form input:focus,
.contacts-form-card form input:focus,
.contacts-form-card form textarea:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(255,255,255,0.14);
}
.contacts-form-card .callback-form button,
.contacts-form-card form button[type="submit"] {
  display: inline-block;
  padding: 16px 32px;
  margin: 6px 0 12px;
  background: #ffffff;
  color: #05604E;
  border: 0;
  border-radius: 99px;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  width: auto;
  align-self: flex-start;
}
.contacts-form-card .callback-form button:hover,
.contacts-form-card form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.contacts-form-card .form-legal,
.contacts-form-card .ajax_text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
  margin: auto 0 0;
  padding-top: 16px;
}
.contacts-form-card .form-legal a,
.contacts-form-card .ajax_text a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  text-decoration: none;
}

/* Карта на всю ширину снизу */
.contacts-map {
  background: #ffffff;
  border: 1px solid #e6efeb;
  border-radius: 24px;
  overflow: hidden;
}
.contacts-map__title {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 22px 28px 16px;
}
.contacts-map__frame { position: relative; }
.contacts-map__frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Mobile */
@media (max-width: 980px) {
  .contacts-layout { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .contacts-form-card__inner { padding: 32px 24px; }
  .contacts-card__list { padding: 22px 22px 26px; }
  .contacts-map__frame iframe { height: 320px; }
}
@media (max-width: 560px) {
  .contacts-card,
  .contacts-form-card,
  .contacts-map { border-radius: 18px; }
  .contacts-card__photo { aspect-ratio: 4 / 3; }
  .contacts-map__title { padding: 18px 20px 12px; font-size: 1.1rem; }
}

/* Calculator quiz (заявка вместо примерной суммы) */
.calc-quiz {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.calc-quiz__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-bottom: 28px;
}
.calc-quiz__field { display: flex; flex-direction: column; gap: 8px; }
.calc-quiz__field--wide { grid-column: 1 / -1; }
.calc-quiz__label { font-weight: 600; color: #1a1a1a; font-size: 0.95rem; }
.calc-quiz__select,
.calc-quiz__input {
  padding: 12px 14px;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  font-family: 'Onest', sans-serif;
  font-size: 1rem;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s ease;
}
.calc-quiz__select:focus,
.calc-quiz__input:focus { outline: none; border-color: #05604E; }
.calc-quiz__checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 32px;
  background: #f7f8f9;
  padding: 16px 18px;
  border-radius: 12px;
}
.calc-quiz__checks label {
  display: inline-flex; align-items: center;
  gap: 10px;
  font-size: 0.95rem; color: #2a2a2a;
  cursor: pointer;
  /* label занимает только свою ширину — ? стоит рядом с текстом, не уезжает к краю ячейки */
  justify-self: start;
}
.calc-quiz__checks input[type="checkbox"] { width: 18px; height: 18px; accent-color: #05604E; flex-shrink: 0; }
.calc-quiz__checks .calc-label-text { flex: 0 1 auto; }

/* Кнопка "?" с тултипом */
.calc-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #05604E;
  border-radius: 50%;
  background: transparent;
  color: #05604E;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
  font-family: inherit;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.calc-help:hover,
.calc-help:focus-visible {
  background: #05604E;
  color: #fff;
  outline: none;
}

/* Тултип калькулятора — общий popup */
.calc-tooltip {
  position: fixed;
  z-index: 9998;
  max-width: 360px;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 18px 14px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
  pointer-events: none;
}
.calc-tooltip.is-shown { opacity: 1; visibility: visible; pointer-events: auto; }
.calc-tooltip strong { display: block; margin-bottom: 8px; color: #5edcb6; font-size: 0.95rem; }
.calc-tooltip ul { margin: 0; padding-left: 18px; }
.calc-tooltip li { margin-bottom: 4px; }
.calc-tooltip__close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.calc-quiz__contacts {
  padding-top: 24px;
  border-top: 1px dashed #e6efeb;
  margin-bottom: 20px;
}
.calc-quiz__contacts-title { font-size: 1.05rem; font-weight: 600; color: #1a1a1a; margin: 0 0 14px; }
.calc-quiz__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-quiz__footer { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.calc-quiz__submit { padding: 16px 28px; font-size: 1.05rem; }
.calc-quiz__hint { font-size: 0.85rem; color: #777; line-height: 1.45; margin: 0; }
.calc-quiz__hint a { color: #05604E; }
.calc-quiz__agree,
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
.calc-quiz__agree input[type="checkbox"],
.form-agree input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #05604E;
  flex-shrink: 0;
}
.calc-quiz__agree a,
.form-agree a { color: #05604E; border-bottom: 1px dashed; text-decoration: none; }
.form-agree { color: rgba(255,255,255,0.78); }
.form-agree a { color: #ffffff; }
.contacts-form-card .form-agree { color: rgba(255,255,255,0.78); }
.contacts-form-card .form-agree a { color: #ffffff; border-bottom-color: rgba(255,255,255,0.4); }

/* Форма заявки на сертификат — центрированная карточка */
.cert-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.cert-form-wrap .contacts-form-card { width: 100%; }
.cert-form-wrap .contacts-form-card__inner { padding: 36px 32px; }

@media (max-width: 720px) {
  .calc-quiz { padding: 22px 18px; border-radius: 16px; }
  .calc-quiz__grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }
  .calc-quiz__row { grid-template-columns: 1fr; }
}

/* Comparison */
.block-comparison__table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: #05604E rgba(0,0,0,0.05);
}
.block-comparison__table::-webkit-scrollbar { height: 6px; }
.block-comparison__table::-webkit-scrollbar-thumb { background: #05604E; border-radius: 3px; }
@media (max-width: 640px) {
  .block-comparison__table .vs-table { min-width: 560px; }
}
.vs-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.vs-table th, .vs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  font-size: 0.95rem;
}
.vs-table th {
  background: #05604E;
  color: #fff;
  font-weight: 600;
}
.vs-table td:last-child {
  background: rgba(5, 96, 78, 0.06);
  font-weight: 500;
}
.vs-table .check { color: #05604E; font-weight: 700; }
.vs-table .cross { color: #c2410c; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.step {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 16px;
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #05604E;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.step__title {
  margin: 0 0 8px;
  color: #05604E;
}
.step__desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}
.step__btn {
  margin-top: 16px;
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ===== Модальная попап-форма ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 24, 22, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: translateY(16px) scale(0.98);
  transition: transform .2s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #f1f3f2;
  border-radius: 50%;
  color: #555;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.modal__close:hover { background: #05604E; color: #fff; }
.modal__title {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  padding-right: 32px;
}
.modal__lead {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0 0 22px;
}
.modal__vacancy {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  background: #eef5f3;
  border-radius: 10px;
  color: #05604E;
  font-weight: 600;
  font-size: 0.92rem;
}
.modal__vacancy[hidden] { display: none; }
/* Поля модальной формы — светлая тема */
.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="email"] {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin: 0 0 14px;
  background: #f7f8f9;
  border: 1.5px solid #e2e6e4;
  color: #1a1a1a;
  border-radius: 14px;
  font-family: 'Onest', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease;
}
.modal-form input::placeholder { color: #9aa3a0; }
.modal-form input:focus { outline: none; border-color: #05604E; background: #fff; }
.modal-form .form-agree { color: #555; margin: 4px 0 6px; }
.modal-form .form-agree a { color: #05604E; border-bottom-color: rgba(5,96,78,0.4); }
.modal-form button[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 16px 32px;
  margin: 8px 0 0;
  background: #05604E;
  color: #fff;
  border: 0;
  border-radius: 99px;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.modal-form button[type="submit"]:hover { background: #03473a; transform: translateY(-1px); }
.modal-form .form-err {
  color: #d33;
  font-size: 0.85rem;
  margin: 0 0 10px;
}
/* Поле резюме (только для отклика на вакансию) */
.modal-resume { margin: 0 0 14px; }
.modal-resume[hidden] { display: none; }
.modal-resume__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.modal-resume__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.modal-resume__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #eef5f3;
  border: 1.5px dashed #05604E;
  border-radius: 12px;
  color: #05604E;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s;
}
.modal-resume__label:hover .modal-resume__btn { background: #e0efea; }
.modal-resume__name {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #2a2a2a;
  word-break: break-word;
}
.modal-resume__name:empty { display: none; }
.modal-resume__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9aa3a0;
}
body.has-modal { overflow: hidden; }
@media (max-width: 520px) {
  .modal { padding: 36px 22px 26px; border-radius: 18px; }
  .modal__title { font-size: 1.3rem; }
}

/* Remote support banner */
.remote-banner {
  background: linear-gradient(135deg, #05604E, #1a8b73);
  color: #fff;
  padding: 40px 32px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.remote-banner__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 8px;
  color: #fff;
}
.remote-banner__text {
  margin: 0;
  opacity: 0.92;
}
.remote-banner__cta {
  padding: 14px 28px;
  background: #fff;
  color: #05604E !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* FAQ */
.faq-list .faq-item {
  background: #fff;
  border-radius: 12px;
  margin: 0 0 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 24px;
  color: #05604E;
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
  margin-top: 2px;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer {
  padding: 0 24px 20px;
  color: #444;
  line-height: 1.6;
}

/* Calculator */
.block--calculator { background: #ECECEC; }
.calc {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
}
.calc__form { display: flex; flex-direction: column; gap: 20px; }
.calc__field label { font-weight: 500; color: #2a2a2a; }
.calc__range { width: 100%; }
.calc__select {
  width: auto !important;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.calc__checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.calc__result {
  background: #f7f8f9;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc__result-label { color: #666; font-size: 0.92rem; margin-bottom: 6px; }
.calc__result-value { font-size: 2.2rem; font-weight: 700; color: #05604E !important; margin-bottom: 14px; }
.calc__result-cta {
  display: block;
  padding: 14px 16px;
  background: #05604E !important;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.calc__hint { font-size: 0.82rem; color: #666; margin-top: 12px; }
@media (max-width: 880px) {
  .calc { grid-template-columns: 1fr; padding: 20px 16px; }
  .calc__checkbox-list { grid-template-columns: 1fr; }
}

/* Block — text (для inner) */
.block--text {
  padding: 40px 24px;
  background: #fff;
}
.block-text__content {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2a2a2a;
}
.block-text__content h2,
.block-text__content h3 {
  color: #05604E;
}
.block-text__content a {
  color: #05604E;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* Адаптив базовый */
@media (max-width: 768px) {
  .block { padding: 48px 16px; }
  .block__title { font-size: 1.75rem; }
  .remote-banner { padding: 32px 24px; }
}

/* === Body font fallback === */
body {
  font-family: "TT Travels", "TTTravels", "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* === About page — Чем мы занимаемся === */
.about-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 0 auto;
}
.about-service {
  margin: 0;
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(5, 96, 78, 0.08);
}
.about-service__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f9f7;
}
.about-service__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.about-service:hover .about-service__photo img { transform: scale(1.03); }
.about-service__caption {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-service__title {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}
.about-service__desc {
  margin: 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .about-services { grid-template-columns: 1fr; gap: 24px; }
  .about-service__caption { padding: 18px 20px 22px; }
  .about-service__title { font-size: 1.2rem; }
}

/* === Inner-hero (внутренние страницы — заголовок + крошки + лид) === */
.inner-hero {
  background: linear-gradient(180deg, #ECECEC 0%, #ffffff 100%);
  padding: 56px 24px 40px;
}
.inner-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.inner-hero__breadcrumbs {
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.inner-hero__breadcrumbs a {
  color: #05604E;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.inner-hero__breadcrumbs a:hover { border-bottom-color: #c2dfd9; }
.inner-hero__crumb-sep { color: #aaa; }
.inner-hero__crumb-current { color: #1a1a1a; }
.inner-hero__title {
  font-family: 'TT Travels', 'Onest', -apple-system, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.inner-hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #444;
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}
@media (max-width: 640px) {
  .inner-hero { padding: 32px 20px 28px; }
  .inner-hero__breadcrumbs { font-size: 0.85rem; margin-bottom: 14px; }
}

/* Inner page: убираем дабл-фон для нечётных блоков сразу после inner-hero,
   чтобы первый блок не сливался с градиентом hero */
.page-inner main > .block:first-of-type,
.inner-hero + .block,
.inner-hero + .section { background: #ffffff; }

/* Inner page: унифицируем визуальную ширину всех блоков под .block__inner (1200px).
   На главной .container остаётся 1280px (через .page-home). */
.page-inner .container { max-width: 1200px; }

/* === Точный калькулятор (block_calculator_full) — 2 колонки: форма + результат === */
.block--calculator-full { background: #f7f8f9; }
.calc-full {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 28px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.calc-full__form {
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 20px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calc-full__section {
  border-top: 1px solid #eef2f0;
  padding-top: 18px;
}
.calc-full__section:first-child {
  border-top: 0;
  padding-top: 0;
}
.calc-full__section-title {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #05604E;
  margin: 0 0 14px;
}
.calc-full__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.calc-full__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.96rem;
  color: #2a2a2a;
}
.calc-full__row input[type="number"] {
  width: 80px;
  padding: 8px 10px;
  border: 1.5px solid #e6e6e6;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 1rem;
  text-align: right;
  -moz-appearance: textfield;
}
.calc-full__row input[type="number"]:focus {
  outline: none;
  border-color: #05604E;
}
.calc-full__row input::-webkit-outer-spin-button,
.calc-full__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-full__radios, .calc-full__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.calc-full__radio, .calc-full__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f7f8f9;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #2a2a2a;
  cursor: pointer;
  transition: background .15s ease;
}
.calc-full__radio:hover, .calc-full__check:hover { background: #ecf3f0; }
.calc-full__radio input, .calc-full__check input {
  accent-color: #05604E;
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Правая колонка — результат */
.calc-full__result {
  background: linear-gradient(160deg, #05604E 0%, #034a3c 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 48px rgba(5,96,78,0.18);
}
.calc-full__result-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.calc-full__result-value {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.calc-full__result-breakdown {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.calc-full__details {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 4px 0 8px;
}
.calc-full__details summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding: 4px 0;
}
.calc-full__details summary::after {
  content: " ↓";
  color: rgba(255,255,255,0.6);
}
.calc-full__details[open] summary::after { content: " ↑"; }
.calc-full__details ul {
  padding: 10px 0 6px 18px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}
.calc-full__details ul li { margin-bottom: 2px; }
.calc-full__details p { margin: 6px 0 2px; font-size: 0.86rem; }
.calc-full__cta {
  margin-top: 6px;
  text-align: center;
  background: #fff;
  color: #05604E;
  font-weight: 700;
}
.calc-full__cta:hover { background: #ECECEC; }
.calc-full__hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin: 4px 0 0;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .calc-full { grid-template-columns: 1fr; }
  .calc-full__result { position: static; order: 2; }
  .calc-full__form { order: 1; padding: 22px 20px; }
}
@media (max-width: 640px) {
  .calc-full__grid { grid-template-columns: 1fr; }
  .calc-full__radios, .calc-full__checks { grid-template-columns: 1fr; }
}

/* === Вакансии (список с раскрытием) === */
.vacancies-list { display: flex; flex-direction: column; gap: 14px; max-width: 920px; margin: 0 auto; }
.vacancy {
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.vacancy[open] { box-shadow: 0 8px 24px rgba(5,96,78,0.08); border-color: #05604E; }
.vacancy__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.vacancy__summary::-webkit-details-marker { display: none; }
.vacancy__title {
  flex: 1;
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
}
.vacancy__tag {
  background: #ecf3f0;
  color: #05604E;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.vacancy__toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecf3f0;
  color: #05604E;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  transition: transform .2s, background .2s;
}
.vacancy[open] .vacancy__toggle { transform: rotate(45deg); background: #05604E; color: #fff; }
.vacancy__body { padding: 0 24px 24px; color: #2a2a2a; line-height: 1.6; }
.vacancy__body h4 {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.05rem;
  color: #05604E;
  margin: 18px 0 8px;
}
.vacancy__body ul { margin: 0 0 16px; padding-left: 22px; }
.vacancy__body li { margin-bottom: 6px; }
.vacancy__cta {
  margin-top: 12px;
  display: inline-block;
  padding: 14px 28px !important;
  background: #05604E !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 600;
  border: 0 !important;
  transition: background .15s, transform .15s;
}
.vacancy__cta:hover { background: #034a3c !important; transform: translateY(-2px); }
@media (max-width: 640px) {
  .vacancy__summary { padding: 16px 18px; gap: 10px; flex-wrap: wrap; }
  .vacancy__title { font-size: 1rem; flex: 1 1 100%; order: 1; }
  .vacancy__tag { order: 2; }
  .vacancy__toggle { order: 3; margin-left: auto; }
  .vacancy__body { padding: 0 18px 20px; }
}

/* === Почему у нас хотят работать === */
.why-work { max-width: 920px; margin: 0 auto; }
.why-work__intro { font-size: 1.05rem; color: #444; line-height: 1.6; margin: 0 0 24px; }
.why-work__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.why-work__list li {
  background: linear-gradient(135deg, #f5f9f7 0%, #ffffff 100%);
  padding: 18px 22px;
  border-radius: 14px;
  border-left: 3px solid #05604E;
  font-size: 1rem;
  line-height: 1.55;
  color: #2a2a2a;
}

/* === 4 шага к работе === */
.vacancy-steps { max-width: 920px; margin: 0 auto; }
.vacancy-steps ol {
  counter-reset: vstep;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vacancy-steps li {
  counter-increment: vstep;
  padding: 18px 22px 18px 70px;
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 14px;
  position: relative;
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.55;
}
.vacancy-steps li::before {
  content: counter(vstep);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  background: #05604E;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

/* === 404 — навигационная сетка === */
.page-404__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.page-404__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 16px;
  color: #1a1a1a;
  text-decoration: none !important;
  border-bottom: 1px solid #e6efeb !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.page-404__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(5,96,78,0.08);
  border-color: #05604E !important;
}
.page-404__link strong {
  font-family: 'TT Travels', 'Onest', sans-serif;
  font-size: 1.15rem;
  color: #05604E;
}
.page-404__link span { font-size: 0.92rem; color: #555; }

/* === Lightbox для писем-сканов === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 64px;
  cursor: zoom-out;
  animation: lightbox-fade .18s ease-out;
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  display: block;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  cursor: default;
  background: #fff;
}
.lightbox__caption {
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 720px;
  margin: 0;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 22px;
}
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.07); }

body.has-lightbox { overflow: hidden; }

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox__close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 24px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__img { max-height: calc(100vh - 80px); }
}

/* ============================================================
   Карусель отзывов (Я.Карты + 2ГИС) — reviews_carousel
   ============================================================ */
/* Блок «Наши рейтинги» */
.rev-ratings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin: 0 auto 32px;
  max-width: 760px;
}
.rev-ratings__label { font-weight: 700; color: #1a1a1a; font-size: 1rem; }
.rev-ratings__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #e6efeb;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .15s, box-shadow .15s;
}
.rev-ratings__item:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.rev-ratings__src { font-weight: 600; color: #1a1a1a; }
.rev-ratings__val { color: #555; font-size: 0.92rem; }
.rev-ratings__stars { color: #f5a623; letter-spacing: 1px; line-height: 1; }
@media (max-width: 600px) {
  .rev-ratings { gap: 10px; }
  .rev-ratings__label { flex: 0 0 100%; text-align: center; }
}

.reviews-ext .rev-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.rev-viewport { overflow: hidden; flex: 1; min-width: 0; }
.rev-track {
  display: flex;
  will-change: transform;
  transition: transform .35s ease;
}
.rev-slide { flex: 0 0 100%; width: 100%; box-sizing: border-box; padding: 4px; }

.rev-carousel__nav {
  flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px;
  border-radius: 50%; background: #fff; color: #05604E;
  border: 1px solid #e6efeb; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, transform .15s, opacity .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); align-self: center;
}
.rev-carousel__nav:hover { background: #05604E; color: #fff; transform: scale(1.05); }
.rev-carousel__nav[disabled] { opacity: .35; cursor: default; transform: none; background: #fff; color: #05604E; }

/* Карточка — фикс высота */
.rev-card {
  display: flex; flex-direction: column;
  height: 330px; overflow: hidden;
  background: #fff; border: 1px solid #e6e8ea; border-radius: 18px;
  padding: 24px 26px; box-sizing: border-box;
}
.rev-card.is-expanded { height: auto; min-height: 330px; }

.rev-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex: 0 0 auto; }
.rev-card__avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: #05604E; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; text-transform: uppercase;
}
.rev-card__meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rev-card__author { font-weight: 700; color: #1a1a1a; font-size: 1rem; }
.rev-card__stars { display: inline-flex; gap: 1px; }
.rev-star { color: #d9dee0; font-size: 0.95rem; line-height: 1; }
.rev-star.is-on { color: #f5a623; }
.rev-card__source { font-size: 0.8rem; color: #9aa3a0; white-space: nowrap; align-self: flex-start; }

/* Текст с фейдом */
.rev-card__text {
  position: relative; flex: 0 1 auto; overflow: hidden;
  color: #2a2a2a; line-height: 1.55; font-size: 0.96rem;
}
.rev-card__text p { margin: 0 0 10px; }
.rev-card__text p:last-child { margin-bottom: 0; }
.rev-card.has-more:not(.is-expanded) .rev-card__text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.rev-card__more {
  flex: 0 0 auto; align-self: flex-start; margin: 10px 0 18px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #05604E; font-weight: 600; font-size: 0.9rem; font-family: inherit;
  text-decoration: underline; text-decoration-color: rgba(5,96,78,0.35);
}
.rev-card__more[hidden] { display: none; }
.rev-card__more:hover { text-decoration-color: currentColor; }

/* Фото */
.rev-card__photos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; flex: 0 0 auto;
  max-height: 84px; overflow: hidden;
}
.rev-card.is-expanded .rev-card__photos { max-height: none; }
.rev-photo { display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.rev-photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .2s; }
.rev-photo:hover img { transform: scale(1.05); }

/* Футер */
.rev-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid #eef1f0; flex: 0 0 auto;
}
.rev-card__date { color: #9aa3a0; font-size: 0.85rem; }
.rev-card__orig {
  color: #05604E; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  border-bottom: 1px solid rgba(5,96,78,0.3);
}
.rev-card__orig:hover { border-bottom-color: #05604E; }

@media (max-width: 600px) {
  .rev-card { height: 400px; padding: 20px; }
  .rev-card.is-expanded { height: auto; min-height: 400px; }
  .rev-carousel__nav { display: none; }
  .reviews-ext .rev-carousel { gap: 0; }
}

/* ===================== Blog / article pages (added 2026-07-20) ===================== */
.article-body { font-size: 1.06rem; line-height: 1.72; color: #2a2a2a; }
.article-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .92rem; color: #6a7672; margin: 0 0 28px; padding-bottom: 18px;
  border-bottom: 1px solid #e6efeb;
}
.article-byline__author { font-weight: 600; color: #05604E; }
.article-byline__sep { color: #b7c4bf; }
.article-body h2 { color: #05604E; font-size: 1.5rem; line-height: 1.25; margin: 1.9em 0 .55em; }
.article-body h3 { color: #0a3d33; font-size: 1.18rem; margin: 1.5em 0 .4em; }
.article-body p { margin: 0 0 1.05em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin: .4em 0; }
.article-body a { color: #05604E; border-bottom: 1px solid rgba(5,96,78,.4); text-decoration: none; }
.article-body a:hover { border-bottom-color: #05604E; }
.article-body strong { color: #163a32; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem;
  display: block; overflow-x: auto;
}
.article-body thead th { background: #eef5f2; color: #05604E; font-weight: 700; text-align: left; }
.article-body th, .article-body td {
  border: 1px solid #dce8e3; padding: 10px 13px; text-align: left; vertical-align: top;
}
.article-body tbody tr:nth-child(even) { background: #fafcfb; }

/* Blog index grid */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #e6efeb;
  border-radius: 18px; padding: 26px 26px 22px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(5,96,78,.10); border-color: #cfe2db; }
.blog-card__title { color: #05604E; font-size: 1.22rem; line-height: 1.3; margin: 0 0 12px; }
.blog-card__desc { color: #4a5652; font-size: .98rem; line-height: 1.55; margin: 0 0 18px; flex: 1; }
.blog-card__more { color: #05604E; font-weight: 600; font-size: .96rem; }
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.32rem; }
}
