:root {
    --blue-dark: #1e40af;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --cyan: #06b6d4;
    --green: #10b981;
    --green-dark: #059669;
    --red: #ef4444;
    --red-dark: #e32239;
    --yellow: #fbbf24;
    --yellow-dark: #f59e0b;
    --gray-bg: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #475569;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-bg);
    color: var(--gray-900);
    min-height: 100vh;
    margin: 0;
}

.site-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

.header {
    margin-bottom: 40px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 4px rgba(16,24,40,0.03);
}

.header-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-square {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #e32239, #f95367 50%, #d3011a);
    box-shadow: 0 4px 20px rgba(59,130,246,0.15);
}

.logo-symbol {
    color: #fff; font-weight: 700; font-size: 2rem;
}

.site-title {
    font-size: 2rem; font-weight: 700;
    color: var(--gray-900);
}

.section-wrapper {
    padding: 48px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.12rem;
    margin-bottom: 32px;
}

.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.input-row {
    position: relative;
    width: 100%;
}
.phone-input {
    width: 100%;
    height: 56px;
    padding: 0 130px 0 52px; /* правий паддінг під кнопку */
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    font-size: 1.125rem;
    background: #fff;
    color: var(--gray-900);
    outline: none;
    box-shadow: 0 1px 4px 0 rgba(16,24,40,0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    display: block;
}

.search-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 40px;
    padding: 0 28px;
    background: linear-gradient(135deg, #e32239, #f95367 50%, #d3011a);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    z-index: 1;
}
.search-btn:hover {
    box-shadow: 0 4px 16px rgba(59,130,246,0.15);
    transform: translateY(-2px);
}
.phone-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}
@media (max-width: 600px) {
    .phone-input { padding-right: 98px; }
    .search-btn { padding: 0 14px; font-size: 0.98rem; }
}


.info-note {
    color: var(--gray-500);
    font-size: 0.92rem;
    text-align: center;
    margin-bottom: 0;
}

.result-block {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    padding: 32px;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto; margin-right: auto;
}

.result-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.result-number-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.result-number-title i {
    font-weight: normal;
    color: #727272;
    font-size: 25px;
}

.result-number-title b {
    margin-right: 10px;
}

.result-info-list {
    margin-bottom: 14px;
}

.result-label {
    font-weight: 600;
}

.number-status-label {
    display: inline-block;
    min-width: 120px;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 14px 0 rgba(59,130,246,0.11);
}

.status-scam {
    background: #e32239;
}
.status-spam {
    background: #e32239;
}
.status-promo {
    background: #e25c00;
}
.status-collector {
    background: #7c3aed;
}
.status-survey {
    background: #059669;
}
.status-hooligan {
    background: #ea580c;
}
.status-propaganda {
    background: #be185d;
}
.status-work {
    background: #0891b2;
}
.status-info {
    background: #0ea5e9;
}
.status-safe {
    background: linear-gradient(90deg, var(--green-dark), var(--green));
}
.status-private {
    background: #6b7280;
}
.status-other {
    background: linear-gradient(90deg, var(--gray-500), var(--gray-300));
}
.status-unknown {
    background: linear-gradient(90deg, var(--gray-500), var(--gray-500));
}

.user-comments-section {
    background: #f2d7e8;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    padding: 24px;
    margin-bottom: 24px;
}
.user-comments-title {
    font-weight: 600;
    margin: 0 0 12px 0;
    font-size: 1.12rem;
}
.user-comment {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    padding: 16px;
    margin-bottom: 10px;
}
.user-comment-date {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-top: 4px;
}

.button-row {
    display: flex;
    gap: 12px;
}
.button-danger {
    display: flex; align-items: center; gap: 8px;
    background: var(--red-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.button-danger:hover { background: var(--red); }
.button-light {
    display: flex; align-items: center; gap: 8px;
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.button-light:hover { background: var(--gray-300); }

.number-table-block {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    margin-bottom: 48px;
}

.number-table-scroll {
    overflow-x: auto;
}

.number-table {
    width: 100%;
    font-size: 1.07rem;
}

/* Специальные стили для таблицы похожих номеров */
.similar-numbers-table {
    min-width: 0; /* Убираем минимальную ширину для похожих номеров */
}

.number-table-header {
    display: grid;
    grid-template-columns: 60px 1fr 1.5fr 100px 150px;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-200);
}

.number-table-body {
    display: flex;
    flex-direction: column;
}

.number-table-row {
    display: grid;
    grid-template-columns: 60px 1fr 1.5fr 100px 150px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-200);
}

.number-table-row:hover {
    background: var(--gray-100);
    text-decoration: none;
    color: inherit;
}

.number-table-cell {
    padding: 18px 20px;
    text-align: left;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.number-table-header .number-table-cell {
    font-weight: 600;
}

/* Специальные стили для таблицы похожих номеров (3 колонки) */
.similar-numbers-table .number-table-header,
.similar-numbers-table .number-table-row {
    grid-template-columns: 1fr 1.5fr 210px;
}

/* Специальные стили для таблицы топ-спам номеров */
.top-spam-table .number-table-header,
.top-spam-table .number-table-row {
    grid-template-columns: 60px 1fr 1.5fr 100px 210px;
}

/* Ограничение ширины блока похожих номеров */
.number-table-block.similar-numbers-block {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Ограничение ширины блока топ-спам номеров */
.number-table-block.top-spam-block {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.similar-numbers-block .number-table-scroll {
    overflow-x: visible; /* Убираем горизонтальный скролл */
}

.top-spam-block .number-table-scroll {
    overflow-x: auto; /* Оставляем горизонтальный скролл для топ-спам */
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .similar-numbers-block {
        max-width: 90%;
    }
    
    .top-spam-block {
        max-width: 95%;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .similar-numbers-block {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .top-spam-block {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .similar-numbers-block .section-title,
    .top-spam-block .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px;
    }
    
    .similar-numbers-table .number-table-header,
    .similar-numbers-table .number-table-row {
        grid-template-columns: 1fr 210px;
    }
    
    .top-spam-table .number-table-header,
    .top-spam-table .number-table-row {
        grid-template-columns: 60px 1fr 210px;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .similar-numbers-table .number-table-cell:nth-child(2) {
        display: none; /* Скрываем колонку "Оператор" */
    }
    
    .similar-numbers-table .number-table-cell:nth-child(3) {
        grid-column: 2; /* Перемещаем статус во вторую колонку */
    }
    
    .top-spam-table .number-table-cell:nth-child(3),
    .top-spam-table .number-table-cell:nth-child(4) {
        display: none; /* Скрываем колонки "Оператор" и "Жалобы" */
    }
    
    .top-spam-table .number-table-cell:nth-child(5) {
        grid-column: 3; /* Перемещаем статус в третью колонку */
    }
}

@media (max-width: 480px) {
    .similar-numbers-block {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    .top-spam-block {
        margin-left: 8px;
        margin-right: 8px;
    }
    
    .similar-numbers-block .section-title,
    .top-spam-block .section-title {
        font-size: 1.3rem !important;
        margin-bottom: 16px;
    }
    
    .similar-numbers-table .number-table-header,
    .similar-numbers-table .number-table-row {
        grid-template-columns: 1fr 175px;
    }
    
    .top-spam-table .number-table-header,
    .top-spam-table .number-table-row {
        grid-template-columns: 34px 1fr 206px;
    }
    
    .similar-numbers-table .number-table-cell,
    .top-spam-table .number-table-cell {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .similar-numbers-table .number-status-label,
    .top-spam-table .number-status-label {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Стили для последних комментариев */
.latest-comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.comment-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.comment-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.comment-date {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.comment-phone {
    color: var(--red-dark);
    font-weight: 600;
    text-decoration: none;
    font-family: monospace;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.comment-phone:hover {
    text-decoration: underline;
}

.comment-type {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Адаптивность для последних комментариев */
@media (max-width: 768px) {
    .latest-comments-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .comment-card {
        padding: 16px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Стили для капчи */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.error-message {
    color: var(--red);
    font-size: 0.875rem;
    margin-top: 4px;
}

.success-message {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16,185,129,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* Адаптивность капчі */
@media (max-width: 480px) {
    .captcha-container {
        padding: 12px;
    }
    
    .captcha-container > div {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/* Стили для статичных страниц */
.static-page {
    padding: 40px 0;
    background: var(--gray-50);
    min-height: calc(100vh - 200px);
}

.static-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 40px;
}

.static-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px;
    text-align: center;
}

.static-body {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1rem;
}

.static-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.static-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 12px 0;
}

.static-body p {
    margin-bottom: 16px;
}

.static-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.static-body li {
    margin-bottom: 8px;
}

.static-body strong {
    font-weight: 600;
    color: var(--gray-900);
}

.static-body em {
    font-style: italic;
    color: var(--gray-600);
}

/* Адаптивность для статичных страниц */
@media (max-width: 768px) {
    .static-page {
        padding: 20px 0;
    }
    
    .static-content {
        margin: 0 16px;
        padding: 24px;
    }
    
    .static-title {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .static-body h2 {
        font-size: 1.3rem;
        margin: 24px 0 12px 0;
    }
    
    .static-body h3 {
        font-size: 1.1rem;
        margin: 20px 0 10px 0;
    }
}

@media (max-width: 480px) {
    .static-content {
        margin: 0 8px;
        padding: 16px;
    }
    
    .static-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .static-body {
        font-size: 0.95rem;
    }
    
    .static-body h2 {
        font-size: 1.2rem;
    }
    
    .static-body h3 {
        font-size: 1rem;
    }
}

/* Стили для варіантів номера */
.phone-variants-block {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    padding: 32px;
    margin-bottom: 24px;
}

.phone-variants-container {
    overflow-x: auto;
}

.phone-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    min-width: 0;
}

.phone-variant-item {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.phone-variant-item:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.phone-variant-number {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Адаптивність для варіантів номера */
@media (max-width: 768px) {
    .phone-variants-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .phone-variant-item {
        padding: 8px;
    }
    
    .phone-variant-number {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .phone-variants-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
    
    .phone-variant-item {
        padding: 6px;
    }
    
    .phone-variant-number {
        font-size: 0.8rem;
    }
}

/* Модальне вікно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    padding: 32px 32px 24px;
    text-align: center;
}

.modal-icon {
    margin-bottom: 16px;
}

.modal-icon svg {
    color: #fff;
    width: 48px;
    height: 48px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 32px;
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

.modal-close-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.modal-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239,68,68,0.4);
    color: #fff;
}

.modal-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Адаптивність для модального вікна */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 24px 24px 20px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-footer {
        padding: 0 24px 24px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
}



/* Сторінка 404 */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-container {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    padding: 48px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-icon {
    margin-bottom: 32px;
    color: var(--gray-400);
}

.error-icon svg {
    width: 120px;
    height: 120px;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--red);
    margin: 0 0 16px 0;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 16px 0;
}

.error-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.error-btn.primary {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.error-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
    color: #fff;
}

.error-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.error-btn.secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
    color: var(--gray-800);
}

.error-btn svg {
    width: 20px;
    height: 20px;
}

.error-help {
    text-align: left;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.error-help h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 16px 0;
}

.error-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-help li {
    color: var(--gray-600);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.error-help li:before {
    content: "•";
    color: var(--blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.error-help li:last-child {
    margin-bottom: 0;
}

.error-help a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.error-help a:hover {
    text-decoration: underline;
}

/* Адаптивність для сторінки 404 */
@media (max-width: 768px) {
    .error-page {
        padding: 20px 16px;
    }
    
    .error-container {
        padding: 32px 24px;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 24px 16px;
    }
    
    .error-code {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 1.3rem;
    }
    
    .error-description {
        font-size: 0.9rem;
    }
    
    .error-help {
        padding: 16px;
    }
    
    .error-help h3 {
        font-size: 1rem;
    }
    
    .error-help li {
        font-size: 0.9rem;
    }
}

/* Пагинация */
.pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    padding: 0 16px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
}

.pagination li {
    margin: 0;
    flex-shrink: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.pagination .page-link:hover {
    background: var(--gray-100);
    border-color: var(--red-dark);
    color: var(--red-dark);
}

.pagination .page-item.active .page-link {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-500);
    cursor: not-allowed;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: 600;
    min-width: 60px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .pagination-wrapper {
        padding: 0 8px;
        margin-top: 24px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 0.85rem;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 50px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination-wrapper {
        padding: 0 4px;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination .page-link {
        min-width: 28px;
        height: 28px;
        padding: 0 4px;
        font-size: 0.8rem;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 45px;
        font-size: 0.75rem;
    }
}

/* Стили для скролла пагинации */
.pagination-wrapper::-webkit-scrollbar {
    height: 4px;
}

.pagination-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.pagination-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.pagination-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Плавная прокрутка к якорям */
html {
    scroll-behavior: smooth;
}

/* Отступ для якоря, чтобы заголовок не скрывался под фиксированным хедером */
#comments {
    scroll-margin-top: 100px;
}


.section-howworks {
    margin: 0 auto 64px auto;
    max-width: 1100px;
}
.howworks-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 700px) {
    .howworks-cards { grid-template-columns: repeat(3, 1fr); }
}
.howworks-card {
    text-align: center;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    padding: 40px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.howworks-card:hover {
    box-shadow: 0 16px 40px rgba(16,24,40,0.13);
    transform: translateY(-4px);
}
.howworks-icon {
    width: auto;
    height: auto;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.howworks-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--red-dark);
    color: var(--red-dark);
    display: block;
    margin: 0;
    stroke-width: 1.5;
}

.howworks-card-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.22rem;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto 64px auto;
}
.faq-list {
    display: flex; flex-direction: column; gap: 18px;
}
.faq-item {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    overflow: hidden;
}
.faq-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 28px 32px;
    font-size: 1.12rem;
    color: var(--gray-900);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-btn:hover { background: var(--gray-100); }
.faq-question-row {
    display: flex; align-items: center; gap: 16px;
    font-weight: 600;
}
.faq-question-row svg {
    width: 24px;
    height: 24px;
    stroke: var(--red-dark);
    color: var(--red-dark);
    display: block;
}
.faq-content {
    display: none;
    padding: 24px 32px 32px 48px;
    font-size: 1rem;
    border-top: 1px solid var(--gray-300);
}
.faq-content.open { display: block; }

/* Add Number Form */
.add-number-block {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    padding: 40px 32px;
    margin: 0 auto 40px auto;
    max-width: 800px;
}
.add-number-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}

.add-number-header-content {
    display: flex; align-items: center; gap: 12px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.close-btn:hover {
    color: var(--gray-700);
    background-color: var(--gray-100);
}
.add-number-title {
    color: var(--red-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 1rem;
}
.form-input, .form-select, .form-textarea {
    width: -webkit-fill-available;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1.05rem;
    background: #fff;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.10);
}
.form-select { -webkit-appearance: none; appearance: none; }
.form-textarea { resize: none; }
.form-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e32239, #f95367 50%, #d3011a);
    color: #fff;
    font-weight: 600;
    font-size: 1.3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

/* Utility */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: monospace, monospace; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }


.footer {
    background: #fff;
    border-top: 1px solid var(--gray-200);
    margin-top: 64px;
    padding-top: 64px;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--gray-900);
}

.footer-desc {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-note {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
}
.footer-link:hover {
    color: var(--blue);
}

.footer-link svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 24px 0;
    text-align: center;
    color: var(--gray-500);
    font-size: 1rem;
    margin-top: 40px;
}

.user-comment-type span {
    font-weight: 700;
}

.user-comment-type, .user-comment-footer {
    font-style: italic;
}