/* ============================================================
   ASTER HOTEL GROUP – CAREERS
   Page-only rules for /careers/ and /en/careers/. Deliberately NOT the
   scenes of Dining and Meetings (Jun, 2026-10-12: «более живая и
   человеко-ориентированная, а то все страницы похожи»): a split hero with a
   running line of the roles, the three departments as photo panels that
   widen under the pointer, what the hotel offers with small line icons, and
   a dark block to send a CV. No salaries, no promises beyond Jun's list.
   ============================================================ */

.careers-page main { overflow-x: clip; }
.cr-wrap { max-width: 1400px; margin: 0 auto; padding-inline: 52px; }
.cr-eyebrow { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--oxblood); font-weight: 500; margin-bottom: 20px; }
.cr-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.06; color: var(--ink); text-wrap: balance; }
.cr-p { margin-top: 20px; font-size: 1.04rem; line-height: 1.75; color: rgba(43,27,24,.74); max-width: 460px; }

/* ---------- Hero: words left, a large photograph right ---------- */
.cr-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-block: 72px 56px; }
.cr-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: 1; color: var(--ink); letter-spacing: -.005em; }
.cr-title em { font-style: normal; color: var(--oxblood); }
.cr-lead { margin-top: 28px; font-size: 1.1rem; line-height: 1.7; color: rgba(43,27,24,.74); max-width: 440px; }
.cr-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
/* Apply, Telegram and Send are the button system's (shared.css, BUTTONS). */
.cr-hero-photo { aspect-ratio: 3 / 2; width: 100%; }
.cr-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- The running line of roles (decoration; the roles are also listed below) ---------- */
.cr-marquee { border-block: 1px solid rgba(168,137,87,.35); padding-block: 22px; overflow: hidden; white-space: nowrap; }
.cr-marquee-track { display: inline-flex; animation: cr-run 38s linear infinite; }
.cr-marquee span { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--ink); padding-right: .9em; }
.cr-marquee span i { font-style: normal; color: var(--brass); padding-left: .9em; }
@keyframes cr-run { to { transform: translateX(-50%); } }

/* ---------- Departments: photo panels ---------- */
.cr-section { padding-block: 120px 0; }
.cr-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.cr-head .cr-p { margin-top: 0; }
.cr-panels { display: flex; gap: 14px; height: min(68vh, 620px); min-height: 440px; }
.cr-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #F4EEE3; transition: flex-grow .8s var(--ease-soft); }
.cr-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-soft); }
.cr-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,16,13,.86) 0%, rgba(26,16,13,.55) 34%, rgba(26,16,13,0) 62%); }
.cr-panel-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 30px 32px; }
.cr-panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
.cr-panel h3 span { display: block; margin-top: 10px; font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,238,227,.82); font-weight: 500; }
.cr-panel ul { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.cr-panel li { font-size: .84rem; padding: 6px 12px; border: 1px solid rgba(244,238,227,.5); border-radius: 999px; }
@media (hover: hover) and (min-width: 901px) {
  .cr-panels:hover .cr-panel { flex-grow: .8; }
  .cr-panels .cr-panel:hover { flex-grow: 1.9; }
  .cr-panel:hover img { transform: scale(1); }
}

/* ---------- What we offer ---------- */
.cr-offers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.cr-offers li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(168,137,87,.3); }
.cr-offers svg { width: 36px; height: 36px; fill: none; stroke: var(--oxblood); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cr-offers b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; color: var(--ink); }

/* ---------- Open positions (shown only while there are any) ---------- */
.cr-jobs-list { list-style: none; }
.cr-jobs-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid rgba(168,137,87,.3); }
.cr-jobs-list span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oxblood); }
.cr-jobs-list b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.cr-jobs-list a { font-size: .85rem; color: var(--oxblood); }

/* ---------- Send a CV: the dark block ---------- */
.cr-apply { margin-top: 140px; background: var(--ink); color: #F4EEE3; padding-block: 110px; }
.cr-apply .cr-eyebrow { color: #C99A8B; }
.cr-apply .cr-h2 { color: #F4EEE3; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.cr-apply .cr-p { color: rgba(244,238,227,.78); max-width: 520px; }
.cr-apply-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: end; }
.cr-contacts { list-style: none; }
.cr-contacts li + li { margin-top: 12px; }
.cr-contacts a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 26px; border: 1px solid rgba(244,238,227,.3); color: #F4EEE3; text-decoration: none; transition: background-color .3s, border-color .3s, color .3s; }
.cr-contacts a b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.5rem); overflow-wrap: anywhere; }
.cr-contacts a span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,238,227,.7); white-space: nowrap; }
@media (hover: hover) { .cr-contacts a:hover { background: #F4EEE3; border-color: #F4EEE3; color: var(--ink); } .cr-contacts a:hover span { color: var(--oxblood); } }
.cr-contacts a:focus-visible { outline: 2px solid #C99A8B; outline-offset: 4px; }

/* The form: answers become a Telegram message (careers.js) – nothing is sent by the site. */
.cr-apply-grid { align-items: start; grid-template-areas: "text form" "alt form"; grid-template-rows: auto 1fr; row-gap: 0; }
.cr-apply-text { grid-area: text; } .cr-apply-alt { grid-area: alt; } .cr-form { grid-area: form; }
.cr-alt { margin-top: 36px; font-size: .86rem; color: rgba(244,238,227,.7); }
.cr-apply .cr-contacts { margin-top: 14px; max-width: 460px; }
.cr-form { display: grid; gap: 22px; padding: 36px; border: 1px solid rgba(244,238,227,.22); }
.cr-field { display: grid; gap: 8px; }
.cr-field label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(244,238,227,.82); }
.cr-field label span { letter-spacing: .04em; text-transform: none; color: rgba(244,238,227,.55); }
.cr-field input, .cr-field select { width: 100%; font: inherit; font-size: 1.05rem; color: #F4EEE3; background: transparent; border: 0; border-bottom: 1px solid rgba(244,238,227,.4); border-radius: 0; padding: 10px 0; -webkit-appearance: none; appearance: none; transition: border-color .3s; }
.cr-field select { background-image: linear-gradient(45deg, transparent 50%, #F4EEE3 50%), linear-gradient(-45deg, transparent 50%, #F4EEE3 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.cr-field select option { color: var(--ink); }
.cr-field input::placeholder { color: rgba(244,238,227,.4); }
.cr-field input:focus, .cr-field select:focus { outline: none; border-bottom-color: #F4EEE3; }
.cr-field input:focus-visible, .cr-field select:focus-visible { box-shadow: 0 2px 0 0 #C99A8B; }
.cr-field [aria-invalid="true"] { border-bottom-color: #E8A49A; }
.cr-err { font-size: .82rem; color: #F0B8AF; }
.cr-send { margin-top: 6px; }
.cr-send .btn-tg { fill: currentColor; stroke: none; }
.cr-send:focus-visible { outline: 2px solid #C99A8B; outline-offset: 4px; }
.cr-note { font-size: .82rem; line-height: 1.5; color: rgba(244,238,227,.65); }

@media (prefers-reduced-motion: reduce) {
  .cr-marquee-track { animation: none; }
  .cr-panel, .cr-panel img { transition: none; }
}

@media (max-width: 900px) {
  .cr-wrap { padding-inline: 24px; }
  .cr-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 40px; }
  .cr-section { padding-block: 84px 0; }
  .cr-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
  .cr-panels { flex-direction: column; height: auto; min-height: 0; gap: 12px; }
  .cr-panel { flex: none; aspect-ratio: 4 / 3; }
  .cr-panel-text { padding: 22px; }
  .cr-offers { grid-template-columns: minmax(0, 1fr); }
  .cr-offers li { padding: 20px 0; }
  .cr-offers b { font-size: 1.2rem; }
  .cr-jobs-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .cr-jobs-list span { grid-column: 1 / -1; }
  .cr-apply { margin-top: 96px; padding-block: 72px; }
  .cr-apply-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "form" "alt"; grid-template-rows: auto; gap: 32px; }
  .cr-alt { margin-top: 0; }
  .cr-contacts a { padding: 18px 20px; }
  .cr-form { padding: 24px 20px; }
}
