  
  :root {
    --bg: #f7f9fc;
    --panel: #ffffff;
    --text: #222831;
    --muted: #667085;
    --line: #d8e1ed;
    --soft-line: #ebeff5;
    --blue: #2367d3;
    --blue-soft: #eef5ff;
    --accent: #f1a620;
    --purple: #592aa6;
    --shadow: 0 8px 24px rgba(23, 43, 77, 0.08);
    --pill: #edf2f7;
    --icon: #5c6276;
    --footer: #fafbfd;
    --containerr: min(1520px, calc(100vw - 48px));
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Lato', sans-serif;
  }

  a {
    color: #1e40af;
    text-decoration: none;
  }

  button,
  select,
  textarea,
  input {
    font: inherit;
  }

  .page {
    width: var(--containerr);
    margin: 28px auto 40px;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .crumbs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5565;
    font-weight: 600;
  }

  .back-arrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .forum-label {
    font-size: 1.3rem;
    font-weight: 800;
    color: #24344f;
  }

  .actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .action-btn {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid #cfd8e6;
    background: var(--panel);
    padding: 0 18px;
    color: #33527e;
    cursor: pointer;
    font-weight: 600;
  }

  .action-btn.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }

  .stack {
    display: grid;
    gap: 18px;
  }

  .barr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #90b7e7;
    background: var(--blue-soft);
    color: #204f98;
    border-radius: 18px;
    padding: 11px 20px;
    cursor: pointer;
    font-weight: 600;
  }

  .caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
  }

  .search-toggle.open .caret {
    transform: rotate(-135deg);
  }

  .inline-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #111827;
    font-size: 0.95rem;
  }

  .inline-meta em {
    font-style: italic;
    font-size: 0.98rem;
  }

  .reset-link {
    color: var(--blue);
    font-weight: 700;
    cursor: pointer;
  }

  .search-panel {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid var(--line);
    background: #fbfdff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
  }

  .search-panel.open {
    display: grid;
  }

  .field {
    display: grid;
    gap: 8px;
  }

  .field label {
    color: #5f6e85;
    font-size: 0.84rem;
    font-weight: 700;
  }

  .field input,
  .field select {
    min-height: 44px;
    border: 1px solid #d4dce7;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
  }

  .search-actions {
    display: flex;
    align-items: end;
    gap: 10px;
  }

  .search-actions button {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
  }

  .search-actions .apply {
    background: var(--blue);
    color: #fff;
  }

  .search-actions .clear {
    background: #edf3fa;
    border-color: #d5dfeb;
    color: #38547b;
  }

  .issue-card,
  .panel-card,
  .sidebar-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .issue-card {
    overflow: hidden;
  }

  .issue-head {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 16px;
    padding: 18px 22px 22px;
    align-items: start;
  }

  .reactions {
    width: 60px;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--icon);
    padding-top: 18px;
  }

  .reactions svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    vector-effect: non-scaling-stroke;
  }

  .reactions .count {
    font-weight: 700;
    color: #737373;
    line-height: 1;
  }

  .issue-main {
    min-width: 0;
    padding-top: 12px;
  }

  .issue-main h1 {
    margin: 0 0 12px;
    color: #1e40af;
    font-size: clamp(1.9rem, 1.8vw, 2.2rem);
    line-height: 1.35;
  }

  .author {
    color: #4b5563;
    font-size: 0.96rem;
    margin-bottom: 14px;
  }

  .issue-text {
    color: #12151a;
    font-size: 16px;
    line-height: 1.85;
    text-align: justify;

  }

  .issue-text p {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.90;
  }

  .ai-summary {
    margin-top: 18px;
    border-left: 4px solid #96b8f0;
    background: #f7fbff;
    border-radius: 10px;
    padding: 14px 16px;
    color: #37527b;
    /*fo;nt-size: 0.96rem*/
    line-height: 1.75;
  }

  .issue-side {
    white-space: nowrap;
    /*font-size: 0.95rem;*/
    color: #5db4f0;
    padding-bottom: 10px;
  }

  .tag-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    background: #e7f5fe;
    border-radius: 999px;
    padding: 7px 20px;
    color: #42464c;
    /*font-size: 0.92rem;*/
  }

  .issue-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px;
    border-top: 1px solid #e7f5fe;
    background: #e7f5fe;
    flex-wrap: wrap;
  }

  .asker {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(180deg, #77aaed, #5c90da);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .mini-avatar svg {
    width: 22px;
    height: 22px;
    fill: #fff;
  }

  .asker-copy {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    color: #6a6e74;
    /*font-size: 0.96rem;*/
  }

  .asker-copy strong {
    color: var(--blue);
  }

  .stats {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #5f6672;
    /*font-size: 0.92rem;*/
  }

  .stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  .stats svg {
    width: 18px;
    height: 18px;
    fill: #85aeea;
    flex-shrink: 0;
  }

  .answers-shell {
    display: grid;
    gap: 22px;
  }

  .answers-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }

  .answers-title h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 500;
    color: #666b72;
  }

  .sort-select {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6a6f76;
    /*font-size: 1rem;*/
  }

  .sort-select select {
    min-width: 340px;
    min-height: 42px;
    border-radius: 18px;
    border: 1px solid #d4dce7;
    background: #fff;
    padding: 0 16px;
  }

  .reply-launcher {
    width: min(250px, 100%);
    min-height: 52px;
    border-radius: 42px;
    border: 3px solid #033b70;
    background: #033b70;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 0 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
  }

  .reply-launcher-plus {
    font-size: 3.1rem;
    line-height: 1;
    font-weight: 400;
    margin-top: -4px;
  }

  .reply-launcher-text {
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  }

  .reply-editor {
    display: none;
    border: 1px solid #ccd5e2;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
  }

  .reply-editor.open {
    display: block;
  }

  .reply-editor-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #d5dce8;
    background: #fff;
  }

  .hide-link {
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    /*font-size: 0.95rem;*/
  }

  .editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 0 14px;
    min-height: 68px;
    border-bottom: 1px solid #d5dce8;
    background: #fff;
  }

  .tool-btn,
  .tool-select {
    min-width: 38px;
    min-height: 38px;
    border: 0;
    background: transparent;
    color: #4e535c;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0 10px;
  }

  .tool-sep {
    width: 1px;
    height: 30px;
    background: #d9dfe8;
    margin: 0 6px;
  }

  .tool-select {
    min-width: 120px;
    font-weight: 500;
    text-align: left;
  }

  .reply-editor textarea {
    width: 100%;
    min-height: 320px;
    resize: vertical;
    border: 0;
    border-bottom: 1px solid #d5dce8;
    border-radius: 0;
    padding: 16px;
    background: #fff;
    outline: none;
  }

  .editor-submit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    background: #fff;
  }

  .char-count {
    color: #3b3f45;
    /*font-size: 0.92rem;*/
  }

  .editor-submit button {
    min-width: 210px;
    min-height: 46px;
    border: 1px solid #5c9df0;
    border-radius: 10px;
    background: #fff;
    color: #2c72d7;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 500;
    /*font-size: 1rem;*/
  }

  .reply-list {
    display: grid;
    gap: 18px;
  }

  .reply {
    border: 1.3px solid #027bff;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(39, 93, 174, 0.06);
  }

  .reply-grid {
    display: grid;
    grid-template-columns: 8px 1fr;
    gap: 18px;
    padding: 24px 24px 18px;
  }

  .reply-side {
    width: 64px;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--icon);
    padding-top: 10px;
  }

  .reply-side svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
  }

  .reply-side .count {
    font-size: 0.98rem;
    font-weight: 700;
    color: #787878;
    line-height: 1;
  }

  .reply-main {
    min-width: 0;
  }

  .reply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .reply-author {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .reply-author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #dbe6f3, #b4c6de);
    flex-shrink: 0;
  }

  .reply-author strong {
    display: block;
    color: #264fb7;
    /*font-size: 0.95rem;*/
    font-weight: 600;
  }

  .reply-date {
    color: #818181;
    /*font-size: 0.95rem;*/
    font-weight: 600;
    white-space: nowrap;
  }

  .reply-body {
    color: #181b22;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.82;
    text-align: justify;

  }

  .reply-body p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.90;
  }

  .reply-body strong,
  .reply-body a {
    /* color: #2773c5; */
    font-weight: 700;
    /* text-decoration: underline; */
  }

  .sidebar-card {
    padding: 18px;
  }

  .sidebar-card h3 {
    margin: 0 0 14px;
    /*font-size: 1rem;*/
    color: #28415f;
  }

  .recent-list {
    display: grid;
    gap: 12px;
  }

  .recent-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--soft-line);
  }

  .recent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .recent-item a {
    display: block;
    color: #1c3556;
    /*font-size: 0.94rem;*/
    line-height: 1.55;
    font-weight: 600;
  }

  .recent-item a.active {
    color: var(--blue);
  }

  .recent-item span {
    display: block;
    margin-top: 4px;
    color: #7a8494;
    /*font-size: 0.82rem;*/
  }

  @media (max-width: 1100px) {
    .layout {
      grid-template-columns: 1fr;
    }

    .search-panel {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 760px) {
    .page {
      width: calc(100vw - 24px);
      margin-top: 18px;
    }

    .search-panel {
      grid-template-columns: 1fr;
    }

    .search-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .issue-head {
      grid-template-columns: 1fr;
      padding: 18px;
    }

    .reactions {
      width: auto;
      grid-auto-flow: column;
      justify-content: start;
      gap: 14px;
      padding-top: 0;
    }

    .reactions .count {
      align-self: center;
    }

    .issue-main,
    .issue-side {
      padding-top: 0;
    }

    .issue-foot {
      padding: 14px 18px;
    }

    .answers-card {
      padding: 0;
      border: 0;
      box-shadow: none;
      background: transparent;
    }

    .sort-select select {
      min-width: 260px;
    }

    .reply-grid {
      grid-template-columns: 1fr;
      padding: 18px;
    }

    .reply-side {
      width: auto;
      grid-auto-flow: column;
      justify-content: start;
      gap: 14px;
      padding-top: 0;
    }

    .reply-side .count {
      align-self: center;
    }

    .reply-launcher {
      min-height: 42px;
      border-radius: 36px;
      padding: 0 46px;
    }

    .reply-editor textarea {
      min-height: 220px;
    }

    .stats {
      justify-content: flex-start;
    }
  }

  .post-btn {
    padding: 10px 22px;
    background: #007f5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .post-btn:hover {
    background: #2b9348;
  }

.floating-btn {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: linear-gradient(135deg, #007f5f, #2b9348);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(0, 127, 95, 0.45),
        0 0 18px rgba(43, 147, 72, 0.35);

    animation: floatJump 1.5s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* Shine Effect */
.floating-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.35);
    transform: skewX(-25deg);

    animation: shine 2.5s infinite;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 24px rgba(0, 127, 95, 0.55),
        0 0 22px rgba(43, 147, 72, 0.45);
}

/* Jump Animation */
@keyframes floatJump {
    0%,100%{
        bottom:30px;
    }

    50%{
        bottom:42px;
    }
}

/* Shine Animation */
@keyframes shine {
    0%{
        left:-80%;
    }

    100%{
        left:140%;
    }
}


  /* Modal Background */
  .modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }

  /* Modal Box */
  .modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn .3s ease;
  }

  @keyframes fadeIn {
    from {
      transform: scale(.9);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
  }

  .modal-content h2 {
    text-align: center;
    margin-bottom: 15px;
  }

  /* Form */
  .article-form input,
  .article-form select,
  .article-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }

  .submit-btn {
    width: 100%;
    background: #007f5f;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
  }

  .submit-btn:hover {
    background: #2b934;
  }

  /* Responsive */
  @media(max-width:480px) {
    .floating-btn {
      right: 15px;
      bottom: 20px;
      font-size: 13px;
      padding: 12px 16px;
    }
  }

  .modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;

    /* ЁЯСЗ роорпБроХрпНроХро┐ропроорпН */
    max-height: 80vh;
    /* full height роЖроХро╛рооро▓рпН control */
    overflow-y: auto;
    /* content роЕродро┐роХрооро╛ роЗро░рпБроирпНродро╛ scroll */

    margin: auto;
    border-radius: 10px;
    padding: 20px;
    position: relative;
  }

  
  .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding-top: 4px;
    }

    .pager-btn {
      min-width: 110px;
      min-height: 40px;
      border-radius: 999px;
      border: 1px solid #d8e0eb;
      background: #fff;
      color: #28496f;
      cursor: pointer;
    }

    .pager-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .page-label {
      color: #4a5260;
      font-size: 0.94rem;
    }

  