/* Enigma Fireworks: dark top bar and footer, light menu and page, fireworks over the banner. */
:root {
  --dark: #2a2a2e;
  --dark-2: #1f1f22;
  --menu: #eef0f4;
  --page: #ffffff;
  --tint: #f3f4f7;
  --ink: #1c1c20;
  --soft: #55565f;
  --accent: #c8102e;
  --accent-2: #a30c25;
  --gold: #ffcf3a;
  --on-dark: #f2f2f5;
  --on-dark-soft: #c4c4cc;
  --font: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent); border-radius: 4px;
  font-weight: 500; text-decoration: none; line-height: 1.1;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
  .btn--line:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
  .btn--light:hover { background: #fff; border-color: #fff; color: var(--dark); }
}

/* ---------- top bar ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: 15px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color 150ms ease; }
.topbar a:hover { color: var(--gold); }
.topbar__contact, .topbar__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* ---------- logo and menu bar ---------- */
.head { position: sticky; top: 0; z-index: 40; background: var(--menu); }
.head__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 100px; transition: min-height 250ms var(--ease-out); }
.head.is-small .head__in { min-height: 72px; }
.logo img { width: auto; height: 90px; transition: height 250ms var(--ease-out); }
.head.is-small .logo img { height: 62px; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1vw, 14px); }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 150ms ease; }
.nav__link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.nav__link[aria-current='page'] { color: var(--accent); }
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.chev { transition: transform 200ms var(--ease-out); }
.nav__item { position: relative; }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px;
  background: #fff; border-radius: 6px; box-shadow: 0 14px 40px rgba(20, 20, 30, .18);
  transform-origin: top left; opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.97);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s 150ms;
}
.drop a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px; border-radius: 4px; text-decoration: none; font-size: 16px; transition: background-color 120ms ease; }
.drop a:hover, .drop a:focus-visible { background: var(--tint); }
.drop--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; min-width: 520px; left: auto; right: 0; transform-origin: top right; }
.nav__item.is-open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s; }
.nav__item.is-open .chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--accent); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.menu-btn { display: none; width: 46px; height: 46px; place-items: center; }
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 250ms var(--ease-out), background-color 150ms ease; }
.menu-btn__lines { position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ''; position: absolute; left: 0; }
.menu-btn__lines::before { transform: translateY(-7px); }
.menu-btn__lines::after { transform: translateY(7px); }
.menu-btn[aria-expanded='true'] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded='true'] .menu-btn__lines::before { transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-btn__lines::after { transform: rotate(-45deg); }
/* ---------- product search ---------- */
.search { display: flex; align-items: center; margin-left: clamp(4px, 1vw, 12px); background: #fff; border: 1px solid #b7b8c2; border-radius: 4px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search input { width: clamp(130px, 13vw, 190px); min-height: 42px; padding: 6px 4px 6px 12px; background: transparent; border: 0; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--soft); }
.search button { display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); transition: color 150ms ease; }
.search button:hover { color: var(--accent); }
.searchpage { display: flex; gap: 8px; margin-bottom: 20px; }
.searchpage input { flex: 1; min-width: 0; min-height: 50px; padding: 8px 14px; background: #fff; border: 1px solid #b7b8c2; border-radius: 4px; font-size: 17px; }
.searchpage input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lede a { color: var(--accent); text-underline-offset: 3px; }
.search__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 6px; }
.search__groups a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; background: var(--tint); border-radius: 4px; text-decoration: none; transition: background-color 150ms ease; }
.search__groups a:hover { background: #e4e6ec; }
@media (max-width: 1020px) {
  .search { order: -1; margin: 8px 0 4px; }
  .search input { flex: 1; width: auto; }
  .head__in { min-height: 76px; }
  .logo img, .head.is-small .logo img { height: 62px; }
  .head.is-small .head__in { min-height: 76px; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px var(--gutter) 20px; background: var(--menu);
  }
  .nav.is-open { display: flex; }
  .nav__link { width: 100%; justify-content: space-between; min-height: 48px; }
  .nav__link::after { display: none; }
  .drop, .drop--wide { position: static; left: auto; right: auto; display: none; min-width: 0; box-shadow: none; background: transparent; padding: 0 0 8px 12px; opacity: 1; visibility: visible; transform: none; transition: none; grid-template-columns: 1fr; }
  .nav__item.is-open .drop { display: grid; }
  .drop a { min-height: 44px; }
}
@media (max-width: 560px) {
  .topbar { font-size: 14px; }
  .topbar__links { display: none; }
  .topbar__in { justify-content: center; padding-block: 6px; }
  .topbar__contact { justify-content: center; }
}

/* ---------- banner ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(480px, 72vh, 720px); display: flex; overflow: hidden; background: #0c0c10; color: #fff; }
.hero__slides, .hero__scrim, .hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slides { z-index: -3; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1200ms ease; }
.hero__slide.is-on { opacity: 1; }
.hero__scrim { z-index: -2; background: rgba(8, 8, 14, .42); }
.hero__sky { z-index: -1; }
.hero__in { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px 40px; padding-block: 40px 56px; pointer-events: none; }
.hero__in a, .hero__in .count { pointer-events: auto; }
.hero__copy { max-width: 620px; display: grid; gap: 16px; justify-items: start; }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 5.4vw, 5.6rem); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.hero__copy p { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.4; }
.count { background: rgba(12, 12, 18, .78); padding: 18px 22px; border-radius: 6px; text-align: center; }
.count__title { font-size: 18px; }
.count__title strong { color: var(--gold); font-weight: 600; }
.count__grid { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 8px; margin: 12px 0 8px; }
.count__grid b { display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.count__grid span { display: block; margin-top: 6px; font-size: 14px; color: var(--on-dark-soft); }
.count__date { font-size: 15px; color: var(--on-dark-soft); }
.hero__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; }
.hero__dots button { width: 30px; height: 30px; display: grid; place-items: center; }
.hero__dots button::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: transform 250ms var(--ease-bounce), background-color 200ms ease; }
.hero__dots button[aria-current='true']::before { background: var(--gold); transform: scale(1.25); }
@media (max-width: 760px) {
  .hero__in { padding-block: 32px 48px; }
  .count { width: 100%; padding: 14px; }
}

/* ---------- group name strip ---------- */
.strip { position: relative; isolation: isolate; overflow: hidden; background: #0c0c10; color: #fff; }
.strip__bg, .strip__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.strip__bg { z-index: -2; object-fit: cover; object-position: center 25%; opacity: .55; }
.strip__sky { z-index: -1; }
.strip__in { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 32px; min-height: 170px; padding-block: 28px; }
.strip__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; }
.strip__crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; }
.strip__crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); transition: color 150ms ease; }
.strip__crumbs a:hover { color: var(--gold); }
.strip__crumbs [aria-current] { color: var(--gold); font-weight: 500; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(48px, 7vw, 88px); }
.sec--tight { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.sec--tint { background: var(--tint); }
.sec__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; margin-bottom: clamp(20px, 3vw, 34px); }
.lede { max-width: 62ch; margin-bottom: 28px; color: var(--soft); font-size: 18px; }
.empty { padding: 32px 0; color: var(--soft); }

/* ---------- product groups ---------- */
.groups { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.group { display: flex; flex-direction: column; background: var(--tint); text-decoration: none; border-radius: 6px; overflow: hidden; transition: transform 300ms var(--ease-out); }
.group__img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.group { box-shadow: inset 0 0 0 1px #e4e5ea; }
.group__img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.group__name { flex: 1; display: flex; align-items: center; min-height: 58px; padding: 8px 12px; background: var(--c); color: #111; font-weight: 500; font-size: 16px; line-height: 1.2; }
@media (hover: hover) and (pointer: fine) {
  .group:hover { transform: translateY(-4px); }
  .group:hover .group__img img { transform: scale(1.07) rotate(-1.5deg); }
}
@media (max-width: 1100px) { .groups { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 44vw), 1fr)); gap: 16px; }
.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 14px 18px; background: #fff; border-radius: 6px; box-shadow: inset 0 0 0 1px #e4e5ea; text-align: center; transition: transform 300ms var(--ease-out); }
.card__img { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.card__name { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.25; }
.card__name a { text-decoration: none; }
.card__name a:hover { color: var(--accent); }
.card__btn { min-height: 42px; padding: 8px 26px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); }
  .card:hover .card__img img { transform: scale(1.05); }
}
@media (max-width: 900px) { .cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- product page ---------- */
.pd__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pd__main { position: relative; aspect-ratio: 1; background: #fff; border-radius: 6px; box-shadow: inset 0 0 0 1px #e4e5ea; overflow: hidden; }
.pd__main img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: opacity 200ms ease; }
.pd__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd__thumbs button { width: 84px; height: 84px; padding: 6px; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px #e4e5ea; transition: box-shadow 150ms ease; }
.pd__thumbs button[aria-current='true'] { box-shadow: inset 0 0 0 2px var(--accent); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd__info { display: grid; gap: 20px; justify-items: start; }
.pd__name { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.pd__desc { display: grid; gap: 4px; }
.pd__fields { display: grid; gap: 6px; width: 100%; padding: 16px 18px; background: var(--tint); border-radius: 6px; }
.pd__fields div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.pd__fields dt { color: var(--accent); font-weight: 500; }
.pd__block { padding-top: clamp(40px, 6vw, 72px); }
.pd__video { aspect-ratio: 16 / 9; max-width: 960px; background: #000; border-radius: 6px; overflow: hidden; }
.pd__video iframe { width: 100%; height: 100%; border: 0; }
.pd__sim { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pd__sky { position: relative; min-height: clamp(320px, 42vw, 520px); background: #0c0c14; border-radius: 6px; overflow: hidden; }
.pd__sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd__light { position: absolute; left: 14px; bottom: 14px; }
.pd__light:disabled { opacity: .55; cursor: progress; }
.pd__lines { display: grid; gap: 4px; align-content: start; max-height: 520px; overflow-y: auto; }
.pd__lines li { padding: 8px 12px; background: var(--tint); border-radius: 4px; color: var(--soft); font-size: 16px; line-height: 1.3; transition: color 250ms ease, background-color 250ms ease, transform 300ms var(--ease-out); }
.pd__lines li.is-on { background: var(--gold); color: #111; transform: translateX(6px); }
.pd__lines li.is-done { color: var(--ink); }
.pd__ask { max-width: 760px; }
@media (max-width: 820px) {
  .pd__top, .pd__sim { grid-template-columns: 1fr; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; justify-items: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.field { display: grid; gap: 5px; width: 100%; font-weight: 500; font-size: 16px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: #fff; border: 1px solid #b7b8c2; border-radius: 4px; font-weight: 400; font-size: 16px; transition: border-color 150ms ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.is-error input, .field.is-error textarea { border-color: var(--accent); animation: shake 400ms var(--ease-out); }
.field__err { color: var(--accent); font-style: normal; font-weight: 400; }
.form-err { margin-bottom: 14px; color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.sent { display: flex; align-items: center; gap: 16px; padding: 18px; background: #e9f7ef; border-radius: 6px; }
.t-success-check { display: inline-block; flex: none; }
.t-success-check[data-state='in'] { animation: check-in 500ms var(--ease-out) both; }
.t-success-check path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: check-draw 500ms var(--ease-out) 80ms forwards; }
@keyframes check-in { from { opacity: 0; transform: rotate(80deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- text pages, posts, gallery, contacts ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.article__txt { display: grid; gap: 16px; justify-items: start; }
.article__txt > h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
.article time { color: var(--soft); font-size: 16px; }
.article__img { border-radius: 6px; overflow: hidden; }
.article__img img { width: 100%; }
.article__img--logo { width: fit-content; }
.prose { display: grid; gap: 14px; max-width: 68ch; }
.prose h2 { margin-top: 12px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.posts { display: grid; gap: 16px; }
.post { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); padding: 14px; background: var(--tint); border-radius: 6px; }
.post__img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #fff; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__txt { display: grid; gap: 10px; align-content: center; justify-items: start; padding-block: 4px; }
.post__txt time { color: var(--soft); font-size: 16px; }
.post__txt h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.post__txt h2 a { text-decoration: none; }
.post__txt h2 a:hover { color: var(--accent); }
.album { margin-bottom: 40px; }
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 44vw), 1fr)); gap: 10px; }
.album__item { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--tint); }
.album__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .album__item:hover img { transform: scale(1.05); } }
.zoom { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.zoom::backdrop { background: rgba(8, 8, 12, .88); }
.zoom img { max-width: 92vw; max-height: 88vh; }
.zoom__x { position: fixed; top: 12px; right: 16px; width: 48px; height: 48px; color: #fff; font-size: 36px; line-height: 1; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.contact h2 { margin-bottom: 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.contact__info { display: grid; gap: 28px; }
.contact__store a { text-underline-offset: 3px; }
.contact__map { display: inline-block; margin-top: 6px; color: var(--accent); }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.credits li { display: grid; gap: 8px; align-content: start; }
.credits img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
@media (max-width: 820px) { .article, .contact, .post { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: var(--on-dark); }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 36px clamp(24px, 4vw, 64px); padding-block: 56px 40px; }
.foot h2 { margin-bottom: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.foot__welcome p { margin-bottom: 18px; color: var(--on-dark-soft); max-width: 46ch; }
.foot__afsl { display: inline-block; padding: 10px; background: #fff; border-radius: 4px; }
.foot__afsl img { width: 170px; }
.foot__logo { width: 150px; margin-top: 12px; padding: 8px 12px; background: var(--menu); border-radius: 4px; }
.foot__contacts ul { display: grid; gap: 6px; margin-bottom: 14px; }
.foot__contacts p { color: var(--on-dark-soft); }
.foot a:not(.btn) { text-underline-offset: 3px; transition: color 150ms ease; }
.foot a:not(.btn):hover { color: var(--gold); }
.foot__end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: 15px; color: var(--on-dark-soft); }
.foot__links { display: flex; gap: 20px; }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- entrances (only when script runs) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
