:root {
  --ink: #0c0f11;
  --panel: #14181a;
  --paper: #f0efe8;
  --yellow: #ffd400;
  --white: #f4f5f3;
  --muted: #aab0b2;
  --line: rgba(255, 255, 255, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 64px), 1360px); margin: 0 auto; }
.kicker {
  margin: 0 0 30px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.header {
  position: relative;
  z-index: 20;
  min-height: 90px;
  padding: 12px clamp(22px, 3vw, 48px);
  display: grid;
  grid-template-columns: 150px 1fr auto auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #090c0d;
}
.header-logo img { width: 141px; height: auto; }
.header nav { display: flex; justify-content: center; gap: clamp(18px, 2.2vw, 34px); }
.header nav a {
  color: #c3c8ca;
  font-size: 12px;
  font-weight: 800;
}
.header nav a:hover, .header nav a[aria-current="page"] { color: var(--yellow); }
.language-switch { display: flex; border: 1px solid #3d4447; }
.language-switch a { padding: 10px 11px; color: #8f9699; font-size: 11px; font-weight: 900; }
.language-switch a + a { border-left: 1px solid #3d4447; }
.language-switch .active { color: #111; background: var(--yellow); }
.header-cta, .button {
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--yellow);
  font-size: 12px;
  font-weight: 900;
}
.header-cta { color: var(--yellow); }
.button-primary { color: #111; background: var(--yellow); }
.button-ghost { border-color: #596164; color: var(--white); }
.button:hover, .header-cta:hover { background: #ffe24a; color: #111; }
.menu { display: none; }

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  padding: 105px 0 120px;
  overflow: hidden;
  background: #080b0c url("https://uhm-ukraine.com.ua/assets/uhm/images/hero-field-2026.jpg") 65% center / cover no-repeat;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 9, 10, .98) 0%, rgba(6, 9, 10, .88) 44%, rgba(6, 9, 10, .35) 100%),
    repeating-linear-gradient(90deg, transparent 0 159px, rgba(255,255,255,.035) 160px 161px),
    repeating-linear-gradient(0deg, transparent 0 159px, rgba(255,255,255,.035) 160px 161px);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); gap: 70px; align-items: center; }
.hero-copy h1, .page-hero h1 {
  margin: 0;
  max-width: 900px;
  color: var(--white);
  font-size: clamp(58px, 6.6vw, 104px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: .95;
}
.hero-copy > p:not(.kicker), .page-hero-copy > p:not(.kicker) {
  max-width: 800px;
  margin: 34px 0 0;
  color: #c5cacc;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.58;
}
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.brand-panel { border: 1px solid rgba(255,255,255,.28); background: rgba(12,15,17,.9); backdrop-filter: blur(14px); }
.brand-card { padding: 25px 28px; display: grid; grid-template-columns: 170px 1fr; gap: 23px; align-items: center; }
.brand-card + .brand-card { border-top: 1px solid rgba(255,255,255,.18); }
.brand-mark { height: 70px; padding: 8px 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: #090c0d; }
.brand-mark img { max-height: 100%; width: auto; }
.brand-mark.atlas img { height: 72px; max-width: none; max-height: none; }
.brand-mark.epiroc svg { width: 125px; fill: #e1e3e2; }
.brand-mark.schmidt img { width: 145px; filter: brightness(0) invert(1); }
.brand-card small { display: block; margin-bottom: 7px; color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.brand-card h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.25; }
.brand-card p { margin: 0; color: #959da0; font-size: 12px; line-height: 1.45; }

.section { padding: 120px 0; }
.section-paper { color: #111416; background: var(--paper); }
.section-dark { background: #0b0e10; }
.heading-row { margin-bottom: 66px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 9vw; align-items: end; }
.heading-row h2, .content-block h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.05em;
}
.heading-row p { margin: 0; color: #626a6e; font-size: 18px; line-height: 1.6; }

.task-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.task-card {
  position: relative;
  min-height: 440px;
  padding: 38px 28px 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid #353a3d;
  background: rgba(19,23,25,.96);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.task-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .2s; }
.task-card:hover { transform: translateY(-8px); border-color: #646c70; }
.task-card:hover::before { transform: scaleY(1); }
.task-card .number { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.task-card h3 { margin: 72px 0 24px; font-size: clamp(27px, 2.05vw, 39px); line-height: 1.08; letter-spacing: -.045em; }
.task-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.58; }
.task-card small { margin-top: 22px; color: #747d81; font-size: 10px; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }
.task-card a { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid #353a3d; font-size: 13px; font-weight: 900; }
.task-card a b { color: var(--yellow); }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.route-card { min-height: 270px; padding: 34px 30px; border-bottom: 1px solid var(--line); }
.route-card + .route-card { border-left: 1px solid var(--line); }
.route-card span { color: var(--yellow); font-size: 11px; font-weight: 900; }
.route-card h3 { margin: 48px 0 15px; font-size: 28px; }
.route-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.58; }

.page-hero {
  position: relative;
  min-height: 610px;
  padding: 110px 0 90px;
  display: flex;
  align-items: center;
  background-color: #0b0e10;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 160px 160px;
}
.page-hero h1 { max-width: 1100px; }
.page-hero .actions { margin-top: 36px; }
.content-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; }
.content-block > p { margin: 32px 0 0; color: #5f676b; font-size: 18px; line-height: 1.7; }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #bdc1be; }
.feature-list li { padding: 28px 0; border-bottom: 1px solid #bdc1be; }
.feature-list h3 { margin: 0 0 9px; font-size: 24px; }
.feature-list p { margin: 0; color: #61696d; line-height: 1.55; }

.contact-section { background: #0e1112; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; }
.contact-copy > p { margin: 32px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact-links { margin-top: 42px; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
.contact-links a { color: var(--yellow); font-size: 18px; font-weight: 900; }
.contact-address { margin-top: 30px; color: var(--muted); font-size: 14px; font-style: normal; line-height: 1.65; }
.form { padding: clamp(28px, 4vw, 54px); display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; background: #1a1e20; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #bbc0c2; font-size: 12px; font-weight: 900; }
.field input, .field textarea { width: 100%; padding: 0; border: 0; border-bottom: 1px solid #555d62; outline: 0; border-radius: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; }
.field input { height: 48px; }
.field textarea { min-height: 125px; padding-top: 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--yellow); }
.submit { align-self: start; border: 0; cursor: pointer; }
.form-note, .form-status { margin: 0; color: #80898d; font-size: 11px; line-height: 1.45; }
.form-status { grid-column: 1 / -1; color: var(--yellow); font-size: 14px; }
.form-status[hidden] { display: none; }

.footer { padding: 62px 0 24px; border-top: 1px solid var(--line); background: #090b0c; }
.footer-top { display: grid; grid-template-columns: 1fr .8fr .7fr; gap: 55px; align-items: start; padding-bottom: 48px; }
.footer img { width: 125px; }
.footer p, .footer address { color: #818a8e; font-size: 13px; font-style: normal; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; font-weight: 900; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #6f787c; font-size: 11px; }

@media (max-width: 1120px) {
  .header { grid-template-columns: 145px 1fr auto; }
  .header nav { display: none; }
  .menu { display: block; justify-self: end; }
  .menu summary { padding: 11px 14px; border: 1px solid #555d62; list-style: none; cursor: pointer; font-size: 12px; font-weight: 900; }
  .menu div { position: absolute; right: 22px; top: 72px; min-width: 220px; padding: 18px; display: grid; gap: 14px; border: 1px solid #4b5255; background: #0d1011; }
  .language-switch { justify-self: end; }
  .header-cta { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .brand-panel { width: min(100%, 760px); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .task-card:last-child { grid-column: 1 / -1; }
  .heading-row, .content-grid, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 36px), 1360px); }
  .header { min-height: 76px; padding: 10px 18px; grid-template-columns: 1fr auto; gap: 12px; }
  .header-logo img { width: 116px; }
  .language-switch { display: none; }
  .menu div { right: 18px; top: 66px; }
  .home-hero { min-height: auto; padding: 84px 0 100px; background-position: 58% center; }
  .hero-copy h1, .page-hero h1 { font-size: clamp(46px, 14vw, 64px); }
  .actions { display: grid; }
  .brand-card { grid-template-columns: 1fr; }
  .brand-mark { max-width: 250px; }
  .section { padding: 86px 0; }
  .heading-row { margin-bottom: 48px; }
  .heading-row h2, .content-block h2, .contact-copy h2 { font-size: clamp(42px, 12vw, 58px); }
  .task-grid, .route-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 370px; }
  .task-card:last-child { grid-column: auto; }
  .route-card + .route-card { border-left: 0; }
  .page-hero { min-height: 520px; padding: 80px 0; }
  .form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
