:root {
  --navy: #071018;
  --navy-mid: #0c1a2e;
  --navy-card: #132337;
  --crimson: #e11d2e;
  --crimson-dark: #b91524;
  --crimson-glow: rgba(225, 29, 46, 0.35);
  --ice: #e8edf5;
  --bg: #c5d0e0;
  --panel: #ffffff;
  --card: #f6f8fc;
  --text: #071018;
  --muted: #4a5568;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-50: rgba(255, 255, 255, 0.55);
  --outline: rgba(7, 16, 24, 0.1);
  --outline-strong: rgba(7, 16, 24, 0.18);
  --radius-lg: 20px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-hard: 8px 8px 0 rgba(7, 16, 24, 0.12);
  --shadow-hero-card: 16px 16px 0 rgba(225, 29, 46, 0.14), 0 28px 56px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  background-image:
    linear-gradient(125deg, rgba(12, 26, 46, 0.06) 0%, transparent 42%),
    linear-gradient(300deg, rgba(225, 29, 46, 0.05) 0%, transparent 38%),
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.04) 48px,
      rgba(255, 255, 255, 0.04) 49px
    );
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

h1,
h2,
h3,
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

a {
  color: var(--crimson-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

main {
  display: block;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* ——— Header (темний на всіх сторінках) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 4px solid var(--crimson);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--white-90);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--crimson);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text span:first-child {
  font-size: 0.68rem;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-ui);
  font-weight: 600;
}

.brand-text span:last-child {
  font-size: 1.08rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link {
  padding: 9px 14px;
  color: var(--white-50);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff;
  background: var(--crimson);
  box-shadow: 0 0 24px var(--crimson-glow);
  text-decoration: none;
}

.contact-inline {
  color: var(--white-50);
  font-weight: 600;
  font-size: 0.85rem;
  display: none;
}

.button,
button {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: var(--crimson);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard), 0 0 0 2px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  display: inline-block;
}

.button.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgba(7, 16, 24, 0.15);
  text-decoration: none;
  color: #fff;
  background: var(--crimson-dark);
}

.button.ghost {
  border: 2px solid var(--navy-mid);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.button.ghost:hover {
  background: var(--ice);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--font-ui);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ——— Герой тільки на головній ——— */
.page-home .hero {
  position: relative;
  padding: 56px 0 72px;
  margin: 0;
  background:
    repeating-linear-gradient(
      -11deg,
      transparent,
      transparent 36px,
      rgba(255, 255, 255, 0.025) 36px,
      rgba(255, 255, 255, 0.025) 37px
    ),
    linear-gradient(165deg, #040a10 0%, var(--navy) 38%, #152a45 100%);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: min(70vw, 520px);
  height: min(90vw, 620px);
  background: radial-gradient(circle, rgba(225, 29, 46, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.page-home .hero .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 40px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.page-home .hero-card {
  background: #fff;
  border: 3px solid var(--navy);
  border-left: 8px solid var(--crimson);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 32px;
  box-shadow: var(--shadow-hero-card);
}

.hero-card {
  background: var(--panel);
  border: 2px solid var(--outline-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-hard);
}

.page-home .hero h1 {
  font-size: clamp(2.15rem, 4.5vw + 0.5rem, 3.4rem);
  font-weight: 800;
  margin: 14px 0 14px;
  line-height: 1.05;
  color: var(--navy);
}

.hero h1 {
  font-size: clamp(1.85rem, 3vw + 0.8rem, 2.65rem);
  margin: 12px 0 12px;
  line-height: 1.12;
  color: var(--text);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 18px;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullet-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--ice);
  border: 2px solid rgba(7, 16, 24, 0.08);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
}

.bullet-list li::before {
  content: "✓";
  color: var(--crimson);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.page-home .hero-visual {
  border-radius: var(--radius-lg);
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  min-height: 400px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.page-home .hero-visual::after {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius-lg) - 10px);
}

.hero-visual {
  position: relative;
  background: linear-gradient(160deg, var(--ice) 0%, #fff 100%);
  border: 3px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-hard);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(7, 16, 24, 0.1);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.hero-visual img {
  width: 78%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.2));
}

/* Фото товару в білому panel (блок composición) */
.panel .hero-visual--product {
  min-height: 320px;
}

.panel .hero-visual--product img {
  width: min(92%, 420px);
  max-height: 420px;
  object-fit: contain;
}

.section {
  padding: 26px 0;
}

.panel {
  background: var(--panel);
  border: 3px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-hard);
}

.section-title {
  font-size: clamp(1.4rem, 2.2vw + 0.5rem, 2rem);
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--navy);
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 900px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 2px solid var(--outline-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 4px 4px 0 rgba(7, 16, 24, 0.06);
}

.feature-card h3,
.card h3 {
  margin: 8px 0;
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.stat-card {
  background: linear-gradient(135deg, #fff 0%, var(--ice) 100%);
  border: 3px solid var(--navy-mid);
  border-left: 6px solid var(--navy);
}

.info-block {
  background: linear-gradient(180deg, #fff 0%, rgba(225, 29, 46, 0.06) 100%);
  border: 3px solid var(--crimson);
  border-left-width: 8px;
}

.image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--navy-mid);
  background: var(--navy-card);
  box-shadow: var(--shadow-hard);
}

.image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 2px solid var(--outline);
  border-radius: var(--radius-sm);
}

.step a {
  font-weight: 600;
  color: var(--navy);
}

.step a:hover {
  color: var(--crimson-dark);
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--crimson);
}

.callout {
  background: var(--ice);
  border: 2px solid var(--outline-strong);
  border-radius: var(--radius-md);
  padding: 18px;
}

.order-section {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3050 100%);
  color: var(--white-90);
  border: 4px solid var(--crimson);
  box-shadow: 12px 12px 0 rgba(225, 29, 46, 0.2);
}

.order-section .section-title {
  color: #fff;
}

.order-section .pill {
  background: var(--crimson);
  border-color: rgba(255, 255, 255, 0.25);
}

.order-section .muted {
  color: rgba(255, 255, 255, 0.72);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.order-section .card {
  background: #fff;
  color: var(--text);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--outline-strong);
  background: #fafbfc;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-ui);
}

.input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.2);
  background: #fff;
}

.footer {
  margin-top: 36px;
  padding: 36px 0 44px;
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-top: 4px solid var(--crimson);
  color: var(--white-90);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer a {
  color: #fff;
  font-weight: 600;
}

.footer a:hover {
  color: #ff6b7a;
}

.footer small {
  color: var(--white-50);
}

.footer-legal {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal strong {
  color: #fff;
}

.footer .muted {
  color: rgba(255, 255, 255, 0.72);
}

.content-page {
  padding: 36px 0 28px;
}

.content-card {
  background: var(--panel);
  border: 3px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-hard);
}

.content-card h1,
.content-card h2 {
  margin-top: 0;
}

.content-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
}

.content-card p {
  margin: 0 0 16px;
}

.list-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.list-inline a {
  text-decoration: none;
}

.footer .list-inline a {
  color: #fff;
  font-weight: 600;
}

.footer .list-inline a:hover {
  color: #ffb8c0;
  text-decoration: underline;
}

.tag {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--outline);
  background: var(--ice);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  display: grid;
  gap: 10px;
}

.blog-card img {
  border-radius: var(--radius-md);
  height: 200px;
  object-fit: cover;
  border: 3px solid var(--navy-mid);
}

.blog-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.blog-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--crimson);
}

.blog-meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-hero {
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--navy-mid);
}

.post-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.legal-text p {
  color: var(--text);
}

.legal-text p strong {
  color: var(--crimson-dark);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .site-header .inner {
    flex-wrap: wrap;
  }

  .contact-inline {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 6px;
    color: rgba(255, 255, 255, 0.65);
  }

  .page-home .hero-card {
    border-radius: var(--radius-lg);
    border-left-width: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 16px;
    --radius-md: 8px;
  }

  .page-home .hero {
    padding: 40px 0 48px;
  }

  .panel,
  .hero-card,
  .page-home .hero-card,
  .hero-visual,
  .content-card {
    padding: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .button.primary:hover {
    transform: none;
  }
}
