/* buhhelp.kz public site. Colours are taken from the firm's logo (vector PDF). */
:root {
  --navy: #054597;      /* logo: dark square */
  --navy-deep: #03336f; /* hover state of navy */
  --blue: #0085c3;      /* logo: overlap of the squares */
  --teal: #87cdd7;      /* logo: light square */
  --ink: #1a1a18;       /* logo: wordmark */
  --muted: #4a5563;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --teal-soft: #e6f4f6;
  --teal-band: #dff0f3;
  --line: #d6e2ea;
  --footer: #0b2447;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(5, 69, 151, .06), 0 10px 30px rgba(5, 69, 151, .09);
  --shadow-lift: 0 2px 4px rgba(5, 69, 151, .06), 0 18px 40px rgba(5, 69, 151, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slant: clamp(28px, 4vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(840px, 100% - 2.5rem); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid rgba(214, 226, 234, .8);
}
.header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; min-height: 72px; }
.header__logo { flex: none; display: block; }
.header__logo img { width: 184px; height: auto; }
.header__side { display: flex; align-items: center; gap: .9rem; margin-left: auto; }

.lang { display: flex; gap: .25rem; font-size: .85rem; font-weight: 600; }
.lang__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 36px; padding: 0 .4rem; border-radius: 8px; text-decoration: none; color: var(--muted);
}
.lang__item[aria-current="page"] { color: var(--navy); background: var(--teal-soft); }
.lang__item--off { color: #6b7280; border: 1px dashed #9aa5b1; cursor: not-allowed; }

/* Navigation: one row on wide screens, a scrollable second row on narrow ones (no script needed). */
.menu { order: 3; flex: 1 0 100%; margin: 0 -1.25rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.menu::-webkit-scrollbar { display: none; }
.menu__list { display: flex; gap: 1.3rem; padding: 0 1.25rem; white-space: nowrap; }
.menu__list a {
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem;
}
.menu__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu__list a:hover { color: var(--navy); }
.menu__list a:hover::after, .menu__list a:focus-visible::after { transform: scaleX(1); }

@media (max-width: 559px) {
  .header__side .btn { display: none; }
  .header__logo img { width: 148px; }
  .header__inner { min-height: 60px; }
}
@media (min-width: 1000px) {
  .header__inner { flex-wrap: nowrap; }
  .menu { order: 0; flex: 1; margin: 0; border: 0; overflow: visible; }
  .menu__list { justify-content: center; padding: 0; gap: 1.6rem; }
  .menu + .header__side { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; flex-wrap: wrap;
  min-height: 50px; padding: .75rem 1.5rem; border-radius: 14px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 69, 151, .22);
  transition: background-color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.btn img { width: 22px; height: 22px; flex: none; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 69, 151, .28); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 42px; padding: .45rem 1rem; font-size: .95rem; box-shadow: none; }
.btn--ghost { background: rgba(255, 255, 255, .8); color: var(--navy); box-shadow: none; }
.btn--ghost:hover { background: #fff; color: var(--navy-deep); }
.btn--wide { width: 100%; }

/* Hero: soft brand mesh, drifting translucent squares, rising arrow lines, and the logo scene */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(42rem 30rem at 88% 8%, rgba(135, 205, 215, .55), transparent 65%),
    radial-gradient(36rem 26rem at 70% 95%, rgba(0, 133, 195, .16), transparent 70%),
    radial-gradient(30rem 22rem at 5% 0%, rgba(135, 205, 215, .3), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f3f9fb 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__lines {
  position: absolute; left: -160px; bottom: -160px; width: calc(100% + 320px); height: calc(100% + 320px);
  background: url("../img/hero-lines.svg") 0 0 / 160px 160px repeat;
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 60%, #000 85%, transparent);
  mask-image: linear-gradient(105deg, transparent 20%, #000 60%, #000 85%, transparent);
  animation: rise 14s linear infinite;
}
.hero__lines--far {
  background-size: 240px 240px; opacity: .6; left: -240px; bottom: -240px;
  width: calc(100% + 480px); height: calc(100% + 480px);
  animation: rise-far 30s linear infinite;
}
@keyframes rise { to { transform: translate(160px, -160px); } }
@keyframes rise-far { to { transform: translate(240px, -240px); } }

.drift { position: absolute; display: block; border-radius: 22px; animation: drift 26s ease-in-out infinite alternate; }
.drift--1 { width: 260px; height: 260px; right: 4%; top: -60px; background: rgba(135, 205, 215, .28); }
.drift--2 { width: 150px; height: 150px; right: 30%; bottom: 8%; background: rgba(0, 133, 195, .09); animation-duration: 32s; animation-delay: -8s; }
.drift--3 { width: 90px; height: 90px; left: 46%; top: 12%; background: rgba(5, 69, 151, .07); animation-duration: 22s; animation-delay: -4s; }
.drift--4 { width: 200px; height: 200px; left: -70px; bottom: -40px; background: rgba(135, 205, 215, .22); animation-duration: 36s; }
.drift--5 { width: 56px; height: 56px; right: 12%; bottom: 22%; background: rgba(0, 133, 195, .13); animation-duration: 18s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, -26px) rotate(4deg); }
  100% { transform: translate(-14px, -8px) rotate(-3deg); }
}

.hero__inner { display: grid; gap: 1.75rem; align-items: center; padding: 3rem 0 4rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem;
  padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); box-shadow: 4px -4px 0 var(--teal); }
.hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.3rem; }
.hero__note { color: var(--muted); font-size: .95rem; margin: 0; }

/* Scene around the logo mark. Phone: a compact strip; desktop: a square composition. */
.hero__art { width: 100%; max-width: 440px; }
.scene { position: relative; aspect-ratio: 16 / 8; }
.scene__panel {
  position: absolute; left: 0; top: 6%; width: 42%; aspect-ratio: 1; border-radius: 26px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.scene__ring { display: none; }
.scene .mark { position: absolute; left: 5%; top: 16%; width: 32%; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .35rem .7rem .35rem .4rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; color: var(--navy);
  animation: float 7s ease-in-out infinite;
}
.chip img { width: 24px; height: 24px; }
.chip--1 { left: 45%; top: 4%; }
.chip--2 { left: 47%; top: 37%; animation-delay: -2.3s; }
.chip--3 { left: 45%; top: 70%; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; padding: 5.5rem 0 7rem; gap: 3rem; }
  .hero__art { justify-self: end; }
  .scene { aspect-ratio: 1; }
  .scene__panel { left: 12%; top: 12%; width: 76%; border-radius: 36px; }
  .scene__ring {
    display: block; position: absolute; left: 4%; top: 4%; width: 92%; aspect-ratio: 1; border-radius: 44px;
    border: 1.5px dashed rgba(5, 69, 151, .18); animation: spin 60s linear infinite;
  }
  .scene .mark { left: 25%; top: 26%; width: 50%; }
  .chip { font-size: .92rem; padding: .45rem .9rem .45rem .5rem; }
  .chip img { width: 28px; height: 28px; }
  .chip--1 { left: -6%; top: 9%; }
  .chip--2 { left: auto; right: -8%; top: 46%; }
  .chip--3 { left: 2%; top: auto; bottom: 7%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Logo mark: squares come together, arrows rise */
.mark__teal { fill: var(--teal); }
.mark__navy { fill: var(--navy); }
.mark__blue { fill: var(--blue); }
.mark__arrow { fill: #fff; }
.mark__teal, .mark__navy, .mark__blue { animation: mark-in .9s var(--ease) both; }
.mark__teal { --dx: 18px; --dy: -18px; }
.mark__navy { --dx: -18px; --dy: 18px; }
.mark__blue { animation-name: fade-in; animation-delay: .35s; }
.mark__arrow { animation: arrow-in 1.1s var(--ease) both, arrow-loop 9s ease-in-out 2.4s infinite; }
.mark__arrow--1 { animation-delay: .5s, 2.6s; }
.mark__arrow--2 { animation-delay: .65s, 2.75s; }
.mark__arrow--3 { animation-delay: .8s, 2.9s; }
@keyframes mark-in { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrow-in { from { transform: translate(-90px, 90px); } to { transform: none; } }
/* Mostly at rest; once per cycle the arrows leave up-right and come back from below-left. */
@keyframes arrow-loop {
  0%, 82% { transform: none; }
  90% { transform: translate(110px, -110px); }
  90.01% { transform: translate(-110px, 110px); }
  100% { transform: none; }
}

/* Sections, rhythm and the rising diagonal between them */
.section { position: relative; padding: clamp(4rem, 3rem + 4vw, 7rem) 0; background: var(--bg); }
.section--soft { background: var(--bg-soft); }
.section--band { background: linear-gradient(160deg, var(--teal-band), #eef8f9 60%, var(--teal-soft)); }
.section--slant::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(1px - var(--slant)); height: var(--slant);
  background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.section--slant::after {
  /* thin brand line along the diagonal, ending in an arrowhead on the right */
  content: ""; position: absolute; right: 2.5rem; top: calc(-1 * var(--slant) - 6px); width: 14px; height: 14px;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); opacity: .9;
}
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section h2::before {
  content: ""; display: block; width: 44px; height: 5px; margin-bottom: 1rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--teal));
}
.section__lead { color: var(--muted); font-size: 1.12rem; margin: 0; }
.small { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  position: relative; overflow: hidden; padding: 1.75rem 1.6rem 1.6rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--teal));
  transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: #bcd3e2; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 64px; height: 64px; padding: 8px; margin-bottom: 1.1rem; border-radius: 16px;
  background: var(--teal-soft); transition: transform .35s var(--ease);
}
.card:hover .card__icon { transform: translate(2px, -3px); }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--muted); }

.cards--why { grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards--why { grid-template-columns: repeat(2, 1fr); } }
.card--why {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: start;
  background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .95);
}
.card--why .card__icon { grid-row: span 2; margin: 0; background: #fff; box-shadow: 0 4px 14px rgba(5, 69, 151, .08); }

.tags { display: flex; flex-wrap: wrap; gap: .8rem; }
.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .75rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; color: var(--navy); transition: transform .25s var(--ease), box-shadow .25s;
}
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); box-shadow: 3px -3px 0 var(--teal); }
.tag:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* «Как работаем»: connected timeline. Phone: vertical; desktop: horizontal. The line fills while scrolling. */
.steps { position: relative; display: grid; gap: 1.25rem; counter-reset: step; padding-left: 64px; view-timeline-name: --steps; }
.steps::before, .steps::after {
  content: ""; position: absolute; z-index: 0; left: 21px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px;
}
.steps::before { background: var(--line); }
.steps::after {
  background: linear-gradient(180deg, var(--teal), var(--blue), var(--navy));
  transform-origin: top;
}
.step { counter-increment: step; position: relative; z-index: 1; display: flex; }
.step__node {
  position: absolute; left: -64px; top: 0; z-index: 1; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--blue);
  color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(5, 69, 151, .12);
}
.step__node::before { content: counter(step, decimal-leading-zero); }
.step:last-child .step__node { background: var(--navy); border-color: var(--navy); color: #fff; }
.step__card {
  flex: 1; padding: 1.3rem 1.3rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.step__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step__card h3 { margin-bottom: .45rem; }
.step__card p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); padding-left: 0; padding-top: 72px; gap: 1rem; align-items: stretch; }
  .steps::before, .steps::after { left: 23px; right: calc(20% - 23px); top: 21px; bottom: auto; width: auto; height: 4px; }
  .steps::after { background: linear-gradient(90deg, var(--teal), var(--blue), var(--navy)); transform-origin: left; }
  .step__node { left: 0; top: -72px; }
}
@supports (animation-timeline: view()) {
  .steps::after { animation: fill-y linear both; animation-timeline: --steps; animation-range: entry 15% entry 100%; }
  @media (min-width: 1000px) { .steps::after { animation-name: fill-x; } }
}
@keyframes fill-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: none; } }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem;
  transition: box-shadow .25s, border-color .25s;
}
.faq__item[open] { box-shadow: var(--shadow); border-color: #bcd3e2; }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item summary:hover { color: var(--navy); }
.faq__item p { margin: 0 0 1.2rem; color: var(--muted); }
.faq__item[open] p { animation: fade-down .3s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contacts: one two-column card */
.contacts {
  display: grid; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow-lift);
}
@media (min-width: 900px) { .contacts { grid-template-columns: .9fr 1.1fr; } }
.contacts__info {
  position: relative; overflow: hidden; padding: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  background:
    radial-gradient(22rem 16rem at 100% 0%, rgba(135, 205, 215, .5), transparent 70%),
    linear-gradient(180deg, var(--teal-soft), #f5fbfc);
}
.contacts__info::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 22px;
  background: rgba(0, 133, 195, .08); pointer-events: none;
}
.contacts__list { position: relative; z-index: 1; margin: 0 0 1.75rem; }
.contacts__list dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contacts__list dd + dt { margin-top: 1rem; }
.contacts__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .8rem; }
.contacts__note { position: relative; z-index: 1; color: var(--muted); margin-bottom: 1.25rem; }
.contacts__list dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 600; }

.requisites { padding: clamp(1.6rem, 1rem + 2.5vw, 3rem); background: #fff; }
.requisites__title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-bottom: 1.25rem; }
.requisites__list { margin: 0; display: grid; gap: 0; }
.requisites__list dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding-top: .9rem; border-top: 1px solid var(--line); }
.requisites__list dt:first-child { border-top: 0; padding-top: 0; }
.requisites__list dd { margin: .15rem 0 .9rem; font-size: 1.02rem; }
@media (min-width: 700px) {
  .requisites__list { grid-template-columns: minmax(10rem, auto) 1fr; column-gap: 1.5rem; align-items: baseline; }
  .requisites__list dt { padding: .85rem 0; margin: 0; }
  .requisites__list dd { padding: .85rem 0; margin: 0; border-top: 1px solid var(--line); }
  .requisites__list dd:nth-of-type(1) { border-top: 0; }
  .requisites__list dt:first-child, .requisites__list dd:nth-of-type(1) { padding-top: 0; }
}

/* Footer */
.footer { position: relative; background: var(--footer); color: #e7eef6; padding: 3.5rem 0 3rem; font-size: .95rem; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(1px - var(--slant)); height: var(--slant);
  background: var(--footer); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.footer__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: auto 1fr; gap: 3rem; } }
.footer__logo { width: 190px; }
.footer__text p { margin: .25rem 0; }
.footer a { color: #fff; }
.footer a:hover { color: var(--teal); }

/* Reveal on scroll: pure CSS where scroll-driven animations exist; elsewhere content is simply visible. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
  .reveal:nth-child(3n + 2) { animation-range: entry 8% entry 88%; }
  .reveal:nth-child(3n) { animation-range: entry 16% entry 96%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important; transition: none !important;
  }
}

@media print {
  .header, .hero__art, .hero__bg, .contacts__actions { display: none; }
  .reveal { animation: none; }
}

/* Page 404 */
.notfound__action { margin-top: 1.75rem; }
