:root {
  color-scheme: dark;
  --green-950: #061e19;
  --green-900: #0b3027;
  --green-800: #12483a;
  --paper: #f4f7f2;
  --muted: #a9c0b7;
  --line: rgba(255, 255, 255, 0.16);
  --ua-blue: #2b72d6;
  --ua-yellow: #ffd84a;
  --tr-red: #e3313d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--green-950);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 7%, rgba(43, 114, 214, 0.12), transparent 24rem),
    radial-gradient(circle at 8% 94%, rgba(227, 49, 61, 0.1), transparent 25rem),
    var(--green-950);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  width: min(1480px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: hidden;
  background: var(--green-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(26px, 4.2vw, 68px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-size: 0.92rem;
  font-weight: 780;
  letter-spacing: 0.22em;
}

.mark {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: white;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partnership-note,
.kicker,
.section-label,
.section-label-en,
.area-number,
.contact-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.partnership-note {
  color: var(--muted);
  text-align: right;
}

.partnership-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flag-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.flag-lockup img {
  display: block;
  width: 52px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 2px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.flag-lockup span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 500;
}

.flag-lockup-small img {
  width: 32px;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 135px));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(70px, 10vh, 130px) clamp(26px, 6.8vw, 108px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 12.5% 100%, 100% 25%;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 66%);
}

.kicker {
  margin-bottom: 28px;
  color: #c6d7d0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.8rem, 6vw, 5.8rem);
  font-weight: 720;
  line-height: 0.91;
  letter-spacing: -0.07em;
}

h1 span {
  display: block;
  color: white;
  font-weight: 430;
}

.english-line {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  font-weight: 500;
}

.intro {
  max-width: 650px;
  margin: 34px 0 0;
  color: #d7e2de;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.route-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.82;
  pointer-events: none;
}

.route-field svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route {
  fill: none;
  stroke-linecap: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.route-ua-blue { stroke: var(--ua-blue); }
.route-ua-yellow { stroke: var(--ua-yellow); }
.route-tr-white { stroke: rgba(255, 255, 255, 0.92); }
.route-tr-red { stroke: var(--tr-red); }
.route-future { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 18; }

.origin-code {
  position: absolute;
  right: clamp(26px, 5vw, 78px);
  bottom: clamp(34px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-horizon {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 2.3fr;
  align-items: center;
  gap: 36px;
  padding: 28px clamp(26px, 4.2vw, 68px);
  color: var(--green-950);
  background: var(--paper);
}

.section-label { color: inherit; }
.section-label-en { margin-top: 5px; color: #6d8179; font-size: 0.66rem; }
.markets { margin: 0; font-size: clamp(0.95rem, 1.25vw, 1.12rem); font-weight: 620; line-height: 1.65; }
.markets span { padding: 0 0.5em; color: #9aaba4; }

.profile {
  padding: clamp(56px, 7vw, 110px) clamp(26px, 4.2vw, 68px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--green-900);
  background-size: 25% 100%;
  border-top: 1px solid var(--line);
}

.profile-heading {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  align-items: start;
  gap: 36px;
}

.profile-heading .section-label { padding-top: 12px; color: var(--muted); }

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  font-weight: 570;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: clamp(16px, 2.5vw, 34px);
  margin-top: clamp(58px, 8vw, 115px);
}

.area {
  position: relative;
  min-height: 270px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.area::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 68px;
  height: 4px;
  background: var(--ua-blue);
}

.area-two { transform: translateY(-24px); }
.area-two::before { background: linear-gradient(90deg, var(--ua-yellow), white); }
.area-three { transform: translateY(-48px); }
.area-three::before { background: var(--tr-red); }
.area-number { color: var(--muted); }

h3 {
  margin: 42px 0 18px;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.area > p:not(.area-number) { margin: 0; color: #d3dfda; font-size: 0.96rem; line-height: 1.55; }
.area .en, .company-name .en { color: #8eaaa0; font-size: 0.84rem; }
.area .en { margin-top: 10px !important; }

.contact {
  display: grid;
  grid-template-columns: 0.75fr 1.65fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 36px clamp(26px, 4.2vw, 68px) 42px;
  background: var(--green-950);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.65;
}

.contact p { margin: 0; }
.company-name p:first-child, .phone > p:nth-child(2) { font-weight: 760; }
address { color: #b9ccc5; font-style: normal; }
.phone { text-align: right; }
.contact-label { margin-bottom: 5px !important; color: #78968b; font-size: 0.67rem; }
.domain { margin-top: 8px !important; color: white; }

@media (prefers-reduced-motion: no-preference) {
  .route-ua-blue,
  .route-ua-yellow,
  .route-tr-white,
  .route-tr-red {
    stroke-dasharray: 1 14;
    animation: route-flow 11s linear infinite;
  }

  .route-ua-yellow,
  .route-tr-red { animation-duration: 14s; }

  @keyframes route-flow { to { stroke-dashoffset: -180; } }
}

@media (max-width: 980px) {
  .hero { min-height: 690px; }
  .hero-copy { width: min(760px, 82%); }
  .profile-heading, .market-horizon { grid-template-columns: 1fr; gap: 18px; }
  .areas { align-items: stretch; }
  .area, .area-two, .area-three { min-height: 0; transform: none; }
}

@media (max-width: 700px) {
  .site-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; box-shadow: none; }
  .topbar { padding: 24px; }
  .partnership-mark { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
  .flag-lockup-small img { width: 28px; }
  .flag-lockup-small { gap: 6px; }
  .partnership-note { max-width: 120px; font-size: 0.66rem; line-height: 1.45; }
  .hero { min-height: 690px; align-items: flex-start; padding: 100px 24px 70px; }
  .hero::before { background-size: 25% 100%, 100% 20%; }
  .hero-copy { width: 100%; }
  .kicker { max-width: 280px; font-size: 0.68rem; line-height: 1.55; }
  h1 { font-size: clamp(3rem, 12.8vw, 3.65rem); }
  .intro { max-width: 34rem; font-size: 1rem; }
  .route-field { inset: 10% -90% 0 -70%; opacity: 0.62; }
  .origin-code { right: 24px; bottom: 32px; }
  .market-horizon, .profile, .contact { padding-left: 24px; padding-right: 24px; }
  .markets span { padding: 0 0.22em; }
  .areas { grid-template-columns: 1fr; gap: 14px; margin-top: 46px; }
  .area { padding: 24px; }
  h3 { margin-top: 28px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .phone { text-align: left; }
}
