/* ============================================================================
   A-RT Marine · V11 lite · 25.11.2026
   Подключать ПОСЛЕ style_all.css. Выборка из «v11 a-rt marine - новый стиль.css»:
   секции 1 (токены), 3 (кнопки), 4+19+26 (шапка), 23 (крошки), 24 и 30
   (левое меню, новости в сайдбаре), 25 (текст статьи), 33 (география).
   Не входит: меню, .page-banner, Manrope/Google Fonts, hero, подвал, QR.
   Шрифт — текущий шрифт сайта (Open Sans).
   Блоки .article-note (note-*) исключены из правил кнопок и ссылок.
   Почта в одну строку (V11) уже стоит в конце style_all.css, здесь не дублируется.
   ========================================================================= */

/* ---------- 1. Токены ---------- */
:root {
  --am-brand: #C90062;
  --am-brand-deep: #A60051;
  --am-ink: #1B1E1F;
  --am-ink-2: #23292A;
  --am-muted: #5B6470;
  --am-line: #E7EAEE;
  --am-paper: #F1F3F8;
  --am-card: #FFFFFF;
  --am-radius-ui: 12px;
  --am-shadow-sm: 0 1px 2px rgba(27, 30, 31, 0.06), 0 2px 8px rgba(27, 30, 31, 0.05);
  --am-font: 'Open Sans', Arial, sans-serif;
  --am-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 3. Кнопки (кроме кнопок внутри блоков note-*) ---------- */
.btn:where(:not(.article-note *)),
.header-callback-btn {
  font-family: var(--am-font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border-radius: var(--am-radius-ui);
  transition: background-color 0.25s var(--am-ease), color 0.25s var(--am-ease),
              border-color 0.25s var(--am-ease), box-shadow 0.25s var(--am-ease),
              transform 0.25s var(--am-ease);
}

.btn:where(:not(.article-note *)) {
  background: var(--am-brand);
  border: 2px solid var(--am-brand);
  color: #fff;
  padding: 15px 30px;
  box-shadow: 0 10px 22px -10px rgba(201, 0, 98, 0.55);
}

.btn:where(:not(.article-note *)):hover {
  background: var(--am-brand-deep);
  border-color: var(--am-brand-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(201, 0, 98, 0.6);
}

.btn:where(:not(.article-note *)):active { transform: translateY(0) scale(0.99); }
.btn.min:where(:not(.article-note *)) { padding: 12px 22px; font-size: 14px; }
.btn i.material-icons { font-size: 18px; }

.btn.white-btn:where(:not(.article-note *)) {
  background: #fff;
  border-color: #fff;
  color: var(--am-brand);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45);
}
.btn.white-btn:where(:not(.article-note *)):hover { background: #fff; border-color: #fff; color: var(--am-brand-deep); }

.btn.yellow-btn:where(:not(.article-note *)) { background: #EFA701; border-color: #EFA701; color: #fff; box-shadow: 0 10px 22px -10px rgba(239, 167, 1, 0.55); }
.btn.yellow-btn:where(:not(.article-note *)):hover { background: #D89500; border-color: #D89500; color: #fff; }

.btn.invert:where(:not(.article-note *)) {
  background: transparent;
  border-color: var(--am-brand);
  color: var(--am-brand);
  box-shadow: none;
}
.btn.invert:where(:not(.article-note *)):hover { background: var(--am-brand); color: #fff; }

/* ---------- 4. Шапка: блок контактов и кнопка ---------- */
.header-wrapper { box-shadow: 0 1px 0 var(--am-line); }
.header .logo img { display: block; }
.header-contacts .element { color: var(--am-muted); }
.header-tel a { font-weight: 700; letter-spacing: 0.01em; }
.header-tel a:hover { color: var(--am-brand); }

/* Логотип: официальный файл со слоганом внутри картинки, подпись-span не нужна */
.header .logo img { width: 128px; height: auto; }
.header .logo br,
.header .logo span { display: none; }
@media (max-width: 1229px) { .header .logo img { width: 120px; } }
@media (max-width: 767px) { .header .logo img { width: 110px; } }

/* Почта всегда в одну строку вместе с конвертиком */
.header-contacts .header-email,
.header-contacts .header-email a { white-space: nowrap; }

/* Режим работы под адресами (< 1230) — одной строкой */
@media (max-width: 1229px) {
  .header-contacts .el2 br { display: none; }
  .header-contacts .el2 { white-space: nowrap; }
}

/* Десктоп 1230+: режим работы посередине между адресами и телефонами */
@media (min-width: 1230px) {
  .header-contacts .col-lg-8 > .row { display: flex; }
  .header-contacts .col-lg-8 > .row > .col-lg-6:first-of-type { flex: 0 1 auto; width: auto; max-width: 62%; }
  .header-contacts .col-lg-8 > .row > .col-lg-6 + .col-lg-6 { flex: 1 1 auto; width: auto; display: flex; justify-content: center; }
}

/* Кнопка «Обратный звонок»: компактная (на мобильном — как было в V11) */
.header-callback-btn i.material-icons { font-size: 18px; vertical-align: -4px; }
.header-callback-btn {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 6px 12px;
  font-size: 12.5px;
  line-height: 1.2;
  border-radius: 9px;
  background: var(--am-brand);
  border: 2px solid var(--am-brand);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(201, 0, 98, 0.6);
}
.header-callback-btn:hover {
  background: var(--am-brand-deep);
  border-color: var(--am-brand-deep);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 767px) { .header-callback-btn { padding: 11px 20px; font-size: 13px; border-radius: var(--am-radius-ui); } }

/* ---------- 26. Шапка: сетка логотип | контакты | язык+кнопка ---------- */
@media (min-width: 768px) {
  @supports (display: grid) {
    .header {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      grid-template-rows: auto auto;
      align-items: center;
      column-gap: 28px;
      height: auto;
      min-height: 118px;
      padding: 20px 0;
    }
    .header > div { height: auto; }
    .header-wrapper .header { padding: 14px 0; }
    .header .logo br { display: none; }
    .header .header-contacts .el3 { margin-top: 0; }
    .header-tel-wrapper { margin-top: 0; }

    .header .logo {
      grid-column: 1;
      grid-row: 1 / span 2;
      align-self: center;
      min-width: 0;
      max-width: 236px;
      margin-right: 0;
    }
    .header .header-contacts {
      grid-column: 2;
      grid-row: 1 / span 2;
      width: auto;
      min-width: 0;
      margin-right: 0;
    }
    .language-block {
      grid-column: 3;
      grid-row: 1;
      position: static;
      align-self: end;
      justify-self: end;
      height: auto !important;
    }
    .header-callback-btn {
      grid-column: 3;
      grid-row: 2;
      position: static;
      bottom: auto;
      right: auto;
      align-self: start;
      justify-self: end;
      width: auto;
      min-width: 0;
      height: auto;
      margin: 8px 0 0;
      white-space: nowrap;
    }
  }
}
/* 768-991: справа место под кнопку мобильного меню (fixed, right 17px) */
@media (min-width: 768px) and (max-width: 991px) {
  @supports (display: grid) {
    .header-wrapper .header { padding-right: 44px; }
    .header-email a { white-space: nowrap; }
  }
}

/* ---------- 23. Хлебные крошки ---------- */
.breadcrumbs-wrapper {
  margin: 0 0 14px;
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.breadcrumbs-wrapper li { margin-right: 22px; color: var(--am-muted); }
.breadcrumbs-wrapper li.active { color: var(--am-ink); font-weight: 600; }
.breadcrumbs-wrapper a { color: var(--am-muted); }
.breadcrumbs-wrapper a:hover { color: var(--am-brand); }
.breadcrumbs-wrapper a:after { border-color: #C2C9D2; top: 6px; }
.breadcrumbs-wrapper a:hover:after { border-color: var(--am-brand); }

/* ---------- 24. Левое меню «Услуги» и блок новостей ---------- */
.aside-block-title {
  font-family: var(--am-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-ink);
}
.aside-block hr { margin: 12px 0 0; border: 0; border-top: 1px solid var(--am-line); }
.aside-menu {
  margin-top: 14px;
  margin-bottom: 26px;
  overflow: hidden;
  background: var(--am-card);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius-ui);
}
.aside-menu a {
  padding: 12px 16px;
  font-family: var(--am-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--am-ink);
  background: var(--am-card);
  border-top: 1px solid var(--am-line);
}
.aside-menu > ul > li:first-of-type > a { border-top: none; }
.aside-menu a:hover { background: var(--am-paper); color: var(--am-brand); }
.aside-menu > ul > li.active > a,
.aside-menu .active > a { background: var(--am-brand) !important; color: #fff !important; }
/* Активный вложенный пункт - светлый, чтобы не сливаться с малиновым заголовком раздела (25.11.2026) */
.aside-menu ul ul .active > a {
  background: #fdf0f5 !important;
  color: var(--am-brand) !important;
  box-shadow: inset 3px 0 0 var(--am-brand);
}
.aside-menu ul ul > li.active > a:before { background: var(--am-brand); }

.aside-news .element { padding-left: 100px; min-height: 74px; }
.aside-news .element .img-wrapper { top: 0; }
.aside-news .element-img { border-radius: 9px; box-shadow: var(--am-shadow-sm); }
.aside-news .element .date {
  margin-bottom: 5px;
  font-family: var(--am-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--am-muted);
}
.aside-news .element .text a {
  font-family: var(--am-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--am-ink);
  text-decoration: none;
}
.aside-news .element .text a:hover { color: var(--am-brand); }

/* 30. Заголовки новостей в сайдбаре не обрезаются на полуслове */
.aside-news .text,
.aside-news .element .text { height: auto; overflow: visible; line-height: 1.45; }
.aside-news .element { margin-bottom: 16px; }
.aside-news > .title-h2 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--am-line);
  font-family: var(--am-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-ink);
}
.aside-news > .title-h2 + .inner { margin-top: 14px; }

/* Карусель отзывов: стрелка давала горизонтальную прокрутку */
.rev-gallery-section { overflow: hidden; }

/* ---------- 25. Текст статьи (блоки note-* не затрагиваются) ---------- */
/* Вводный абзац; абзац с обложкой статьи пропускается */
.main-column .content > p:first-of-type:not(:has(img)) {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--am-ink-2);
}
.content h2:where(:not(.article-note *)) {
  margin-top: 34px;
  margin-bottom: 16px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--am-ink);
}
.content h3:where(:not(.article-note *)) {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--am-ink);
}
.content a:where(:not(.article-note *, .btn)) { color: var(--am-brand); text-underline-offset: 2px; }
.content a:where(:not(.article-note *, .btn)):hover { color: var(--am-brand-deep); }
.content blockquote {
  padding: 44px 26px 24px 28px;
  background: var(--am-paper);
  border-left: 3px solid var(--am-brand);
  border-radius: 0 var(--am-radius-ui) var(--am-radius-ui) 0;
  color: var(--am-ink-2);
}
/* Обложки статей (services-images): во всю ширину, без обрезки */
.content img[src*="services-images/"] { max-width: 100%; height: auto; }

/* ---------- 33. География: сетка карточек с флагами вместо таблицы ---------- */
.content table.c3 {
  display: block;
  width: 100%;
  margin: 6px 0 6px;
  border: 0;
  border-collapse: separate;
  font-size: inherit;
}
.content table.c3 tbody { display: block; }
.content table.c3 tr {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 20px;
}
.content table.c3 td {
  display: block;
  padding: 0;
  border: 0;
  text-align: center;
}
.content table.c3 td > a { display: block; text-decoration: none; }
.content table.c3 img.c1,
.content table.c3 img.c4 {
  display: block;
  width: 100%;
  max-width: 138px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(27, 30, 31, 0.12);
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(27, 30, 31, 0.08);
  transition: transform 0.16s var(--am-ease), box-shadow 0.16s var(--am-ease), border-color 0.16s var(--am-ease);
}
.content table.c3 img.c4 { object-position: center top; }
.content table.c3 td > a:hover img {
  transform: translateY(-2px);
  border-color: rgba(27, 30, 31, 0.24);
  box-shadow: 0 8px 18px -8px rgba(27, 30, 31, 0.4);
}
.content table.c3 tr.c2 > td { padding-bottom: 12px; }
.content table.c3 tr.desc_country > td { padding-bottom: 34px; }
.content table.c3 tr.desc_country a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--am-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.content table.c3 tr.desc_country a:hover {
  color: var(--am-brand);
  text-decoration: underline;
  text-decoration-color: rgba(201, 0, 98, 0.4);
  text-underline-offset: 3px;
}
.content table.c3 tr:has(td:nth-child(1) a:hover) + tr td:nth-child(1) a,
.content table.c3 tr:has(td:nth-child(2) a:hover) + tr td:nth-child(2) a,
.content table.c3 tr:has(td:nth-child(3) a:hover) + tr td:nth-child(3) a,
.content table.c3 tr:has(td:nth-child(4) a:hover) + tr td:nth-child(4) a,
.content table.c3 tr:has(td:nth-child(5) a:hover) + tr td:nth-child(5) a {
  color: var(--am-brand);
  text-decoration: underline;
  text-decoration-color: rgba(201, 0, 98, 0.4);
  text-underline-offset: 3px;
}
.content h2 + table.c3,
.content h2 + .table-wrapper:has(> table.c3) { margin-top: 20px; }
.content .table-wrapper:has(> table.c3) { margin-bottom: 6px; }
.content table.c3 + h2,
.content .table-wrapper:has(> table.c3) + h2 { margin-top: 42px; }
.content table.c3 ~ h2 a,
.content .table-wrapper:has(> table.c3) ~ h2 a { color: inherit; text-decoration: none; }
.content table.c3 ~ h2 a:hover,
.content .table-wrapper:has(> table.c3) ~ h2 a:hover { color: var(--am-brand); }
@media (max-width: 991px) {
  .content table.c3 tr { column-gap: 16px; }
}
@media (max-width: 767px) {
  .content table.c3 tr { column-gap: 10px; }
  .content table.c3 tr.c2 > td { padding-bottom: 8px; }
  .content table.c3 tr.desc_country > td { padding-bottom: 24px; }
  .content table.c3 tr.desc_country a { font-size: 11.5px; }
  .content table.c3 img.c1,
  .content table.c3 img.c4 { border-radius: 7px; }
}
