/* ===== Страницы виз (Таиланд и посадочные), контакты. Общие блоки — в home.css, цвета — в main.css ===== */

/* Первый экран с фото */
.th-hero { min-height: 92svh; }
.th-hero-media { background: url('/assets/images/visa/asia/thailand-hero.webp') center 40% / cover no-repeat; animation: hm-zoom 24s ease-out both; }
.th-hero .hm-hero-shade {
    background:
        linear-gradient(180deg, rgba(7, 7, 8, 0.55) 0%, rgba(7, 7, 8, 0) 22%),
        linear-gradient(90deg, rgba(7, 7, 8, 0.85) 0%, rgba(7, 7, 8, 0.45) 55%, rgba(7, 7, 8, 0.1) 100%),
        linear-gradient(0deg, var(--nx-bg) 0%, rgba(7, 7, 8, 0.55) 30%, rgba(7, 7, 8, 0) 60%);
}
.th-hero-in { grid-template-columns: minmax(0, 1fr); }
.th-hero .hm-hero-text { max-width: 860px; }
.th-badge-flag { width: 18px; height: 18px; border-radius: 50%; }
.th-hero .hm-badge .th-badge-flag { margin-right: -4px; }
.th-title span { display: block; }
.th-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); max-width: 760px; }
.th-facts li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 14px; }
.th-facts li::before { content: ''; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--nx-gold); }
.hm-head h2 span { font-weight: 600; color: var(--nx-text); }

/* Карточки виз */
.th-visas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.th-visa {
    position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--nx-r); background: var(--nx-surface); border: 1px solid var(--nx-line);
    transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease);
}
.th-visa:hover { border-color: rgba(228, 189, 82, 0.45); }
.th-visa-featured {
    grid-row: span 2; color: #fff;
    background: linear-gradient(160deg, rgba(228, 189, 82, 0.16), rgba(228, 189, 82, 0) 50%), var(--nx-surface);
    border: 1px solid var(--nx-gold);
}
.th-visa-featured:hover { border-color: var(--nx-gold-light); }
.th-visa-top { margin-bottom: 18px; }
.th-tag {
    display: inline-block; padding: 5px 10px; border-radius: var(--nx-r); font-size: 9.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--nx-body); border: 1px solid var(--nx-line-strong); background: transparent;
}
.th-tag-hot { color: var(--nx-on-gold); background: var(--nx-gold); border-color: var(--nx-gold); }
.th-visa h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.3; color: var(--nx-text); }
.th-visa-featured h3 { color: var(--nx-gold); font-size: 22px; letter-spacing: 1px; }
.th-visa-desc { margin: 0 0 22px; color: var(--nx-muted); font-size: 14.5px; line-height: 1.6; }
.th-visa-featured .th-visa-desc { color: var(--nx-body); font-size: 15.5px; }
.th-visa-price { display: flex; align-items: baseline; gap: 8px; }
.th-visa-price small { color: var(--nx-muted); font-weight: 400; font-size: 13px; }
.th-visa-price b { font-size: 34px; font-weight: 200; letter-spacing: -0.5px; color: var(--nx-text); }
.th-visa-featured .th-visa-price small { color: var(--nx-body); }
.th-visa-featured .th-visa-price b { color: #fff; font-size: 46px; }
.th-visa-time { margin: 6px 0 20px; color: var(--nx-muted); font-size: 13px; }
.th-visa-featured .th-visa-time { color: var(--nx-body); }
.th-visa-list { list-style: none; margin: 0 0 24px; padding: 20px 0 0; border-top: 1px solid var(--nx-line); display: grid; gap: 10px; }
.th-visa-featured .th-visa-list { border-top-color: rgba(228, 189, 82, 0.25); }
.th-visa-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.55; color: var(--nx-body); }
.th-visa-featured .th-visa-list li { color: rgba(255, 255, 255, 0.88); font-size: 15px; }
.th-visa-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--nx-gold); }
.th-visa-list li b { font-weight: 600; color: var(--nx-text); }
.th-visa-list li span[data-price] { font-weight: 600; color: var(--nx-text); white-space: nowrap; }
.th-visa-actions { margin-top: auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.th-order { height: 52px; padding: 0 24px; font-size: 11.5px; }
.th-visa:not(.th-visa-featured) .th-order { background: transparent; color: var(--nx-text); border: 1px solid var(--nx-line-strong); }
.th-visa:not(.th-visa-featured) .th-order:hover { background: var(--nx-gold); color: var(--nx-on-gold); border-color: var(--nx-gold); }
.th-ask { color: var(--nx-gold); font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.th-ask:hover { color: var(--nx-gold-light); }
.th-visa-featured .th-ask { color: var(--nx-gold); }

.th-notes { margin-top: 24px; padding: 20px 24px; border-left: 1px solid var(--nx-gold); background: var(--nx-surface); display: grid; gap: 6px; }
.th-notes p { margin: 0; color: var(--nx-muted); font-size: 14px; line-height: 1.6; }

/* Документы */
.th-docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--nx-line); }
.th-doc { padding: 32px 26px 8px 0; }
.th-doc + .th-doc { padding-left: 26px; border-left: 1px solid var(--nx-line); }
.th-doc h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--nx-text); }
.th-doc p { margin: 0; color: var(--nx-muted); font-size: 14.5px; line-height: 1.6; }
.th-doc strong { color: var(--nx-text); font-weight: 600; }
.hm-head p strong { color: var(--nx-text); font-weight: 600; }
.th-foreign { margin-top: 32px; padding: 30px 28px; border-radius: var(--nx-r); background: var(--nx-surface); border: 1px solid var(--nx-line); border-left: 1px solid var(--nx-gold); }
.th-foreign h3 { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--nx-gold); }
.th-foreign h3 span { color: inherit; }
.th-foreign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.th-foreign b { display: block; color: var(--nx-text); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.th-foreign p { margin: 0; color: var(--nx-muted); font-size: 14px; line-height: 1.55; }

/* Почему мы */
.th-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--nx-line); }
.th-why-item { padding: 32px 28px 28px 0; border-bottom: 1px solid var(--nx-line); }
.th-why-item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--nx-line); }
.th-why-n { display: inline-block; font-size: 40px; font-weight: 200; line-height: 1; color: var(--nx-gold); background: none; padding: 0; border-radius: 0; letter-spacing: -0.5px; }
.th-why-item h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--nx-text); }
.th-why-item p { margin: 0; color: var(--nx-muted); font-size: 14.5px; line-height: 1.6; }

/* Дополнительно */
.th-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.th-extra-card { padding: 32px 28px; border-radius: var(--nx-r); background: var(--nx-surface); border: 1px solid var(--nx-line); }
.th-extra-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--nx-text); }
.th-extra-card > p { margin: 0 0 20px; color: var(--nx-muted); font-size: 14.5px; line-height: 1.6; }
.th-extra-card .th-visa-list { border-top: 0; padding-top: 0; margin: 0; }
.th-extra-price { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--nx-line); color: var(--nx-muted); font-size: 14px; }
.th-extra-price b { font-size: 26px; font-weight: 200; color: var(--nx-text); white-space: nowrap; }
.th-app p { margin: 0 0 22px; color: var(--nx-body); line-height: 1.6; }
.th-app .hm-app-btns { grid-template-columns: 1fr; }

/* Форма: выбор визы */
.hm-field select {
    width: 100%; height: 48px; font: inherit; font-size: 16px; color: var(--nx-text); padding: 0 32px 0 0; border-radius: 0; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23e4bd52' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 4px center / 16px no-repeat;
    border: 0; border-bottom: 1px solid var(--nx-line-strong); outline: none; -webkit-appearance: none; appearance: none; transition: border-color .3s var(--nx-ease);
}
.hm-field select option { background: var(--nx-surface); color: var(--nx-text); }
.hm-field select:focus { border-bottom-color: var(--nx-gold); }
.hm-contact h2 span { color: var(--nx-gold); }

/* Адаптив */
@media (max-width: 1100px) {
    .th-visas { grid-template-columns: 1fr 1fr; }
    .th-visa-featured { grid-row: auto; grid-column: 1 / -1; }
    .th-docs { grid-template-columns: 1fr 1fr; }
    .th-doc:nth-child(3) { padding-left: 0; border-left: 0; }
    .th-doc:nth-child(n+3) { border-top: 1px solid var(--nx-line); }
    .th-why { grid-template-columns: 1fr 1fr; }
    .th-why-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
    .th-why-item:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--nx-line); }
    .th-extra { grid-template-columns: 1fr 1fr; }
    .th-app { grid-column: 1 / -1; }
    .th-app .hm-app-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .th-hero { min-height: 92svh; }
    .th-hero .hm-hero-shade { background: linear-gradient(180deg, rgba(7, 7, 8, 0.6) 0%, rgba(7, 7, 8, 0.55) 40%, rgba(7, 7, 8, 0.82) 75%, var(--nx-bg) 100%); }
    .th-facts { flex-direction: column; margin-top: 32px; }
    .th-visas, .th-docs, .th-why, .th-extra, .th-foreign-grid { grid-template-columns: 1fr; }
    .th-doc, .th-doc + .th-doc, .th-why-item, .th-why-item:not(:nth-child(3n+1)), .th-why-item:nth-child(2n) { padding: 26px 0 22px; border-left: 0; }
    .th-doc + .th-doc { border-top: 1px solid var(--nx-line); }
    .th-visa { padding: 26px 20px; }
    .th-visa-featured .th-visa-price b { font-size: 38px; }
    .th-order { flex: 1 1 auto; }
    .th-app .hm-app-btns { grid-template-columns: 1fr; }
    .th-foreign { padding: 24px 20px; }
}

/* ===== Страница «Контакты» ===== */
.ct-hero { min-height: 0; background: radial-gradient(60% 90% at 90% 0%, rgba(228, 189, 82, 0.12), transparent 60%), var(--nx-bg); }
.ct-hero .hm-hero-shade { background: linear-gradient(0deg, var(--nx-bg), rgba(7, 7, 8, 0) 50%); }
.ct-hero-in { grid-template-columns: minmax(0, 1fr); padding-bottom: 88px; }
.ct-hero .hm-hero-text { max-width: 820px; }
.ct-hero .hm-btn svg { flex: 0 0 auto; }

.ct-main { padding-top: 72px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ct-channels { display: grid; gap: 0; }
.ct-channels .hm-head { margin-bottom: 24px; }
.ct-channel {
    display: flex; align-items: center; gap: 16px; padding: 20px 4px; text-decoration: none; color: var(--nx-text);
    border-bottom: 1px solid var(--nx-line); transition: padding .35s var(--nx-ease);
}
.ct-channels .hm-head + .ct-channel { border-top: 1px solid var(--nx-line); }
.ct-channel:hover { padding-left: 12px; }
.ct-channel-text { min-width: 0; }
.ct-channel b { display: block; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.ct-channel small { display: block; color: var(--nx-muted); font-size: 13.5px; margin-top: 3px; overflow-wrap: anywhere; }
.ct-go { margin-left: auto; color: var(--nx-dim); font-size: 18px; transition: color .3s, transform .3s var(--nx-ease); }
.ct-channel:hover .ct-go { color: var(--nx-gold); transform: translateX(4px); }
.ct-chip { margin-left: auto; padding: 5px 9px; border: 1px solid rgba(111, 211, 160, 0.45); border-radius: var(--nx-r); font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; color: var(--nx-ok); background: transparent; }
.ct-ic-mail, .ct-ic-in, .ct-ic-lk { background: transparent !important; color: var(--nx-gold) !important; }
.ct-channel-lk { background: linear-gradient(90deg, rgba(228, 189, 82, 0.08), rgba(228, 189, 82, 0)); }

.ct-office { border-radius: var(--nx-r); overflow: hidden; background: var(--nx-surface); border: 1px solid var(--nx-line); border-top: 1px solid var(--nx-gold); }
.ct-map { position: relative; height: 300px; background: var(--nx-surface-2); }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.05); }
.ct-office-body { padding: 30px 30px 32px; }
.ct-office-body h3 { margin: 10px 0 20px; font-size: 20px; font-weight: 300; letter-spacing: 0.5px; text-transform: uppercase; color: var(--nx-text); }
.ct-hours { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--nx-line); }
.ct-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nx-line); color: var(--nx-muted); font-size: 14.5px; }
.ct-hours b { color: var(--nx-text); font-weight: 500; }
.ct-route { height: 52px; }
.ct-note { margin: 18px 0 0; color: var(--nx-muted); font-size: 13.5px; line-height: 1.6; }

.ct-next { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--nx-line); counter-reset: ct-next; }
.ct-next li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--nx-line); counter-increment: ct-next; }
.ct-next li > span { flex: 0 0 auto; width: 40px; font-size: 0; line-height: 1; }
.ct-next li > span::before { content: counter(ct-next, decimal-leading-zero); font-size: 26px; font-weight: 200; color: var(--nx-gold); }
.ct-next b { display: block; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.ct-next small { display: block; color: var(--nx-muted); font-size: 14px; margin-top: 5px; line-height: 1.55; }

@media (max-width: 992px) { .ct-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .ct-hero-in { padding-bottom: 56px; }
    .ct-main { padding-top: 48px; }
    .ct-map { height: 240px; }
    .ct-office-body { padding: 24px 20px; }
    .ct-chip { display: none; }
}

/* Контакты: фото входа в офис над картой */
.ct-office-photo { display: block; width: 100%; height: 260px; object-fit: cover; object-position: 30% 38%; }
@media (max-width: 640px) { .ct-office-photo { height: 200px; } }

/* ===== Посадочные страницы виз (scripts/build-visa-pages.cjs) ===== */
.vp-hero { min-height: 0; }
.vp-hero .th-hero-in { padding-bottom: 110px; }
.vp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.vp-crumbs a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.vp-crumbs a:hover { color: var(--nx-gold); }
.vp-crumbs b { color: var(--nx-gold); font-weight: 600; }
.vp-lang-note { margin: 18px 0 0; color: rgba(255, 255, 255, 0.65); font-size: 13.5px; }
html[lang="ru"] .vp-lang-note { display: none; }

.vp-facts-wrap { position: relative; z-index: 2; margin-top: -56px; }
.vp-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; max-width: 1224px;
    background: rgba(17, 18, 20, 0.92); border: 1px solid var(--nx-line); border-top: 1px solid var(--nx-gold);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.vp-fact { padding: 26px 28px; }
.vp-fact + .vp-fact { border-left: 1px solid var(--nx-line); }
.vp-fact b { display: block; color: var(--nx-text); font-size: 28px; font-weight: 200; letter-spacing: -0.3px; white-space: nowrap; }
.vp-fact > span { display: block; color: var(--nx-muted); font-size: 10.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }

.vp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--nx-line); }
.vp-cards .th-why-item, .vp-cards .th-why-item:not(:nth-child(3n+1)) { padding: 32px 26px 28px 0; border-left: 0; border-bottom: 0; }
.vp-cards .th-why-item + .th-why-item { padding-left: 26px; border-left: 1px solid var(--nx-line); }
.vp-cards .th-why-item h3 { margin-top: 0; }
.vp-list { border-top: 0; padding-top: 0; max-width: 900px; gap: 14px; }
.vp-list li { font-size: 16px; }
.vp-note {
    margin: 22px 0 0; max-width: 900px; padding: 18px 22px; font-size: 14.5px; line-height: 1.6;
    color: var(--nx-muted); background: var(--nx-surface); border-left: 1px solid var(--nx-gold);
}
.vp-prices-1 { grid-template-columns: minmax(0, 560px); }
.vp-prices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.vp-prices .th-visa-featured { grid-row: auto; }

.vp-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--nx-line); border-left: 1px solid var(--nx-line); }
.vp-rel {
    position: relative; display: block; padding: 26px 48px 26px 24px; text-decoration: none;
    border-right: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); transition: background .3s var(--nx-ease);
}
.vp-rel:hover { background: var(--nx-surface); }
.vp-rel b { display: block; color: var(--nx-text); font-size: 13px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; transition: color .3s; }
.vp-rel:hover b { color: var(--nx-gold); }
.vp-rel span { display: block; color: var(--nx-muted); font-size: 13.5px; margin-top: 6px; }
.vp-rel i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--nx-gold); font-style: normal; font-size: 18px; transition: transform .3s var(--nx-ease); }
.vp-rel:hover i { transform: translate(4px, -50%); }

/* Ссылки «Подробнее» на странице Таиланда */
.th-more { display: inline-block; margin: -8px 0 18px; color: var(--nx-gold); font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.th-more:hover { color: var(--nx-gold-light); }
.th-visa-featured .th-more { color: var(--nx-gold); }

@media (max-width: 1100px) {
    .vp-facts { grid-template-columns: 1fr 1fr; }
    .vp-fact:nth-child(3) { border-left: 0; }
    .vp-fact:nth-child(n+3) { border-top: 1px solid var(--nx-line); }
    .vp-cards, .vp-related { grid-template-columns: 1fr 1fr; }
    .vp-cards .th-why-item:nth-child(3) { padding-left: 0; border-left: 0; }
    .vp-cards .th-why-item:nth-child(n+3) { border-top: 1px solid var(--nx-line); }
}
@media (max-width: 640px) {
    .vp-hero .th-hero-in { padding-bottom: 80px; }
    .vp-facts-wrap { margin-top: -40px; }
    .vp-fact { padding: 18px 16px; }
    .vp-fact b { font-size: 22px; white-space: normal; }
    .vp-cards, .vp-related, .vp-prices-2 { grid-template-columns: 1fr; }
    .vp-cards .th-why-item, .vp-cards .th-why-item + .th-why-item, .vp-cards .th-why-item:nth-child(3) { padding: 24px 0 20px; border-left: 0; }
    .vp-cards .th-why-item + .th-why-item { border-top: 1px solid var(--nx-line); }
    .vp-prices-1 { grid-template-columns: 1fr; }
    .vp-list li { font-size: 15px; }
}
.th-visa-urgent { margin-top: -12px; }
.vp-prices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .vp-prices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vp-prices-4 { grid-template-columns: 1fr; } }
