/* ==========================================================================
   Скаут web2 — information pages: За нас, Превоз, Авиобилети, Општи услови,
   Синдикати, Контакт. Loaded after site2.css, only by those pages.
   ========================================================================== */

.s2-info { padding-top: 40px; }
.s2-info [hidden], .s2-form [hidden] { display: none !important; }
.s2-crumbs [aria-current="page"] { color: var(--s2-ink); }

/* ---- hero with photo (about, air tickets) ------------------------------------ */
.s2-ihero { position: relative; background: var(--s2-navy); overflow: hidden; color: #fff; }
.s2-ihero img.s2-ihero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.s2-ihero .s2-wrap { position: relative; padding-top: 72px; padding-bottom: 80px; }
.s2-ihero .s2-crumbs, .s2-ihero .s2-crumbs a { color: #dfe4f5; }
.s2-ihero .s2-crumbs [aria-current="page"] { color: #fff; } /* was navy on the navy hero */
.s2-ihero h1 { margin: 10px 0 0; font-size: 48px; font-weight: 700; color: #fff; max-width: 780px; }
.s2-ihero p { margin: 12px 0 0; font-size: 19px; max-width: 640px; color: #fff; }
@media (max-width: 640px) { .s2-ihero h1 { font-size: 32px; } .s2-ihero .s2-wrap { padding-top: 40px; padding-bottom: 64px; } }

/* ---- stats ------------------------------------------------------------------------ */
.s2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -40px; position: relative; }
.s2-stat { background: var(--s2-surface); border: 1px solid var(--s2-line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--s2-shadow); }
.s2-stat b { display: block; font-size: 38px; line-height: 1.1; color: var(--s2-blue); }
.s2-stat span { color: var(--s2-muted); }
@media (max-width: 640px) { .s2-stats { grid-template-columns: 1fr; } .s2-stat b { font-size: 30px; } }

/* ---- split text/image --------------------------------------------------------------- */
.s2-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.s2-split img { width: 100%; height: auto; border-radius: 16px; display: block; }
.s2-prose h2 { margin: 0 0 14px; font-size: 30px; font-weight: 700; }
.s2-prose p { margin: 0 0 14px; font-size: 17px; color: var(--s2-text); }
@media (max-width: 900px) { .s2-split { grid-template-columns: 1fr; gap: 24px; } .s2-prose h2 { font-size: 24px; } }

/* ---- transport ------------------------------------------------------------------------ */
.s2-buses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.s2-bus { display: flex; flex-direction: column; border: 1px solid var(--s2-line); border-radius: 16px; overflow: hidden; background: var(--s2-surface); color: var(--s2-ink) !important; transition: box-shadow .2s; }
.s2-bus:hover { box-shadow: var(--s2-shadow); }
.s2-bus img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--s2-bg); }
.s2-bus__body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.s2-bus__body h2 { margin: 0; font-size: 24px; font-weight: 700; }
.s2-bus__chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .s2-buses { grid-template-columns: 1fr; } }

.s2-gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 230px 230px; gap: 10px; margin-top: 20px; }
.s2-gal__item { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--s2-bg); cursor: zoom-in; }
.s2-gal__item:first-child { grid-row: span 2; }
.s2-gal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2-gal__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5, 16, 54, .55); color: #fff; font-size: 18px; font-weight: 600; }
@media (max-width: 640px) { .s2-gal { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 140px; } .s2-gal__item:first-child { grid-column: span 2; grid-row: auto; } }

.s2-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.s2-spec { border: 1px solid var(--s2-line); border-radius: 12px; padding: 16px 18px; }
.s2-spec b { display: block; font-size: 28px; color: var(--s2-blue); line-height: 1.2; }
.s2-spec span { color: var(--s2-muted); }
.s2-aside { display: flex; flex-direction: column; gap: 10px; background: var(--s2-bg); border: 1px solid var(--s2-line); border-radius: 16px; padding: 24px; }
.s2-aside b { font-size: 20px; }

/* ---- lightbox ------------------------------------------------------------------------- */
.s2-lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(5, 16, 54, .94); color: #fff; }
.s2-lb::backdrop { background: rgba(5, 16, 54, .94); }
.s2-lb[open] { display: flex; align-items: center; justify-content: center; }
.s2-lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.s2-lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; }
.s2-lb figcaption { font-size: 15px; color: #dfe4f5; }
.s2-lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.s2-lb__btn:hover { background: rgba(255, 255, 255, .28); }
.s2-lb__close { top: 16px; right: 16px; }
.s2-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.s2-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
    .s2-lb img { max-width: calc(100vw - 24px); max-height: calc(100vh - 160px); }
    .s2-lb__prev, .s2-lb__next { top: auto; bottom: 20px; transform: none; }
}

/* ---- forms (air tickets, contact) ---------------------------------------------------- */
.s2-form { display: flex; flex-direction: column; gap: 18px; }
.s2-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.s2-form legend { font-size: 20px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.s2-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.s2-grid2 .s2-span2 { grid-column: span 2; }
@media (max-width: 640px) { .s2-grid2 { grid-template-columns: 1fr; } .s2-grid2 .s2-span2 { grid-column: auto; } }
.s2-field small { font-weight: 400; color: var(--s2-muted); font-size: 14px; }
.s2-req { color: var(--s2-bad); }
.s2-seg { display: inline-flex; gap: 4px; border: 1px solid var(--s2-field); border-radius: 100px; padding: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.s2-seg label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 100px; cursor: pointer; font-weight: 500; }
.s2-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s2-seg label:has(input:checked) { background: var(--s2-brand); color: #fff; }
.s2-seg label:has(input:focus-visible) { outline: 3px solid var(--s2-sun); outline-offset: 2px; }
.s2-code { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; border: 1px solid var(--s2-field);
    background-size: cover; background-position: center; font-size: 34px; letter-spacing: 6px; font-weight: 700; color: var(--s2-navy); user-select: none; }
.s2-code span { background: rgba(255, 255, 255, .7); padding: 0 12px; border-radius: 6px; }
.s2 .form-status { padding: 12px 16px; border-radius: 10px; }
.s2 .form-status:empty { display: none; }
.s2 .form-status.is-ok { background: var(--s2-ok-soft); color: var(--s2-ok); }
.s2 .form-status.is-error { background: var(--s2-bad-soft); color: var(--s2-bad); }
.s2-alert { border-radius: 10px; padding: 12px 16px; }
.s2-alert--ok { background: var(--s2-ok-soft); color: var(--s2-ok); }
.s2-alert--bad { background: var(--s2-bad-soft); color: var(--s2-bad); }
.s2-alert ul { margin: 6px 0 0; padding-left: 20px; }
.s2-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s2-side { display: flex; flex-direction: column; gap: 16px; }

/* ---- terms ------------------------------------------------------------------------------- */
.s2-toc { display: flex; flex-direction: column; gap: 2px; }
.s2-toc__title { font-weight: 700; margin-bottom: 6px; }
.s2-toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--s2-ink); font-size: 15px; line-height: 1.35; }
.s2-toc a:hover, .s2-toc a.is-on { background: var(--s2-blue-soft); color: var(--s2-blue); }
.s2-terms .s2-cols__side { order: -1; flex: 1 1 260px; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.s2-terms article { flex: 999 1 560px; min-width: 0; }
.s2-terms section { scroll-margin-top: 100px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--s2-line); }
.s2-terms section:last-child { border-bottom: 0; }
.s2-terms h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.s2-terms p { margin: 0 0 12px; font-size: 16px; color: var(--s2-text); }
.s2-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 16px; }
.s2-table caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.s2-table th, .s2-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--s2-line); vertical-align: top; }
.s2-table thead th { background: var(--s2-bg); font-size: 14px; color: var(--s2-muted); font-weight: 600; }
.s2-table td:last-child { white-space: nowrap; font-weight: 700; color: var(--s2-blue); }
@media (max-width: 900px) {
    .s2-terms .s2-cols__side { position: static; max-height: none; }
    .s2-toc { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .s2-table td:last-child { white-space: normal; } .s2-table th, .s2-table td { padding: 8px 10px; } }

/* ---- unions -------------------------------------------------------------------------------- */
.s2-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.s2-step { border: 1px solid var(--s2-line); border-radius: 14px; padding: 20px; }
.s2-step__n { width: 36px; height: 36px; border-radius: 50%; background: var(--s2-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.s2-step p { margin: 6px 0 0; color: var(--s2-muted); }
@media (max-width: 860px) { .s2-steps { grid-template-columns: 1fr; } }
.s2-search1 { margin-top: 20px; max-width: 560px; }
.s2-unions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s2-unions li { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid var(--s2-line); border-radius: 12px; padding: 14px 16px; background: var(--s2-surface); }
.s2-unions li[hidden] { display: none; }
.s2-unions b { display: block; font-weight: 600; }
.s2-unions .s2-muted { font-size: 15px; }
.s2-unions .s2-chip { flex: none; white-space: nowrap; }
@media (max-width: 860px) { .s2-unions { grid-template-columns: 1fr; } }

/* ---- contact -------------------------------------------------------------------------------- */
.s2-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.s2-way { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--s2-line); border-radius: 14px; padding: 18px 20px; color: var(--s2-ink) !important; background: var(--s2-surface); transition: box-shadow .2s; overflow-wrap: anywhere; }
.s2-way:hover { box-shadow: var(--s2-shadow); }
.s2-way span { color: var(--s2-muted); font-size: 14px; }
.s2-way b { font-size: 19px; }
@media (max-width: 900px) { .s2-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .s2-ways { grid-template-columns: 1fr; } }
.s2-table td .s2-muted { font-weight: 400; }
