@font-face {
  font-family: Manrope;
  src: url("manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ground: #11161c;
  --surface: #19222c;
  --ink: #f4f6f9;
  --muted: #b9c6d5;
  --blue: #80bbff;
  --line: #34414f;
  --action-ink: #101820;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  background: var(--ground);
  color: var(--ink);
  font: 1rem / 1.5 Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: var(--action-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.wrap {
  width: min(80rem, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: .65rem;
  left: .65rem;
  translate: 0 calc(-100% - .9rem);
  padding: .65rem 1rem;
  border-radius: .4rem;
  background: var(--blue);
  color: var(--action-ink);
  font-weight: 800;
}

.skip-link:focus { translate: 0; }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "brand contacts language";
  align-items: center;
  justify-content: space-between;
  gap: clamp(.75rem, 2.5vw, 2rem);
  min-height: 4.75rem;
  direction: ltr;
}

.brand { grid-area: brand; justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { display: block; width: 94px; height: auto; }

.header-contacts { grid-area: contacts; display: flex; align-items: center; gap: .65rem; font-size: .95rem; font-weight: 750; }
.contact-icon { flex: none; color: var(--blue); }
.header-contacts .contact-chip { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .45rem .7rem; border: 1px solid #435366; border-radius: .5rem; background: #151e27; white-space: nowrap; }
.header-contacts .contact-chip:hover { border-color: var(--blue); color: var(--blue); background: #1c2b3b; }
.header-contacts .telegram-link { color: var(--blue); }
.header-contacts .telegram-link:hover { color: #b8d9ff; }
.language-nav { grid-area: language; position: relative; z-index: 4; }
.language-picker { font-size: .95rem; }

.language-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #151e27;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary, .language-picker summary:hover { border-color: var(--blue); }
.picker-chevron { width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -.1rem; }
.language-picker[open] .picker-chevron { rotate: 225deg; translate: 0 .1rem; }

.language-options {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #17212c;
  box-shadow: 0 .9rem 2rem #05090eb3;
  list-style: none;
}

.language-options a { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2.75rem; padding: .5rem .65rem; border-radius: .35rem; }
.language-options a:hover { background: #233345; }
.language-options a[aria-current="page"] { color: var(--blue); background: #1e3043; }
.language-code { color: var(--muted); font-size: .875rem; }

.landing { padding-bottom: clamp(1.1rem, 4vw, 3.5rem); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #101821;
  box-shadow: 0 1rem 3rem #080d1440;
}

.hero-visual { position: absolute; z-index: -1; inset: 0; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101821f5 0%, #101821cd 24%, #10182122 64%, #10182100 80%);
}

.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(17rem, 31vw, 26rem);
  padding: clamp(1.35rem, 5.5vw, 4.25rem);
  direction: ltr;
}

.hero-copy { max-width: min(34rem, 65%); direction: ltr; }

.hero h1 {
  font-size: clamp(2.85rem, 6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.01;
}

.hero-dot { color: var(--blue); }

.hero-intro {
  max-width: 37ch;
  margin-top: clamp(.65rem, 1.5vw, 1.15rem);
  color: #d7e2ef;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  font-weight: 650;
  line-height: 1.5;
}

.services { margin-top: clamp(1rem, 2.2vw, 1.75rem); }

.section-title {
  margin-bottom: .65rem;
  font-size: clamp(1.05rem, 1.65vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.55rem, 1.1vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-grid li { min-width: 0; }

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  transition: background-color .18s, border-color .18s;
}

.service-card:is(:hover, :focus-visible) { border-color: #5b8ab8; background: #223245; }

.service-media {
  display: block;
  aspect-ratio: 2.35;
  background-color: #233140;
  background-position: center;
  background-size: cover;
}

.service-media--import {
  background-image: linear-gradient(0deg, #131b2766, #131b2700 56%), url("import.jpg");
  background-position: 63% 55%;
}

.service-media--parts {
  background-image: url("parts-graphite.jpg");
  background-position: right center;
}

.service-media--certificates {
  background-image: linear-gradient(0deg, #131b2755, #131b2700 70%), url("certificates.jpg");
  background-position: 76% 66%;
}

.service-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: clamp(4.25rem, 7vw, 6rem);
  padding: clamp(.7rem, 1.45vw, 1.25rem);
}

.service-copy { min-width: 0; display: flex; flex-direction: column; align-self: stretch; }

.service-copy h3 {
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.service-copy p {
  margin-top: .25rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.service-action {
  display: block;
  margin-top: auto;
  color: var(--blue);
  font-size: .95rem;
  font-weight: 800;
}

.service-card:is(:hover, :focus-visible) .service-action { text-decoration: underline; text-underline-offset: .2em; }

.site-footer { border-top: 1px solid var(--line); background: #0f151c; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-block: 1.5rem;
}

.footer-inner h2 { color: var(--ink); font-size: 1rem; font-weight: 750; }
.footer-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem clamp(1.25rem, 4vw, 3rem); font-style: normal; }
.footer-contacts a { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; color: var(--ink); font-size: 1rem; font-weight: 700; }
.contact-details { display: flex; flex-direction: column; gap: .2rem; }
.footer-contacts a:hover { color: var(--blue); }
.contact-label { color: var(--muted); font-size: .875rem; font-weight: 550; }

@media (max-width: 600px) {
  .header-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand language" "contacts contacts"; column-gap: 1rem; row-gap: 0; padding-block: .45rem; }
  .header-contacts { justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 380px) {
  .header-contacts .telegram-label { display: none; }
  .header-contacts .telegram-link { min-width: 2.75rem; padding-inline: .5rem; }
}

[dir="rtl"] .hero-copy { direction: rtl; text-align: right; }
[lang="ar"] { font-family: system-ui, "Segoe UI", Arial, sans-serif; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: normal; line-height: 1.25; }
[lang="ar"] .hero h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }

@media (max-width: 680px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: clamp(4.75rem, 25vw, 9rem) minmax(0, 1fr); }
  .service-media { aspect-ratio: auto; }
  .service-media--import { background-position-x: 75%; }
  .service-media--parts { background-position-x: 77%; }
  .service-media--certificates { background-position-x: 85%; }
  .service-content { min-height: 4.8rem; }
  .hero-visual img { object-position: 75% 55%; }
}

@media (max-width: 540px) {
  .hero-inner { align-items: start; min-height: clamp(17.75rem, 68vw, 21rem); }
  .hero-copy { max-width: 100%; }
  .hero-visual { inset: 6rem 0 0; }
  .hero-visual img { object-position: 87% 57%; }
  .hero-visual::after { background: linear-gradient(180deg, #101821, #10182180 24%, transparent 56%); }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.65rem); }
}

@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
}
