:root {
  --bg: #f3f0ea;
  --paper: #faf8f4;
  --ink: #10141d;
  --muted: #5d6776;
  --line: rgba(16, 20, 29, 0.1);
  --navy: #081427;
  --navy-2: #102746;
  --blue: #1b66d6;
  --cyan: #33d0c4;
  --amber: #e6a85c;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(8, 20, 39, 0.14);
  --radius: 8px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(51, 208, 196, 0.16), transparent 24%),
    radial-gradient(circle at 12% 6%, rgba(230, 168, 92, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f6f2 0%, #efe9df 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 0),
    radial-gradient(circle at 1px 1px, rgba(16, 20, 29, 0.05) 1px, transparent 1.6px);
  background-size: 100% 100%, 20px 20px;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(8, 20, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  color: var(--white);
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.95) 0 11%, transparent 12%),
    radial-gradient(circle at 50% 28%, rgba(51, 208, 196, 0.8), rgba(27, 102, 214, 0.96) 52%, rgba(8, 20, 39, 0.95) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border-radius: 50% 50% 38% 38%;
  transform: rotate(14deg);
}

.brand-mark::before {
  inset: 9px 15px 13px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(210, 242, 255, 0.72));
  clip-path: polygon(50% 0, 62% 12%, 72% 30%, 76% 52%, 62% 78%, 50% 100%, 38% 78%, 24% 52%, 28% 30%, 38% 12%);
  opacity: 0.92;
}

.brand-mark::after {
  inset: auto 4px 2px 4px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(51, 208, 196, 0.1), rgba(51, 208, 196, 0.96), rgba(27, 102, 214, 0.98));
}

.brand-copy {
  display: grid;
  line-height: 0.92;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.24em;
}

.brand-copy span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.42em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.8vw, 40px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
body.page-home .desktop-nav a[href="index.html"],
body.page-about .desktop-nav a[href="about.html"],
body.page-contacts .desktop-nav a[href="contacts.html"],
body.page-brokerage .desktop-nav a[href="brokerage.html"],
body.page-trading .desktop-nav a[href="trading.html"],
body.page-ecommerce .desktop-nav a[href="ecommerce.html"],
body.page-logistics .desktop-nav a[href="logistics.html"] {
  color: var(--cyan);
  border-bottom-color: currentColor;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
}

/* Language switch styles removed */

.mobile-menu {
  display: none;
  justify-self: end;
  position: relative;
}

.mobile-menu > summary {
  list-style: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.burger {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 100%;
  height: 100%;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  gap: 10px;
  min-width: 230px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 20, 39, 0.98);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

.hero {
  position: relative;
  overflow: clip;
  color: var(--white);
  border-bottom: 1px solid rgba(8, 20, 39, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(8, 20, 39, 0.96) 0 48%, rgba(8, 20, 39, 0.64) 66%, rgba(8, 20, 39, 0.18) 100%),
    var(--hero-image) center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 39, 0.66));
}

.hero-home { --hero-image: url("https://images.unsplash.com/photo-1508057198894-247b23fe5ade?auto=format&fit=crop&w=2200&q=80"); }
.hero-about { --hero-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2200&q=80"); }
.hero-contacts { --hero-image: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=2200&q=80"); }
.hero-brokerage { --hero-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=2200&q=80"); }
.hero-trading { --hero-image: url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=2200&q=80"); }
.hero-ecommerce { --hero-image: url("source/images/ecommerce_tx.png"); }
.hero-logistics { --hero-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=2200&q=80"); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 760px;
  padding: 96px 0 74px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.section h3,
.hero-panel h3,
.tile h3 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.button.primary {
  color: #06131f;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
}

.panel-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-image img {
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.stack-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(12px);
}

.stack-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stack-card span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.metric-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -40px auto 0;
  width: var(--shell);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metric-row.metrics-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  min-height: 148px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(145deg, #102746, #081427);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.metric span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.section {
  padding: clamp(72px, 8vw, 118px) 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(16, 20, 29, 0.06);
  border-bottom: 1px solid rgba(16, 20, 29, 0.06);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tile,
.card,
.info-card,
.contact-card,
.step,
.quote {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.tile {
  overflow: hidden;
}

.tile img,
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tile .tile-body,
.card .card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.tile p,
.card p,
.info-card p,
.contact-card p,
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tile h3,
.card h3,
.info-card h3,
.contact-card h3,
.step h3 {
  font-size: 22px;
}

.tile-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-band {
  padding: 18px 0 0;
}

.feature-band .grid-4 {
  align-items: stretch;
}

.info-card {
  padding: 24px;
}

.info-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 18px;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.quote {
  padding: 26px;
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(8, 20, 39, 0.95), rgba(16, 39, 70, 0.9)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.quote h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.contact-card {
  padding: 26px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-list a,
.contact-list span {
  line-height: 1.55;
}

.contact-list a {
  color: var(--blue);
  font-weight: 700;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.portrait {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.portrait img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  padding: 24px;
}

.step .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 20, 29, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 700;
}

.cta-section {
  padding: 0 0 clamp(72px, 8vw, 110px);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 28px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(140deg, #081427, #13305a);
  box-shadow: var(--shadow);
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.footer {
  padding: 24px 0 36px;
  color: rgba(8, 20, 39, 0.72);
}

.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 20, 29, 0.1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--blue);
}

body.page-home .hero h1,
body.page-home .hero .eyebrow,
body.page-home .hero p {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1080px) {
  .hero-grid,
  .duo,
  .cta-box,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .grid-4,
  .grid-3,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .panel-image img {
    height: 320px;
  }

  .portrait img {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    min-height: 76px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .brand-copy strong {
    font-size: 16px;
    letter-spacing: 0.18em;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0 54px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 70px);
  }

  .metric-row,
  .grid-4,
  .grid-3,
  .steps,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    width: calc(100% - 24px);
    margin-top: 0;
  }

  .section {
    padding: 56px 0;
  }

  .tile img,
  .card img {
    height: 200px;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-card,
  .info-card,
  .tile .tile-body,
  .card .card-body,
  .step,
  .quote {
    padding: 20px;
  }
}

/* Language overrides removed */
