/* =========================================================
   Ares Provider — landing page (návrh)
   ========================================================= */

:root {
  --ink: #0b1424;
  --ink-2: #2a3446;
  --muted: #5e6a7d;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --tint: #eaf0ff;
  --navy: #0e1a2b;
  --navy-2: #17253b;
  --navy-line: #26354d;
  --blue: #1f56f5;
  --blue-d: #1744c8;
  --blue-l: #5b8cff;
  --ok: #1ba86a;
  --err: #d23b3b;
  --todo: #fff1a8;

  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
  --gutter: 32px;
  --max: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: inherit; }
p { margin: 0; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.tiny { font-size: 12px; }
.right { text-align: right; }

mark.todo { background: var(--todo); color: inherit; padding: 0 3px; border-radius: 2px; }
.todo-link { background: var(--todo); padding: 0 3px; border-radius: 2px; }

/* ---------- draft bar ---------- */
.draft-bar {
  background: var(--todo);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 20px;
  font: 500 14px/1 var(--f-body);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn .arr { font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/1.4 var(--f-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.eyebrow-dark { color: #9aa7bb; }
.mono-accent {
  font: 500 11px/1.4 var(--f-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue);
}
.aside-label {
  font: 500 11px/1.4 var(--f-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: #9aa7bb;
  margin: 28px 0 10px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.brand-mark i { display: block; width: 6px; background: var(--blue); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 12px; }
.brand-mark i:nth-child(2) { height: 26px; }
.brand-mark i:nth-child(3) { height: 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 600 19px/1 var(--f-head); letter-spacing: .01em; }
.brand-text small { font: 400 9px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { color: var(--ink); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; margin-bottom: 28px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }

.partner-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.partner-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint); color: var(--blue); font-weight: 600;
}
.partner-badge b { display: block; font-size: 14px; }
.partner-badge small { display: block; font-size: 12px; color: var(--muted); }

.hero-visual { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.hero-visual svg { width: 100%; height: auto; }
.visual-label {
  position: absolute; top: 18px; left: 20px;
  font: 500 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: #c9d3e3;
}
.visual-plus { position: absolute; top: 12px; right: 18px; color: #c9d3e3; font-size: 20px; }
.visual-caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 16px 18px;
  background: rgba(14,26,43,.82);
  border: 1px solid var(--navy-line);
  backdrop-filter: blur(6px);
  color: #fff;
}
.visual-caption b { display: block; font: 500 18px/1.2 var(--f-head); }
.visual-caption small { font-size: 12px; color: #9aa7bb; }

.hero-strip {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 18px; padding-bottom: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 500;
}
.hero-strip span { display: inline-flex; gap: 10px; }
.hero-strip i { font-style: normal; color: var(--blue); }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.section h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.section-head { margin-bottom: 48px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head.split > p { text-align: right; flex: none; }

/* ---------- products ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button {
  height: 36px; padding: 0 16px;
  font: 500 13px/1 var(--f-body);
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
}
.tabs button:hover { border-color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.product:hover { border-color: #c8cfdb; box-shadow: 0 8px 24px rgba(11,20,36,.06); }
.product[hidden] { display: none; }
.product.is-included { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #f1f3f6, #dfe3e9);
  display: grid; place-items: center;
}
.product-media svg { width: 100%; height: 100%; }
.media-label {
  position: absolute; top: 12px; left: 14px;
  font: 500 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.product-body { padding: 22px 20px 16px; flex: 1; }
.product-body h3 { font-size: 21px; margin-bottom: 10px; }
.product-body > p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.meta { list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--ink-2); }
.meta li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.meta .ic { color: var(--muted); width: 14px; text-align: center; }

.product-foot { margin: 0 20px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.product-foot > span { display: block; margin-bottom: 6px; }
.include {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 6px 0;
  font: 600 13px/1 var(--f-body); color: var(--blue);
  background: none; border: 0; cursor: pointer;
}
.include-icon { font-size: 20px; font-weight: 400; transition: transform .2s; }
.include:hover .include-label { text-decoration: underline; }
.include[aria-pressed="true"] { color: var(--ok); }
.include[aria-pressed="true"] .include-icon { transform: rotate(45deg); }

.note { display: flex; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; padding-top: 20px; border-top: 1px solid #c6d3f5; }
.steps li::after { content: "↗"; position: absolute; top: 14px; right: 0; color: var(--blue); font-size: 14px; }
.step-no { display: block; font: 400 34px/1 var(--f-mono); color: var(--blue); margin-bottom: 26px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { font-size: 14px; color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.service { display: flex; gap: 16px; padding: 24px; background: #fff; border-radius: var(--radius); }
.service-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); background: var(--tint); border-radius: var(--radius); }
.service-ic svg { width: 22px; height: 22px; }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { font-size: 14px; color: var(--muted); }

/* ---------- about (dark) ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.lead-dark { color: #c9d3e3; max-width: none; font-size: 18px; }
.lead-dark b { color: #fff; font-weight: 600; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.about-cols > div { padding-top: 18px; border-top: 1px solid var(--navy-line); }
.about-cols h3 { font-size: 18px; margin-bottom: 8px; }
.about-cols p { font-size: 14px; color: #9aa7bb; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.faq-grid h2 { margin-bottom: 20px; }
.faq-grid .muted { font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0;
  font-weight: 500; font-size: 15px;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink); transition: transform .2s; }
.faq details[open] summary { color: var(--blue); }
.faq details[open] summary::after { content: "−"; color: var(--blue); }
.faq details p { padding: 0 40px 22px 0; font-size: 14px; color: var(--muted); }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }

.form-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--navy); color: #fff;
  padding: 36px 32px; border-radius: var(--radius);
}
.aside-ic { display: block; width: 32px; height: 32px; color: var(--blue-l); margin-bottom: 28px; }
.form-aside h3 { font-size: 26px; line-height: 1.15; margin-bottom: 16px; }
.form-aside > p { font-size: 14px; color: #9aa7bb; }
.checks { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.checks li { display: flex; gap: 10px; padding: 4px 0; }
.checks li::before { content: "✓"; color: var(--blue-l); }
.aside-contact { display: block; color: #fff; font: 500 17px/1.6 var(--f-head); }
.aside-contact mark.todo, .aside-hours mark.todo { color: var(--ink); }
.aside-hours { font-size: 13px; color: #9aa7bb; margin-top: 6px; }

.rfq, .rfq-done {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  background: #fff; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius);
}
.rfq[hidden], .rfq-done[hidden] { display: none; }
.full { grid-column: 1 / -1; }

.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 14px/1.4 var(--f-body); color: var(--ink);
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa3b2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,86,245,.15);
}
.field [aria-invalid="true"] { border-color: var(--err); }
.select { position: relative; }
.select select { appearance: none; padding-right: 36px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2);
  transform: rotate(45deg); pointer-events: none;
}
.err { min-height: 0; font-size: 12px; color: var(--err); margin-top: 6px; }
.err:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; font-weight: 400 !important; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; }

.selected {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--tint); border-radius: var(--radius);
}
.selected[hidden] { display: none; }
.selected-title { font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 6px 0 12px;
  font: 500 13px/1 var(--f-body); color: var(--ink);
  background: #fff; border: 1px solid #c6d3f5; border-radius: 999px;
}
.chip button {
  width: 20px; height: 20px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2);
  cursor: pointer; font-size: 14px; line-height: 1;
}
.chip button:hover { background: var(--line); }

/* done */
.rfq-done { grid-template-columns: 1fr; justify-items: start; gap: 16px; padding: 48px 40px; }
.rfq-done:focus { outline: none; }
.done-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e3f6ec; color: var(--ok); font-size: 22px; font-weight: 600; }
.rfq-done h3 { font-size: 28px; }
.rfq-done > p { color: var(--muted); max-width: 520px; }
.done-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 8px 0 16px; padding: 20px; width: 100%; background: var(--bg-soft); border-radius: var(--radius); font-size: 14px; }
.done-summary dt { color: var(--muted); }
.done-summary dd { margin: 0; white-space: pre-line; }

/* floating RFQ indicator */
.rfq-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; gap: 18px; align-items: center;
  padding: 14px 18px;
  background: var(--ink); color: #fff;
  font-size: 14px; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(11,20,36,.25);
}
.rfq-float:hover { text-decoration: none; background: var(--navy-2); }
.rfq-float[hidden] { display: none; }
.rfq-float b { color: var(--blue-l); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c9d3e3; padding: 56px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.brand-dark { color: #fff; }
.brand-dark .brand-text small { color: #9aa7bb; }
.footer-top { display: flex; align-items: center; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--navy-line); }
.footer-nav { display: flex; gap: 28px; margin: 0 auto; }
.footer-nav a { font-size: 13px; }
.to-top { font-size: 13px; color: #9aa7bb !important; }
.footer-main { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; padding: 56px 0; }
.footer-claim { font: 500 clamp(36px, 4.4vw, 60px)/1.04 var(--f-head); letter-spacing: -0.02em; color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; font-size: 13px; line-height: 1.7; }
.footer-cols .aside-label:first-child { margin-top: 0; }
.footer-cols b { color: #fff; }
.footer-cols mark.todo { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--navy-line);
  font-size: 11px; color: #7f8ca2;
}
.footer-bottom .todo-link { color: var(--ink); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .section { padding: 80px 0; }
  .hero-grid, .about-grid, .faq-grid, .form-grid, .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .services { grid-template-columns: 1fr; margin-top: 48px; }
  .form-aside { position: static; }

  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .hero { padding-top: 40px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-strip { flex-direction: column; gap: 10px; margin-top: 40px; }
  .section { padding: 64px 0; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .section-head.split > p { text-align: left; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .rfq { grid-template-columns: 1fr; padding: 24px 20px; }
  .rfq-done { padding: 32px 20px; }
  .form-aside { padding: 28px 22px; }
  .form-foot .btn { width: 100%; justify-content: space-between; }
  .right { text-align: left; }
  .footer-top { flex-wrap: wrap; }
  .footer-nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; gap: 16px; }
  .footer-cols { grid-template-columns: 1fr; }
  .rfq-float { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .done-summary { grid-template-columns: 1fr; gap: 2px; }
  .done-summary dd { margin-bottom: 10px; }
}
