/* ===== Главная страница (и общие блоки страниц виз и контактов) =====
   Цвета берутся из main.css (--nx-*). Старые имена --hm-* оставлены, чтобы visa.css и скрипты работали без правок. */
:root {
    --hm-bg: var(--nx-bg);
    --hm-surface: var(--nx-surface);
    --hm-ink: var(--nx-text);
    --hm-muted: var(--nx-muted);
    --hm-line: var(--nx-line);
    --hm-accent: var(--nx-gold);
    --hm-accent-2: var(--nx-gold);
    --hm-navy: var(--nx-bg);
}
body { background: var(--nx-bg); }
.hm-wrap { max-width: 1272px; margin: 0 auto; padding: 0 24px; }

/* --- Первый экран: видео во весь экран, текст снизу --- */
.hm-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--nx-bg); }
.hm-hero-media { position: absolute; inset: 0; }
.hm-hero-media video { width: 100%; height: 100%; object-fit: cover; background: url('/assets/images/common/hero-poster.jpg') center / cover; animation: hm-zoom 24s ease-out both; }
@keyframes hm-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hm-hero-shade {
    position: absolute; inset: 0;
    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.78) 0%, rgba(7, 7, 8, 0.35) 55%, rgba(7, 7, 8, 0.1) 100%),
        linear-gradient(0deg, var(--nx-bg) 0%, rgba(7, 7, 8, 0.6) 30%, rgba(7, 7, 8, 0) 60%);
}
.hm-hero-in {
    position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); gap: 56px; align-items: end;
    padding-top: calc(var(--hdr-h, 72px) + 80px); padding-bottom: 72px;
}
.hm-badge {
    display: inline-flex; align-items: center; gap: 14px; color: var(--nx-gold);
    font-size: 11.5px; font-weight: 600; letter-spacing: 3.5px; text-transform: uppercase;
}
.hm-badge::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.hm-dot { display: none; }
.hm-title {
    margin: 26px 0 26px; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.08; font-weight: 200; letter-spacing: -0.5px;
    text-transform: uppercase; color: #fff;
}
.hm-title span { font-weight: 600; color: var(--nx-gold); }
.hm-lead { max-width: 560px; margin: 0 0 40px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, 0.78); font-weight: 300; }
.hm-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Кнопки: прямоугольные, заглавными, золото или контур */
.hm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 58px; padding: 0 30px; border-radius: var(--nx-r);
    font-weight: 700; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
    transition: background .3s var(--nx-ease), color .3s var(--nx-ease), border-color .3s var(--nx-ease);
}
.hm-btn svg { transition: transform .3s var(--nx-ease); }
.hm-btn:hover svg { transform: translateX(4px); }
.hm-btn-primary { background: var(--nx-gold); color: var(--nx-on-gold); border: 1px solid var(--nx-gold); }
.hm-btn-primary:hover { background: var(--nx-gold-light); border-color: var(--nx-gold-light); }
.hm-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; }
.hm-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.hm-btn:focus-visible { outline: 2px solid var(--nx-gold); outline-offset: 3px; }

.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 64px 0 0; padding: 0; max-width: 620px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hm-stats div { padding: 22px 20px 0 0; }
.hm-stats div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.hm-stats dt { font-size: clamp(36px, 3.6vw, 54px); font-weight: 200; letter-spacing: -1px; line-height: 1; color: #fff; }
.hm-stats dd { margin: 10px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 10.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }

/* Карточка «Визы в Таиланд» в первом экране */
.hm-hero-card {
    display: block; padding: 28px; border-radius: var(--nx-r); text-decoration: none; color: #fff;
    background: rgba(10, 10, 12, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); border-top: 1px solid var(--nx-gold);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease);
}
.hm-hero-card:hover { background: rgba(10, 10, 12, 0.72); border-color: rgba(228, 189, 82, 0.6); }
.hm-hero-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hm-hero-card-top img { width: 36px; height: 36px; border-radius: 50%; }
.hm-hero-card-top small { display: block; color: var(--nx-gold); font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }
.hm-hero-card-top b { display: block; font-size: 18px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.hm-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; color: var(--nx-ok); white-space: nowrap; }
.hm-price-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hm-price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.hm-price-list b { white-space: nowrap; font-weight: 600; color: #fff; }
.hm-price-list small { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.hm-hero-card-more { display: block; margin-top: 16px; color: var(--nx-gold); font-weight: 600; font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; }

/* --- Доверие: строка из четырёх пунктов между линиями --- */
.hm-trust { position: relative; z-index: 2; }
.hm-trust-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0;
    border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); max-width: 1224px;
}
.hm-trust-item { display: flex; gap: 16px; padding: 30px 26px 30px 0; }
.hm-trust-item + .hm-trust-item { border-left: 1px solid var(--nx-line); padding-left: 26px; }
.hm-trust-item b { display: block; color: var(--nx-text); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.hm-trust-item span:not(.hm-ic) { display: block; color: var(--nx-muted); font-size: 13.5px; line-height: 1.5; }
.hm-ic {
    width: 44px; height: 44px; border-radius: var(--nx-r); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    color: var(--nx-gold); border: 1px solid rgba(228, 189, 82, 0.35); background: transparent;
}
.hm-ic svg { width: 20px; height: 20px; stroke-width: 1.5; }
.hm-ic svg [stroke-width] { stroke-width: 1.5; }

/* --- Секции --- */
.hm-section { padding: 140px 0 0; scroll-margin-top: calc(var(--hdr-h, 72px) + 8px); }
.hm-head { max-width: 900px; margin: 0 0 56px; }
.hm-kicker { margin-bottom: 22px; }
.hm-head h2, .hm-about h2 {
    margin: 0; color: var(--nx-text); font-size: clamp(32px, 4.4vw, 62px); line-height: 1.1; letter-spacing: 0; font-weight: 200; text-transform: uppercase;
}
.hm-head h2 span, .hm-about h2 span { font-weight: 600; color: var(--nx-text); }
.hm-head p { margin: 22px 0 0; color: var(--nx-muted); font-size: 17px; line-height: 1.65; max-width: 680px; }

/* Шаги: большие тонкие золотые номера 01–04 */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: hm-step; border-top: 1px solid var(--nx-line); }
.hm-steps li { position: relative; padding: 36px 28px 8px 0; counter-increment: hm-step; }
.hm-steps li + li { padding-left: 28px; border-left: 1px solid var(--nx-line); }
.hm-steps li::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--nx-gold); transition: width .6s var(--nx-ease); }
.hm-steps li:hover::before { width: 100%; }
.hm-step-n { display: block; margin-bottom: 30px; font-size: 0; line-height: 1; }
.hm-step-n::before { content: counter(hm-step, decimal-leading-zero); font-size: 56px; font-weight: 200; color: var(--nx-gold); letter-spacing: -1px; }
.hm-steps h3 { margin: 0 0 10px; color: var(--nx-text); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.hm-steps p { margin: 0; color: var(--nx-muted); font-size: 15px; line-height: 1.6; }

/* Направления */
.hm-dest-title {
    display: flex; align-items: center; gap: 16px; margin: 48px 0 18px; color: var(--nx-text); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    scroll-margin-top: calc(var(--hdr-h, 72px) + 16px);
}
.hm-dest-title::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--nx-line); }
.hm-head + .hm-dest-title { margin-top: 0; }
.hm-dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--nx-line); border-left: 1px solid var(--nx-line); }
.hm-country {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 16px; border-radius: 0; cursor: pointer; text-align: left; text-decoration: none;
    background: var(--nx-bg); border: 0; border-right: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); font: inherit; color: var(--nx-text);
    transition: background .3s var(--nx-ease);
}
.hm-country:hover, .hm-country:focus-visible { background: var(--nx-surface-2); outline: none; }
.hm-country:hover b, .hm-country:focus-visible b { color: var(--nx-gold); }
.hm-country img { width: 52px; height: 36px; border-radius: 1px; object-fit: cover; flex: 0 0 auto; filter: saturate(0.85); }
.hm-country b { display: block; font-size: 15px; font-weight: 500; transition: color .3s var(--nx-ease); }
.hm-country small { display: block; color: var(--nx-muted); font-size: 12.5px; margin-top: 2px; }
.hm-country-featured {
    grid-column: span 2; color: #fff;
    background: linear-gradient(120deg, rgba(228, 189, 82, 0.18), rgba(228, 189, 82, 0.03) 70%), var(--nx-bg);
    box-shadow: inset 0 0 0 1px rgba(228, 189, 82, 0.55);
}
.hm-country-featured:hover, .hm-country-featured:focus-visible { background: linear-gradient(120deg, rgba(228, 189, 82, 0.26), rgba(228, 189, 82, 0.06) 70%), var(--nx-bg); }
.hm-country-featured b { color: var(--nx-gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hm-country-featured small { color: rgba(255, 255, 255, 0.75); }

/* Услуги */
.hm-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--nx-line); }
.hm-service { padding: 36px 28px 8px 0; }
.hm-service + .hm-service { padding-left: 28px; border-left: 1px solid var(--nx-line); }
.hm-service h3 { margin: 26px 0 10px; color: var(--nx-text); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.hm-service p { margin: 0; color: var(--nx-muted); font-size: 15px; line-height: 1.6; }

/* О компании + приложение */
.hm-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: stretch; }
.hm-about h2 { margin-bottom: 8px; }
.hm-about-text p { color: var(--nx-body); font-size: 16.5px; line-height: 1.75; margin: 22px 0 0; font-weight: 300; }
.hm-about-text p strong { color: var(--nx-text); font-weight: 600; }
.hm-app {
    position: relative; padding: 36px; border-radius: var(--nx-r); color: #fff;
    background: linear-gradient(150deg, rgba(228, 189, 82, 0.1), rgba(228, 189, 82, 0) 55%), var(--nx-surface);
    border: 1px solid var(--nx-line); border-top: 1px solid var(--nx-gold);
}
.hm-app h3 { margin: 0 0 22px; font-size: clamp(20px, 2vw, 26px); font-weight: 300; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; line-height: 1.2; }
.hm-app ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.hm-app li { position: relative; padding-left: 28px; color: var(--nx-body); line-height: 1.55; }
.hm-app li::before { content: ''; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--nx-gold); }
.hm-app-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-store {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--nx-r); text-decoration: none; color: #fff;
    border: 1px solid var(--nx-line-strong); transition: border-color .3s var(--nx-ease), color .3s var(--nx-ease);
}
.hm-store:hover { border-color: var(--nx-gold); color: var(--nx-gold); }
.hm-store small { display: block; font-size: 10px; letter-spacing: 1px; color: var(--nx-muted); }
.hm-store b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }

/* Вопросы: список между тонкими линиями */
.hm-faq-wrap { max-width: 1000px; }
.hm-faq { display: grid; gap: 0; border-top: 1px solid var(--nx-line); }
.hm-faq details { border-bottom: 1px solid var(--nx-line); }
.hm-faq summary {
    list-style: none; cursor: pointer; padding: 28px 64px 28px 0; position: relative; color: var(--nx-text); font-weight: 400; font-size: clamp(17px, 1.6vw, 21px);
    transition: color .3s var(--nx-ease);
}
.hm-faq summary:hover { color: var(--nx-gold); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::before, .hm-faq summary::after {
    content: ''; position: absolute; right: 8px; top: 50%; width: 18px; height: 1px; background: var(--nx-gold); transition: transform .35s var(--nx-ease);
}
.hm-faq summary::after { transform: rotate(90deg); }
.hm-faq details[open] summary::after { transform: rotate(0deg); }
.hm-faq p { margin: 0; padding: 0 64px 28px 0; color: var(--nx-muted); font-size: 16px; line-height: 1.7; max-width: 820px; }
.hm-summary:focus-visible, .hm-faq summary:focus-visible { outline: 2px solid var(--nx-gold); outline-offset: 4px; }

/* Контакты внизу главной — отступ сверху как у секций */
#contacts { scroll-margin-top: calc(var(--hdr-h, 72px) + 8px); }
.hm-flash { animation: hm-flash 1.6s ease; }
@keyframes hm-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 2px var(--nx-gold); } }

/* Появление при прокрутке */
.hm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--nx-ease), transform .9s var(--nx-ease); }
.hm-reveal.in { opacity: 1; transform: none; }

/* --- Адаптив --- */
@media (max-width: 1100px) {
    .hm-hero-in { grid-template-columns: 1fr; gap: 40px; }
    .hm-hero-card { max-width: 520px; }
    .hm-trust-grid { grid-template-columns: 1fr 1fr; }
    .hm-trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .hm-trust-item:nth-child(n+3) { border-top: 1px solid var(--nx-line); }
    .hm-steps, .hm-services { grid-template-columns: 1fr 1fr; }
    .hm-steps li:nth-child(3), .hm-service:nth-child(3) { border-left: 0; padding-left: 0; }
    .hm-steps li:nth-child(n+3), .hm-service:nth-child(n+3) { border-top: 1px solid var(--nx-line); }
    .hm-about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hm-wrap { padding: 0 20px; }
    .hm-hero { min-height: 100svh; }
    .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.8) 75%, var(--nx-bg) 100%); }
    .hm-hero-in { padding-top: calc(var(--hdr-h, 64px) + 72px); padding-bottom: 48px; gap: 36px; }
    .hm-title { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.1; margin: 20px 0; }
    .hm-lead { margin-bottom: 30px; }
    .hm-btn { width: 100%; height: 56px; }
    .hm-stats { margin-top: 40px; }
    .hm-stats div { padding-right: 10px; }
    .hm-stats div + div { padding-left: 14px; }
    .hm-stats dd { font-size: 9.5px; letter-spacing: 1.5px; }
    .hm-hero-card { padding: 22px 18px; }
    .hm-trust-grid { grid-template-columns: 1fr; }
    .hm-trust-item, .hm-trust-item + .hm-trust-item { padding: 22px 0; border-left: 0; }
    .hm-trust-item + .hm-trust-item { border-top: 1px solid var(--nx-line); }
    .hm-section { padding-top: 96px; }
    .hm-head { margin-bottom: 36px; }
    .hm-steps, .hm-services { grid-template-columns: 1fr; }
    .hm-steps li, .hm-steps li + li, .hm-service, .hm-service + .hm-service { padding: 28px 0 24px; border-left: 0; }
    .hm-steps li + li, .hm-service + .hm-service { border-top: 1px solid var(--nx-line); }
    .hm-step-n { margin-bottom: 18px; }
    .hm-step-n::before { font-size: 44px; }
    .hm-service h3 { margin-top: 18px; }
    .hm-dest-grid { grid-template-columns: 1fr 1fr; }
    .hm-country { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .hm-country-featured { flex-direction: row; align-items: center; }
    .hm-app { padding: 28px 20px; }
    .hm-app-btns { grid-template-columns: 1fr; }
    .hm-faq summary { padding: 22px 44px 22px 0; }
    .hm-faq summary::before, .hm-faq summary::after { right: 4px; }
    .hm-faq p { padding: 0 0 22px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-reveal { opacity: 1; transform: none; transition: none; }
    .hm-hero-media video { animation: none; }
}


/* --- Контакты и заявка --- */
.hm-contact {
    margin-top: 140px; padding: 120px 0; color: #fff; scroll-margin-top: calc(var(--hdr-h, 72px) + 8px);
    background: radial-gradient(60% 70% at 0% 0%, rgba(228, 189, 82, 0.08), transparent 60%), var(--nx-bg-2);
    border-top: 1px solid var(--nx-line);
}
.hm-contact-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.hm-contact h2 { margin: 0; color: #fff; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.1; font-weight: 200; text-transform: uppercase; }
.hm-contact h2 span { font-weight: 600; color: var(--nx-gold); }
.hm-contact-lead { margin: 22px 0 36px; color: var(--nx-muted); font-size: 17px; line-height: 1.65; max-width: 480px; }
.hm-channels { display: grid; gap: 0; border-top: 1px solid var(--nx-line); }
.hm-channel {
    display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--nx-line); text-decoration: none; color: #fff;
    transition: padding .35s var(--nx-ease);
}
.hm-channel:hover { padding-left: 12px; }
.hm-channel b { display: block; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.hm-channel small { display: block; color: var(--nx-muted); font-size: 13.5px; margin-top: 3px; }
.hm-channel-go { margin-left: auto; color: var(--nx-dim); font-size: 18px; transition: color .3s, transform .3s var(--nx-ease); }
.hm-channel:hover .hm-channel-go { color: var(--nx-gold); transform: translateX(4px); }
.hm-channel-ic {
    width: 44px; height: 44px; border-radius: var(--nx-r); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    color: var(--nx-gold); font-weight: 700; font-size: 16px; border: 1px solid rgba(228, 189, 82, 0.35); background: transparent;
}
.hm-channel-ic.tg, .hm-channel-ic.max, .hm-channel-ic.mail, .hm-channel-ic.pin { background: transparent; }
.hm-office { display: flex; gap: 16px; margin-top: 28px; padding: 20px; border-radius: var(--nx-r); border: 1px solid var(--nx-line); }
.hm-office b { display: block; font-size: 15px; font-weight: 500; color: var(--nx-text); }
.hm-office small { display: block; color: var(--nx-muted); font-size: 13px; margin: 4px 0 8px; }
.hm-office a { color: var(--nx-gold); font-weight: 600; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.hm-office a:hover { color: var(--nx-gold-light); }

.hm-form-card {
    padding: 44px 40px; border-radius: var(--nx-r); background: var(--nx-surface); color: var(--nx-text);
    border: 1px solid var(--nx-line); border-top: 1px solid var(--nx-gold);
}
.hm-form-card h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; text-transform: uppercase; letter-spacing: 0.5px; color: var(--nx-text); }
.hm-form-sub { margin: 10px 0 30px; color: var(--nx-muted); font-size: 14.5px; }
.hm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.hm-field { display: grid; gap: 8px; }
.hm-field-wide { grid-column: 1 / -1; }
.hm-field > span { font-size: 10.5px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--nx-muted); }
.hm-field input, .hm-field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--nx-text); padding: 12px 0; border-radius: 0;
    background: transparent; border: 0; border-bottom: 1px solid var(--nx-line-strong); outline: none; transition: border-color .3s var(--nx-ease);
}
.hm-field input { height: 48px; }
.hm-field textarea { resize: vertical; min-height: 88px; }
.hm-field input::placeholder, .hm-field textarea::placeholder { color: var(--nx-dim); }
.hm-field input:focus, .hm-field textarea:focus { border-bottom-color: var(--nx-gold); }
.hm-field input:-webkit-autofill { -webkit-text-fill-color: var(--nx-text); -webkit-box-shadow: 0 0 0 40px var(--nx-surface) inset; caret-color: var(--nx-text); }
.hm-consent { color: var(--nx-muted) !important; margin: 26px 0 24px !important; }
.hm-consent a { color: var(--nx-gold); }
.hm-submit { width: 100%; cursor: pointer; font-family: inherit; }
.hm-submit:disabled { opacity: .7; cursor: progress; }
.hm-form-card .lead-error {
    margin: 0 0 14px; padding: 12px 14px; border-radius: var(--nx-r); font-size: 14px; line-height: 1.45;
    color: #f3c3bc; background: rgba(226, 104, 91, 0.1); border: 1px solid rgba(226, 104, 91, 0.45);
}
.hm-sent { display: none; text-align: center; padding: 36px 8px 20px; }
.hm-sent-ic { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; color: var(--nx-gold); border: 1px solid var(--nx-gold); }
.hm-sent h4 { margin: 20px 0 8px; font-size: 22px; font-weight: 300; text-transform: uppercase; letter-spacing: 1px; color: var(--nx-text); }
.hm-sent p { margin: 0; color: var(--nx-muted); }
.hm-sent.is-pending p { max-width: 420px; margin: 0 auto; line-height: 1.6; color: var(--nx-text); opacity: .85; }
.hm-sent-hint { display: block; max-width: 400px; margin: 18px auto 0; padding-top: 16px; border-top: 1px solid var(--nx-line); color: var(--nx-muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 992px) { .hm-contact-in { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) {
    .hm-contact { margin-top: 96px; padding: 80px 0 64px; }
    .hm-form-card { padding: 28px 20px; }
    .hm-fields { grid-template-columns: 1fr; }
}

/* --- Отзывы (partials/reviews.html) --- */
.rv-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rv-head > div:first-child { max-width: 760px; }
/* Площадки с отзывами: золотые «медальоны» с объёмом, лёгкий 3D-наклон за курсором (js/main.js) */
.rv-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; perspective: 900px; }
.rv-source {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    position: relative; display: flex; align-items: center; gap: 14px; min-width: 178px; padding: 14px 18px 14px 14px;
    border-radius: calc(var(--nx-r) + 4px); text-decoration: none; color: var(--nx-text); isolation: isolate; overflow: hidden;
    background:
        radial-gradient(120px 80px at var(--mx) var(--my), rgba(243, 215, 121, 0.10), transparent 70%),
        linear-gradient(160deg, #17150f 0%, #0d0d0e 55%, #0a0a0b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 236, 170, 0.08), 0 18px 34px -22px rgba(0, 0, 0, 0.9);
    transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
    transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease);
}
/* Золотая окантовка градиентом */
.rv-source::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
    background: linear-gradient(135deg, rgba(243, 215, 121, 0.75), rgba(228, 189, 82, 0.18) 38%, rgba(228, 189, 82, 0.06) 62%, rgba(243, 215, 121, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: opacity .35s var(--nx-ease); opacity: .7;
}
/* Блик, пробегающий по плитке при наведении */
.rv-source::after {
    content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 240, 200, 0.16), transparent);
    transform: translateX(0) skewX(-18deg); transition: transform .9s var(--nx-ease);
}
.rv-source:hover { box-shadow: inset 0 1px 0 rgba(255, 236, 170, 0.14), 0 26px 44px -22px rgba(228, 189, 82, 0.32), 0 18px 34px -22px rgba(0, 0, 0, 0.9); }
.rv-source:hover::before { opacity: 1; }
.rv-source:hover::after { transform: translateX(520%) skewX(-18deg); }
.rv-source:focus-visible { outline: 2px solid var(--nx-gold); outline-offset: 3px; }
.rv-source > span:last-child { transform: translateZ(18px); }
.rv-source b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.rv-source small {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--nx-gold); font-size: 10.5px; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap; opacity: .82; transition: opacity .3s, gap .3s var(--nx-ease);
}
.rv-source:hover small { opacity: 1; gap: 10px; }
/* Медальон: золотая монета с фаской и выгравированным знаком площадки */
.rv-logo {
    position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 800; line-height: 1; color: #3b2a06; transform: translateZ(28px);
    background: radial-gradient(circle at 32% 26%, #fff6d0 0%, #f6dc85 18%, #e4bd52 42%, #b88a2a 72%, #7a5814 100%);
    box-shadow:
        inset 0 2px 2px rgba(255, 250, 225, 0.7), inset 0 -3px 6px rgba(92, 62, 8, 0.6),
        0 0 0 1px rgba(120, 88, 20, 0.55), 0 10px 18px -8px rgba(228, 189, 82, 0.55), 0 4px 8px -2px rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px 0 rgba(255, 238, 180, 0.75), 0 -1px 0 rgba(70, 46, 4, 0.35);
}
.rv-logo::before { /* внутреннее кольцо монеты */
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(92, 62, 8, 0.55), 0 1px 0 rgba(255, 246, 208, 0.6);
}
.rv-logo svg { position: relative; width: 22px; height: 22px; filter: drop-shadow(0 1px 0 rgba(255, 238, 180, 0.75)); }
.rv-logo-gis { font-size: 13px; letter-spacing: -.3px; }
@media (hover: none), (prefers-reduced-motion: reduce) {
    .rv-source, .rv-source::after { transition: none; }
    .rv-source:hover::after { transform: translateX(0) skewX(-18deg); }
}
@media (max-width: 1180px) { .rv-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-stars-sm { color: var(--nx-gold); letter-spacing: 1px; }

.rv-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
    position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding: 4px 2px 22px; margin: 0 -2px;
    scrollbar-width: thin; scrollbar-color: var(--nx-dim) transparent; outline: none;
}
.rv-track:focus-visible { box-shadow: 0 0 0 2px var(--nx-gold); }
.rv-card {
    position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--nx-r);
    background: var(--nx-surface); border: 1px solid var(--nx-line); transition: border-color .4s var(--nx-ease);
}
.rv-card:hover { border-color: rgba(228, 189, 82, 0.4); }
.rv-card::before { content: '“'; position: absolute; right: 24px; top: 6px; font-size: 72px; line-height: 1; font-weight: 200; color: rgba(228, 189, 82, 0.35); pointer-events: none; }
.rv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-right: 36px; }
.rv-stars { color: var(--nx-gold); font-size: 14px; letter-spacing: 3px; }
.rv-tag { padding: 4px 9px; border: 1px solid var(--nx-line-strong); border-radius: var(--nx-r); font-size: 9.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--nx-body); background: transparent; }
.rv-text {
    margin: 0 0 18px; color: var(--nx-body); font-size: 15px; line-height: 1.7; font-weight: 300;
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.rv-card.open .rv-text { -webkit-line-clamp: unset; display: block; }
.rv-more { align-self: flex-start; margin: -8px 0 14px; padding: 0; border: 0; background: none; color: var(--nx-gold); font: inherit; font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.rv-who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--nx-line); }
.rv-ava { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--nx-on-gold); background: var(--nx-gold-grad); flex: 0 0 auto; }
.rv-who b { display: block; font-size: 14.5px; font-weight: 600; color: var(--nx-text); }
.rv-who small { display: block; color: var(--nx-muted); font-size: 12.5px; }
.rv-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rv-arrow {
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--nx-line-strong); background: transparent; color: var(--nx-text);
    font-size: 18px; cursor: pointer; transition: border-color .3s, color .3s;
}
.rv-arrow:hover { border-color: var(--nx-gold); color: var(--nx-gold); }
.rv-arrow:disabled { opacity: .3; cursor: default; }
.rv-note { margin-left: auto; color: var(--nx-muted); font-size: 13px; }
@media (max-width: 1100px) { .rv-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 640px) {
    .rv-track { grid-auto-columns: 86%; gap: 12px; }
    .rv-card { padding: 24px 20px; }
    .rv-arrow { display: none; }
    .rv-note { margin-left: 0; }
    .rv-sources { width: 100%; gap: 10px; }
    .rv-source { min-width: 0; padding: 12px 12px 12px 10px; gap: 10px; }
    .rv-logo { width: 40px; height: 40px; font-size: 17px; }
    .rv-logo.rv-logo-gis { font-size: 11px; letter-spacing: -.4px; }
    .rv-source b { font-size: 13px; }
    .rv-source small { font-size: 9.5px; letter-spacing: 1.2px; }
}

/* О компании: фото офиса слева */
.hm-about-v2 { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 56px; align-items: stretch; }
.hm-about-col { display: grid; gap: 32px; align-content: start; }
.hm-office-photo { position: relative; margin: 0; border-radius: var(--nx-r); overflow: hidden; min-height: 480px; background: var(--nx-surface); }
.hm-office-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transition: transform 1.2s var(--nx-ease); }
.hm-office-photo:hover img { transform: scale(1.03); }
.hm-office-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 8, 0.85), rgba(7, 7, 8, 0) 45%); pointer-events: none; }
.hm-office-photo figcaption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.hm-office-photo figcaption b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--nx-gold); }
.hm-office-photo figcaption span { display: block; color: rgba(255, 255, 255, 0.82); font-size: 14px; margin-top: 6px; }
@media (max-width: 1100px) { .hm-about-v2 { grid-template-columns: 1fr; } .hm-office-photo { min-height: 380px; max-width: 520px; } }
@media (max-width: 640px) { .hm-office-photo { min-height: 340px; } }

/* Ссылка на оригинал отзыва (Яндекс Карты / Google Maps) */
.rv-who small .rv-orig { white-space: nowrap; color: var(--nx-muted); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.rv-who small .rv-orig::after { content: " ↗"; font-size: 11px; }
.rv-who small .rv-orig:hover { color: var(--nx-gold); text-decoration-style: solid; }
@media (pointer: coarse), (max-width: 768px) {
  .rv-who small .rv-orig { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

/* Настоящие аватарки авторов и кнопка «Скриншот» */
.rv-ava-img { object-fit: cover; background: var(--nx-surface-2); transform: scale(1.04); }
.rv-who > span { min-width: 0; }
.rv-shot { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: var(--nx-r);
  border: 1px solid var(--nx-line-strong); background: transparent; color: var(--nx-body); font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer;
  transition: border-color .3s, color .3s; }
.rv-shot:hover, .rv-shot:focus-visible { border-color: var(--nx-gold); color: var(--nx-gold); outline: none; }
@media (pointer: coarse), (max-width: 768px) { .rv-shot { min-height: 40px; } }

/* Окно со скриншотом отзыва */
html.rv-dialog-open { overflow: hidden; }
.rv-dialog { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--nx-line-strong); border-radius: var(--nx-r);
  background: var(--nx-surface); color: var(--nx-text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); overflow: hidden; display: none; flex-direction: column; }
.rv-dialog[open] { display: flex; }
.rv-dialog::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.rv-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--nx-line); }
.rv-dialog-head b { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--nx-text); }
.rv-dialog-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--nx-line-strong); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--nx-text); }
.rv-dialog-x:hover, .rv-dialog-x:focus-visible { border-color: var(--nx-gold); color: var(--nx-gold); outline: none; }
.rv-dialog-body { overflow: auto; padding: 18px 22px; display: grid; gap: 18px; background: var(--nx-surface); }
.rv-dialog-body figure { margin: 0; }
.rv-dialog-body figcaption { font-size: 10.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--nx-muted); margin-bottom: 10px; }
.rv-dialog-body img { display: block; width: auto; max-width: 100%; height: auto; border: 1px solid var(--nx-line); }
.rv-dialog-orig { display: block; padding: 16px 22px; border-top: 1px solid var(--nx-line); font-weight: 600; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--nx-gold); text-decoration: none; }
.rv-dialog-orig:hover { color: var(--nx-gold-light); }
/* Узкий экран: у кнопки «Скриншот» только значок (подпись остаётся для экранного диктора) */
@media (max-width: 420px) {
  .rv-shot { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .rv-shot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rv-shot svg { width: 18px; height: 18px; }
}
/* Живой рейтинг (виджеты Яндекс Карт и 2ГИС) */
