/* Contact: the same editorial system as About. Contacts come from the shared settings. */
.contact-page { padding-top: var(--hdr-h); background: #141414; }
.contact-container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.contact-page p { margin: 0; }
.contact-page section, .contact-form-box { scroll-margin-top: 96px; }
.contact-page h1, .contact-page h2 { text-wrap: balance; }
.contact-page h2 { margin-top: 18px; font: 700 42px/1.13 var(--font); letter-spacing: -.7px; }
.contact-eyebrow { color: #ff8562; font: 500 12px/1.4 var(--font); letter-spacing: 1.2px; text-transform: uppercase; }
.contact-body { font: 400 17px/1.6 var(--font); }
.contact-page [hidden] { display: none !important; }

/* Первый экран: контакты строками слева, форма справа; шаги «что дальше» — полосой ниже. */
.contact-hero { padding: 72px 0 96px; }
.contact-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 80px; align-items: start; }
.contact-hero-copy { position: sticky; top: 40px; }
.contact-hero h1 { margin: 22px 0 26px; font: 700 clamp(44px, 4.4vw, 62px)/1.06 var(--font); letter-spacing: -1.6px; }
.contact-lead { max-width: 500px; color: #bdbdbd; font: 400 18px/1.6 var(--font); }
.contact-lines { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid #333; }
.contact-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #333; }
.contact-line-label { color: #8f8f8f; font: 500 12px/1.4 var(--font); letter-spacing: 1px; text-transform: uppercase; }
.contact-line-value { min-width: 0; color: #f1eeea; font: 400 18px/1.5 var(--font); font-style: normal; text-decoration: none; overflow-wrap: anywhere; }
.contact-line-value > span:not(.contact-status) { display: block; color: #9a9a9a; }
a.contact-line-value { transition: color .18s; }
a.contact-line-value:hover { color: #ff8562; }
.contact-phone { color: #ff8562; font-size: 28px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
a.contact-phone:hover { color: #ffc0ac; }
.contact-status { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: #a6a6a6; font: 400 14px/1.5 var(--font); }
.contact-status::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #6a6a6a; }
.contact-status.is-open { color: #d9d9d9; }
.contact-status.is-open::before { background: #74c98c; box-shadow: 0 0 0 4px rgba(116, 201, 140, .16); }
.contact-copy { display: inline-flex; align-items: center; gap: 8px; align-self: center; min-height: 36px; padding: 7px 12px; border: 1px solid #3c3c3c; border-radius: 4px; background: transparent; color: #d1d1d1; font: 500 13px/1.4 var(--font); cursor: pointer; transition: border-color .18s, color .18s; }
.contact-copy svg { width: 15px; height: 15px; flex-shrink: 0; }
.contact-copy .icon-check, .contact-copy.is-done .icon-copy { display: none; }
.contact-copy.is-done .icon-check { display: block; }
.contact-copy:hover, .contact-copy.is-done { border-color: #ff8562; color: #ff8562; }

/* Форма: та же, что на главной, в панели на первом экране. */
.contact-form-box { padding: 44px 48px 48px; background: #1b1b1b; border: 1px solid #2a2a2a; }
.contact-page .contact-form-box h2 { margin-top: 0; font-size: 32px; letter-spacing: -.5px; }
.contact-form-box .contact-body { max-width: 460px; margin-top: 12px; color: #bdbdbd; font-size: 16px; }
.contact-form-box .enigma-form { width: 100%; margin: 32px 0 0; }
.contact-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin: 88px 0 0; padding: 0; list-style: none; border-top: 1px solid #333; }
.contact-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-top: 28px; }
.contact-step-num { padding-top: 3px; color: #ff8562; font: 500 13px/1.4 var(--font); }
.contact-steps h3 { margin: 0 0 6px; font: 500 20px/1.3 var(--font); text-wrap: initial; }
.contact-steps p { color: #a8a8a8; font: 400 15px/1.6 var(--font); }

/* Как добраться: заголовок с адресом, под ним карта на всю ширину. */
.contact-visit { padding: 96px 0; background: #111; }
.contact-visit-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; align-items: end; margin-bottom: 44px; }
.contact-visit-heading .contact-body { justify-self: end; color: #f1eeea; font-size: 20px; line-height: 1.5; text-align: right; }
.contact-visit-heading .contact-body span { display: block; color: #9a9a9a; }

/* Карта: тёмная под сайт. invert + hue-rotate сохраняет оттенки, красная метка остаётся красной. */
.contact-map { display: flex; flex-direction: column; min-height: 520px; background: #0b0b0b; border: 1px solid #2a2a2a; }
.contact-map-frame { position: relative; flex: 1; min-height: 420px; background: #222; overflow: hidden; }
.contact-map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.4) contrast(.92); }
.contact-map-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 18px 24px; border-top: 1px solid #2a2a2a; }
.contact-route { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px 20px; border-radius: 4px; background: #ff8562; color: #161616; font: 500 15px/1.4 var(--font); text-decoration: none; transition: background-color .2s; }
.contact-route svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.contact-route:hover { background: #ffa185; }
.contact-route:hover svg { transform: translateX(3px); }
.contact-route-alt { padding-block: 10px; color: #d1d1d1; font: 500 15px/1.4 var(--font); text-decoration: underline 1px #5c5c5c; text-underline-offset: 6px; transition: color .18s; }
.contact-route-alt:hover { color: #ff8562; }

/* Мессенджеры: та же редакционная сетка, что у принципов на «О нас». */
.contact-channels { padding: 88px 0; background: #f1eeea; color: #171717; }
.contact-channels .contact-eyebrow { color: #854932; }
.contact-channels-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; align-items: end; }
.contact-channels-heading .contact-body { max-width: 410px; justify-self: end; color: #54514e; }
.contact-channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 0; padding: 0; list-style: none; border-block: 1px solid #c7c2bc; }
.contact-channel-list > li { min-width: 0; border-left: 1px solid #c7c2bc; }
.contact-channel-list > li:first-child { border-left: 0; }
.contact-channel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'icon arrow' 'name name' 'handle handle'; padding: 32px; color: inherit; text-decoration: none; }
.contact-channel-list > li:first-child .contact-channel { padding-left: 0; }
.contact-channel-list > li:last-child .contact-channel { padding-right: 0; }
.contact-channel-icon { grid-area: icon; color: #171717; transition: color .2s; }
.contact-channel-icon svg { width: 28px; height: 28px; fill: currentColor; }
.contact-channel > .icon-arrow-right { grid-area: arrow; width: 22px; height: 22px; color: #8a847e; transition: transform .2s, color .2s; }
.contact-channel-name { grid-area: name; margin-top: 44px; font: 500 26px/1.2 var(--font); transition: color .2s; }
.contact-channel-handle { grid-area: handle; margin-top: 6px; color: #6b6661; font: 400 15px/1.5 var(--font); overflow-wrap: anywhere; }
.contact-channel:hover .contact-channel-name { color: #854932; }
.contact-channel:hover > .icon-arrow-right { transform: translateX(4px); color: #854932; }
.contact-channel[href*="wa.me"]:hover .contact-channel-icon, .contact-channel[href*="whatsapp"]:hover .contact-channel-icon { color: #1da851; }
.contact-channel[href*="t.me"]:hover .contact-channel-icon { color: #229ed9; }
.contact-channel[href*="facebook"]:hover .contact-channel-icon, .contact-channel[href*="m.me"]:hover .contact-channel-icon { color: #0866ff; }
.contact-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 28px !important; color: #54514e; font: 400 15px/1.5 var(--font); }
.contact-profiles a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #171717; font-weight: 500; text-decoration: underline 1px #aaa39b; text-underline-offset: 5px; transition: color .18s; }
.contact-profiles a:hover { color: #854932; }
.contact-profiles svg { width: 17px; height: 17px; fill: currentColor; }

@media (min-width: 981px) and (max-width: 1199px) {
 .contact-container { width: calc(100% - 48px); }
 .contact-hero-grid { gap: 48px; }
 .contact-line { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; }
 .contact-phone { font-size: 24px; }
 .contact-channels-heading { gap: 48px; }
 .contact-channel { padding: 28px 24px; }
 .contact-form-box { padding: 36px 32px 40px; }
 .contact-steps { gap: 0 32px; }
 .contact-visit-heading { gap: 48px; }
 .contact-page h2 { font-size: 36px; }
}
@media (max-width: 980px) {
 .contact-page { padding-top: 0; }
 .contact-page section, .contact-form-box { scroll-margin-top: 88px; }
 .contact-container { width: calc(100% - 48px); max-width: 720px; }
 .contact-hero { padding: 44px 0 56px; }
 .contact-hero-grid { grid-template-columns: 1fr; gap: 48px; }
 .contact-hero-copy { position: static; }
 .contact-hero h1 { margin: 18px 0 22px; font-size: clamp(36px, 7.2vw, 54px); letter-spacing: -1px; text-wrap: initial; }
 .contact-lead { font-size: 17px; }
 .contact-lines { margin-top: 36px; }
 .contact-line { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 20px 0; }
 .contact-line-label { grid-column: 1 / -1; }
 .contact-map { min-height: 0; }
 .contact-map-frame { flex: none; min-height: 0; height: 380px; }
 .contact-page h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.5px; }
 .contact-channels { padding: 56px 0; }
 .contact-channels-heading { grid-template-columns: 1fr; gap: 16px; }
 .contact-channels-heading .contact-body { max-width: 560px; justify-self: start; font-size: 16px; }
 .contact-channel-list { grid-template-columns: 1fr; margin-top: 28px; border-bottom: 0; }
 .contact-channel-list > li { border-left: 0; border-bottom: 1px solid #c7c2bc; }
 .contact-channel, .contact-channel-list > li:first-child .contact-channel, .contact-channel-list > li:last-child .contact-channel { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'icon name arrow' 'icon handle arrow'; align-items: center; column-gap: 12px; padding: 20px 0; }
 .contact-channel-icon svg { width: 26px; height: 26px; }
 .contact-channel-name { margin-top: 0; font-size: 21px; }
 .contact-channel-handle { margin-top: 2px; font-size: 14px; }
 /* Форма сразу под контактами, шаги «что дальше» — списком после неё. */
 .contact-form-box { padding: 32px 28px 36px; }
 .contact-page .contact-form-box h2 { font-size: 28px; }
 .contact-steps { grid-template-columns: 1fr; margin-top: 48px; }
 .contact-steps li { padding: 20px 0; border-bottom: 1px solid #333; }
 .contact-steps h3 { font-size: 19px; }
 .contact-visit { padding: 56px 0; }
 .contact-visit-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
 .contact-visit-heading .contact-body { justify-self: start; font-size: 18px; text-align: left; }
}
@media (max-width: 599px) {
 .contact-container { width: calc(100% - 40px); }
 .contact-map-frame { height: 320px; }
 .contact-map-bar { flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; }
 .contact-route { justify-content: space-between; }
 .contact-route-alt { align-self: center; }
 .contact-phone { font-size: 26px; }
 .contact-page h2 { font-size: 30px; }
 .contact-steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
 .contact-form-box { padding: 0; background: none; border: 0; }
 .contact-form-box .enigma-form { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
 .contact-page *, .contact-page *::before { transition: none !important; }
}
