/* jackitos.ru — оформление. Цвета и размеры — в переменных ниже. */
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(fonts/golos-text-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #111114;
  --ink-2: #1c1c21;
  --paper: #f5f3ee;
  --card: #ffffff;
  --text: #17171a;
  --muted: #6b6a70;
  --line: #e3e0d8;
  --accent: #e8392b;
  --accent-ink: #ffffff;
  --accent-soft: #fde6e3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(17 17 20 / .06), 0 8px 24px rgb(17 17 20 / .08);
  --shadow-lg: 0 2px 4px rgb(17 17 20 / .06), 0 18px 48px rgb(17 17 20 / .16);
  --font-head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(1040px + 2 * var(--gutter)); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgb(232 57 43 / .3); }
.btn--accent:hover { background: #d42e21; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--ghost-light { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .14); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgb(17 17 20 / .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .06); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 18px/1 var(--font-head); letter-spacing: -.01em; }
.logo img { width: 34px; height: 48px; object-fit: contain; }
.logo b { font-weight: 600; color: var(--accent); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: rgb(255 255 255 / .78); font-weight: 500; transition: color .15s, background-color .15s; }
.menu a:not(.btn):hover { color: #fff; background: rgb(255 255 255 / .07); }
.menu a[aria-current="page"] { color: #fff; }
.menu a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--accent); }
.menu .btn { margin-left: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .08); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, top .2s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid rgb(255 255 255 / .08); box-shadow: 0 20px 40px rgb(0 0 0 / .3); display: none; }
  .menu.is-open { display: flex; }
  .menu a:not(.btn) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgb(255 255 255 / .07); border-radius: 0; }
  .menu a[aria-current="page"]::after { display: none; }
  .menu a[aria-current="page"] { color: var(--accent); }
  .menu .btn { margin: 16px 0 0; min-height: 50px; }
}

/* ---------- главная: первый экран ---------- */
.hero { background: var(--ink); color: #fff; padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgb(232 57 43 / .28), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.hero__kicker { margin: 0 0 20px; color: rgb(255 255 255 / .6); font-size: 15px; letter-spacing: .02em; }
.hero__title { margin: 0; max-width: 15em; font: 700 clamp(34px, 6.2vw, 76px)/1.06 var(--font-head); letter-spacing: -.03em; }
.hero__title mark { background: var(--accent); color: #fff; padding: 0 .16em; border-radius: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { max-width: 34em; margin: 28px 0 0; font-size: clamp(17px, 2vw, 20px); color: rgb(255 255 255 / .74); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid rgb(255 255 255 / .1); color: rgb(255 255 255 / .6); }
.hero__stats b { display: block; font: 600 34px/1.1 var(--font-head); color: #fff; }

/* ---------- секции ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title, .cat__title { margin: 0; font: 600 clamp(24px, 3.4vw, 36px)/1.15 var(--font-head); letter-spacing: -.02em; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* большие плитки на главной */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .55) 60%, rgb(0 0 0 / .85)); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 3vw, 32px); }
.tile__meta { display: block; font-size: 14px; color: rgb(255 255 255 / .75); }
.tile__title { display: block; margin-top: 6px; font: 600 clamp(18px, 2.4vw, 28px)/1.2 var(--font-head); letter-spacing: -.01em; }

/* карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: block; padding: 18px 20px 22px; }
.card__meta { display: block; font-size: 14px; color: var(--muted); }
.card__title { display: block; margin-top: 4px; font-weight: 600; font-size: 18px; line-height: 1.35; }
.card--more { justify-content: flex-end; gap: 10px; padding: 28px; background: var(--ink); color: #fff; min-height: 220px; }
.card--more .card__title { font-size: 20px; }
.card--more .link-more { color: #ff7a6e; }
.card__more-num { font: 700 56px/1 var(--font-head); color: var(--accent); letter-spacing: -.03em; margin-bottom: auto; }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgb(17 17 20 / .78); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.badge--inline { position: static; display: inline-block; margin-left: 8px; vertical-align: 1px; background: var(--ink); }

/* призыв */
.cta { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px); background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); }
.cta__title { margin: 0; font: 600 clamp(22px, 3vw, 32px)/1.2 var(--font-head); letter-spacing: -.02em; }
.cta__text { margin: 10px 0 0; max-width: 32em; color: rgb(255 255 255 / .7); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); }
.cta .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- внутренние страницы ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head--center { text-align: center; padding-bottom: 96px; }
.page-title { margin: 0; font: 700 clamp(32px, 5.4vw, 60px)/1.08 var(--font-head); letter-spacing: -.03em; }
.page-lead { margin: 16px 0 0; max-width: 36em; font-size: 19px; color: var(--muted); }
.page-head--center .page-lead { margin-left: auto; margin-right: auto; }
.page-lead a { color: var(--accent); }
.big404 { margin: 0 0 8px; font: 800 clamp(80px, 18vw, 160px)/1 var(--font-head); color: var(--accent); letter-spacing: -.04em; }
.chips { position: sticky; top: 72px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 10px 0; background: var(--paper); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; text-decoration: none; transition: box-shadow .15s, background-color .15s, color .15s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.cat { padding: 24px 0 48px; }
.cat__title { margin-bottom: 24px; }
.cat__title span { font-size: .55em; color: var(--muted); vertical-align: .5em; font-family: var(--font); font-weight: 600; }

/* страница работы */
.proj__head { padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 4vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.proj__title { margin: 0; font: 700 clamp(28px, 4.8vw, 52px)/1.1 var(--font-head); letter-spacing: -.025em; }
.proj__meta { margin: 16px 0 0; color: var(--muted); }
.lead { margin: 22px 0 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; }
.lead + .lead { margin-top: 12px; }
.proj__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.proj__body { display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; }
.proj__body .prose { max-width: 760px; width: 100%; margin: 0 auto; }
.prose { margin: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.shot { margin: 18px 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot img { width: 100%; cursor: zoom-in; }
.file { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); color: var(--text) !important; font-weight: 600; text-decoration: none; }
.pnavs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; padding-bottom: clamp(48px, 7vw, 80px); }
.pnav { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pnav:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pnav span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pnav b { font-weight: 600; font-size: 17px; line-height: 1.35; }
.pnav--next { grid-column: 2; text-align: right; align-items: flex-end; }

/* мир */
.trips { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; counter-reset: trip; }
.trip__a { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 120px; padding: 22px 56px 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; height: 100%; transition: transform .2s, box-shadow .2s; }
a.trip__a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.trip__place { font: 600 22px/1.2 var(--font-head); letter-spacing: -.01em; }
.trip__when { color: var(--muted); }
.trip__go { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.trip__parts { display: flex; gap: 8px; margin-top: 8px; }
.trip__parts a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; text-decoration: none; }

/* контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.contacts__me { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); padding: 8px; }
.contacts .lead { margin-top: 18px; }
.contacts .prose { margin-top: 14px; color: var(--muted); }
.mail { display: inline-block; margin-top: 24px; font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--font-head); color: var(--accent); text-underline-offset: 6px; word-break: break-all; }
.form { background: var(--card); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); }
.form__title { margin: 0 0 20px; font: 600 24px/1.2 var(--font-head); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font: inherit; color: inherit; transition: border-color .15s, background-color .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); background: #fff; }
.field.is-error input, .field.is-error textarea { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__status { margin: 14px 0 0; font-weight: 600; }
.form__status.is-ok { color: #1f8a4c; }
.form__status.is-err { color: var(--accent); }
.form.is-sent .field, .form.is-sent .btn { display: none; }

/* подвал */
.footer { background: var(--ink); color: rgb(255 255 255 / .7); padding: 36px 0; font-size: 15px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__me { display: flex; align-items: center; gap: 14px; }
.footer__me a { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgb(255 255 255 / .7); text-decoration: none; }
.footer__nav a:hover { color: #fff; }

/* картинка крупно */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 10 12 / .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); width: auto; height: auto; border-radius: 8px; }
.lightbox__close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .tile, .tile--wide { aspect-ratio: 4 / 3; }
  .grid { gap: 14px; }
  .contacts { grid-template-columns: 1fr; }
  .pnavs { grid-template-columns: 1fr; gap: 12px; }
  .pnav--next { grid-column: auto; }
  .section__head { align-items: center; }
  .hero__btns .btn { flex: 1 1 auto; }
  .cta__btns, .cta__btns .btn { width: 100%; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
