:root {
  --red: #ea1c2d;
  --red-dark: #c4121f;
  --red-light: #ff5a66;
  --ink: #2f3735;
  --ink-soft: #5b6563;
  --navy: #0b1b57;
  --navy-deep: #06103a;
  --paper: #f6f3ec;
  --line: #e4e0d6;
  --white: #fff;
  --radius: 10px;
  --wrap: 1180px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8em;
}
.spaced {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.spaced.light { color: #fff; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px 48px;
  align-items: center;
  margin-bottom: 48px;
}
.section-head h2 { text-align: right; margin: 0; }
.section-head p {
  margin: 0;
  padding-left: 32px;
  border-left: 3px solid var(--red);
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.link { color: var(--red); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand svg { height: 50px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a:not(.lang)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .lang {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
}
.nav .lang:hover { border-color: var(--red); color: var(--red); }
.menu-btn { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,16,58,.94) 0%, rgba(11,27,87,.82) 40%, rgba(11,27,87,.25) 70%, rgba(11,27,87,0) 100%);
}
.hero-content { position: relative; padding-block: 80px; }
.hero h1 {
  max-width: 620px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; font-weight: 900; color: var(--red-light); }
.hero p { max-width: 520px; font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* About */
.about { background: var(--paper); padding-block: 110px; position: relative; overflow: hidden; }
.about::before {
  content: "";
  position: absolute; inset: 0 0 auto;
  height: 6px;
  background: var(--red);
}
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-text > p { color: var(--ink-soft); font-size: 1.08rem; }
.values { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.values li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
}
.values strong { color: var(--navy); font-size: 1.05rem; }
.values span { color: var(--ink-soft); }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(6,16,58,.5); }
.about-photo::after {
  content: "";
  position: absolute;
  width: 110px; height: 110px;
  right: -28px; bottom: -28px;
  border-radius: 50%;
  background: var(--red);
  z-index: -1;
}
.about-photo { z-index: 0; isolation: isolate; }

/* Services */
.services { padding-block: 110px; }
.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-color: transparent; box-shadow: 0 20px 44px -24px rgba(6,16,58,.4); transform: translateY(-3px); }
.service .icon {
  width: 48px; height: 48px;
  padding: 11px;
  border-radius: 50%;
  background: #fdecee;
  color: var(--red);
  margin-bottom: 18px;
}
.service h3 { color: var(--navy); }
.service p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Video */
.video {
  padding-block: 100px;
  background: var(--navy) url("img/blue-notebook-bg.jpg") center / cover no-repeat;
  text-align: center;
}
.video-frame {
  position: relative;
  max-width: 900px;
  margin: 36px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(234,28,45,.25);
  transition: transform .2s, box-shadow .2s;
}
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(234,28,45,.25); }
.play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.video-caption { color: rgba(255,255,255,.75); margin: 18px 0 0; font-size: .95rem; }

/* Companies */
.companies { padding-block: 110px; background: var(--paper); }
.company-grid {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.company {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.company img { height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.company > img { margin-block: 6px; }
.company-link { display: block; border-radius: 8px; padding: 6px 10px; transition: transform .2s, background .2s; }
.company-link:hover { transform: scale(1.06); background: var(--paper); }
.company p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* History */
.history { padding-block: 110px; background: linear-gradient(#fff, var(--paper)); }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.history-old { margin: 0; }
.history-old img { width: 100%; border-radius: var(--radius); filter: sepia(.25); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.history-text > p { color: var(--ink-soft); font-size: 1.05rem; }
.stats {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats li { padding: 32px 16px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; color: var(--red); line-height: 1.1; }
.stats span { color: var(--ink-soft); font-size: .95rem; }
.export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 40px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.export img { width: clamp(180px, 26vw, 320px); filter: drop-shadow(0 20px 24px rgba(0,0,0,.25)); }
.export p { margin: 0; max-width: 360px; }

/* Contact */
.contact { padding-top: 110px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; padding-bottom: 80px; }
.contact-info > p { color: var(--ink-soft); }
.contact-info dl { margin: 28px 0 32px; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; }
.contact-info dt { font-weight: 700; color: var(--navy); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.contact-info dd { margin: 0; }
.contact-info dd a { color: var(--red); font-weight: 700; text-decoration: none; }
.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 18px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--navy); }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.form-note.error { color: var(--red-dark); font-weight: 700; }
.contact-form .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done {
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 5px solid var(--red);
  padding: 40px 36px;
}
.form-done h3 { color: var(--navy); font-size: 1.5rem; }
.form-done p { margin: 0; color: var(--ink-soft); }
.form-done:focus { outline: none; }
.map { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.2); }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding-top: 56px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: center; padding-bottom: 40px; }
.footer-brand svg { height: 56px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand p, .footer-contact p { margin: 0 0 4px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background .2s;
}
.social a:hover { background: var(--red); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .service-grid, .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .history-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 640px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .social { grid-column: 1 / -1; }
}

/* Mobile menu */
@media (max-width: 860px) {
  .menu-btn {
    display: grid; gap: 5px;
    width: 44px; height: 44px;
    place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    padding: 8px 24px 20px;
    box-shadow: 0 16px 30px -16px rgba(6,16,58,.3);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav .lang { margin-top: 14px; align-self: flex-start; border-bottom: 1.5px solid var(--line); }
}

/* Phone */
@media (max-width: 620px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .brand svg { height: 42px; }
  .hero { min-height: 78vh; }
  .hero-shade { background: linear-gradient(180deg, rgba(6,16,58,.55) 0%, rgba(11,27,87,.9) 60%, rgba(6,16,58,.96) 100%); }
  .hero-content { padding-block: 64px; align-self: flex-end; }
  .about, .services, .companies { padding-block: 72px; }
  .history { padding-block: 72px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; gap: 16px; }
  .section-head h2 { text-align: left; }
  .section-head p { padding-left: 18px; }
  .service-grid, .company-grid { grid-template-columns: 1fr; }
  .values li { grid-template-columns: 1fr; gap: 2px; }
  .about-photo::after { width: 70px; height: 70px; right: -10px; bottom: -14px; }
  .contact-form { padding: 24px 18px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact { padding-top: 72px; }
  .play { width: 68px; height: 68px; }
  .footer-inner { grid-template-columns: 1fr; }
  .export { flex-direction: column; text-align: center; gap: 16px; }
}
