@font-face { font-family: "Onest"; src: url("assets/onest.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --gold: #F0B020; --gold-hi: #F0C030; --gold-deep: #805800; --on-gold: #16181B;
  --radius: 14px; --ease: cubic-bezier(.16, 1, .3, 1);
}
/* Variant A: modest. Light neutral page, near-black text, gold only on buttons and lines */
[data-variant="a"] body { --bg: #F7F7F5; --fg: #16181B; --muted: #5A5F66; --card: #FFFFFF; --line: #DCDDD8; --ph: #E7E8E4; --accent-text: var(--gold-deep); }
[data-variant="a"] body[data-bg="soft"] { --bg: #ECEEEA; --card: #FAFAF8; }
/* Doston 24.09: in the modest variant the certificate section stays white like the rest */
[data-variant="a"] body[data-bg="dark"] { --bg: #FFFFFF; --card: #FAFAF8; }
[data-variant="a"] body[data-bg="accent"] { --bg: #ECEEEA; --card: #FAFAF8; }
/* On gold backgrounds a gold button disappears: switch it to black */
[data-bg="accent"] .btn { background: #16181B; color: var(--gold-hi); }
body[data-bg="accent"] .langs button[aria-pressed="true"] { background: #16181B; color: var(--gold-hi); }
body[data-bg="accent"] .menu a.active { box-shadow: inset 0 -2px 0 #16181B; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: "Onest", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  background: var(--bg); color: var(--fg);
  transition: background-color .7s var(--ease), color .7s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
h1, h2 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 750; }
.mono { font-variant-numeric: tabular-nums; }
.sec { padding: 88px 0; }
@media (max-width: 767px) { .sec { padding: 52px 0; } h2 { margin-bottom: 14px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 "Onest", sans-serif; text-decoration: none; white-space: nowrap;
  background: var(--gold); color: var(--on-gold);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--on-gold); color: var(--gold-hi); box-shadow: 0 8px 24px rgb(22 24 27 / .18); }
[data-bg="hero"] .btn:hover, [data-bg="dark"] .btn:hover { background: #FFFFFF; color: var(--on-gold); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible, .langs button:focus-visible, .menu a:focus-visible, .work:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background-color .7s var(--ease), border-color .7s var(--ease); }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: auto; height: 40px; object-fit: contain; }
.menu { display: flex; gap: 2px; margin-left: auto; min-width: 0; }
.menu a { text-decoration: none; font-size: 14px; padding: 8px 8px; border-radius: 8px; color: var(--muted); transition: color .25s, background-color .25s; white-space: nowrap; }
.menu a:hover { color: var(--fg); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.menu a.active { color: var(--fg); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.langs { flex: none; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 "Onest"; padding: 9px 11px; cursor: pointer; transition: background-color .25s, color .25s; }
.langs button:hover { color: var(--fg); }
.langs button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
.burger { display: none; margin-left: 4px; background: transparent; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; width: 42px; height: 42px; font-size: 22px; cursor: pointer; }
@media (max-width: 1240px) {
  .menu { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); margin: 0; }
  .menu.open { transform: none; }
  .menu a { font-size: 17px; padding: 12px 8px; }
  .burger { display: inline-grid; place-items: center; }
  .langs { margin-left: auto; }
}
@media (max-width: 1360px) { .brand span { display: none; } }
@media (max-width: 1600px) and (min-width: 1241px) { .cta-top { display: none; } }
@media (max-width: 600px) { .cta-top { display: none; } }

/* ---------- Hero ---------- */
@media (prefers-reduced-motion: no-preference) { .hero-text, .hero-logo { animation: rise .9s var(--ease) both; } .hero-logo { animation-delay: .12s; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero { padding-top: 56px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.since { display: inline-block; font-weight: 600; font-size: 14px; color: var(--accent-text); border: 1px solid currentColor; border-radius: 999px; padding: 5px 14px; margin: 0 0 18px; }
.hero h1 { display: flex; flex-direction: column; gap: 10px; }
.brandline { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.tag { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--accent-text); }
.lead { color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.hero-logo img { width: 100%; height: auto; max-width: 440px; margin-left: auto; mix-blend-mode: multiply; }
[data-bg="dark"] .hero-logo img { mix-blend-mode: normal; background: #fff; border-radius: 24px; padding: 18px; }
.segs { margin-top: 56px; }
.segs-p { color: var(--muted); max-width: 70ch; }
.seg-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.seg-list li { display: flex; gap: 12px; align-items: center; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 15.5px; line-height: 1.3; transition: background-color .7s var(--ease), border-color .7s var(--ease); }
.seg-list i { font-size: 28px; color: var(--accent-text); flex: none; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { order: -1; } .hero-logo img { max-width: 280px; margin: 0 auto; }
  .seg-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .seg-list { grid-template-columns: 1fr; } }

/* ---------- Placeholders (until real photos arrive) ---------- */
.ph-img { display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 4 / 3; background: var(--ph); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; text-align: center; padding: 8px; transition: background-color .7s var(--ease); }
.ph-img i { font-size: 34px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person b { display: block; margin-top: 12px; }
.person small { color: var(--muted); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------- Work strip ---------- */
.hint { color: var(--muted); margin-top: -8px; }
.strip-wrap { position: relative; margin-top: 12px; }
.strip { --pad: max(16px, calc((100vw - 1200px) / 2 + 32px)); scroll-padding-inline: var(--pad); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--pad) 26px; scrollbar-width: thin; }
.work { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; transition: transform .45s var(--ease); }
.work .ph-img { transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .7s var(--ease); }
.work:hover, .work.is-hover { transform: translateX(6px); }
.work:hover .ph-img, .work.is-hover .ph-img { transform: scale(1.04); box-shadow: 0 14px 30px rgb(0 0 0 / .14); }
.work[aria-expanded="true"] .ph-img { outline: 3px solid var(--gold); outline-offset: 2px; }
.work-cap { padding: 12px 4px 0; }
.work-cap b { display: block; }
.work-cap small { color: var(--muted); }
.strip-nav { position: absolute; top: 40%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background-color .25s, color .25s; }
.strip-nav:hover { background: var(--gold); color: var(--on-gold); }
.strip-nav.prev { left: 12px; } .strip-nav.next { right: 12px; }
@media (max-width: 767px) { .strip-nav { display: none; } }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.detail[hidden] { display: none; }
.detail.show { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.detail-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; align-content: start; }
.detail-dl .wide { grid-column: 1 / -1; }
.detail-dl dt, .req dt { font-size: 13px; color: var(--muted); }
.detail-dl dd, .req dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 767px) { .detail { grid-template-columns: 1fr; } }

/* ---------- Cars ---------- */
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.car-info { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; font-weight: 600; font-size: 18px; }
.car-info small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.num { font-size: 48px; line-height: 1; font-weight: 800; color: var(--accent-text); }

@media (max-width: 900px) { .cars { grid-template-columns: 1fr; } .car .ph-img { aspect-ratio: 16 / 9; } }

/* ---------- Certificate ---------- */
.cert { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.cert-img img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgb(0 0 0 / .18); transition: transform .45s var(--ease); background: #fff; }
.cert-img:hover img { transform: scale(1.02) rotate(-.5deg); }
.req { margin: 0; display: grid; gap: 16px; }
.req div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.req div:last-child { border-bottom: 0; }
@media (max-width: 900px) { .cert { grid-template-columns: 1fr; } .cert-img { max-width: 420px; } }

/* ---------- About ---------- */
.about-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.about-text p { margin: 0 0 16px; max-width: 65ch; }
.princ { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.princ li { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-weight: 650; transition: transform .3s var(--ease), background-color .7s var(--ease); }
.princ li:hover { transform: translateY(-3px); }
.princ i { font-size: 30px; color: var(--accent-text); }
.slogan { line-height: 1.3; margin: 48px 0 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 650; max-width: 30ch; border-left: 4px solid var(--gold); padding-left: 20px; }
@media (max-width: 900px) { .about-cols { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.c-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.c-list li { display: flex; gap: 14px; align-items: flex-start; }
.c-list li > span { min-width: 0; overflow-wrap: anywhere; }
.c-list i { font-size: 26px; color: var(--accent-text); }
.c-list small { display: block; color: var(--muted); }
.todo { color: var(--muted); font-style: italic; font-weight: 500; }
.form { display: grid; gap: 14px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea { font: 16px "Onest", sans-serif; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--muted); background: var(--bg); color: var(--fg); }
.form input:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.f-note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact > *, .cars > *, .services > *, .about-cols > *, .cert > *, .hero-in > * { min-width: 0; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; }

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

/* ---------- Real content (photos from Doston) ---------- */
.sub { color: var(--muted); max-width: 62ch; margin: -6px 0 24px; }
h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }

.services { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.svc { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; grid-template-rows: 220px auto; }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover img { transform: scale(1.05); }
.svc > div { padding: 18px 20px 22px; }
.svc i { font-size: 26px; color: var(--accent-text); }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (min-width: 900px) { .services .svc:nth-child(2), .services .svc:nth-child(3) { grid-template-rows: 220px auto; } .svc-big { grid-template-rows: 260px auto; } .services .svc:nth-child(3) { grid-column: 1; } }
@media (max-width: 899px) { .services { grid-template-columns: 1fr; } .svc { grid-template-rows: 200px auto; } }

.team { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 14px; }
.team-ph { margin: 0; overflow: hidden; border-radius: var(--radius); }
.team-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-ph:hover img { transform: scale(1.04); }
.team-ph.wide { grid-row: span 2; }
@media (max-width: 767px) { .team { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .team-ph.wide { grid-column: span 2; grid-row: span 2; } }

.work-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--ph); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work:hover .work-img, .work.is-hover .work-img { transform: scale(1.04); box-shadow: 0 14px 30px rgb(0 0 0 / .16); }
.work[aria-expanded="true"] .work-img { outline: 3px solid var(--gold); outline-offset: 2px; }
.work-cap b { font-size: 16px; line-height: 1.3; }
.detail-media { display: grid; gap: 10px; }
.detail-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.detail-thumbs { display: flex; gap: 8px; }
.detail-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 76px; height: 56px; cursor: pointer; background: none; }
.detail-thumbs button.on { border-color: var(--gold); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 24px; margin-bottom: 14px; }

.cars { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.cars-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.car-tiles { display: grid; gap: 12px; }
.car-tile { display: grid; grid-template-columns: 40px 70px 1fr; align-items: center; gap: 10px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 18px; }
.car-tile i { font-size: 30px; color: var(--accent-text); }
.car-tile small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
@media (max-width: 899px) { .cars { grid-template-columns: 1fr; } .cars-photo { min-height: 0; aspect-ratio: 4 / 3; } }

.tel { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--fg); }
.tel:hover { color: var(--accent-text); }
.call-card { display: grid; gap: 14px; justify-items: center; align-content: center; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.call-card img { width: 180px; height: auto; }
.btn-wide { width: 100%; max-width: 360px; white-space: normal; text-align: center; line-height: 1.3; flex-wrap: wrap; justify-content: center; column-gap: 8px; row-gap: 2px; }
.btn-wide span { white-space: nowrap; }
@media (max-width: 480px) { .call-card { padding: 20px 14px; } .btn-wide { font-size: 15px; padding: 14px 16px; } }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.hero-logo img { mix-blend-mode: normal; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .12)); }

/* ---------- Mobile polish ---------- */
.fab-call { display: none; }
@media (max-width: 767px) {
  .fab-call { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 25; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 26px; text-decoration: none; box-shadow: 0 10px 24px rgb(0 0 0 / .22); }
  .fab-call:active { transform: scale(.95); }
  .call-label { display: none; }
  .hero { padding-top: 32px; }
  .segs { margin-top: 36px; }
  .brandline { font-size: 32px; }
  .tag { font-size: 20px; }
  .lead { font-size: 16px; }
  .work { flex-basis: 82vw; }
  .detail { padding: 16px; }
  .detail-title { font-size: 20px; }
  .detail-dl { grid-template-columns: 1fr; gap: 10px; }
  .princ li { padding: 16px; }
  .slogan { margin-top: 32px; font-size: 20px; }
  .foot { padding-bottom: 88px; }
  a, button { -webkit-tap-highlight-color: transparent; }
}

/* ---------- Motion design (progressive: content is always visible without it) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.bg-fx span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: radial-gradient(circle, #F5C542, transparent 65%); }
.bg-fx span:nth-child(2) { width: 38vmax; height: 38vmax; right: -14vmax; top: 30vh; background: radial-gradient(circle, #F0B020, transparent 65%); opacity: .22; }
.bg-fx span:nth-child(3) { width: 34vmax; height: 34vmax; left: 30vw; bottom: -18vmax; background: radial-gradient(circle, #E9D9B0, transparent 65%); opacity: .4; }
body[data-bg="dark"] .bg-fx span { opacity: .12; }

.stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 34px; flex-wrap: wrap; }
.stats li { display: grid; gap: 2px; }
.stats b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--muted); }
.stats li + li { padding-left: 34px; border-left: 1px solid var(--line); }
@media (max-width: 767px) { .stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 16px; } .stats li + li { padding-left: 16px; } .stats b { font-size: 26px; } .stats span { font-size: 12.5px; } }

.marquee { overflow: hidden; padding: 8px 0 12px; }
.marquee .track { display: flex; gap: 14px; width: max-content; }
.marquee img { height: 170px; width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
@media (max-width: 767px) { .marquee img { height: 110px; } }

h2 { position: relative; }
h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 12px; border-radius: 2px; background: var(--gold); transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  .bg-fx span:nth-child(1) { animation: drift1 28s ease-in-out infinite alternate; }
  .bg-fx span:nth-child(2) { animation: drift2 34s ease-in-out infinite alternate; }
  .bg-fx span:nth-child(3) { animation: drift3 40s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(-22vw, 18vh) scale(.9); } }
  @keyframes drift3 { to { transform: translate(-16vw, -30vh) scale(1.2); } }

  .hero-logo img { animation: rise .9s var(--ease) both, float 7s ease-in-out 1s infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1.2deg); } }

  .marquee .track { animation: marquee 60s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  .work-img img, .team-ph img, .cars-photo, .svc img { transition: transform .8s var(--ease); }
  .work:hover .work-img img { transform: scale(1.08); }

  @supports (animation-timeline: view()) {
    .svc img { animation: parallax linear both; animation-timeline: view(); scale: 1.14; }
    @keyframes parallax { from { translate: 0 -6%; } to { translate: 0 6%; } }
  }
}

/* Sections behave like slides on large screens */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .sec { scroll-snap-align: start; }
}

/* ---------- Motion v2: JS-driven, works in Safari and the Telegram browser ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: linear-gradient(90deg, #F0B020, #F5C542); transform-origin: left; transform: scaleX(0); }
.bg-fx span { opacity: .55; }
.bg-fx span:nth-child(2) { opacity: .4; }

/* Splash: shown once per session, removed by JS; hidden entirely if JS is off */
.splash { display: none; }
.js .splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 60; background: #F7F7F5; animation: sp-out .8s 3.2s cubic-bezier(.7, 0, .2, 1) both; pointer-events: none; }
.splash img { width: min(46vw, 260px); height: auto; }
.splash i { display: block; width: 0; height: 3px; margin: 18px auto 0; background: var(--gold); border-radius: 2px; }
.splash.go img { animation: sp-logo 1s var(--ease) both; }
.splash.go i { animation: sp-line .9s .3s var(--ease) both; }
.js .splash.out { animation: sp-out .8s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes sp-logo { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes sp-line { to { width: 140px; } }
@keyframes sp-out { to { clip-path: inset(0 0 100% 0); } }

/* Reveal: elements are hidden only after JS has confirmed it can show them again */
.js-anim [data-anim] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js-anim [data-anim="up"] { transform: translateY(60px); }
.js-anim [data-anim="left"] { transform: translateX(-60px); }
.js-anim [data-anim="right"] { transform: translateX(60px); }
.js-anim [data-anim="zoom"] { transform: scale(.88); filter: blur(6px); }
.js-anim [data-anim="wipe"] { opacity: 1; clip-path: inset(100% 0 0 0); transform: scale(1.06); }
.js-anim [data-anim].on { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }
.js-anim h2::after { transform: scaleX(0); transition: transform 1s .25s var(--ease); }
.js-anim h2.on::after { transform: scaleX(1); }

/* Hero headline word by word */
.w { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(8px); animation: word .8s var(--ease) both; animation-delay: calc(var(--i) * 90ms + var(--base, 0ms)); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }

/* Glow behind the logo */
.hero-logo { position: relative; }
.hero-logo::before { content: ""; position: absolute; inset: 8% 8%; border-radius: 50%; background: conic-gradient(from 0deg, rgb(240 176 32 / .0), rgb(240 176 32 / .45), rgb(245 197 66 / .0), rgb(240 176 32 / .35), rgb(240 176 32 / .0)); filter: blur(34px); z-index: -1; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Button shine */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.6s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Cards lift */
.svc, .princ li, .car-tile, .seg-list li { transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .7s var(--ease); }
.svc:hover, .princ li:hover, .car-tile:hover, .seg-list li:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgb(22 24 27 / .12); }

@media (prefers-reduced-motion: reduce) {
  .js .splash { display: none; }
  .js-anim [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .w { opacity: 1; transform: none; filter: none; animation: none; }
  .hero-logo::before, .btn::after { animation: none; display: none; }
}
.no-anim .splash { display: none !important; }
.no-anim [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
.no-anim .w { opacity: 1 !important; transform: none !important; filter: none !important; }
