:root {
  --bg: #0d0d0f;
  --bg-alt: #131316;
  --surface: #1a1a1f;
  --line: #2a2a31;
  --text: #ecebe8;
  --muted: #a3a3ac;
  --red: #e8141b;
  --red-hi: #ff3b3b;
  --radius: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; font-weight: 500; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 400; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--red-hi); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 4px; }

.sprite { display: none; }
svg use { fill: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { color: var(--red-hi); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 500; margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* icons drawn as strokes */
.tiles svg, .branch__ico, .col__ico, .sti__ico, .contact__list svg, .btn svg, .nav__tel svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  font: 500 1rem var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #c70f15; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--red-hi); }
.btn:active { transform: translateY(1px); }

/* header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(13 13 15 / .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand span { font-size: 1.45rem; letter-spacing: .28em; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a:not(.nav__tel) { position: relative; }
.nav a:not(.nav__tel)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: none; }
.nav .nav__tel { display: inline-flex; align-items: center; gap: .45em; color: var(--text); border: 1px solid var(--line); padding: .6em 1.15em; border-radius: 999px; }
.nav__tel svg { width: 16px; height: 16px; color: var(--red-hi); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 45%, rgb(232 20 27 / .16), transparent 70%),
    repeating-radial-gradient(circle at 78% 45%, transparent 0 46px, rgb(255 255 255 / .035) 47px 48px);
}
.hero__in { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; min-height: min(86vh, 760px); padding-block: 4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__mark svg { width: 100%; fill: var(--red); overflow: visible; }
.hero__mark svg { overflow: visible; }
.hero__mark .core { transform-origin: 430px 185px; animation: core-in .6s var(--ease) both, spin 18s linear .6s infinite; }
.hero__mark .w1, .hero__mark .w2 { transform-origin: 430px 185px; }
.hero__mark .w1 { animation: arc-in .8s var(--ease) .25s both, pulse 2.4s ease-in-out 1.6s infinite; }
.hero__mark .w2 { animation: arc-in .8s var(--ease) .45s both, pulse 2.4s ease-in-out 1.9s infinite; }
.hero__mark .ripple { fill: none; stroke: var(--red); stroke-width: 3; transform-origin: 430px 185px; opacity: 0; animation: ripple 1.8s ease-out both; }
.hero__mark .ripple--2 { animation-delay: .25s; }
.hero.is-paused .hero__mark * { animation-play-state: paused; }
@keyframes core-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes arc-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes ripple { 0% { opacity: 0; transform: scale(.5); } 15% { opacity: .55; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero__text > * { animation: rise .8s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .12s; }
.hero__text > :nth-child(3) { animation-delay: .24s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* branches */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: -1rem; position: relative; }
.branch {
  overflow: hidden; position: relative; display: block; padding: 2.2rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.branch__img { width: calc(100% + 4.4rem); max-width: none; height: auto; margin: -2.2rem -2.2rem 1.5rem; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; filter: saturate(.9); }
.branch__img { transition: transform .7s var(--ease); }
.branch:hover .branch__img { transform: scale(1.05); }
.branch:hover { border-color: var(--red); transform: translateY(-3px); }
.branch__num { position: absolute; top: 1.2rem; z-index: 1; text-shadow: 0 1px 8px #000; right: 2rem; color: var(--text); font-size: 2.6rem; font-weight: 300; }
.branch__ico { width: 40px; height: 40px; color: var(--red-hi); margin-bottom: 1.2rem; }
.branch p { color: var(--muted); }
.branch__more { color: var(--red-hi); font-weight: 500; }

.banner { margin: 0 0 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.banner img { width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; }

/* sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 3rem; max-width: 760px; }

.tiles { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tiles li { background: var(--bg); padding: 2rem; }
.tiles svg { width: 34px; height: 34px; color: var(--red-hi); margin-bottom: 1rem; }
.tiles p { color: var(--muted); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.facts > div { position: relative; padding-top: 1.2rem; }
.facts > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); transform-origin: left; }
.facts p { color: var(--muted); font-size: .97rem; }

.cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.col__ico { width: 34px; height: 34px; color: var(--red-hi); margin-bottom: 1rem; }
.col__intro { color: var(--muted); margin-bottom: .4rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { position: relative; padding: .45rem 0 .45rem 1.3rem; border-bottom: 1px solid var(--line); color: #d6d5d2; font-size: .97rem; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.sti {
  margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(110deg, rgb(232 20 27 / .18), rgb(232 20 27 / .04) 60%), var(--surface);
  border: 1px solid rgb(232 20 27 / .45);
}
.sti__ico { width: 48px; height: 48px; color: var(--red-hi); stroke-dasharray: 90; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) .2s; }
.sti p { color: #d6d5d2; margin: 0; }
.sti strong { color: var(--text); font-weight: 600; }

.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.about p { color: #d6d5d2; }
.stats { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--bg); padding: 1.6rem 2rem; display: flex; align-items: baseline; gap: 1.2rem; }
.stats dt { font-size: 2.8rem; font-weight: 300; color: var(--red-hi); min-width: 3.2ch; }
.stats dd { margin: 0; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.15rem; }
.contact__list svg { width: 22px; height: 22px; color: var(--red-hi); flex: none; margin-top: .25em; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--red-hi); }
.contact__legal { color: var(--muted); font-size: .9rem; }

.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .8em 1em;
  transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red-hi); }
.form .check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; }
.form .check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--red); flex: none; }
.form .check a { color: var(--text); }
.form .btn { justify-self: start; }
.form__status { margin: 0; padding: .9em 1.1em; border-radius: 10px; border: 1px solid; }
.form__status:not([hidden]) { animation: rise .35s var(--ease) both; }
.form__status.ok { border-color: #2e9e5b; background: rgb(46 158 91 / .12); }
.form__status.err { border-color: var(--red); background: rgb(232 20 27 / .12); }
.hp { position: absolute !important; left: -9999px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .9rem; }
.footer__top, .footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer p { margin: 0; }
.footer a:not(.brand) { text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.footer a:not(.brand):hover { color: var(--text); }
.footer .brand span { font-size: 1.1rem; color: var(--text); }

/* simple document page (privacy policy) */
.doc { max-width: 760px; padding-block: 4rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2rem; }
.doc p, .doc li { color: #d6d5d2; }

/* scroll reveals: hidden state exists only with JS, so the page never depends on it */
.js .tiles li { opacity: 0; transform: translateY(14px); }
.js .tiles li.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .facts > div::before { transform: scaleX(0); }
.js .facts > div.in::before { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
.js .sti:not(.in) .sti__ico { stroke-dashoffset: 90; }

.js .rv { opacity: 0; transform: translateY(16px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .sti.rv { transform: none; }

/* scroll-linked motion: progressive enhancement, browsers without scroll timelines just skip it */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); }
  .hero__mark { animation: mark-away linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  .banner img { animation: img-drift linear both; animation-timeline: view(); }
  .about .stats { animation: drift-up linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes mark-away { to { transform: translateY(-50px) scale(.94); opacity: .35; } }
@keyframes img-drift { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
@keyframes drift-up { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }

/* responsive */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; gap: 2rem; padding-block: 3rem 4rem; }
  .hero__mark { order: -1; width: min(70%, 360px); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1.2rem;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .nav__tel { margin-top: 1rem; justify-content: center; border: 1px solid var(--line); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .branches, .tiles, .facts, .form__row { grid-template-columns: 1fr; }
  .branch, .col, .form, .tiles li { padding: 1.5rem; }
  .branch__img { width: calc(100% + 3rem); margin: -1.5rem -1.5rem 1.2rem; }
  .sti { grid-template-columns: 1fr; }
  .sti .btn { justify-self: start; }
  .stats div { padding: 1.2rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__mark .core, .hero__mark .w1, .hero__mark .w2, .hero__mark .ripple { animation: none; opacity: 1; }
  .hero__mark .ripple { display: none; }
  .hero__text > * { animation: fade .3s both; }
  .js .tiles li { transform: none; }
  .js .tiles li.in { transition: opacity .3s; transition-delay: 0s; }
  .js .facts > div::before { transform: none; }
  .js .sti:not(.in) .sti__ico { stroke-dashoffset: 0; }
  .branch:hover, .branch:hover .branch__img { transform: none; }
  .nav, .nav.is-open { transform: none; }
  .js .rv { transform: none; }
  .js .rv.in { transition: opacity .3s; transition-delay: 0s; }
  .progress, .hero__mark, .banner img, .about .stats { animation: none !important; }
  .progress { display: none !important; }
  .form__status:not([hidden]) { animation: fade .3s both; }
}
