@font-face {
  font-family: Inter;
  src: url("fonts/Inter_1.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #051f32;
  --gray: #8c949f;
  --ink: #1c1c20;
  --red: #e50603;
  --gutter: clamp(24px, 12.5vw, 240px);
  --section-space: clamp(56px, 4.6875vw, 90px);
  --heading-size: clamp(40px, 3.645833vw, 70px);
  --hero-height: clamp(710px, 48.958333vw, 940px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--navy); font: 500 18px/1.4 Inter, Arial, sans-serif; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: contain; }
button:focus-visible, a:focus-visible { outline: 3px solid #e50603; outline-offset: 6px; }
[hidden] { display: none !important; }
.container { width: calc(100% - var(--gutter) * 2); max-width: 1440px; margin-inline: auto; }
h1, h2 { font-size: var(--heading-size); font-weight: 800; line-height: 1; text-transform: uppercase; }
.eyebrow { margin-bottom: 8px; color: var(--gray); font-size: 20px; line-height: 24px; text-transform: uppercase; }
.body-copy { font-size: 18px; line-height: 25px; }
.body-copy p + p { margin-top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: white; color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* Header overlays the first screen, exactly as in the source design. */
.site-header { position: absolute; z-index: 5; width: 100%; background: rgb(0 0 0 / 50%); color: white; }
.header-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-logo { flex: 0 0 206px; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 4.166667vw, 80px); }
.site-nav a { font-size: 20px; line-height: 24px; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover { color: var(--red); }
.menu-toggle { display: none; }

/* Four original banners; the text remains real, selectable HTML. */
.hero { position: relative; min-height: var(--hero-height); overflow: hidden; color: white; }
.hero-slides { display: grid; }
.hero-slide { position: static; grid-area: 1 / 1; min-width: 0; }
.hero-slide[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-photo--factory { background-image: url("assets/hero-factory.webp"); background-position: 33.48624% center; }
.hero-photo--trucks { background-image: url("assets/hero-trucks.webp"); }
.hero-photo--pistons { background-image: url("assets/hero-pistons.webp"); }
.hero-photo--warehouse { background-image: url("assets/hero-warehouse.webp"); }
.hero-shade { position: absolute; inset: 49.574468% 0 0; background: url("assets/hero-shade.svg") center / 100% 100% no-repeat; }
.hero-shade--trucks { background-image: url("assets/trucks-shade.svg"); }
.hero-shade--warehouse { background-image: url("assets/warehouse-shade.svg"); }
.hero-content { position: relative; padding-top: calc(var(--hero-height) * .571276596); }
.hero-content h1, .hero-content h2 { max-width: 900px; margin-bottom: 16px; }
.hero-content p { max-width: 852px; font-size: 20px; line-height: 28px; }
.hero-content--narrow p { max-width: 760px; }
.hero-controls { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 16px; margin-top: 19px; padding-bottom: 84px; }
.slide-dots { display: flex; gap: 12px; width: fit-content; }
.slide-dot { position: relative; width: 48px; height: 32px; padding: 0; border: 0; background: none; }
.slide-dot::before { content: ""; display: block; width: 100%; height: 6px; border-radius: 100px; background: var(--gray); }
.slide-dot.is-active::before { background: var(--red); }
.slideshow-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--gray); }
.slideshow-toggle:hover { color: white; }
.slideshow-toggle span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.slideshow-toggle[aria-pressed="true"] span { width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 10px solid currentColor; }
.hero.is-transitioning .hero-slide.is-active .hero-photo { animation: photo-fade 600ms ease both; }
.hero.is-transitioning .hero-slide.is-active .hero-content { animation: copy-enter 450ms ease both; }
@keyframes photo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes copy-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.reveal-ready { transition: opacity 550ms ease, transform 550ms cubic-bezier(.2, .65, .3, 1); }
.reveal-pending { opacity: 0; transform: translateY(12px); }

.engineering { padding-block: var(--section-space); color: white; background: var(--navy); }
.engineering-grid { display: grid; grid-template-columns: 710fr 666fr; align-items: start; gap: clamp(32px, 3.333333vw, 64px); }
/* Clean source photos fill each frame without changing their proportions. */
.engineering-photo { aspect-ratio: 710 / 409; border-radius: 20px; background: url("assets/engineering.webp") center / cover no-repeat; }
.engineering-content h2 { max-width: 528px; margin-bottom: 16px; }
.engineering-features { display: flex; gap: 32px; margin-top: 32px; }
.engineering-features li { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
.engineering-features img { flex: 0 0 56px; }
.engineering-features span { color: var(--gray); font-size: 14px; line-height: 17px; }

.technology { padding-block: var(--section-space) clamp(56px, 5.208333vw, 100px); background: white; }
.technology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: 20px; row-gap: 32px; }
.technology-heading { align-self: start; padding-top: 4px; }
.technology-description { max-width: 760px; margin-top: 24px; }
.technology-thumbnails { display: grid; grid-template-columns: 223fr 224fr 223fr; gap: 20px; align-self: end; aspect-ratio: 710 / 183; margin-bottom: 4px; }
.technology-photo { border-radius: 20px; background-repeat: no-repeat; }
.technology-thumbnails .technology-photo { min-width: 0; }
.technology-photo--machining { background-image: url("assets/machining.webp"); background-size: cover; background-position: 27.456% 49.955%; }
.technology-photo--production { background-image: url("assets/production.webp"); background-size: cover; background-position: 18.959% 90.322%; }
.technology-photo--components { background-image: url("assets/components.webp"); background-size: cover; background-position: 9.477% 62.497%; }
.technology-photo--main { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 710 / 420; background-image: url("assets/technology.webp"); background-size: cover; background-position: 49.997% 4.528%; }
@media (min-width: 1201px) {
  .technology-photo--main { aspect-ratio: auto; align-self: stretch; }
  .technology-thumbnails { margin-bottom: 0; }
}

.brands { padding-block: var(--section-space); background: var(--gray); color: white; }
.brands-heading { margin-bottom: 24px; text-align: right; }
.brands .eyebrow { color: white; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 426px)); justify-content: space-between; gap: 32px; }
.brand-card { border-radius: 16px; overflow: hidden; background: white; box-shadow: 8px 8px 20px rgb(0 0 0 / 24%); }
.brand-art { aspect-ratio: 426 / 139; display: flex; align-items: center; justify-content: center; background-size: 100% 100%; }
.brand-art img { width: 79.342723%; height: auto; }
.brand-art--feres { background-image: url("assets/feres-gradient.svg"); }
.brand-art--torven { background-image: url("assets/torven-gradient.svg"); }
.brand-art--silida { background-image: url("assets/silida-gradient.svg"); }
.brand-caption { min-height: 137px; padding: 24px 8px 32px; text-align: center; }
.brand-caption h3 { display: flex; align-items: start; justify-content: center; gap: 4px; color: var(--ink); font-size: 28px; font-weight: 700; line-height: 28px; }
.brand-caption h3 span { font-size: 24px; line-height: 24px; }
.brand-caption p { margin-top: 8px; color: var(--gray); font-size: 24px; font-weight: 400; line-height: 29px; }

.logistics-area { position: relative; min-height: min(56.25vw, 1080px); overflow: hidden; background: #041f33; color: white; }
.logistics-photo { position: absolute; inset: 0; background: url("assets/logistics.webp") center top / cover no-repeat; }
.logistics-shade { position: absolute; top: 0; left: 0; width: 970px; height: 539px; background: url("assets/logistics-shade.svg") center / 100% 100% no-repeat; }
.logistics-inner { position: relative; padding-top: var(--section-space); }
.logistics-content { width: 487px; max-width: 100%; }
.logistics-content .eyebrow { color: white; }
.logistics-content h2 { margin-bottom: 16px; }
.site-footer { width: 260px; margin-top: clamp(48px, 8.28125vw, 159px); padding-bottom: 56px; color: var(--gray); font-size: 14px; line-height: 17px; }
.copyright { margin-top: 16px; line-height: 17px; }
.copyright span { display: inline-block; margin-top: 4px; padding-left: 15px; }
.site-footer address { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; font: inherit; }
.site-footer strong { font-weight: 800; }
.language-switch { display: flex; gap: 8px; margin-top: 24px; }
.language-switch a:hover, .language-switch [aria-current="page"] { color: white; }

/* The artwork keeps its native scale on ultrawide screens; only the dark side gutters grow. */
@media (min-width: 1921px) {
  .logistics-photo { inset: 0 auto 0 50%; width: 1921px; transform: translateX(-50%); background-size: cover; background-position: center top; mask-image: linear-gradient(to right, transparent, black 90px, black calc(100% - 90px), transparent); }
  .logistics-shade { left: calc(50% - 960px); }
}

/* Tablet: keep readable typography as the desktop columns narrow. */
@media (max-width: 1500px) {
  :root { --gutter: clamp(32px, 7vw, 105px); }
  .site-nav { gap: clamp(24px, 3vw, 45px); }
  .site-nav a { font-size: 17px; }
  .header-inner { min-height: 104px; }
  .engineering-features { gap: 16px; }
  .engineering-features img { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-caption h3 { font-size: 24px; }
  .brand-caption p { font-size: 20px; line-height: 24px; }
  .logistics-photo { background-position: 55% top; }
}
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .header-inner { min-height: 88px; }
  .site-logo { flex-basis: 170px; }
  .site-logo img { height: auto; }
  .site-nav { gap: 24px; }
  .site-nav a { font-size: 14px; }
  .engineering-grid { align-items: center; }
  .engineering-features { flex-direction: column; gap: 12px; margin-top: 24px; }
  .brand-grid { gap: 20px; }
  .brand-caption p { font-size: 17px; }
  .brand-caption { min-height: 120px; }
  .hero-content { padding-top: 370px; }
  .hero-content p { max-width: 760px; }
  .hero-controls { padding-bottom: 42px; }
}
@media (max-width: 767px) {
  :root { --gutter: 24px; --heading-size: 32px; --section-space: 56px; --hero-height: 710px; }
  body { font-size: 16px; }
  .eyebrow { font-size: 18px; line-height: 22px; }
  .body-copy { font-size: 16px; line-height: 22px; }
  .header-inner { min-height: 64px; gap: 16px; }
  .site-logo { flex-basis: 132px; }
  .site-logo img { width: 132px; height: 32px; }
  .menu-toggle { display: grid; place-items: center; position: relative; width: 40px; height: 40px; padding: 8px; margin-right: -8px; border: 0; background: transparent; }
  .site-header { z-index: 10; }
  .site-header::before { content: ""; position: fixed; inset: 0; background: var(--navy); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms ease, visibility 280ms; }
  .header-inner { position: relative; }
  .site-logo, .menu-toggle { position: relative; z-index: 2; }
  .menu-toggle img { filter: brightness(0) invert(1); transition: opacity 200ms ease, transform 240ms ease; }
  .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; width: 20px; height: 2px; background: white; opacity: 0; transform: rotate(0); transition: opacity 200ms ease, transform 240ms ease; }
  .menu-toggle[aria-expanded="true"] img { opacity: 0; transform: rotate(90deg) scale(.6); }
  .menu-toggle[aria-expanded="true"]::before { opacity: 1; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { opacity: 1; transform: rotate(-45deg); }
  .menu-open { overflow: hidden; padding-right: var(--scrollbar-width, 0px); }
  .menu-open .site-header { position: fixed; inset: 0 0 auto; width: calc(100% - var(--scrollbar-width, 0px)); }
  .menu-open .site-header::before { opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav { display: flex; align-items: stretch; flex-direction: column; gap: 0; position: absolute; top: 88px; inset-inline: 0; max-height: calc(100dvh - 88px); padding: 0 0 24px; overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity 240ms ease, transform 280ms ease, visibility 280ms; }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding-block: 8px; font-size: 18px; line-height: 24px; }
  .hero { display: flex; flex-direction: column; justify-content: flex-end; height: 100vh; height: 100dvh; min-height: 0; }
  .hero-slides, .hero-controls { flex-shrink: 0; }
  .hero-slide { align-self: end; }
  .hero-content { padding-top: 0; }
  .hero-content p { max-width: 560px; font-size: 16px; line-height: 22px; }
  .hero-content h1, .hero-content h2 { font-size: 32px; }
  :lang(ru) .hero-content h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .hero-content h2 { overflow-wrap: anywhere; }
  .hero-shade, .hero-shade--trucks, .hero-shade--warehouse { inset: 40% 0 0; background-image: url("assets/mobile-shade.svg"); }
  .hero-controls { margin-top: 11px; padding-bottom: clamp(24px, 6.2vh, 44px); }
  .slide-dot { width: 40px; }
  .engineering-grid { grid-template-columns: 1fr; gap: 64px; }
  .engineering-photo { width: 100%; aspect-ratio: 328 / 189; }
  .engineering-content h2 { max-width: 100%; margin-bottom: 12px; }
  .engineering-features { margin-top: 20px; }
  .engineering-features img { width: 56px; height: 56px; flex-basis: 56px; }
  .technology-grid { grid-template-columns: 1fr; gap: 8px; }
  .technology-heading { padding-top: 0; margin-bottom: 8px; }
  .technology-thumbnails { grid-template-columns: 1fr; gap: 8px; aspect-ratio: auto; margin-bottom: 0; }
  .technology-thumbnails .technology-photo { aspect-ratio: 328 / 194; }
  .technology-photo--machining { background-size: cover; background-position: 45.454% 50%; }
  .technology-photo--production { background-size: cover; background-position: 18.2896% 50%; }
  .technology-photo--components { background-size: cover; background-position: 7.524% 49.995%; }
  .technology-photo--main { grid-column: auto; grid-row: auto; aspect-ratio: 328 / 194; }
  .brands-heading { margin-bottom: 16px; }
  .brand-grid { grid-template-columns: 1fr; gap: 8px; }
  .brand-card { width: 100%; max-width: 426px; justify-self: center; }
  .brand-art { aspect-ratio: 426 / 139; }
  .brand-art--feres { aspect-ratio: 328 / 106.277; }
  .brand-caption { min-height: 108px; padding: 24px 8px 32px; }
  .brand-caption h3 { font-size: 20px; line-height: 24px; }
  .brand-caption p { margin-top: 4px; font-size: 20px; line-height: 24px; }
  .logistics-area { min-height: 0; }
  .logistics-photo { inset: 0 auto auto; left: calc(50% + 78px); transform: translateX(-50%); width: 1108px; height: 623px; background-size: cover; }
  .logistics-shade { display: none; }
  .logistics-inner { padding-top: 480px; }
  .logistics-content { width: 100%; }
  .logistics-content h2 { margin-bottom: 12px; }
  .site-footer { margin-top: 80px; }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; }
}
/* Four equal gallery tiles work better than three tiny crops beside one large image. */
@media (min-width: 600px) and (max-width: 1200px) {
  .technology-grid { grid-template-columns: 1fr 1fr; }
  .technology-heading { grid-column: 1 / -1; padding-top: 0; margin-bottom: 16px; }
  .technology-thumbnails { display: contents; }
  .technology-photo, .technology-thumbnails .technology-photo { grid-column: auto; grid-row: auto; aspect-ratio: 328 / 194; background-size: cover; background-position: center; }
}
/* Shared heading, a balanced image/text row, then a full-width row of benefits. */
@media (min-width: 768px) and (max-width: 1500px) {
  .engineering-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 0; align-items: start; }
  .engineering-content { display: contents; }
  .engineering-content .eyebrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: 8px; }
  .engineering-content h2 { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 24px; }
  .engineering-photo { grid-column: 1; grid-row: 3; align-self: stretch; min-height: 250px; aspect-ratio: auto; background-size: cover; background-position: center; }
  .engineering-content .body-copy { grid-column: 2; grid-row: 3; font-size: 16px; line-height: 23px; }
  .engineering-features { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
  .engineering-features img { width: 48px; height: 48px; flex-basis: 48px; }
}
@media (min-width: 768px) and (max-width: 1200px) {
  .logistics-area { min-height: 0; }
  .logistics-photo { inset: 0 0 auto; height: 430px; background-size: cover; background-position: center; mask-image: linear-gradient(black 70%, transparent); }
  .logistics-shade { display: none; }
  .logistics-inner { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 440px; padding-bottom: 48px; }
  .logistics-content { width: auto; }
  .site-footer { margin-top: 0; padding-bottom: 0; align-self: end; }
}
@media (max-width: 359px) {
  .hero-content h1, .hero-content h2 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .eyebrow { font-size: 16px; }
}
@media (max-width: 767px) and (max-height: 480px) {
  .hero-content h1, .hero-content h2 { font-size: 26px; margin-bottom: 12px; }
  .hero-content p { font-size: 14px; line-height: 19px; }
  :lang(ru) .hero-content h1, :lang(ru) .hero-content h2 { font-size: 24px; }
  .hero-controls { padding-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
