/* УкрПостТех — фірмовий стиль
   Mobile first: базові стилі — для телефонів,
   медіазапити min-width додають розкладку для планшетів (≥ 600px),
   ноутбуків (≥ 900px) і великих екранів (≥ 1100px). */
:root {
  --blue: #1450A3;
  --navy: #0B2F5E;
  --yellow: #F5C518;
  --cyan: #5BC8D6;
  --teal: #1FA3B5;
  --grey: #A9AEB4;
  --bg: #EEF1F5;
  --text: #1C2733;
  --muted: #5B6673;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 47, 94, .10);
  --header-h: 64px;
  --section-pad: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Header (мобільне меню за замовчуванням) ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #E1E6EC;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 37px; flex-shrink: 0; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: .5px; line-height: 1; white-space: nowrap; }
.wordmark .w1 { color: var(--blue); }
.wordmark .w2 { color: var(--grey); }
.wordmark .w3 { color: var(--yellow); }
.brand small { display: none; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; letter-spacing: .3px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  cursor: pointer; background: var(--bg); flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: var(--navy); position: relative; content: "";
  transition: transform .2s, background .2s;
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.nav-toggle:checked + .burger span { background: transparent; }
.nav-toggle:checked + .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .burger { outline: 2px solid var(--blue); outline-offset: 2px; }

.nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 4px; background: var(--white);
  padding: 12px 16px 20px; border-bottom: 1px solid #E1E6EC; box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .nav { display: flex; }
.nav a {
  color: var(--navy); font-weight: 600; font-size: 16px;
  padding: 12px 14px; border-radius: 10px; min-height: 44px;
}
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a.active { color: var(--blue); background: #E3ECF8; }
.nav a.btn { margin-top: 8px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 15px; text-align: center;
  padding: 14px 24px; border-radius: 10px; min-height: 48px;
  background: var(--yellow); color: var(--navy) !important;
  border: 2px solid var(--yellow);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 197, 24, .35); }
.btn-outline { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { box-shadow: none; background: rgba(255,255,255,.1); }
.actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 48px 0 84px;
}
.hero::before {
  content: ""; position: absolute; right: -220px; bottom: -300px;
  width: 760px; height: 520px; border-radius: 50%;
  border: 30px solid rgba(91, 200, 214, .3);
  border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(-20deg);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 7.5vw, 54px); line-height: 1.15; font-weight: 800; margin-bottom: 18px; overflow-wrap: break-word; hyphens: auto; }
.hero h1 span { color: var(--yellow); }
.hero p.lead { font-size: 16px; color: #D6E2F3; max-width: 560px; margin-bottom: 28px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-art img { border-radius: var(--radius); box-shadow: 0 16px 32px rgba(0,0,0,.25); background: #fff; }

.page-hero { padding: 44px 0 56px; }
.page-hero p.lead { max-width: 760px; margin-bottom: 0; }

/* ---------- Sections ---------- */
section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow, .eyebrow.dark { color: var(--blue); }
h2 { font-size: clamp(24px, 6vw, 38px); line-height: 1.2; font-weight: 800; color: var(--navy); margin-bottom: 12px; overflow-wrap: break-word; }
h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Stats ---------- */
.stats { margin-top: -48px; position: relative; z-index: 2; padding: 0; }
.stats .grid {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 20px 12px; text-align: center; }
.stat:nth-child(odd) { border-right: 1px solid #E6EAF0; }
.stat:nth-child(-n+2) { border-bottom: 1px solid #E6EAF0; }
.stat b { display: block; font-size: 28px; color: var(--blue); font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Cards ---------- */
.cards, .cards.two, .cards.four { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11, 47, 94, .16); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy);
  background: #FFF3C4; border-radius: 6px; padding: 3px 9px; margin-bottom: 10px; align-self: flex-start;
}

.feature {
  background: var(--white); border-radius: var(--radius); padding: 24px 22px;
  border-top: 4px solid var(--cyan); box-shadow: var(--shadow);
}
.feature .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #E3ECF8; color: var(--blue); font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.feature:nth-child(2n) { border-top-color: var(--yellow); }
.feature:nth-child(2n) .icon { background: #FFF3C4; color: var(--navy); }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Split / product detail ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.split + .split { margin-top: 64px; }
.split > * { min-width: 0; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split p { color: var(--muted); margin-bottom: 14px; }

.checklist { list-style: none; margin: 16px 0 8px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230B2F5E' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Таблиці характеристик: на телефоні — рядки «назва / значення» стовпчиком */
.specs { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.specs tr { display: block; padding: 10px 0; border-bottom: 1px solid #E1E6EC; }
.specs th, .specs td { display: block; text-align: left; padding: 0; }
.specs th { color: var(--navy); font-weight: 700; }
.specs td { color: var(--muted); }

/* ---------- Product nav chips (горизонтальна прокрутка на телефоні) ---------- */
.chips {
  display: flex; gap: 8px; margin: 24px -16px 0; padding: 0 16px 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex-shrink: 0; white-space: nowrap;
  color: var(--white); border: 1px solid rgba(255,255,255,.4); border-radius: 30px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
}
.chips a:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); text-decoration: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 28px; font-weight: 800; color: var(--yellow); margin-bottom: 6px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- White-label band ---------- */
.band {
  background: var(--navy); color: var(--white); border-radius: 18px; padding: 32px 22px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,200,214,.35), transparent 70%);
  pointer-events: none;
}
.band h2 { color: var(--white); }
.band p { color: #C9D6E8; }
.band .checklist li { color: #E7EEF8; }
.band .actions { position: relative; z-index: 1; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; border-left: 3px solid var(--cyan); margin-left: 10px; }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -11px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--blue);
}
.timeline b { color: var(--blue); font-size: 18px; }
.timeline p { color: var(--muted); }
.values { margin-top: 20px; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue); color: var(--yellow); font-size: 22px; margin-bottom: 14px;
}
.contact-card p { color: var(--muted); }
.contact-card a.big {
  display: block; font-size: 18px; font-weight: 700; color: var(--navy); margin: 4px 0;
  overflow-wrap: anywhere; padding: 4px 0;
}
.contact-card .address { color: var(--navy); font-weight: 700; font-size: 17px; }

.map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; width: 100%; border: 0; display: block;
}

.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 12px 0; border-bottom: 1px solid #E1E6EC; vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); padding-left: 12px; }

/* ---------- CTA & footer ---------- */
.cta { background: var(--yellow); padding: 44px 0; }
.cta .container { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--navy); }
.cta .btn { background: var(--navy); border-color: var(--navy); color: var(--white) !important; width: 100%; }

.footer { background: var(--navy); color: #B7C6DB; padding: 48px 0 24px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.footer a { color: #B7C6DB; display: inline-block; padding: 3px 0; }
.footer a:hover { color: var(--yellow); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; }
.footer .brand small { color: #8EA2BE; }
.footer .wordmark .w2 { color: #C3C8CE; }
.footer .about { margin-top: 14px; max-width: 320px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ================= Планшет ≥ 600px ================= */
@media (min-width: 600px) {
  :root { --header-h: 72px; --section-pad: 72px; }

  .brand img { width: 52px; height: 43px; }
  .wordmark { font-size: 22px; }
  .brand small { display: block; }

  .actions { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .hero p.lead { font-size: 17px; }
  .hero-art { gap: 16px; }

  .stat { padding: 24px 16px; }
  .stat b { font-size: 32px; }

  .cards, .cards.two, .cards.four, .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .specs tr { display: table-row; padding: 0; }
  .specs th, .specs td { display: table-cell; padding: 10px 12px; border-bottom: 1px solid #E1E6EC; vertical-align: top; }
  .specs th { width: 42%; padding-left: 0; }

  .chips { flex-wrap: wrap; overflow: visible; margin: 28px 0 0; padding: 0; }

  .band { padding: 44px 40px; }

  .map { aspect-ratio: 16 / 9; }

  .cta { padding: 56px 0; }
  .cta .container { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .cta .btn { width: auto; }

  .footer .cols { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer .bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

/* ================= Ноутбук ≥ 900px ================= */
@media (min-width: 900px) {
  :root { --header-h: 76px; --section-pad: 90px; }

  .burger { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 6px;
    padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav a { font-size: 15px; padding: 10px 14px; min-height: 0; }
  .nav a.btn { margin: 0 0 0 8px; }
  .wordmark { font-size: 24px; }
  .brand img { width: 54px; height: 45px; }

  .hero { padding: 90px 0 110px; }
  .hero::before { right: -180px; bottom: -260px; border-width: 38px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero p.lead { font-size: 18px; margin-bottom: 34px; }
  .hero-art img:nth-child(2) { transform: translateY(28px); }
  .hero-art img:nth-child(3) { transform: translateY(-12px); }
  .hero-art img:nth-child(4) { transform: translateY(16px); }
  .page-hero { padding: 70px 0 80px; }
  .page-hero .container { grid-template-columns: 1fr; }

  .section-head { margin-bottom: 48px; }
  .section-head p { font-size: 17px; }
  h3 { font-size: 20px; margin-bottom: 10px; }

  .stats { margin-top: -56px; }
  .stats .grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 28px 24px; border-bottom: 0 !important; border-right: 1px solid #E6EAF0; }
  .stat:last-child { border-right: 0; }
  .stat b { font-size: 36px; }
  .stat span { font-size: 14px; }

  .card .body { padding: 24px 26px 28px; }
  .feature { padding: 30px 28px; }

  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split + .split { margin-top: 90px; }
  .split.reverse .split-media { order: 2; }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .band { grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 56px; border-radius: 22px; }

  .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .contact-card { padding: 30px; }

  .map { aspect-ratio: 16 / 7; }

  .cta { padding: 60px 0; }
  .cta h2 { margin: 0; }
  .footer { padding: 60px 0 28px; }
}

/* ================= Великий екран ≥ 1100px ================= */
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; margin-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
