:root {
      --bg-page: #F8FAFC;
      --bg-card: #FFFFFF;
      --bg-subtle: #F1F5F9;
      --text-main: #0F172A;
      --text-secondary: #334155;
      --text-muted: #64748B;
      --brand-navy: #142F4C;
      --brand-navy-dark: #0B1E33;
      --brand-navy-light: #1E4268;
      --cta-orange: #D95D1E;
      --cta-orange-hover: #B84A12;
      --status-green: #15803D;
      --status-green-bg: #DCFCE7;
      --border-color: #CBD5E1;
      --border-soft: #E2E8F0;
      --radius-md: 10px;
      --radius-lg: 14px;
      --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
      --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

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

    html {
      scroll-behavior: smooth;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      color: var(--text-main);
      background-color: var(--bg-page);
      line-height: 1.5;
    }

    body { overflow-x: hidden; }
    .tabular-nums { font-variant-numeric: tabular-nums; }
    .container { max-width: 1360px; margin: 0 auto; padding: 0 18px; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--brand-navy-dark);
      color: #FFFFFF;
      border-bottom: 2px solid var(--cta-orange);
      box-shadow: 0 4px 18px rgba(11, 30, 51, 0.25);
    }

    .header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 0;
      flex-wrap: wrap;
    }

    .brand-block {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: #FFFFFF;
      cursor: pointer;
    }

    .brand-logo-svg {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      background: var(--brand-navy);
      border: 1.5px solid var(--cta-orange);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .brand-title {
      font-size: 1.22rem;
      font-weight: 900;
      letter-spacing: 0.04em;
      line-height: 1.05;
      color: #FFFFFF;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .brand-domain-badge {
      font-size: 0.68rem;
      font-weight: 700;
      background: rgba(217, 93, 30, 0.25);
      border: 1px solid var(--cta-orange);
      color: #FDBA74;
      padding: 1px 6px;
      border-radius: 5px;
    }

    .brand-subtitle {
      font-size: 0.7rem;
      color: #CBD5E1;
      line-height: 1.2;
      margin-top: 2px;
    }

    .header-search-wrap {
      flex: 1 1 260px;
      max-width: 430px;
      position: relative;
    }

    .header-search-input {
      width: 100%;
      padding: 8px 34px 8px 12px;
      border-radius: 7px;
      border: 1px solid #334155;
      background: #162B44;
      color: #FFFFFF;
      font-size: 0.82rem;
      outline: none;
    }

    .header-search-input::placeholder { color: #94A3B8; }
    .header-search-input:focus { border-color: var(--cta-orange); background: #1B3554; }

    .header-search-clear {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #94A3B8;
      cursor: pointer;
      font-size: 0.95rem;
      display: none;
    }

    .search-dropdown {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      right: 0;
      background: #FFFFFF;
      color: var(--text-main);
      border: 2px solid var(--brand-navy);
      border-radius: 10px;
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
      max-height: 380px;
      overflow-y: auto;
      z-index: 1500;
      display: none;
    }

    .search-dropdown.open { display: block; }

    .search-drop-item {
      padding: 9px 12px;
      border-bottom: 1px solid var(--border-soft);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      font-size: 0.8rem;
      text-decoration: none;
      color: var(--text-main);
    }

    .search-drop-item:hover { background: #EFF6FF; }

    .header-contacts { display: flex; align-items: center; gap: 14px; }
    .contact-item { display: flex; flex-direction: column; text-align: right; }

    .contact-phone {
      font-size: 1.02rem;
      font-weight: 800;
      color: #FFFFFF;
      text-decoration: none;
      font-variant-numeric: tabular-nums;
    }

    .contact-phone:hover { color: #FDBA74; }
    .contact-sub { font-size: 0.69rem; color: #94A3B8; }
    .contact-email { color: #FDBA74; font-weight: 700; text-decoration: none; }

    .btn-cta-primary {
      background: var(--cta-orange);
      color: #FFFFFF;
      border: none;
      padding: 8px 14px;
      border-radius: 7px;
      font-size: 0.82rem;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.18s, transform 0.15s;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      text-decoration: none;
    }

    .btn-cta-primary:hover { background: var(--cta-orange-hover); transform: translateY(-1px); }

    .btn-secondary-navy {
      background: var(--brand-navy);
      color: #FFFFFF;
      border: 1px solid var(--brand-navy-light);
      padding: 8px 13px;
      border-radius: 7px;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.18s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .btn-secondary-navy:hover { background: var(--brand-navy-light); }

    .btn-outline-navy {
      background: #FFFFFF;
      color: var(--brand-navy);
      border: 1.5px solid var(--brand-navy);
      padding: 7px 12px;
      border-radius: 7px;
      font-size: 0.78rem;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.15s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-outline-navy:hover { background: var(--brand-navy); color: #FFFFFF; }

    .hub-nav-bar {
      background: var(--brand-navy);
      border-top: 1px solid rgba(255, 255, 255, 0.09);
      padding: 5px 0;
    }

    .hub-nav-wrap {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      overflow: visible;
    }

    .hub-nav-btn {
      background: rgba(255, 255, 255, 0.05);
      color: #E2E8F0;
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 5px 7px;
      border-radius: 5px;
      font-size: 0.73rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      flex: 1 1 auto;
      text-align: center;
      line-height: 1.2;
      text-decoration: none;
    }

    .hub-nav-btn:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }

    .hub-nav-btn.active {
      background: var(--cta-orange);
      border-color: var(--cta-orange);
      color: #FFFFFF;
      font-weight: 800;
    }

    .page-view { padding: 22px 0 36px; min-height: 72vh; }

    .breadcrumbs {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-bottom: 14px;
    }

    .breadcrumbs a, .breadcrumbs button {
      background: none;
      border: none;
      color: var(--brand-navy);
      font-weight: 700;
      cursor: pointer;
      font-size: 0.78rem;
      text-decoration: underline;
    }

    .std-badge {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--brand-navy);
      background: #E0F2FE;
      border: 1px solid #BAE6FD;
      padding: 3px 8px;
      border-radius: 5px;
    }

    .model-code-badge {
      display: inline-block;
      font-size: 0.74rem;
      font-weight: 800;
      color: var(--brand-navy);
      background: #E2E8F0;
      padding: 3px 8px;
      border-radius: 5px;
      font-variant-numeric: tabular-nums;
    }

    .kind-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 5px;
      background: var(--status-green-bg);
      color: var(--status-green);
      border: 1px solid #86EFAC;
    }

    .home-hero-grid {
      display: grid;
      grid-template-columns: 1.55fr 1fr;
      gap: 18px;
      margin-bottom: 26px;
    }

    .home-hero-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 22px 24px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .home-h1 {
      font-size: 1.44rem;
      font-weight: 900;
      line-height: 1.25;
      margin: 8px 0 10px;
      color: var(--text-main);
    }

    .home-lead { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 14px; }

    .home-kpi-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }

    .kpi-box {
      background: var(--bg-subtle);
      border: 1px solid var(--border-soft);
      border-radius: 9px;
      padding: 10px;
    }

    .kpi-num { font-size: 1.05rem; font-weight: 900; color: var(--brand-navy); }
    .kpi-txt { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; line-height: 1.25; }

    .home-kb-banner {
      background: var(--brand-navy);
      color: #FFFFFF;
      border-radius: var(--radius-lg);
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .sections-grid-8 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 28px;
    }

    .section-dir-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
      transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
    }

    .section-dir-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
      border-color: var(--brand-navy);
    }

    .tools-strip-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-bottom: 28px;
    }

    .tool-banner-card {
      background: linear-gradient(135deg, #142F4C 0%, #0B1E33 100%);
      color: #FFFFFF;
      border-radius: var(--radius-md);
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
      border: 1px solid #2B4C73;
    }

    .section-hero-box {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-left: 5px solid var(--brand-navy);
      border-radius: var(--radius-md);
      padding: 20px;
      margin-bottom: 20px;
    }

    .subtabs-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
      background: var(--bg-card);
      padding: 10px 14px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
    }

    .subtab-btn {
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 7px 14px;
      border-radius: 7px;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
    }

    .subtab-btn.active {
      background: var(--brand-navy);
      color: #FFFFFF;
      border-color: var(--brand-navy);
    }

    .series-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 14px;
      margin-bottom: 22px;
    }

    .series-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
    }

    .table-scroll-container {
      width: 100%;
      overflow-x: auto;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
    }

    .models-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 900px;
      font-variant-numeric: tabular-nums;
    }

    .models-table th {
      background: var(--brand-navy);
      color: #FFFFFF;
      font-size: 0.78rem;
      font-weight: 700;
      text-align: left;
      padding: 10px 12px;
    }

    .models-table td {
      padding: 9px 12px;
      font-size: 0.81rem;
      border-bottom: 1px solid var(--border-soft);
      vertical-align: middle;
    }

    .models-table tbody tr:nth-child(even) { background: #F8FAFC; }
    .models-table tbody tr:hover { background: #EFF6FF; }

    .model-link-btn {
      background: none;
      border: none;
      color: var(--brand-navy);
      font-weight: 900;
      font-size: 0.82rem;
      cursor: pointer;
      text-decoration: underline;
      text-align: left;
    }

    .model-link-btn:hover { color: var(--cta-orange); }

    .model-page-grid {
      display: grid;
      grid-template-columns: 1.15fr 1.25fr;
      gap: 22px;
      margin-bottom: 24px;
    }

    .model-visual-box {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 14px;
    }

    .model-specs-box {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 20px;
    }

    .passport-table {
      width: 100%;
      border-collapse: collapse;
      margin: 12px 0 16px;
      font-size: 0.84rem;
    }

    .passport-table th, .passport-table td {
      padding: 9px 10px;
      border-bottom: 1px solid var(--border-soft);
      text-align: left;
    }

    .passport-table th {
      width: 38%;
      color: var(--text-secondary);
      font-weight: 700;
      background: var(--bg-subtle);
    }

    .passport-table td { font-weight: 800; color: var(--text-main); }

    .sibling-models-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 10px;
    }

    .sibling-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 11px 13px;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .sibling-card:hover { border-color: var(--cta-orange); background: #FFF7ED; }

    .plain-explain-box {
      background: #FFFBEB;
      border: 1px solid #FDE68A;
      border-left: 5px solid var(--cta-orange);
      border-radius: 10px;
      padding: 14px 16px;
    }

    .plain-term-item {
      background: #FFFFFF;
      border: 1px solid #FDE68A;
      border-radius: 8px;
      padding: 10px 12px;
      margin-top: 8px;
    }

    .form-group { display: flex; flex-direction: column; gap: 5px; }
    .form-label { font-size: 0.8rem; font-weight: 700; color: var(--text-main); }

    .form-select, .form-input {
      padding: 9px 12px;
      border-radius: 7px;
      border: 1px solid var(--border-color);
      font-size: 0.85rem;
      background: #FFFFFF;
      color: var(--text-main);
      outline: none;
    }

    .form-input.valid { border-color: var(--status-green); background: #F0FDF4; }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.72);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-backdrop.open { display: flex; }

    .modal-window {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      max-width: 720px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 24px;
      position: relative;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .modal-close-btn {
      position: absolute;
      top: 14px;
      right: 14px;
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      width: 32px;
      height: 32px;
      border-radius: 50%;
      font-size: 1rem;
      font-weight: 800;
      cursor: pointer;
    }

    .toast-notice {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--brand-navy-dark);
      color: #FFFFFF;
      border-left: 4px solid var(--cta-orange);
      padding: 12px 18px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 700;
      box-shadow: var(--shadow-md);
      z-index: 2500;
      display: none;
    }

    .site-footer {
      background: var(--brand-navy-dark);
      color: #CBD5E1;
      padding: 32px 0 24px;
      font-size: 0.82rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
      gap: 22px;
      margin-bottom: 20px;
    }

    .footer-title { color: #FFFFFF; font-weight: 800; font-size: 0.92rem; margin-bottom: 8px; }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 5px; }
    .footer-links a { color: #CBD5E1; text-decoration: none; }
    .footer-links a:hover { color: #FDBA74; }

    @media (max-width: 1100px) {
      .home-hero-grid, .model-page-grid, .footer-grid { grid-template-columns: 1fr; }
      .sections-grid-8, .tools-strip-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 640px) {
      .sections-grid-8, .tools-strip-grid, .home-kpi-grid { grid-template-columns: 1fr; }
    }
