:root {
  --bg: #f4f4f4;
  --text: #222;
  --muted: #969696;
  --orange: #f18f1e;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Rubik", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
figure, p, h1, h2, h3 { margin: 0; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.section { scroll-margin-top: 80px; }
.section > h2, .about h2 { font-size: 43px; line-height: .98; letter-spacing: -1.3px; text-align: center; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.preview-bar { position: sticky; z-index: 100; top: 0; display: flex; justify-content: space-between; gap: 16px; padding: 10px 24px; background: #171717; color: #fff; font-size: 14px; }
.preview-bar a { color: #f6b96f; text-decoration: underline; }

.detail-header { border-bottom: 1px solid rgb(0 0 0 / .1); background: #fff; }
.detail-header__inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.detail-header__back { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.handbook-detail { max-width: 860px; min-height: calc(100svh - 154px); padding-block: 72px 96px; }
.handbook-detail__eyebrow { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.handbook-detail h1 { margin-top: 12px; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -2px; text-wrap: balance; }
.handbook-detail__content { margin-top: 36px; font-size: 18px; line-height: 1.6; }
.handbook-detail__figure { margin-top: 40px; }
.handbook-detail__figure img { width: 100%; max-height: 680px; border-radius: 18px; object-fit: cover; }
.handbook-detail__figure figcaption { margin-top: 12px; color: #555; font-size: 15px; line-height: 1.5; }
.detail-footer { padding-block: 28px; background: #222; color: #fff; font-size: 14px; }

.hero { position: relative; min-height: min(900px, 100svh); max-width: 1440px; margin: auto; overflow: hidden; border-radius: 0 0 32px 32px; color: #fff; background: var(--hero-image, linear-gradient(135deg, #555, #1f1f1f)); background-position: center 53%; background-size: cover; }
.hero--preview { min-height: calc(min(900px, 100svh) - 40px); }
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-block: 16px; }
.site-header::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; background: rgb(160 214 236 / .2); content: ""; transform: translateX(-50%); }
.brand { display: flex; width: 205px; height: 40px; flex-shrink: 0; align-items: center; font-size: 24px; }
.brand img, .footer__brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.main-nav { position: absolute; left: 50%; display: flex; width: 380px; justify-content: space-between; transform: translateX(-50%); }
.main-nav a { white-space: nowrap; font-size: 16px; letter-spacing: -.48px; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 5px; background: #2aabee; }
.socials .socials__vk { background: #07f; }
.socials img { width: 18px; height: 15px; object-fit: contain; }
.socials .socials__vk img { width: 22px; height: 14px; margin: 0; }
.hero__content { position: relative; z-index: 1; max-width: 980px; padding-top: 44px; text-align: center; }
.hero__eyebrow { color: rgb(255 255 255 / .55); font-size: 18px; line-height: .95; letter-spacing: .36px; text-transform: uppercase; }
.hero h1 { margin-top: 20px; font-size: clamp(42px, 5vw, 72px); line-height: .95; letter-spacing: -2.2px; text-transform: uppercase; }
.hero__subtitle { margin: 10px auto 0; font-size: 20px; letter-spacing: -.6px; }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.button { display: inline-flex; min-width: 180px; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--orange); border-radius: 5px; padding: 10px 28px; font-size: 15px; font-weight: 700; letter-spacing: .15px; text-transform: uppercase; }
.button--primary { background: var(--orange); }
.button--outline { backdrop-filter: blur(3px); }
.hero-squares { pointer-events: none; position: absolute; bottom: 0; z-index: 1; display: grid; width: 200px; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hero-squares--left { left: 0; transform: scaleX(-1); }
.hero-squares--right { right: 0; }
.hero-squares span { aspect-ratio: 1; border-radius: 10px; background: #fff; opacity: .15; }
.hero-squares span:nth-child(1), .hero-squares span:nth-child(2), .hero-squares span:nth-child(3),
.hero-squares span:nth-child(5), .hero-squares span:nth-child(6), .hero-squares span:nth-child(9) { opacity: 0; }
.hero-squares span:nth-child(4), .hero-squares span:nth-child(7), .hero-squares span:nth-child(10),
.hero-squares span:nth-child(16), .hero-squares span:nth-child(20), .hero-squares span:nth-child(23) { opacity: .15; }
.hero-squares span:nth-child(8), .hero-squares span:nth-child(11), .hero-squares span:nth-child(15),
.hero-squares span:nth-child(17), .hero-squares span:nth-child(22), .hero-squares span:nth-child(24) { opacity: .25; }
.hero-squares span:nth-child(12), .hero-squares span:nth-child(14), .hero-squares span:nth-child(18),
.hero-squares span:nth-child(21) { opacity: .35; }
.mobile-nav { display: none; }

.about { position: relative; overflow: hidden; padding: 94px 0 44px; }
.about__copy { max-width: 780px; text-align: center; }
.about h2 { line-height: .95; letter-spacing: -1.29px; text-wrap: balance; }
.about__mission { margin-top: 12px; font-size: 20px; line-height: 1.25; letter-spacing: -.6px; }
.about-strip { position: relative; width: 100%; overflow: hidden; margin-top: 36px; padding: 14px 0; transform: rotate(-.95deg); }
.about-strip__track { display: flex; width: max-content; align-items: center; gap: 20px; animation: about-marquee 50s linear infinite; }
.about-photo { position: relative; flex: 0 0 auto; border-radius: 16px; }
.about-photo[style] { padding: 14px; color: var(--frame-color); }
.about-photo img { width: 280px; height: 238px; border-radius: 12px; object-fit: cover; }
.about-photo__frame { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.about__cue { display: flex; width: fit-content; flex-direction: column; align-items: center; gap: 4px; margin: 20px auto 0; font-size: 16px; text-transform: uppercase; }
.about__cue-arrow { display: block; width: 29px; height: 37px; background: currentColor; mask: url("sokol/media/arrow-down.svg") center / contain no-repeat; }
@keyframes about-marquee { to { transform: translateX(-50%); } }

.shifts { height: 924px; padding-top: 60px; }
.shifts__list { margin-top: 47px; }
.section-empty { padding: 70px 24px; border-radius: 12px; background: #fff; color: var(--muted); text-align: center; }
.shift-row { --shift-copy-width: 820px; min-height: 155px; background: var(--shift-bg, linear-gradient(100deg, #e5e5e5, #f4f4f4)); background-position: center; background-size: cover; }
.shift-row__inner { display: grid; min-height: 155px; grid-template-columns: 180px var(--shift-copy-width) 180px; justify-content: start; }
.shift-row:nth-child(2), .shift-row:nth-child(4) { --shift-copy-width: 720px; }
.shift-row:nth-child(3) { --shift-copy-width: 620px; }
.shift-date { position: relative; z-index: 1; display: flex; width: 180px; height: 155px; flex-shrink: 0; align-items: center; justify-content: center; gap: 0; overflow: hidden; border-radius: 24px; color: #fff; }
.shift-date > img { position: absolute; inset: 50% auto auto 50%; width: 142px; height: 142px; object-fit: contain; transform: translate(-50%, -50%); }
.shift-date time, .shift-date > span { position: relative; z-index: 1; text-align: center; }
.shift-date time { display: grid; width: 49px; flex: 0 0 49px; gap: 0; line-height: 1.25; }
.shift-date b { font-size: 32px; font-weight: 400; letter-spacing: -.96px; }
.shift-date small { font-size: 14px; letter-spacing: -.42px; }
.shift-date > span { width: 15px; flex: 0 0 15px; font-size: 32px; line-height: 1.25; letter-spacing: -.96px; }
.shift-copy { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 20px 24px; border-radius: 24px; background: #fff; }
.shift-copy--gradient { background: linear-gradient(90deg, #fff, #f4f4f4); }
.shift-copy h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.66px; }
.shift-copy__subtitle { margin-top: 4px; color: var(--muted); font-size: 14px; letter-spacing: -.42px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { border-radius: 5px; padding: 4px 8px; background: color-mix(in srgb, var(--tag-color) 15%, transparent); color: var(--tag-color); font-size: 13px; line-height: 1.25; letter-spacing: -.42px; }
.shift-history { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; padding: 20px; background: var(--history-color); color: #fff; font-size: 15px; text-transform: uppercase; backdrop-filter: blur(2px); transition: background-color .3s ease, color .3s ease; }
.shift-history:hover { background: #fff; color: var(--history-color); }
.shift-history--disabled { cursor: default; }
.shift-history__label { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; letter-spacing: .15px; }
.shift-history__label i { display: block; width: 16px; height: 16px; background: currentColor; mask: url("sokol/media/icon-call.svg") center / contain no-repeat; }
.shift-history__mark { position: absolute; bottom: 0; left: 0; width: 119px; height: 75px; background: currentColor; mask: url("sokol/media/how-fg.svg") bottom left / contain no-repeat; }
.shift-history__photos { position: absolute; right: 10px; bottom: 10px; width: 94px; height: 92px; }
.shift-history__photos img { position: absolute; width: 58px; height: 50px; border: 1.6px solid var(--photo-frame-color, var(--history-color)); border-radius: 5px; object-fit: cover; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.shift-history:hover .shift-history__photos img:nth-child(1) { transform: translate(-2px, 2px) rotate(-2deg); }
.shift-history:hover .shift-history__photos img:nth-child(2) { transform: translateY(-3px) rotate(2deg); }
.shift-history:hover .shift-history__photos img:nth-child(3) { transform: translate(2px, 2px) rotate(2deg); }
.shift-history__photos img:nth-child(1) { top: 29px; left: 0; }
.shift-history__photos img:nth-child(2) { top: 0; left: 27px; }
.shift-history__photos img:nth-child(3) { top: 43px; left: 36px; }

.handbook { min-height: 800px; scroll-margin-top: 96px; padding-top: 94px; }
.handbook > h2 { animation: handbook-title-in .55s cubic-bezier(.22, 1, .36, 1) both; }
.handbook-box { display: grid; min-height: 520px; grid-template-columns: 280px 1fr; margin-top: 34px; overflow: hidden; border-radius: 5px; background: #fff; }
.handbook-tabs { display: grid; grid-auto-rows: 1fr; border-right: 1px solid rgb(0 0 0 / .08); }
.handbook-tabs button { position: relative; isolation: isolate; overflow: hidden; border: 0; padding: 16px 20px; background: #fff; text-align: left; cursor: pointer; transition: color .32s ease, filter .32s ease; }
.handbook-tabs button:active { transform: scale(.99); }
.handbook-tabs button > strong { position: relative; z-index: 2; max-width: 220px; font-size: 16px; }
.handbook-tabs button.is-active { background: var(--accent); color: #fff; }
.handbook-tabs button:not(.is-active):hover { color: #fff; filter: brightness(1.05); }
.handbook-tabs button.is-active, .handbook-tabs button:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.handbook-tabs button.is-active:hover { filter: brightness(1.05); }
.handbook-tabs__fill { position: absolute; z-index: 0; inset: 0; background: var(--accent); clip-path: inset(0 0 100% 0); transition: clip-path .36s cubic-bezier(.22, 1, .36, 1); }
.handbook-tabs button:hover .handbook-tabs__fill { clip-path: inset(0); }
.handbook-tabs button.is-active .handbook-tabs__fill { display: none; }
.handbook-tabs__frame { position: absolute; z-index: 1; inset: 0 0 0 20px; background: url("sokol/frame-53.svg") right bottom / auto 100% no-repeat; opacity: 0; filter: brightness(0) invert(1); transform: translateY(22px); transition: opacity .36s cubic-bezier(.22, 1, .36, 1), transform .36s cubic-bezier(.22, 1, .36, 1); }
.handbook-tabs button:hover .handbook-tabs__frame, .handbook-tabs button.is-active .handbook-tabs__frame { opacity: .92; transform: translateY(0); }
.handbook-panels { min-width: 0; }
.handbook-panel { display: none; height: 100%; grid-template-columns: repeat(6, 1fr); animation: handbook-panel-in .42s cubic-bezier(.22, 1, .36, 1) both; }
.handbook-panel.is-active { display: grid; }
.handbook-card { position: relative; isolation: isolate; display: flex; min-height: 173px; grid-column: span 2; flex-direction: column; justify-content: space-between; overflow: hidden; border: 0; border-right: 1px solid rgb(0 0 0 / .08); border-bottom: 1px solid rgb(0 0 0 / .08); padding: 16px 18px; background: #fff; text-align: left; cursor: pointer; animation: handbook-card-in .38s cubic-bezier(.22, 1, .36, 1) both; transition: color .32s ease, box-shadow .32s ease; }
.handbook-card:last-child:nth-child(3n + 1) { grid-column: span 6; }
.handbook-card:nth-last-child(2):nth-child(3n + 1), .handbook-card:last-child:nth-child(3n + 2) { grid-column: span 3; }
.handbook-card:hover { z-index: 2; color: var(--accent); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.handbook-card > span:not(.handbook-card__fill):not(.handbook-card__frame) { position: relative; z-index: 2; }
.handbook-card strong { display: block; padding-right: 30px; font-size: 16px; font-weight: 400; line-height: 1.25; letter-spacing: -.48px; }
.handbook-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; transition: color .3s ease; }
.handbook-card:hover small { color: var(--accent); }
.handbook-card__icon { position: absolute !important; bottom: 16px; left: 18px; width: 36px; height: 36px; background: var(--accent); mask: var(--icon) center / contain no-repeat; transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.handbook-card:hover .handbook-card__icon { transform: translateY(-2px) scale(1.04); }
.handbook-card__kind { position: absolute !important; top: 16px; right: 18px; display: block; background: var(--accent); mask-position: center; mask-repeat: no-repeat; mask-size: contain; transition: transform .3s ease; }
.handbook-card__kind--pdf { width: 28px; height: 14px; mask-image: url("sokol/handbook-icons/PDF.svg"); mask-size: 100% 100%; }
.handbook-card__kind--web { width: 24px; height: 24px; mask-image: url("sokol/handbook-icons/web.svg"); }
.handbook-card:hover .handbook-card__kind { transform: scale(1.1); }
.handbook-card__fill { position: absolute; z-index: 0; inset: 0; background: color-mix(in srgb, var(--accent) 13%, #fff); clip-path: inset(0 0 100% 0); transition: clip-path .36s cubic-bezier(.22, 1, .36, 1); }
.handbook-card:hover .handbook-card__fill { clip-path: inset(0); }
.handbook-card__frame { position: absolute; z-index: 1; inset: 36px 0 0 12px; display: flex; align-items: flex-end; justify-content: flex-end; opacity: 0; filter: blur(4px); transform: translateY(18px); transition: opacity .36s cubic-bezier(.22, 1, .36, 1), transform .36s cubic-bezier(.22, 1, .36, 1), filter .36s ease; }
.handbook-card__frame > span { width: 114px; height: 104px; background: var(--accent); mask: url("sokol/frame-53.svg") right bottom / contain no-repeat; }
.handbook-card:hover .handbook-card__frame { opacity: .9; filter: blur(0); transform: translateY(0); }
@keyframes handbook-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes handbook-card-in { from { opacity: .88; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes handbook-title-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.empty-message { padding: 24px; color: var(--muted); }
.content-dialog { --accent-surface: color-mix(in srgb, var(--accent) 8%, #fff); --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff); --accent-muted: color-mix(in srgb, var(--accent) 42%, #222); --accent-border: color-mix(in srgb, var(--accent) 22%, transparent); --accent-shadow: color-mix(in srgb, var(--accent) 34%, transparent); width: min(820px, calc(100% - 32px)); max-height: calc(100svh - 48px); overflow: auto; border: 0; border-radius: 24px; padding: 0; background: var(--accent-surface); box-shadow: 0 24px 80px var(--accent-shadow); color: var(--text); }
.content-dialog[open] { animation: dialog-in .36s cubic-bezier(.22, 1, .36, 1) both; }
.content-dialog::backdrop { background: color-mix(in srgb, var(--accent) 24%, rgb(0 0 0 / 68%)); backdrop-filter: blur(5px); animation: dialog-backdrop-in .28s ease both; }
.content-dialog__header { position: relative; isolation: isolate; min-height: 190px; overflow: hidden; padding: 36px 104px 36px 40px; background: var(--accent); color: #fff; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .12); }
.content-dialog__header::before { position: absolute; z-index: 0; right: -12px; bottom: -20px; width: 250px; height: 228px; background: #fff; content: ""; mask: url("sokol/frame-53.svg") right bottom / contain no-repeat; opacity: .16; transform: rotate(-3deg); }
.content-dialog__header::after { position: absolute; z-index: 0; right: 94px; bottom: 22px; width: 38px; height: 38px; border: 2px solid rgb(255 255 255 / .55); border-radius: 10px; content: ""; opacity: .28; transform: rotate(12deg); }
.content-dialog__frame { position: absolute; z-index: 1; inset: 0 0 0 20px; background: url("sokol/frame-53.svg") right bottom / auto 100% no-repeat; opacity: .14; filter: brightness(0) invert(1); pointer-events: none; }
.content-dialog__eyebrow { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 28px; border: 1px solid rgb(255 255 255 / .7); border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.content-dialog h2 { position: relative; z-index: 2; max-width: 620px; margin-top: 18px; font-size: clamp(30px, 5vw, 43px); line-height: .98; letter-spacing: -1.3px; text-wrap: balance; }
.content-dialog__body { position: relative; padding: 36px 40px 44px; background: linear-gradient(180deg, var(--accent-soft) 0, #fff 120px); font-size: 17px; line-height: 1.6; }
.content-dialog__body .rich-text > h2:first-child { display: none; }
.content-dialog__body .rich-text a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent-border); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-dialog__body .rich-text a:hover { text-decoration-color: var(--accent); }
.content-dialog__body .rich-text :is(h2, h3, h4, strong) { color: var(--accent); }
.content-dialog__body .rich-text :is(ul, ol) { padding-left: 1.35em; }
.content-dialog__body .rich-text li::marker { color: var(--accent); }
.content-dialog__body .rich-text blockquote { margin-inline: 0; border-left: 4px solid var(--accent); padding: 14px 18px; background: var(--accent-soft); }
.content-dialog__body .rich-text :is(table, th, td) { border-color: var(--accent-border); }
.content-dialog__body .rich-text th { background: var(--accent-soft); color: var(--accent); }
.content-dialog figure { margin-top: 32px; }
.content-dialog figure img { width: 100%; max-height: 440px; border: 4px solid var(--accent); border-radius: 16px; object-fit: cover; }
.content-dialog figcaption { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--accent); color: var(--accent-muted); font-size: 14px; line-height: 1.45; }
.content-dialog__close { position: absolute; z-index: 3; top: 24px; right: 24px; display: grid; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease; }
.content-dialog__close span, .content-dialog__close span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transform: rotate(45deg); }
.content-dialog__close span::after { transform: rotate(90deg); }
.content-dialog__close:hover { box-shadow: 0 8px 22px var(--accent-shadow); transform: rotate(6deg) scale(1.06); }
.content-dialog__close:active { transform: scale(.94); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dialog-backdrop-in { from { background: color-mix(in srgb, var(--accent) 0%, transparent); backdrop-filter: blur(0); } }
.handbook-tabs button:focus-visible, .handbook-card:focus-visible, .button:focus-visible, .shift-history:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.content-dialog__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery { min-height: 800px; padding-top: 53px; }
.gallery-grid { position: relative; width: 1180px; height: 584px; margin-top: 30px; }
.gallery-photo { position: absolute; overflow: hidden; border-radius: 12px; }
.gallery-photo:nth-child(1) { top: 0; left: 400px; width: 180px; height: 120px; }
.gallery-photo:nth-child(2) { top: 0; left: 600px; width: 180px; height: 120px; }
.gallery-photo:nth-child(3) { top: 48px; left: 200px; width: 180px; height: 237px; }
.gallery-photo:nth-child(4) { top: 48px; left: 800px; width: 380px; height: 237px; }
.gallery-photo:nth-child(5) { top: 167px; left: 0; width: 180px; height: 118px; }
.gallery-photo:nth-child(6) { top: 140px; left: 400px; width: 380px; height: 264px; }
.gallery-photo:nth-child(7) { top: 305px; left: 0; width: 380px; height: 237px; }
.gallery-photo:nth-child(8) { top: 305px; left: 800px; width: 180px; height: 237px; }
.gallery-photo:nth-child(9) { top: 305px; left: 1000px; width: 180px; height: 162px; }
.gallery-photo:nth-child(10) { top: 424px; left: 400px; width: 380px; height: 160px; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgb(0 0 0 / .7)); color: #fff; font-size: 13px; }

.footer { height: 454px; background: #222; color: #fff; }
.footer__inner { position: relative; height: 454px; }
.footer__brand { position: absolute; top: 48px; left: 0; width: 200px; height: 40px; }
.footer__nav { position: absolute; top: 112px; left: 0; display: flex; gap: 40px; font-size: 14px; }
.footer__nav a { transition: color .2s ease; }
.footer__nav a:hover { color: #fff; }
.footer__details { position: absolute; top: 167px; left: 0; display: grid; width: 1060px; grid-template-columns: 440px 240px 200px 180px; }
.footer__details > div { min-width: 0; border-right: 1px solid rgb(255 255 255 / .6); padding: 0 40px; }
.footer__details > div:first-child { padding-left: 0; }
.footer small, .footer em { display: block; color: rgb(255 255 255 / .45); font-size: 12px; font-style: normal; }
.footer__details em { font-size: 10px; }
.footer__details p { margin-top: 5px; font-size: 16px; white-space: nowrap; }
.contacts { position: absolute; top: 264px; left: 0; display: grid; width: 100%; height: 89px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); overflow: hidden; border-radius: 5px; background: rgb(0 0 0 / .2); }
.contacts > div { min-height: 89px; border-right: 1px solid rgb(255 255 255 / .04); padding: 12px 16px; }
.contacts strong, .contacts small, .contacts a { display: block; }
.contacts strong { font-size: 14px; font-weight: 400; }
.contacts a { margin-top: 8px; font-size: 16px; }
.registry { position: absolute; top: 48px; right: 0; display: flex; width: 304px; height: 82px; align-items: center; gap: 14px; border-radius: 5px; padding: 16px 20px; background: rgb(0 0 0 / .2); font-size: 14px; }
.registry img { width: 56px; height: 54px; object-fit: contain; }
.footer__socials { position: absolute; top: 176px; right: 0; }
.footer__socials a { width: 40px; height: 40px; }
.footer__socials img { width: 22px; height: 18px; }
.footer__socials .socials__vk img { width: 27px; height: 17px; }
.footer__bottom { position: absolute; right: 0; bottom: 47px; left: 0; display: flex; justify-content: space-between; gap: 20px; color: rgb(255 255 255 / .4); font-size: 12px; }

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .section > h2, .about h2 { font-size: 32px; }
  .main-nav { display: none; }
  .mobile-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 16px 24px; font-size: 14px; }
  .mobile-nav a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
  .hero-squares { display: none; }
  .hero { min-height: 720px; }
  .hero__content { padding-top: 80px; }
  .handbook { min-height: 0; padding: 70px 0; }
  .handbook-box { grid-template-columns: 1fr; }
  .handbook-tabs { grid-template-columns: repeat(6, 1fr); border: 0; }
  .handbook-tabs button { grid-column: span 3; }
  .handbook-tabs button:nth-child(n + 3) { grid-column: span 2; }
  .handbook-tabs button { min-height: 72px; text-align: center; }
  .handbook-tabs button > strong { margin: auto; }
  .handbook-panel { grid-template-columns: repeat(2, 1fr); }
  .handbook-card, .handbook-card:last-child:nth-child(3n + 1), .handbook-card:nth-last-child(2):nth-child(3n + 1), .handbook-card:last-child:nth-child(3n + 2) { grid-column: span 1; }
  .handbook-card:last-child:nth-child(odd) { grid-column: span 2; }
  .footer { height: auto; min-height: 454px; }
  .footer__inner { height: auto; min-height: 454px; padding: 48px 0; }
  .footer__brand, .footer__nav, .footer__details, .contacts, .footer__socials, .registry, .footer__bottom { position: static; }
  .footer__nav { margin-top: 24px; }
  .footer__details { width: 100%; grid-template-columns: 1fr 1fr; gap: 24px 0; margin-top: 34px; }
  .footer__details p { overflow-wrap: anywhere; white-space: normal; }
  .contacts { width: 100%; height: auto; margin-top: 28px; }
  .footer__socials { margin-top: 28px; }
  .registry { width: 100%; margin-top: 28px; }
  .footer__bottom { margin-top: 28px; }
}

@media (max-width: 1023px) {
  .handbook-box { min-height: 440px; grid-template-columns: 1fr; border-radius: 20px; box-shadow: 0 16px 48px -22px rgb(0 0 0 / .16); }
  .handbook-tabs { grid-template-columns: repeat(6, 1fr); border: 0; }
  .handbook-tabs button { min-height: 76px; grid-column: span 3; text-align: center; }
  .handbook-tabs button:nth-child(n + 3) { grid-column: span 2; }
  .handbook-tabs button:nth-child(n + 3):active { transform: scale(.98); }
  .handbook-tabs button > strong { margin: auto; font-size: 14px; }
  .handbook-tabs button:nth-child(n + 3) > strong { font-size: 12px; }
  .handbook-tabs__frame { inset: 0 0 0 8px; }
  .handbook-tabs button:nth-child(n + 3) .handbook-tabs__frame { left: 4px; }
  .handbook-panel { grid-template-columns: repeat(2, 1fr); }
  .handbook-card, .handbook-card:last-child:nth-child(3n + 1), .handbook-card:nth-last-child(2):nth-child(3n + 1), .handbook-card:last-child:nth-child(3n + 2) { grid-column: span 1; }
  .handbook-card:last-child:nth-child(odd) { grid-column: span 2; }
  .handbook-card strong { display: -webkit-box; overflow: hidden; padding-right: 32px; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .handbook-card small { margin-top: 4px; font-size: 11px; }
  .handbook-card:hover { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
  .handbook-card__frame { inset: 28px 0 0 8px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .handbook-tabs button > strong { font-size: 15px; }
  .handbook-tabs button:nth-child(n + 3) > strong { font-size: 13px; }
  .handbook-tabs button:nth-child(n + 3) .handbook-tabs__frame { left: 6px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .handbook-panel { grid-template-columns: repeat(2, 1fr); }
  .handbook-card, .handbook-card:last-child:nth-child(3n + 1), .handbook-card:nth-last-child(2):nth-child(3n + 1), .handbook-card:last-child:nth-child(3n + 2) { grid-column: span 1; }
  .handbook-card:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .shift-row__inner { grid-template-columns: 180px minmax(0, 1fr) 180px; }
  .gallery { min-height: 0; }
  .gallery-grid { position: static; display: grid; width: min(100% - 32px, 700px); height: auto; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-photo, .gallery-photo:nth-child(n) { position: relative; inset: auto; width: auto; height: 180px; min-height: 180px; grid-column: span 1; grid-row: span 1; }
  .gallery-photo:nth-child(3), .gallery-photo:nth-child(6) { height: 260px; grid-column: span 2; }
}

@media (max-width: 1100px) {
  .footer { height: auto; min-height: 454px; }
  .footer__inner { height: auto; min-height: 454px; padding: 48px 0; }
  .footer__brand, .footer__nav, .footer__details, .contacts, .footer__socials, .registry, .footer__bottom { position: static; }
  .footer__nav { margin-top: 24px; }
  .footer__details { width: 100%; grid-template-columns: 1fr 1fr; gap: 24px 0; margin-top: 34px; }
  .footer__details p { overflow-wrap: anywhere; white-space: normal; }
  .contacts { width: 100%; height: auto; margin-top: 28px; }
  .footer__socials { margin-top: 28px; }
  .registry { width: 100%; margin-top: 28px; }
  .footer__bottom { margin-top: 28px; }
}

@media (max-width: 767px) {
  .section > h2, .about h2 { font-size: 28px; font-weight: 700; letter-spacing: -1.29px; }
  .about { padding: 70px 0 40px; }
  .about__mission { margin-top: 24px; font-size: 18px; }
  .about-strip { left: 50%; width: 100vw; max-width: 100vw; transform: translateX(-50%) rotate(-1deg); }
  .about-strip__track { gap: 16px; }
  .about-photo img { width: clamp(240px, 25vw, 280px); height: 220px; }
  .about__cue { margin-top: 30px; font-size: 14px; font-weight: 700; letter-spacing: .16px; }
  .shift-row { padding: 32px 0; }
  .shifts { height: auto; }
  .shift-row__inner { grid-template-columns: 1fr; gap: 16px; }
  .shift-date { width: 100%; height: auto; min-height: 120px; padding: 20px 16px; }
  .shift-date > img { width: 100px; height: 100px; }
  .shift-copy, .shift-history { min-height: 140px; }
  .gallery { min-height: 0; }
  .gallery-grid { position: static; display: grid; width: min(100% - 32px, 700px); height: auto; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-photo, .gallery-photo:nth-child(n) { position: relative; inset: auto; width: auto; height: 144px; min-height: 144px; grid-column: span 1; grid-row: span 1; }
  .gallery-photo:nth-child(3), .gallery-photo:nth-child(6) { height: 208px; grid-column: span 2; }
}

@media (max-width: 560px) {
  .preview-bar { align-items: flex-start; padding: 9px 12px; font-size: 12px; }
  .brand { width: 180px; height: 35px; }
  .detail-header__back { font-size: 12px; text-align: right; }
  .handbook-detail { padding-block: 48px 72px; }
  .handbook-detail__content { margin-top: 28px; font-size: 16px; }
  .hero h1 { font-size: 36px; }
  .hero__eyebrow { font-size: 14px; }
  .hero__subtitle { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .about-photo img { width: 240px; height: 220px; }
  .handbook-panel { grid-template-columns: 1fr; }
  .handbook-card, .handbook-card:last-child:nth-child(odd) { grid-column: span 1; }
  .handbook-card { min-height: 145px; }
  .content-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); border-radius: 18px; }
  .content-dialog__header { min-height: 160px; padding: 26px 72px 28px 24px; }
  .content-dialog__header::before { right: -32px; width: 190px; height: 174px; }
  .content-dialog__header::after { display: none; }
  .content-dialog__eyebrow { min-height: 26px; font-size: 10px; }
  .content-dialog h2 { margin-top: 14px; font-size: 29px; }
  .content-dialog__body { padding: 26px 24px 32px; font-size: 16px; }
  .content-dialog__close { top: 18px; right: 18px; width: 42px; height: 42px; }
  .footer__nav { flex-wrap: wrap; gap: 16px 28px; }
  .footer__details { grid-template-columns: 1fr; }
  .footer__details > div { border: 0; padding: 0; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about-strip__track, .handbook > h2, .handbook-panel, .handbook-card, .content-dialog[open], .content-dialog::backdrop { animation: none !important; }
  .content-dialog__close { transition: none; }
}
