/* Свои стили поверх перенесённых из WordPress: модальные окна, cookie-плашка, статусы форм. */

/* Анимации появления Gutenverse/Ghostkit не прячут контент до загрузки JS */
.guten-element-hide { visibility: visible !important; }
.ghostkit-effects-reveal { visibility: visible !important; pointer-events: auto !important; }

/* Хранилище всплывающих форм */
.cg-modal-store { display: none; }

/* Модальное окно (замена fancybox) */
.cg-overlay {
  position: fixed; inset: 0; z-index: 100000; background: rgba(2, 0, 32, .72);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 12px;
}
.cg-overlay[hidden] { display: none; }
.cg-dialog {
  position: relative; background: #fff; border-radius: 12px; max-width: 640px; width: 100%;
  padding: 32px 24px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.cg-dialog--img { background: transparent; box-shadow: none; padding: 0; max-width: 92vw; text-align: center; }
.cg-dialog--img img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.cg-close {
  position: absolute; top: 6px; right: 10px; width: 36px; height: 36px; border: 0; background: none;
  font-size: 30px; line-height: 1; cursor: pointer; color: #04004c;
}
.cg-dialog--img .cg-close { color: #fff; top: -36px; right: 0; }
.cg-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff;
  border: 0; width: 44px; height: 64px; font-size: 32px; cursor: pointer; border-radius: 6px; }
.cg-nav--prev { left: 12px; } .cg-nav--next { right: 12px; }
body.cg-lock { overflow: hidden; }

/* Статус отправки формы */
.cg-form-status { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.cg-form-status.is-ok { color: #1a7f37; }
.cg-form-status.is-err { color: #c62828; }
form[data-cg-form] .cg-invalid { border-color: #c62828 !important; }
form[data-cg-form].is-sending input[type=submit] { opacity: .6; pointer-events: none; }
.cg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Cookie-плашка (замена плагина cookie-notice) */
.cg-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: rgba(4, 0, 76, .96); color: #fff;
  font-size: 14px; line-height: 1.4;
}
.cg-cookie[hidden] { display: none; }
.cg-cookie__inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.cg-cookie a { color: #e9ff7a; }
.cg-cookie__ok { flex: none; background: #e9ff7a; color: #04004c; border: 0; border-radius: 6px; padding: 9px 18px; font-weight: 600; cursor: pointer; }
@media (max-width: 600px) {
  .cg-cookie { font-size: 12px; line-height: 1.35; }
  .cg-cookie__inner { padding: 8px 10px; gap: 10px; }
  .cg-cookie__ok { padding: 7px 14px; }
}

/* Скрытые строки таблиц маршрутов (route-cards) */
.rc-cards-table tr.cg-hidden-row { display: none; }

/* Переключатель языка Google Translate: прячем верхнюю панель Google */
body { top: 0 !important; }
.skiptranslate iframe, #goog-gt-tt { display: none !important; }

/* Страница 404 */
.cg-404 { padding: 80px 20px 120px; }
.cg-404__inner { max-width: 760px; margin: 0 auto; text-align: center; color: #04004c; }
.cg-404__code { font-size: 120px; line-height: 1; font-weight: 700; color: #4a1dff; margin: 0 0 12px; }
.cg-404 h1 { font-size: 40px; margin: 0 0 16px; }
.cg-404 p { font-size: 18px; margin: 0 0 24px; }
.cg-404__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cg-404__links a { display: inline-block; padding: 10px 18px; border-radius: 30px; background: #ecf2ff; color: #04004c; text-decoration: none; font-weight: 600; }
.cg-404__links a:hover { background: #e9ff7a; }
