/*
Theme Name: AVL Systems
Description: Українська продуктова сторінка GPS-моніторингу транспорту AVL.
Version: 0.2.2
Author: AVL Systems
Text Domain: avl-systems
*/

:root {
  color-scheme: light;
  --ink: #0e253d;
  --muted: #435b72;
  --blue: #005a9e;
  --line: #cbdceb;
  --light: #f3f8fd;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: white;
  color: var(--ink);
  font: 1rem/1.6 "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 4.4vw, 4.35rem); }
h2 { font-size: clamp(2rem, 3.3vw, 3rem); }
h3 { font-size: clamp(1.65rem, 2.45vw, 2.25rem); }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 3px solid #0064b3; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
:target { scroll-margin-block-start: 1.25rem; }
.wrap { width: min(100% - 3rem, 80rem); margin-inline: auto; }

.skip { position: absolute; z-index: 1; background: white; padding: .6rem; }
.skip:not(:focus) { clip-path: inset(50%); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.75rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 720; }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.site-header nav a:not(:hover) { text-decoration: none; }

.hero {
  background: radial-gradient(ellipse at 82% 32%, #badbf8, transparent 53%), linear-gradient(116deg, #f8fbff, #dceeff);
  padding-block: clamp(3rem, 7vw, 6.3rem);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: center; gap: clamp(1.7rem, 5vw, 4rem); }
.eyebrow { color: #234f75; font-size: .875rem; font-weight: 720; letter-spacing: .045em; text-transform: uppercase; margin-bottom: .85rem; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 1.55vw, 1.25rem); max-width: 34em; margin-top: 1.25rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: .6rem 1rem; border-radius: 8px; border: 2px solid var(--blue); font-weight: 680; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: #004678; border-color: #004678; }
.secondary { background: #ffffff75; }
.secondary:hover { background: white; }
.hero-screen {
  background: #ffffffde;
  border: 1px solid #ffffff;
  border-radius: var(--radius);
  padding: .65rem .65rem .85rem;
  box-shadow: 0 20px 58px #1c527635;
}
.screen-link { display: block; border-radius: 10px; overflow: hidden; background: #edf3fa; border: 1px solid var(--line); }
.screen-link:hover { border-color: var(--blue); }
.screen-link img { width: 100%; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.hero-screen figcaption { padding-inline: .35rem; }

.workflows { padding-block: clamp(3rem, 6vw, 5rem); }
.section-intro { margin-top: .8rem; color: var(--muted); max-width: 65ch; }
.section-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem 2rem; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; background: #eaf3fb; padding: .4rem .95rem; font-weight: 650; }
.section-nav a:not(:hover) { text-decoration: none; }
.workflow {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(1.3rem, 4vw, 3rem);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--light);
}
.workflow + .workflow { margin-top: 1.25rem; }
.workflow-copy > p:last-child { color: var(--muted); margin-top: .9rem; max-width: 48ch; }
.contact { background: #dceeff; padding-block: clamp(2.4rem, 5vw, 4.5rem); }
.contact-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.contact p { margin-top: .85rem; max-width: 58ch; }
.contact-actions { display: grid; justify-items: start; gap: .75rem; }
.site-footer { background: var(--light); }
.footer-inner { color: var(--muted); font-size: .9rem; }

@media (max-width: 850px) {
  .hero-grid, .workflow { grid-template-columns: minmax(0, 1fr); }
  .hero-screen { max-width: 42rem; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { padding-block: .65rem .25rem; }
  .actions { display: grid; }
  .footer-inner { padding-block: .8rem; }
}


.pricing { padding-block: clamp(3rem, 6vw, 5rem); background: #f6faff; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.price-card {
  display: grid;
  align-content: start;
  justify-items: start;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.product-box {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 1.15rem;
  padding: .3rem;
  border-radius: 12px;
  background: radial-gradient(ellipse at 60% 85%, #1a6875, #102d3a 58%, #081721);
}
.product-box img {
  width: min(100%, 10rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter: brightness(var(--box-brightness, 1.05)) drop-shadow(0 9px 10px #030e19a8);
}
.price-card:nth-child(2) { --box-brightness: 1; }
.price-card:nth-child(3) { --box-brightness: .95; }
.price-card:nth-child(4) { --box-brightness: .90; }
.plan-name { color: var(--muted); font-size: .9rem; margin-bottom: .35rem; }
.price-card h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.price-usd { font-size: 1.7rem; font-weight: 750; line-height: 1.2; margin-top: .9rem; }
.price-usd span { font-size: .95rem; }
.price-eur { color: var(--muted); margin-block: .2rem .95rem; }
.rate-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.cloud-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 3vw, 1.8rem); margin-top: 2rem; background: #e2effd; border-radius: var(--radius); }
.cloud-offer p { margin-top: .5rem; }
@media (max-width: 930px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
