/* =========================================================
   Контентные страницы портала: тарифы, предприятия и т.п.
   ========================================================= */

/* ---------- Общие обёртки страниц ---------- */
.tariffs-page,
.companies-page {
    padding: 20px 0;
    color: #2c3e50;
}

.tariffs-page h1,
.companies-page h1 {
    color: #1a3a6b;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 14px;
    margin-bottom: 28px;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tariffs-page h1 i,
.companies-page h1 i {
    color: #1976d2;
    margin-right: 10px;
}

/* =========================================================
   АККОРДЕОН
   ========================================================= */
.accordion-container {
    margin-bottom: 30px;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(to bottom, #f7fafd 0%, #eef3f9 100%);
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: linear-gradient(to bottom, #eef3f9 0%, #e3ecf6 100%);
}

.accordion-item .accordion-body:not([style*="display:none"]) + .accordion-header,
.accordion-header.active {
    border-bottom-color: #e8ecf1;
}

.accordion-header i.fas:first-child {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.accordion-title {
    flex: 1;
}

.accordion-arrow {
    color: #78909c;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.accordion-body {
    padding: 0;
    background: #fff;
}

.accordion-content {
    padding: 20px 20px 24px;
}

/* =========================================================
   ТАБЛИЦЫ (тарифы и предприятия)
   ========================================================= */
.tariffs-table,
.companies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    margin-bottom: 10px;
}

.tariffs-table thead th,
.companies-table thead th {
    background: #f2f6fb;
    color: #1a3a6b;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #d6e0ec;
    border-right: 1px solid #e3edf9;
    white-space: nowrap;
    vertical-align: middle;
}

.tariffs-table thead th:last-child,
.companies-table thead th:last-child {
    border-right: none;
}

.tariffs-table tbody td,
.companies-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    border-right: 1px solid #f0f3f7;
    color: #2d3748;
    line-height: 1.55;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-word;
}

.tariffs-table tbody td:last-child,
.companies-table tbody td:last-child {
    border-right: none;
}

.tariffs-table tbody tr:nth-child(even) td,
.companies-table tbody tr:nth-child(even) td {
    background: #fafbfd;
}

.tariffs-table tbody tr:hover td,
.companies-table tbody tr:hover td {
    background: #f0f7ff;
}

.tariffs-table tbody tr.total-row {
    background: #f4f8fc;
    font-weight: 600;
}

.tariffs-table tbody tr.total-row:hover td {
    background: #eef4fa;
}

.tariffs-table .tariff-price {
    display: inline-block;
    font-weight: 700;
    color: #c0392b;
    font-size: 15px;
}

.tariffs-table .total-value {
    font-weight: 700;
    color: #1a3a6b;
    font-size: 15px;
}

/* =========================================================
   БЛОК ИНФОРМАЦИИ О ПРЕДПРИЯТИИ
   ========================================================= */
.tariff-info,
.company-info {
    margin-top: 20px;
    padding: 16px 18px;
    background: #f7fafd;
    border-left: 4px solid #1976d2;
    border-radius: 6px;
}

.tariff-info h4,
.company-info h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a3a6b;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 24px;
}

.info-item {
    font-size: 14px;
    line-height: 1.5;
}

.info-label {
    display: inline-block;
    min-width: 130px;
    color: #78909c;
    font-weight: 500;
}

.info-value {
    color: #2c3e50;
}

/* =========================================================
   ПРЕДПРИЯТИЯ: ОБЁРТКА И ДОКУМЕНТЫ
   ========================================================= */
.company-tariff {
    margin-bottom: 10px;
}

.company-tariff h4 {
    font-size: 16px;
    color: #1a3a6b;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecf1;
    font-weight: 600;
}

.company-docs {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    color: #1976d2;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-download:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
    text-decoration: none;
}

.btn-download i {
    font-size: 14px;
}

/* =========================================================
   ПРИМІТКА
   ========================================================= */
.tariffs-note {
    margin-top: 30px;
    padding: 14px 18px;
    background: #fff8e1;
    border-left: 4px solid #ffb300;
    border-radius: 6px;
    color: #5d4a00;
    font-size: 14px;
    line-height: 1.6;
}

.tariffs-note i {
    color: #ff8f00;
    margin-right: 6px;
}

.tariffs-note strong {
    color: #5d4a00;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 768px) {
    .tariffs-page h1,
    .companies-page h1 {
        font-size: 22px;
    }

    .accordion-header {
        font-size: 14.5px;
        padding: 14px 16px;
    }

    .accordion-content {
        padding: 16px;
    }

    .tariffs-table,
    .companies-table {
        font-size: 13px;
    }

    .tariffs-table thead th,
    .tariffs-table tbody td,
    .companies-table thead th,
    .companies-table tbody td {
        padding: 8px 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tariffs-table,
    .companies-table {
        font-size: 12px;
    }

    .tariffs-table thead th,
    .tariffs-table tbody td,
    .companies-table thead th,
    .companies-table tbody td {
        padding: 6px 8px;
    }

    .btn-download {
        font-size: 12.5px;
        padding: 7px 10px;
    }
}


/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contact-page {
    padding: 20px 0;
    color: #2c3e50;
}

.contact-page h1 {
    color: #2c3e50;
    border-bottom: 2px solid #b0bec5;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}

.contact-page h1 i {
    color: #1976d2;
    margin-right: 8px;
}

/* ---------- Сетка: 2 колонки (форма слева, контакты справа) ---------- */
.contact-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

/* «Зворотній зв'язок» — во всю ширину, над колонками */
.contact-info {
    grid-column: 1 / -1;
    background: #f7fafd;
    border-left: 4px solid #1976d2;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 4px;
}

.contact-info h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1a3a6b;
    font-weight: 600;
}

.contact-info p {
    margin: 0 0 8px;
    color: #455a64;
    line-height: 1.6;
    font-size: 14.5px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: #1976d2;
    text-decoration: none;
}

.contact-info a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* ---------- Форма ---------- */
.contact-form {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-form h2 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #1a3a6b;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf1;
}

.contact-form .form-group {
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: #546e7a;
    font-weight: 500;
}

.contact-form .form-control,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form .form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* ошибки валидации Yii */
.contact-form .help-block,
.contact-form .invalid-feedback {
    display: block;
    margin-top: 5px;
    color: #c62828;
    font-size: 13px;
}

.contact-form .has-error .form-control,
.contact-form .has-error input,
.contact-form .has-error textarea {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* кнопка */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to bottom, #2196f3 0%, #1976d2 100%);
    border: 1px solid #1565c0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-submit:hover {
    background: linear-gradient(to bottom, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-submit i {
    font-size: 14px;
}

/* ---------- Правый блок: наши контакты ---------- */
.contact-details {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-details h2 {
    margin: 0 0 18px;
    font-size: 18px;
    color: #1a3a6b;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f3f7;
    font-size: 14px;
    color: #455a64;
    line-height: 1.5;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item > i {
    flex: 0 0 20px;
    color: #1976d2;
    font-size: 16px;
    margin-top: 3px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item a {
    color: #1976d2;
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* ---------- MathCaptcha (уточним по факту) ---------- */
.contact-form .math-captcha,
.contact-form .captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.contact-form .math-captcha img,
.contact-form .captcha img {
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    background: #fff;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-page h1 {
        font-size: 22px;
    }

    .contact-form,
    .contact-details {
        padding: 18px;
    }

    .contact-info {
        padding: 14px 16px;
    }
}


/* =========================================================
   MathCaptcha — точная вёрстка
   ========================================================= */

.captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* Строка с вопросом + кнопкой обновления */
.captcha-question {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f7fafd;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 6px 12px;
    min-height: 42px;
    flex: 0 0 auto;
}

/* Сам пример: 884 + 334 = ? */
.math-text {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #1a3a6b;
    letter-spacing: 1px;
    white-space: nowrap;
    user-select: none;
}

/* Кнопка «обновить пример» */
.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #1976d2;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.25s ease;
}

.captcha-refresh:hover {
    background: #e3f0fc;
    color: #0d47a1;
}

.captcha-refresh:active {
    transform: scale(0.94) rotate(90deg);
}

/* Контейнер поля ввода */
.captcha-input {
    display: inline-block;
    flex: 0 0 auto;
}

/* Поле ввода — фиксированное, но достаточно широкое */
.captcha-input input.form-control,
.captcha-input #math-answer {
    width: 220px !important;
    max-width: 100%;
    padding: 9px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    outline: none;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.captcha-input input.form-control:focus,
.captcha-input #math-answer:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

/* Ошибка валидации под капчей */
.field-contactform-verifycode .help-block,
.field-contactform-verifycode .invalid-feedback {
    flex: 1 0 100%;
    display: block;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
}

.field-contactform-verifycode.has-error .captcha-input input,
.field-contactform-verifycode.has-error #math-answer {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Адаптив */
@media (max-width: 480px) {
    .captcha-row {
        gap: 10px;
    }

    .captcha-input input.form-control,
    .captcha-input #math-answer {
        width: 160px !important;
    }

    .math-text {
        font-size: 15px;
    }
}


/* =========================================================
   КАРТА ВНУТРИ БЛОКА «НАШІ КОНТАКТИ»
   ========================================================= */
.contact-details .contact-map {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf1;
}

.contact-details .map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e6ec;
    background: #f0f3f7;
}

.contact-details .map-wrapper iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

/* Адаптив: на мобиле карта ужимается */
@media (max-width: 900px) {
    .contact-details .map-wrapper iframe {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .contact-details .map-wrapper iframe {
        height: 220px;
    }
}

/* =========================================================
   ПРО НАС
   ========================================================= */
.about-page { padding: 20px 0; }
.about-page h1 {
    color: #2c3e50;
    border-bottom: 2px solid #b0bec5;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 26px; font-weight: 600;
}
.about-page .about-content {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8ecf1;
}
.about-page .about-content h2 {
    color: #34495e;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecf1;
    font-weight: 500;
}
.about-page .about-content .about-text {
    font-size: 15px; line-height: 1.8;
    color: #455a64; margin-bottom: 15px;
}
.about-page .about-content .about-text strong { color: #2c3e50; }
.about-page .about-content .highlight-box {
    margin: 20px 0;
    padding: 18px 22px;
    background: #f5f7fa;
    border-left: 4px solid #7fb3d5;
    border-radius: 4px;
}
.about-page .about-content .highlight-box p {
    font-size: 15px; line-height: 1.8;
    color: #2c3e50; margin: 0;
}
.about-page .about-content .highlight-box p strong { color: #1a5276; }
.about-page .about-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8ecf1;
    text-align: center;
}
.about-page .btn-back {
    display: inline-block;
    padding: 10px 28px;
    background: #5d6d7e;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}
.about-page .btn-back:hover {
    background: #2c3e50;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}
.about-page .btn-back i { margin-right: 8px; }
@media (max-width: 768px) {
    .about-page h1 { font-size: 22px; }
    .about-page .about-content { padding: 18px 20px; }
    .about-page .about-content .about-text { font-size: 14px; }
    .about-page .about-content .highlight-box p { font-size: 14px; }
}
@media (max-width: 480px) {
    .about-page h1 { font-size: 18px; }
    .about-page .about-content { padding: 12px 15px; }
    .about-page .about-content .about-text { font-size: 13px; }
    .about-page .about-content .highlight-box { padding: 12px 15px; }
    .about-page .about-content .highlight-box p { font-size: 13px; }
}

/* =========================================================
   ФОРМЫ ЛОГИНА/РЕГИСТРАЦИИ
   ========================================================= */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.auth-container h1 { text-align: center; margin-bottom: 10px; font-size: 24px; color: #333; }
.auth-container .auth-subtitle { text-align: center; color: #666; margin-bottom: 30px; font-size: 14px; }
.auth-container .form-group { margin-bottom: 20px; }
.auth-container .form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; font-size: 14px; }
.auth-container .form-group .form-control {
    width: 100%; padding: 10px 15px;
    border: 1px solid #ddd; border-radius: 4px;
    font-size: 14px; transition: border-color 0.3s;
}
.auth-container .form-group .form-control:focus {
    border-color: #007bff; outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.auth-container .form-group .help-block { color: #dc3545; font-size: 12px; margin-top: 5px; }
.auth-container .checkbox { display: flex; align-items: center; margin-bottom: 15px; }
.auth-container .checkbox input[type="checkbox"] { margin-right: 8px; }
.auth-container .checkbox label { margin-bottom: 0; font-weight: normal; color: #555; font-size: 14px; }
.auth-container .btn-primary {
    width: 100%; padding: 12px;
    background: #007bff; color: #fff;
    border: none; border-radius: 4px;
    font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 0.3s;
}
.auth-container .btn-primary:hover { background: #0056b3; }
.auth-links {
    text-align: center;
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid #eee;
}
.auth-links p { margin: 5px 0; font-size: 14px; color: #555; }
.auth-links a { color: #007bff; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-container .has-error .form-control { border-color: #dc3545; }
.auth-container .has-error .help-block { display: block; }


/* =========================================================
   Специфичная плашка «Дякуємо! Ваше повідомлення надіслано»
   ========================================================= */
.contact-page .alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    border-radius: 6px;
    color: #1b5e20;
    font-size: 14.5px;
}

.contact-page .alert-success i {
    color: #2e7d32;
    font-size: 16px;
}


/* =========================================================
   КОМУНАЛЬНІ ПІДПРИЄМСТВА — усиленные стили
   ========================================================= */
.companies-section {
    background: #ffffff;
    border: 1px solid #e3edf9;
    border-radius: 10px;
    padding: 20px 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(74, 127, 199, 0.06);
    transition: box-shadow 0.2s ease;
}

.companies-section:hover {
    box-shadow: 0 4px 14px rgba(74, 127, 199, 0.1);
}

.companies-section h2 {
    color: #1a3a6b;
    font-size: 18px;
    margin: 0 0 16px -6px;
    padding: 2px 0 10px 12px;
    border-left: 4px solid #1976d2;
    border-bottom: 1px solid #eef3f9;
    font-weight: 600;
    line-height: 1.3;
}

.companies-section h2 i {
    color: #1976d2;
    margin-right: 8px;
    font-size: 0.95em;
}

.companies-section .table-responsive {
    overflow-x: auto;
    border: 1px solid #e3edf9;
    border-radius: 8px;
    background: #fff;
}

.companies-section .table-responsive .companies-table {
    margin-bottom: 0;
}

/* Только горизонтальные линии */
.companies-page .companies-table thead th,
.companies-page .companies-table tbody td {
    border-right: none;
}

.companies-page .companies-table thead th {
    background: #f2f6fb;
    color: #1a3a6b;
    padding: 12px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 2px solid #d6e0ec;
    white-space: nowrap;
    vertical-align: middle;
}

.companies-page .companies-table thead th:first-child,
.companies-page .companies-table tbody td:first-child {
    padding-left: 18px;
}

.companies-page .companies-table thead th:last-child,
.companies-page .companies-table tbody td:last-child {
    padding-right: 18px;
}

.companies-page .companies-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    color: #2d3748;
    line-height: 1.55;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-word;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Zebra — чуть заметнее */
.companies-page .companies-table tbody tr:nth-child(even) td {
    background: #f6f9fc;
}

/* Hover */
.companies-page .companies-table tbody tr:hover td {
    background: #eaf4ff;
    color: #1a3a6b;
}

/* Телефоны — синие, моноширинные */
.companies-page .companies-table tbody td:last-child {
    color: #1565c0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Ссылки */
.companies-page .companies-table a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.15s ease;
}

.companies-page .companies-table a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .companies-section {
        padding: 16px 16px 20px;
    }

    .companies-section h2 {
        font-size: 16px;
    }

    .companies-page .companies-table tbody td:last-child {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .companies-section {
        padding: 12px 12px 16px;
    }

    .companies-section h2 {
        font-size: 15px;
        padding-left: 10px;
    }
}

/* =========================================================
   Капча внутри формы регистрации — компактно и ровно
   ========================================================= */
.auth-container .captcha-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;   /* ← выравнивание по высоте */
    gap: 6px;
    margin-top: 6px;
}

/* Вопрос + кнопка — тот же размер, что у поля */
.auth-container .captcha-question {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    min-height: 38px;      /* ← фиксируем высоту */
    height: 38px;
    background: #f7fafd;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    flex: 0 0 auto;
}

.auth-container .math-text {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #1a3a6b;
    letter-spacing: 0;
    white-space: nowrap;
    user-select: none;
}

.auth-container .captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1976d2;
    cursor: pointer;
    font-size: 13px;
}

.auth-container .captcha-refresh:hover {
    background: #e3f0fc;
    border-radius: 4px;
}

/* Поле ввода — фиксированной высоты, шире */
.auth-container .captcha-input {
    display: inline-block;
    flex: 0 0 auto;
}

.auth-container .captcha-input input.form-control,
.auth-container .captcha-input #math-answer {
    width: 170px !important;
    height: 38px;           /* ← та же высота, что у вопроса */
    padding: 0 10px;
    font-size: 14px;
    line-height: 38px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.auth-container .captcha-input input.form-control:focus,
.auth-container .captcha-input #math-answer:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}
