*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  background: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--button-bg);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { color: var(--button-text); opacity: .86; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { color: var(--text); }
.theme-dark .btn { background: var(--dark-text); color: var(--dark-bg); border-color: var(--dark-text); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-text {
  font-family: Manrope, var(--font-body);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--logo-text);
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; letter-spacing: 0.06em; }
.site-nav > a:not(.btn) { text-decoration: none; padding: 12px 0; }

.lang-switch { display: flex; gap: 2px; font-size: 13px; }
.lang-switch a { text-decoration: none; padding: 12px 6px; color: var(--muted); }
.lang-switch a.active { color: var(--accent); font-weight: 600; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { width: 100%; border-top: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; }
  .lang-switch { margin-top: 8px; }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.theme-dark { background: var(--dark-bg); color: var(--dark-text); }
.theme-dark .muted { color: var(--dark-muted); }
.theme-dark a:hover { color: var(--dark-muted); }

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
}

.section-head { margin-bottom: 48px; display: grid; gap: 16px; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-sub { margin: 0; max-width: 460px; color: var(--muted); }
.theme-dark .section-sub { color: var(--dark-muted); }

/* Hero */
.section-hero { padding: 72px 0 0; }
.section-hero .container::after { content: ""; display: block; height: 1px; background: var(--line); margin-top: 96px; }
.section-hero.theme-dark { padding-bottom: 0; }
.section-hero.theme-dark .container::after { background: transparent; margin-top: 72px; }

.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-side { flex: 1 1 320px; min-width: 0; }
.eyebrow { margin: 0 0 20px; font-size: 13px; letter-spacing: 0.32em; color: var(--accent); }
.theme-dark .eyebrow { color: var(--dark-muted); }
.hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.lead { margin: 0 0 28px; font-size: 18px; color: var(--muted); }
.theme-dark .lead { color: var(--dark-muted); }
.hero-image { width: 100%; margin-top: 56px; aspect-ratio: 21 / 9; object-fit: cover; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.card-num { margin: 0 0 12px; font-family: var(--font-heading); font-size: 22px; color: var(--accent); }
.theme-dark .card-num { color: var(--dark-muted); }
.card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }

/* Steps */
.steps-wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.steps-wrap .section-title { flex: 1 1 280px; }
.steps {
  flex: 999 1 560px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.theme-dark .steps li { border-top-color: color-mix(in srgb, var(--dark-text) 25%, transparent); }
.step-title { margin: 0 0 6px; font-weight: 600; }
.step-num { margin-right: 8px; font-weight: 500; color: var(--accent); }
.theme-dark .step-num { color: var(--dark-muted); }

/* Tenders */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 48px; }
.stat { border-top: 1px solid var(--accent); padding-top: 16px; }
.stat-value { margin: 0; font-family: var(--font-heading); font-size: 52px; line-height: 1; }
.stat-label { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.theme-dark .stat-label { color: var(--dark-muted); }

.table-scroll { overflow-x: auto; }
.tenders-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tenders-table th {
  text-align: left;
  padding: 0 16px 14px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.tenders-table th { border-bottom-color: var(--text); }
.tenders-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tenders-table td.year { font-family: var(--font-heading); font-size: 22px; line-height: 1.2; }
.tenders-table td.status { color: var(--accent); }
.theme-dark .tenders-table th, .theme-dark .tenders-table td.status { color: var(--dark-muted); }
.theme-dark .tenders-table th { border-bottom-color: var(--dark-text); }

/* Text block */
.text-block { display: grid; gap: 48px; align-items: center; }
.text-block.has-image { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.text-block.image-left .text-image { order: -1; }
.text-body { display: grid; gap: 24px; justify-items: start; }
.rich-text { font-size: 18px; max-width: 760px; }
.text-image { width: 100%; object-fit: cover; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-info { flex: 1 1 320px; min-width: 0; display: grid; gap: 20px; align-content: start; justify-items: start; }
.contact-list { margin: 0; display: grid; gap: 8px; }
.contact-list div { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-list dt::after { content: ":"; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }

.contact-form { flex: 999 1 460px; min-width: 0; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--text) 30%, transparent);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.theme-dark .contact-form input, .theme-dark .contact-form textarea { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
