/* ТОВ «КОРП АВТО» — статичний сайт-візитівка */

:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fa;
  --ink: #16202b;
  --ink-soft: #52616f;
  --line: #e3e8ee;
  --accent: #17509e;
  --accent-dark: #113c78;
  --accent-soft: #eaf0f9;
  --radius: 14px;
  --container: 1140px;
  --shadow: 0 1px 2px rgba(22, 32, 43, .04), 0 12px 32px rgba(22, 32, 43, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.12rem; font-weight: 640; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem; font-weight: 640; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 14px 26px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-primary[disabled] { background: #8ea4c4; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.btn-block { width: 100%; }

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

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--accent); display: block; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font-weight: 700; letter-spacing: -.01em; font-size: 1.06rem; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink-soft); font-weight: 520; font-size: .98rem; }
.nav-list a:hover { color: var(--ink); text-decoration: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 0 auto; content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-2px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.lead { font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--ink-soft); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 28px; color: var(--ink-soft); font-size: .95rem;
}
.hero-meta .dot { color: var(--line); }
.hero-visual .truck { width: 100%; height: auto; border-radius: 20px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-muted { background: var(--bg-muted); }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #cdd7e3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 26px; }
.facts dl { margin: 0; }
.fact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.fact dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- CTA + form ---------- */
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.cta-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .93rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: #cdd7e3; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 80, 158, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .14); }
.error { margin: 7px 0 0; font-size: .88rem; color: #c0392b; }
.hint { margin: 7px 0 0; font-size: .87rem; color: var(--ink-soft); }

.form-status { margin: 18px 0 0; font-size: .97rem; }
.form-status:empty { margin: 0; }
.form-status.is-success {
  display: flex; gap: 10px; align-items: flex-start;
  background: #eef7f0; border: 1px solid #cbe5d3; color: #1e6b3a;
  padding: 14px 16px; border-radius: 10px; font-weight: 560;
}

/* ---------- Contacts ---------- */
.contacts-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-item h3 { font-size: .87rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 620; margin-bottom: .6rem; }
.contact-item p, .contact-item address { margin: 0; font-style: normal; font-size: 1.02rem; font-weight: 560; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-brand { margin: 0; font-weight: 650; }
.footer-sub, .footer-copy { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-inner, .cta-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .facts { padding: 4px 22px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
  .header-inner { position: relative; }
}

@media (max-width: 620px) {
  .cards, .contacts-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form { padding: 22px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
