:root {
  --brand: #0b5fff;
  --brand-dark: #0846c2;
  --brand-soft: #eaf1ff;
  --ink: #1a2233;
  --ink-soft: #4a5568;
  --muted: #5b6675;
  --line: #e5e9f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --warn-bg: #fff6e9;
  --warn-line: #f3c178;
  --warn-ink: #92600a;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #4f8bff);
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 12px rgba(11, 95, 255, .35);
}
.brand-name { font-size: 20px; letter-spacing: 1px; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 8px; transition: .15s;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-tag {
  font-size: 14px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: #fff; transition: .15s;
}
.lang-switch a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.lang-switch a.active { background: var(--brand); color: #fff; }

.brand-text {
  font-size: 16px; font-weight: 800; color: var(--ink);
  letter-spacing: .2px; line-height: 1.25; max-width: 72%;
}
.brand-text:hover { text-decoration: none; color: var(--ink); }
.brand-text .accent { color: var(--ink); }

/* ============ PAGE ============ */
.page { padding: 22px 20px 64px; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { color: var(--muted); }

/* ============ DEADLINE + COUNTDOWN ============ */
.deadline-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 14px 18px;
  background: var(--brand-soft); border: 1px solid #cfe0ff; border-radius: 11px;
}
.deadline-info { display: flex; flex-direction: column; gap: 2px; }
.deadline-label { font-size: 12.5px; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.deadline-date { font-size: 18px; font-weight: 700; color: var(--ink); }
.countdown {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.countdown.is-urgent { background: #d6492f; }
.countdown.is-closed { background: #6b7280; }

/* ============ HERO CTA ============ */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-cta .btn-primary, .hero-cta .btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: inherit; transition: .15s; text-decoration: none;
}
.hero-cta .btn-primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.hero-cta .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.hero-cta .btn-ghost { background: #fff; color: var(--brand); border: 1px solid #cfe0ff; }
.hero-cta .btn-ghost:hover { background: var(--brand-soft); }

/* ============ HERO ============ */
.tender-hero {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 24px;
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tender-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--ink); }

.badge {
  flex-shrink: 0; display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.badge-closed { background: #fde8e8; color: #c0392b; }
.badge-open { background: #e6f6ec; color: #1e8e4e; }

.meta-grid {
  list-style: none; margin: 24px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px;
}
.meta-grid li { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.meta-value { font-size: 15px; font-weight: 600; color: var(--ink); }

.hero-actions { display: flex; gap: 10px; margin-top: 26px; }
.tab-btn {
  padding: 10px 20px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.tab-btn:hover { border-color: var(--brand); color: var(--brand); }
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ PANELS ============ */
.notice { border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; text-align: center; }
.notice-warning { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.notice-open { background: #e6f7ee; border: 1px solid #9fd9b8; color: #1e6b41; }
.notice-open h2 { color: #1e8e4e; }
.notice-open .notice-strong { color: #167a41; }
.notice h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: .5px; }
.notice-strong { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.notice p { margin: 2px 0; }

.lead-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 22px;
}
.lead-block p { margin: 0 0 10px; }
.lead-block p:last-child { margin-bottom: 0; }

.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 22px;
}
.info-title {
  margin: 0 0 18px; font-size: 18px; font-weight: 700; color: var(--ink);
  padding-bottom: 14px; border-bottom: 2px solid var(--brand-soft); position: relative;
}
.info-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--brand);
}
.info-card > p { margin: 0 0 12px; color: var(--ink-soft); }

.info-table { margin: 0; display: flex; flex-direction: column; }
.info-table .row {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.info-table .row:last-child { border-bottom: 0; }
.info-table dt { margin: 0; font-weight: 600; color: var(--ink-soft); font-size: 14.5px; }
.info-table dd { margin: 0; color: var(--ink); font-size: 14.5px; }
.info-table.compact .row { padding: 10px 0; }

.content-list { margin: 0; padding-left: 0; list-style: none; }
.content-list li { padding: 3px 0; }

.step-list { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.step-list li {
  counter-increment: step; position: relative; padding: 12px 16px 12px 52px;
  background: var(--brand-soft); border: 1px solid #d6e4ff; border-radius: 11px; color: var(--ink-soft);
}
.step-list li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.step-list li strong { color: var(--ink); }

.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.doc-item {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 18px; transition: .15s;
}
.doc-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.doc-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand);
}
.doc-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.doc-name { font-weight: 600; color: var(--ink); }
.doc-meta { font-size: 13px; color: var(--muted); }
.doc-download {
  flex-shrink: 0; padding: 8px 18px; border-radius: 8px; background: var(--brand); color: #fff !important;
  font-weight: 600; font-size: 14px;
}
.doc-download:hover { background: var(--brand-dark); text-decoration: none; }

/* ============ FORM ============ */
.register-form { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: .15s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.btn-primary {
  align-self: flex-start; padding: 12px 28px; border: 0; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: inherit; transition: .15s;
}
.btn-primary:hover { background: var(--brand-dark); }
.form-success { color: #1e8e4e; font-weight: 600; margin: 0; }

/* ============ FOOTER ============ */
.site-footer { background: #0e1726; color: #c4cdda; margin-top: 40px; padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.site-footer .brand-name { color: #fff; }
.footer-company { margin: 12px 0 0; font-weight: 600; color: #fff; }
.footer-text p { margin: 0 0 8px; font-size: 14px; }
.footer-text a { color: #8fb6ff; }
.footer-text .small { color: #8693a8; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 2px;
  }
  .nav-toggle { display: flex; }
  .tender-title { font-size: 20px; }
  .hero-top { flex-direction: column-reverse; align-items: flex-start; }
  .info-table .row { grid-template-columns: 1fr; gap: 4px; }
  .info-table dt { color: var(--muted); font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .tender-hero, .info-card { padding: 20px; }
  .hero-actions { flex-wrap: wrap; }
  .footer-brand { margin-bottom: 4px; }
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .brand-text { font-size: 14px; max-width: 100%; }
  .header-tag { display: none; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { flex: 1 1 auto; justify-content: center; }
}

/* ============ PRINT ============ */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .breadcrumb, .hero-cta, .countdown, .doc-download { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .tender-hero, .info-card, .lead-block, .notice {
    box-shadow: none; border: 1px solid #ccc; break-inside: avoid; page-break-inside: avoid;
  }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #ccc; margin-top: 20px; padding: 16px 0; }
  .footer-text a, a { color: #000; text-decoration: none; }
  .deadline-bar { background: #f2f2f2; border: 1px solid #ccc; }
  a[href^="mailto:"]::after { content: ""; }
}
