:root {
      --bg: #0f172a;
      --card: rgba(255,255,255,.06);
      --line: rgba(255,255,255,.14);
      --text: #f8fafc;
      --muted: #cbd5e1;

      --accent: #22c55e;
      --accent-2: #16a34a;

      --wb: #a855f7;
      --wb-2: #7e22ce;
      --wb-text: #fdf4ff;
      --wb-glow: rgba(168,85,247,.28);

      --ozon: #38bdf8;
      --ozon-2: #2563eb;
      --ozon-text: #eff6ff;
      --ozon-glow: rgba(56,189,248,.26);

      --shadow: 0 12px 40px rgba(0, 0, 0, .25);
      --radius: 18px;
      --radius-lg: 24px;
      --max: 1180px;
    }

    .footer-hub {
      --fh-bg: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
      --fh-line: rgba(255,255,255,.12);
      --fh-line-soft: rgba(255,255,255,.08);
      --fh-text: #f8fafc;
      --fh-muted: #cbd5e1;
      --fh-shadow: 0 12px 40px rgba(0, 0, 0, .25);

      --fh-wb: #a855f7;
      --fh-wb-2: #7e22ce;
      --fh-ozon: #38bdf8;
      --fh-ozon-2: #2563eb;
    }

    .footer-hub {
      padding: 10px 0 24px;
      color: var(--fh-text);
    }

    .footer-hub .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .footer-hub-card {
      background: var(--fh-bg);
      border: 1px solid var(--fh-line);
      border-radius: 24px;
      padding: 22px;
      box-shadow: var(--fh-shadow);
    }

    .footer-hub-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .footer-hub-title {
      margin: 0 0 8px;
      font-size: 24px;
      line-height: 1.1;
      letter-spacing: -0.02em;
    }

    .footer-hub-text {
      margin: 0;
      color: var(--fh-muted);
      font-size: 14px;
      line-height: 1.6;
      max-width: 68ch;
    }

    .footer-market {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .footer-hub .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 12px 18px;
      border-radius: 12px;
      border: 1px solid transparent;
      font-weight: 700;
      font-size: 14px;
      text-decoration: none;
      white-space: nowrap;
      transition: .2s ease;
      cursor: pointer;
    }

    .footer-hub .btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.03);
    }

    .footer-hub .btn-wb {
      background: linear-gradient(180deg, var(--fh-wb), var(--fh-wb-2));
      color: #fdf4ff;
      box-shadow: 0 8px 18px rgba(168,85,247,.28);
    }

    .footer-hub .btn-ozon {
      background: linear-gradient(180deg, var(--fh-ozon), var(--fh-ozon-2));
      color: #eff6ff;
      box-shadow: 0 8px 18px rgba(56,189,248,.26);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
      margin-top: 8px;
    }

    .footer-col {
      background: rgba(255,255,255,.03);
      border: 1px solid var(--fh-line-soft);
      border-radius: 16px;
      padding: 14px;
    }

    .footer-col h3 {
      margin: 0 0 10px;
      font-size: 16px;
      line-height: 1.3;
    }

    .footer-links {
      display: grid;
      gap: 8px;
    }

    .footer-links a,
    .footer-links span {
      color: var(--fh-muted);
      font-size: 14px;
      line-height: 1.45;
      text-decoration: none;
      word-break: break-word;
    }

    .footer-links a:hover {
      color: var(--fh-text);
    }

    .footer-note {
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid var(--fh-line-soft);
      color: #d1fae5;
      font-size: 14px;
      line-height: 1.5;
    }

    .footer-note a {
      color: inherit;
      text-decoration: underline;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }

    body {
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(900px 500px at 10% -10%, rgba(34,197,94,.20), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(59,130,246,.16), transparent 60%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 45%, #0b1220 100%);
      line-height: 1.5;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .container {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid transparent;
      font-weight: 700;
      padding: 12px 18px;
      border-radius: 12px;
      transition: .2s ease;
      cursor: pointer;
      white-space: nowrap;
      user-select: none;
    }

    .btn:hover { transform: translateY(-1px); filter: brightness(1.03); }

    .btn-wb {
      background: linear-gradient(180deg, var(--wb), var(--wb-2));
      color: var(--wb-text);
      box-shadow: 0 8px 18px var(--wb-glow);
      border-color: rgba(255,255,255,.05);
    }

    .btn-ozon {
      background: linear-gradient(180deg, var(--ozon), var(--ozon-2));
      color: var(--ozon-text);
      box-shadow: 0 8px 18px var(--ozon-glow);
      border-color: rgba(255,255,255,.05);
    }

    .btn-info {
      background: rgba(255,255,255,.04);
      color: var(--text);
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: none;
    }

    .btn-info:hover { background: rgba(255,255,255,.08); }

    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(10px);
      background: rgba(8,12,22,.45);
      border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .header-inner {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 0;
      flex-wrap: wrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 800;
      letter-spacing: .2px;
    }

    .brand-logo {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background:
        radial-gradient(circle at 70% 30%, rgba(255,255,255,.7), transparent 35%),
        linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #14532d 100%);
      display: grid;
      place-items: center;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 10px 22px rgba(34,197,94,.22);
      font-size: 19px;
    }

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

    .nav a.link {
      color: var(--muted);
      padding: 8px 10px;
      border-radius: 10px;
      font-size: 14px;
    }

    .nav a.link:hover {
      background: rgba(255,255,255,.04);
      color: var(--text);
    }

    main { padding: 26px 0 10px; }

    .page-title {
      margin: 0 0 10px;
      font-size: clamp(22px, 3.5vw, 34px);
      letter-spacing: -.02em;
      line-height: 1.15;
    }

    .page-sub {
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 15px;
      max-width: 70ch;
    }

    .panel,
    .related-wrap {
      background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
    }

    .panel::before,
    .related-wrap::before {
      content: "";
      position: absolute;
      inset: auto -80px -80px auto;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(34,197,94,.14), transparent 70%);
      filter: blur(10px);
      pointer-events: none;
    }

    .panel-inner {
      padding: 18px;
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 16px;
      align-items: start;
    }

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

    .main-shot {
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.02);
      overflow: hidden;
      position: relative;
    }

    .main-shot img {
      width: 100%;
      height: auto;
      display: block;
    }

    .thumbs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .thumb {
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.02);
      overflow: hidden;
      cursor: zoom-in;
      transition: .18s ease;
    }

    .thumb img {
      width: 100%;
      height: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      display: block;
      transition: .18s ease;
    }

    .thumb:hover { transform: translateY(-2px); }
    .thumb:hover img { transform: scale(1.05); }

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

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: #dcfce7;
      background: rgba(34,197,94,.10);
      border: 1px solid rgba(34,197,94,.25);
      padding: 7px 10px;
      border-radius: 999px;
      width: fit-content;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 0 0 6px rgba(34,197,94,.12);
    }

    .specs {
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 16px;
      padding: 14px;
      display: grid;
      gap: 10px;
    }

    .specs h2 {
      margin: 0;
      font-size: 16px;
      letter-spacing: -.01em;
    }

    .spec-grid {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 14px;
    }

    .spec-row {
      display: grid;
      gap: 4px;
      padding: 10px 10px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.06);
      background: rgba(255,255,255,.02);
    }

    .spec-row b {
      color: var(--text);
      font-weight: 800;
    }

    .list {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      font-size: 14px;
    }

    .list li { margin: 6px 0; }

    .actions {
      display: grid;
      gap: 10px;
    }

    .actions-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .actions .btn { width: 100%; }

    .back {
      display: grid;
      margin-top: 4px;
    }

    .back a { width: 100%; }

    /* Related */
    .related-block {
      margin-top: 18px;
    }

    .related-inner {
      padding: 18px;
      position: relative;
      z-index: 1;
    }

    .related-title {
      margin: 0 0 8px;
      font-size: clamp(22px, 3vw, 30px);
      letter-spacing: -.02em;
      line-height: 1.1;
    }

    .related-sub {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 14px;
      max-width: 72ch;
    }

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

    .related-card {
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(0,0,0,.18);
    }

    .related-top {
      padding: 12px;
      border-bottom: 1px solid rgba(255,255,255,.06);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .mini-badge {
      color: #f5d0fe;
      background: rgba(217,70,239,.10);
      border: 1px solid rgba(217,70,239,.22);
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    .related-volume {
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
    }

    .related-img {
      aspect-ratio: 3 / 4;
      overflow: hidden;
      background:
        radial-gradient(circle at 20% 20%, rgba(34,197,94,.10), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(59,130,246,.08), transparent 45%),
        rgba(255,255,255,.01);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .related-img img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .related-body {
      padding: 12px;
      display: grid;
      gap: 8px;
    }

    .related-name {
      margin: 0;
      font-size: 14px;
      line-height: 1.3;
      min-height: 36px;
    }

    .related-note {
      color: var(--muted);
      font-size: 13px;
      min-height: 34px;
    }

    .related-actions {
      display: grid;
      gap: 8px;
    }

    .related-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .related-actions .btn,
    .related-row .btn {
      width: 100%;
      min-width: 0;
      padding: 9px 10px;
      font-size: 13px;
    }

    .modal {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.62);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      z-index: 1000;
    }

    .modal.open { display: flex; }

    .modal-card {
      width: min(980px, 100%);
      max-height: 92vh;
      overflow: auto;
      border-radius: 18px;
      background: rgba(15, 23, 42, .92);
      border: 1px solid rgba(255,255,255,.10);
      box-shadow: 0 20px 70px rgba(0,0,0,.45);
      padding: 12px;
    }

    .modal-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 6px 6px 10px;
    }

    .modal-top b { font-size: 14px; }

    .modal-img {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.02);
    }

    .modal-img img {
      width: 100%;
      height: auto;
      display: block;
    }

    footer {
      border-top: 1px solid rgba(255,255,255,.06);
      padding: 18px 0 28px;
      color: #94a3b8;
      font-size: 13px;
      margin-top: 18px;
    }

    @media (max-width: 980px) {
      .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .panel-inner {
        grid-template-columns: 1fr;
      }

      .header {
        position: static;
        top: auto;
      }

      .header-inner {
        align-items: flex-start;
      }

      .nav {
        gap: 8px;
      }

      .nav a.link {
        display: inline-flex;
        font-size: 13px;
        padding: 6px 8px;
      }

      .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 560px) {
      .footer-hub-card {
        padding: 16px;
        border-radius: 18px;
      }

      .footer-hub-title {
        font-size: 20px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }

      .footer-market {
        width: 100%;
        flex-direction: column;
      }

      .footer-hub .btn {
        width: 100%;
        white-space: normal;
      }

      .btn { width: 100%; }
      .header-inner { min-height: 66px; }
      .brand span:last-child { display: none; }
      .thumbs { grid-template-columns: 1fr; }
      .actions-row { grid-template-columns: 1fr; }
      .related-grid { grid-template-columns: 1fr; }
      .related-row { grid-template-columns: 1fr; }
      .related-inner { padding: 16px; }
    }
