/* ==========================================================================
   ZIMEX — design tokens
   Premium, clean, automotive-chemistry brand.
   ========================================================================== */

:root {
  /* colour */
  --ink: #12181f;
  --ink-soft: #4b5563;
  --ink-faint: #8a9099;
  --paper: #ffffff;
  --paper-alt: #f4f6f7;
  --line: #e2e5e8;
  --brand: #1f3a5f;
  --brand-light: #3a5a82;
  --brand-pale: #eaeff4;

  /* product-line accents */
  --gold: #a9822f;
  --gold-pale: #f6efe1;
  --premium: #1f3a5f;
  --premium-pale: #eaeff4;
  --color-line: #7a4fbf;
  --color-pale: #f1ecfa;
  --ekonom: #2f6e68;
  --ekonom-pale: #e9f2f1;

  /* type */
  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* scale */
  --container: 1160px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.6em;
  letter-spacing: 0.02em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline.on-dark:hover { background: #fff; color: var(--brand); }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.logo .mark {
  width: 30px; height: 30px;
  flex: none;
}
.logo .mark svg { width: 100%; height: 100%; }
.logo .sub {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  display: block;
  margin-top: 2px;
}
.logo-block { display: flex; flex-direction: column; line-height: 1; }

.logo-badge {
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  line-height: 0;
  flex: none;
}
.logo-badge img { height: 24px; width: auto; display: block; }
.logo-caption {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
}
footer.site-footer .logo-caption { color: rgba(255,255,255,0.4); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--ink); }
nav.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
}

.header-right { display: flex; align-items: center; gap: 22px; }

.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 8px;
  color: var(--ink-faint);
  border-radius: var(--radius);
}
.lang-switch a.active { color: var(--brand); background: var(--brand-pale); }
.lang-switch a:hover:not(.active) { color: var(--ink); }

.header-phone {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 560px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #9db6d6; }
.hero p.lead {
  color: rgba(255,255,255,0.72);
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero .actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #1a2a3d 0%, #12181f 55%, #0c1016 100%);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: -60%; left: -30%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16) 45%, transparent 60%);
  transform: rotate(12deg);
  animation: sheen 2.6s ease-out 0.4s 1;
}
.hero-panel .drop-count {
  position: absolute;
  left: 28px; bottom: 28px;
  font-family: var(--f-display);
}
.hero-panel .drop-count .num { font-size: 3rem; color: #fff; line-height: 1; }
.hero-panel .drop-count .cap { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 6px; max-width: 20ch; }

@keyframes sheen {
  from { transform: translateX(-40%) rotate(12deg); }
  to { transform: translateX(220%) rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel::before { animation: none; opacity: 0; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- product line cards (home preview) ---------- */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.line-card {
  background: var(--paper);
  padding: 34px 26px;
  border-top: 3px solid var(--accent, var(--brand));
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.line-card .line-name { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: 10px; }
.line-card .line-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent, var(--brand));
  margin-bottom: 14px;
}
.line-card p { font-size: 0.92rem; flex: 1; }
.line-card .line-link { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-top: 14px; }
.line-card .line-link::after { content: " →"; }

.line-gold   { --accent: var(--gold); }
.line-premium{ --accent: var(--premium); }
.line-color  { --accent: var(--color-line); }
.line-ekonom { --accent: var(--ekonom); }

/* ---------- why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-item .why-num {
  font-family: var(--f-display);
  font-size: 0.85rem;
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.why-item h3 { margin-bottom: 8px; }
.why-item p { font-size: 0.94rem; }

/* ---------- contact strip ---------- */
.cta-strip {
  background: var(--brand);
  color: #fff;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 56px;
  padding-bottom: 56px;
}
.cta-strip h2 { color: #fff; margin: 0; }
.cta-strip p { color: rgba(255,255,255,0.75); margin: 6px 0 0; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 28px;
}
footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site-footer h4 {
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
footer.site-footer .logo { color: #fff; margin-bottom: 12px; }
footer.site-footer p, footer.site-footer a { color: rgba(255,255,255,0.62); font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 48px;
}
.page-hero .eyebrow { color: var(--brand); }
.page-hero p.lead { font-size: 1.05rem; max-width: 58ch; }

/* ---------- product detail sections ---------- */
.product-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.product-block:last-child { border-bottom: none; }
.product-visual {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--pale, var(--brand-pale));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 26px 22px 14px;
}
.product-visual .tag {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--accent, var(--brand));
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.product-visual .placeholder-note {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  border: 1px dashed var(--ink-faint);
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.6);
}
.product-copy .eyebrow { color: var(--accent, var(--brand)); }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 2px;
  background: var(--accent, var(--brand));
}
.product-block .order-btn { margin-top: 26px; }

.pb-gold    { --accent: var(--gold);    --pale: var(--gold-pale); }
.pb-premium { --accent: var(--premium); --pale: var(--premium-pale); }
.pb-color   { --accent: var(--color-line); --pale: var(--color-pale); }
.pb-ekonom  { --accent: var(--ekonom);  --pale: var(--ekonom-pale); }

/* ---------- canister (container) mockup ---------- */
.canister-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.canister-mock .handle {
  width: 42%;
  height: 13%;
  border: 9px solid #e6e9ec;
  border-bottom: none;
  border-radius: 50px 50px 0 0;
  margin-bottom: -6px;
  box-shadow: inset 0 3px 5px rgba(255,255,255,.7), 0 2px 4px rgba(18,24,31,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
}
.canister-mock .cap {
  width: 15%;
  aspect-ratio: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(155deg, #f5f6f7, #cdd1d5 55%, #b6bbc0);
  border: 1px solid #b3b8bd;
  margin-bottom: -3px;
  z-index: 2;
}
.canister-mock .body {
  width: 88%;
  flex: 1;
  background: linear-gradient(115deg, #ffffff 0%, #eef0f2 40%, #ffffff 58%, #e2e5e9 100%);
  border-radius: 14px 14px 8px 8px;
  border: 1px solid #d7dade;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 26px -14px rgba(18,24,31,.35),
    inset -12px 0 20px rgba(18,24,31,.06),
    inset 12px 0 18px rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7%;
}
.canister-mock .body img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 3px 12px rgba(18,24,31,.18);
  border: 2px solid rgba(255,255,255,.85);
}
.canister-mock .shadow-ellipse {
  width: 64%;
  height: 12px;
  margin-top: 8px;
  background: radial-gradient(ellipse at center, rgba(18,24,31,.28), transparent 72%);
  flex: none;
}

/* ---------- about page ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.stat { background: var(--paper); padding: 28px; }
.stat .stat-num { font-family: var(--f-display); font-size: 2.4rem; color: var(--brand); }
.stat .stat-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.info-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.info-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.info-list .label { font-size: 0.78rem; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; margin-bottom: 4px; }
.info-list .value { font-size: 1.05rem; }

.map-frame {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

form.contact-form { display: grid; gap: 18px; }
form.contact-form label {
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  display: block; margin-bottom: 7px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  color: var(--ink);
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: #fff;
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { order: -1; max-width: 320px; }
  .lines-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .values-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  footer.site-footer .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-block { grid-template-columns: 1fr; }
  .product-visual { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lines-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

body.nav-open nav.main-nav {
  display: flex;
  position: fixed;
  inset: 76px 0 0 0;
  background: #fff;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  gap: 22px;
  overflow-y: auto;
}
