/*
  CLPPR.RU — дизайн-система v2 "Clipper Yellow"
  Фирменная жёлто-синяя палитра CLIPPER (как в презентации для партнёров),
  вместо тёмной "Ink & Amber" v1. Чистый CSS, без Tailwind/сборщика.
*/

:root {
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --yellow: #ffd500;
  --yellow-deep: #e6bf00;
  --yellow-soft: #fff4bf;

  --navy: #12193a;
  --navy-soft: #1f2a5c;
  --navy-tint: oklch(0.22 0.07 265 / 6%);

  --ink: #0a0d1a;

  --paper: #ffffff;
  --surface: #f4f5f9;

  --foreground: var(--navy);
  --muted-foreground: #565f7e;
  --border: #e3e5ee;

  --destructive: #c0392b;
  --success: #1c7a4d;

  --shadow-block: 0 24px 55px -28px rgba(18, 25, 58, 0.35);

  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-sans: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ---------- Text utilities ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--navy);
  background: var(--yellow);
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.brand-headline {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mark {
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
  padding: 0 0.1em;
}

.logo-frame {
  border: 3px solid currentColor;
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-block;
}

/* ---------- Surfaces ---------- */

.card-clean {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background-color: var(--paper);
}

.card-navy {
  border-radius: var(--radius-lg);
  background-color: var(--navy);
  color: #fff;
}

.card-ink {
  border-radius: var(--radius-lg);
  background-color: var(--ink);
  color: #fff;
}

.card-yellow {
  border-radius: var(--radius-lg);
  background-color: var(--yellow);
  color: var(--navy);
}

.yellow-wash {
  background-color: var(--yellow);
  color: var(--navy);
}

.navy-wash {
  background-color: var(--navy);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--yellow);
}

.site-header__bar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.7rem 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--navy);
  padding: 0.7rem 1.4rem;
}

.btn-primary:hover {
  background-color: var(--yellow-deep);
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.68rem 1.4rem;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  background-color: var(--navy);
  padding: 0 1rem 1rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}

.mobile-nav .btn-primary {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.sticky-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  text-align: center;
  box-shadow: var(--shadow-block);
  padding: 0.85rem;
}

@media (min-width: 640px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 3.25rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section--surface {
  background-color: var(--surface);
}

.section-lead {
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .card {
    padding: 1.75rem;
  }
}

.card h3 {
  font-size: 1.1rem;
  text-transform: none;
}

.card p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.card-navy p,
.card-ink p {
  color: rgba(255, 255, 255, 0.75);
}

.icon-badge {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background-color: var(--navy);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
}

/* ---------- Product / gallery grids ---------- */

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card .card-body {
  padding: 1.25rem;
}

.gallery-card h3 {
  font-size: 1rem;
  text-transform: none;
}

.gallery-card p {
  margin-top: 0.4rem;
  font-size: 0.83rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ---------- Stat tiles ---------- */

.stat-tile {
  padding: 1.25rem;
}

.stat-tile .value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  text-transform: uppercase;
}

.stat-tile .label {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* ---------- Forms ---------- */

.form-card {
  border-radius: var(--radius-xl);
  background-color: var(--paper);
  color: var(--foreground);
  box-shadow: var(--shadow-block);
  border: 2px solid var(--border);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.field input,
.field select {
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  background-color: var(--paper);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--foreground);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
}

.field-error {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--destructive);
}

.contact-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 2px solid var(--border);
  padding: 0.2rem;
  margin-bottom: 0.5rem;
}

.contact-toggle button {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.contact-toggle button[aria-pressed="true"] {
  background-color: var(--navy);
  color: #fff;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.25rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.consent-field input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.consent-field a {
  color: var(--foreground);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.4rem;
  font-size: 0.9rem;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status[data-state="ok"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--destructive);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--navy);
  color: #fff;
  padding: 3rem 0 7rem;
  border-top: 4px solid var(--yellow);
}

@media (min-width: 860px) {
  .site-footer {
    padding: 3rem 0 3rem;
  }
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 860px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  text-decoration: underline;
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 22rem;
}

.site-footer .legal-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 20rem;
}

.site-footer .age-tag {
  color: var(--yellow);
  font-weight: 900;
  font-family: var(--font-display);
}

/* ---------- TODO markers ---------- */

.todo {
  background-color: var(--yellow-soft);
  color: var(--navy);
  border: 2px dashed var(--yellow-deep);
  border-radius: 0.4rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.85em;
  font-weight: 700;
}

/* ---------- Hero split ---------- */

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-media {
  padding: 0.5rem;
  overflow: hidden;
}

.hero-media img {
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.entry-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry-card h3 {
  font-size: 1.4rem;
  text-transform: none;
}

.entry-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.entry-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ---------- Utility spacing ---------- */

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.text-sm { font-size: 0.875rem; }
.muted-text { color: var(--muted-foreground); }
.max-w-prose { max-width: 42rem; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.breadcrumb a {
  text-decoration: underline;
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 2px solid var(--border);
}

.spec-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Pillar cards (Лидеры/Безопасны/Уникальны) ---------- */

.pillar {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pillar .pillar-kicker {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pillar h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
}

.pillar ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
