:root {
    --navy: #0B1F3A;
    --red: #D32F2F;
    --red2: #FF3B3B;
    --gold: #FFD600;
    --green: #1B9E4B;
    --white: #FFFFFF;
    --light: #F5F7FA;
    --gray: #8A929E;
    --border: #E0E6EF;
    --text: #1A2535;
    --shadow: 0 4px 24px rgba(11,31,58,0.13);
    --radius: 12px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'PT Sans', sans-serif; background: var(--light); color: var(--text); }

  /* ── HEADER ── */
  .site-header {
    background: var(--navy);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  }
  .site-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo-stripe { width: 5px; height: 30px; background: var(--red); border-radius: 3px; }

  /* ── HERO ── */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, #162C4E 60%, #0D1E35 100%);
    color: var(--white);
    padding: 56px 20px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
  }
  .hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
  }
  .hero-sub { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.6; }
  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    padding: 18px 44px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(211,47,47,0.45);
    border: none;
    cursor: pointer;
  }
  .hero-cta:hover { background: #B71C1C; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(211,47,47,0.55); }

  /* ── CATALOG ── */
  .catalog { max-width: 1140px; margin: 0 auto; padding: 56px 16px 64px; }
  .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 6px;
  }
  .section-sub { text-align: center; color: var(--gray); margin-bottom: 28px; font-size: 15px; }

  .filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
  .filter-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 7px 20px;
    font-family: 'PT Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .filter-btn:hover { border-color: var(--navy); color: var(--navy); }
  .filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

  .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  @media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (min-width: 960px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

  /* Card */
  .card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }
  .card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(11,31,58,0.18); }
  .card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #e8ecf2; }
  .card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
  .card-name { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--text); }
  .card-old { font-size: 13px; color: var(--gray); text-decoration: line-through; }
  .card-new { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; color: var(--red); line-height: 1; }
  .card-promo { font-size: 12px; font-weight: 700; color: var(--green); }
  .card-btn {
    margin-top: 10px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    width: 100%;
  }
  .card-btn:hover { background: #B71C1C; }
  .card-btn:active { transform: scale(0.97); }
  .card-btn.added { background: var(--green); }

  /* ── MODAL ── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 580px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(24px);
    transition: transform 0.22s ease;
    position: relative;
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s;
  }
  .modal-close:hover { background: rgba(0,0,0,0.8); }

  /* ── SWIPER inside modal ── */
  .modal-swiper-wrap {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #e8ecf2;
  }
  .modal-swiper {
    width: 100%;
    /* aspect-ratio: 16/10; */
    aspect-ratio: 1/1;
  }
  .modal-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Custom nav arrows */
  .modal-swiper .swiper-button-prev,
  .modal-swiper .swiper-button-next {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--navy);
    --swiper-navigation-size: 16px;
    transition: background 0.15s;
  }
  .modal-swiper .swiper-button-prev:hover,
  .modal-swiper .swiper-button-next:hover { background: #fff; }
  /* Pagination dots */
  .modal-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.7); opacity: 1; }
  .modal-swiper .swiper-pagination-bullet-active { background: #fff; }

  /* Thumbnails row */
  .modal-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #f0f3f8;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .modal-thumbs::-webkit-scrollbar { display: none; }
  .modal-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
  }
  .modal-thumb.active { border-color: var(--navy); }
  .modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .modal-body { padding: 20px 22px 24px; }
  .modal-name { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
  .modal-prices { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; }
  .modal-old { font-size: 16px; color: var(--gray); text-decoration: line-through; }
  .modal-new { font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 700; color: var(--red); }
  .modal-economy { font-size: 13px; color: var(--green); font-weight: 700; background: #e8f5ed; padding: 4px 10px; border-radius: 50px; display: inline-block; margin-bottom: 14px; }
  .modal-promo { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 16px; }
  .modal-desc { font-size: 15px; line-height: 1.65; color: #3A4558; margin-bottom: 16px; }
  .modal-specs { list-style: none; margin-bottom: 20px; }
  .modal-specs li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
  .modal-specs li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

  /* ── FLOATING CART ── */
  .cart-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 200;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(11,31,58,0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.18s, transform 0.18s;
    letter-spacing: 0.02em;
  }
  .cart-fab:hover { background: #1A3D6E; transform: translateY(-2px); }
  .cart-count {
    background: var(--red);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }

  /* ── CART PANEL ── */
  .cart-panel { position: fixed; inset: 0; z-index: 400; display: flex; pointer-events: none; }
  .cart-backdrop { flex: 1; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.25s ease; }
  .cart-drawer {
    width: min(420px, 100vw);
    background: var(--white);
    height: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
  }
  .cart-panel.open { pointer-events: all; }
  .cart-panel.open .cart-backdrop { opacity: 1; }
  .cart-panel.open .cart-drawer { transform: translateX(0); }

  .cart-header {
    background: var(--navy);
    color: #fff;
    padding: 20px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .cart-title { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
  .cart-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-items { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .cart-empty { text-align: center; color: var(--gray); padding: 40px 0; font-size: 16px; }
  .cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--light);
    border-radius: 10px;
    padding: 12px;
  }
  .ci-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #e8ecf2; }
  .ci-info { flex: 1; min-width: 0; }
  .ci-name { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ci-price { font-family: 'Oswald', sans-serif; font-size: 16px; color: var(--red); font-weight: 700; }
  .ci-controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  .ci-btn { background: var(--white); border: 1.5px solid var(--border); border-radius: 6px; width: 28px; height: 28px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.15s; }
  .ci-btn:hover { border-color: var(--navy); }
  .ci-qty { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }
  .ci-del { background: none; border: none; color: var(--gray); font-size: 20px; cursor: pointer; padding: 4px; flex-shrink: 0; transition: color 0.15s; }
  .ci-del:hover { color: var(--red); }

  .cart-summary { padding: 16px; border-top: 2px solid var(--border); background: var(--light); flex-shrink: 0; }
  .sum-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; color: var(--gray); }
  .sum-row.discount { color: var(--green); font-weight: 700; }
  .sum-row.total { color: var(--navy); font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; margin-top: 10px; padding-top: 10px; border-top: 1.5px solid var(--border); }
  .sum-row.total span:last-child { color: var(--red); }

  .order-form { padding: 16px; border-top: 2px solid var(--border); flex-shrink: 0; }
  .order-form h3 { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
  .form-group { margin-bottom: 12px; }
  .form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--gray); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
  .form-group input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 16px;
    font-family: 'PT Sans', sans-serif;
    outline: none;
    transition: border-color 0.18s;
    background: var(--white);
  }
  .form-group input:focus { border-color: var(--navy); }
  .order-btn {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.18s;
  }
  .order-btn:hover { background: #B71C1C; }
  .order-note { font-size: 12px; color: var(--gray); text-align: center; margin-top: 8px; }

  /* ── FOOTER ── */
  .site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 48px 20px 32px; }
  .footer-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; }
  @media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
  .footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: var(--white); letter-spacing: 0.06em; margin-bottom: 14px; text-transform: uppercase; }
  .footer-col p, .footer-col a { font-size: 14px; line-height: 2; color: rgba(255,255,255,0.6); text-decoration: none; display: block; transition: color 0.18s; }
  .footer-col a:hover { color: var(--white); }
  .footer-msngr { display: flex; flex-direction: column; gap: 8px; }
  .footer-msg-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 700; color: #fff; transition: opacity 0.18s; width: fit-content; }
  .footer-msg-btn:hover { opacity: 0.85; }
  .footer-msg-btn.tg { background: #29A8E0; }
  .footer-msg-btn.vb { background: #7B60AB; }
  .footer-msg-btn.wa { background: #25D366; }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.35); }

  /* ── TOAST ── */
  .toast {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    z-index: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border-left: 4px solid var(--green);
    max-width: 280px;
  }
  .toast.show { opacity: 1; transform: translateY(0); }