/* ============================================
   СТИЛІ ДЛЯ СТОРІНКИ МОНТАЖ
   ============================================ */

/* ========== ЗАГОЛОВКИ ========== */
.montazh-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2c3e;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.montazh-page h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2c3e;
    margin: 40px 0 20px 0;
    padding: 12px 0 12px 18px;
    border-left: 4px solid #1a73e8;
    line-height: 1.3;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
}

.montazh-page h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2c3e;
    margin: 25px 0 15px 0;
}

/* ========== БЛОК ПЕРЕВАГ (benefits) ========== */
.montazh-benefits {
    margin-top: -60px;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.benefit-item {
    padding: 16px 22px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #1a73e8;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.15);
}

.benefit-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #1a2c3e;
}

.benefit-item p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: #444;
}

.benefit-item p strong {
    color: #1a2c3e;
}

/* ============================================
   ТАБЛИЦІ (ОДНАКОВІ ЛІНІЇ + АДАПТАЦІЯ)
   ============================================ */

/* ===== ОБГОРТКА ДЛЯ ТАБЛИЦЬ (горизонтальна прокрутка) ===== */
.montazh-page .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===== ВСІ ТАБЛИЦІ ===== */
.montazh-page table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
}

/* ===== ВСІ КОМІРКИ — ОДНАКОВІ ЛІНІЇ ===== */
.montazh-page table td,
.montazh-page table th {
    border: 1px solid #d0d7de !important;
    padding: 12px 18px;
}

/* ===== ШАПКА (СІРИЙ ФОН) ===== */
.montazh-page table thead th,
.montazh-page table tr:first-child td {
    background: #b0bec5 !important;
    color: #1a2c3e !important;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
}

/* ===== ПРИБИРАЄМО ЗОВНІШНІ РАМКИ ===== */
.montazh-page table td:first-child,
.montazh-page table th:first-child {
    border-left: none !important;
}

.montazh-page table td:last-child,
.montazh-page table th:last-child {
    border-right: none !important;
}

.montazh-page table tr:last-child td,
.montazh-page table tr:last-child th {
    border-bottom: none !important;
}

/* ===== ТІЛО ТАБЛИЦІ ===== */
.montazh-page table tbody td {
    color: #333;
    font-weight: normal !important;
}

/* ===== ЧЕРГУВАННЯ ФОНУ ===== */
.montazh-page table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.montazh-page table tbody tr:nth-child(even) td {
    background: #f8f9fa !important;
}

.montazh-page table tbody tr:hover td {
    background: #f0f2f5 !important;
}

/* ===== ЦІНИ (БЕЗ ПОМАРАНЧЕВОГО) ===== */
.montazh-page table .price-highlight {
    font-weight: 700;
}

/* ============================================
   ТАБЛИЦЯ З border="1" (закладка магістралі)
   ============================================ */
.montazh-page table[border="1"] {
    border: none !important;
}

.montazh-page table[border="1"] td {
    border: 1px solid #d0d7de !important;
    padding: 12px 16px;
    font-weight: normal !important;
}

.montazh-page table[border="1"] tr:first-child td {
    background: #b0bec5 !important;
    color: #1a2c3e !important;
    font-weight: 700;
}

/* ===== ПРИБИРАЄМО ЗОВНІШНІ РАМКИ ДЛЯ border="1" ===== */
.montazh-page table[border="1"] td:first-child {
    border-left: 1px solid #d0d7de !important;
}

.montazh-page table[border="1"] td:last-child {
    border-right: 1px solid #d0d7de !important;
}

.montazh-page table[border="1"] tr:last-child td {
    border-bottom: 1px solid #d0d7de !important;
}

/* ===== ЧЕРГУВАННЯ ФОНУ ДЛЯ border="1" ===== */
.montazh-page table[border="1"] tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.montazh-page table[border="1"] tbody tr:nth-child(even) td {
    background: #f8f9fa !important;
}

.montazh-page table[border="1"] tbody tr:hover td {
    background: #f0f2f5 !important;
}

/* ============================================
   БЛОК "У ВАРТІСТЬ ВХОДИТЬ" (АДАПТИВНИЙ)
   ============================================ */

.montazh-page .services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #e8ecf0;
}

.montazh-page .services-list li {
    padding: 8px 0 8px 32px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    position: relative;
    border-bottom: 1px solid #eef2f7;
}

.montazh-page .services-list li:last-child {
    border-bottom: none;
}

.montazh-page .services-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 8px;
    color: #25a65b;
    font-size: 16px;
}

/* ============================================
   АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ (до 768px)
   ============================================ */
@media (max-width: 768px) {
    .montazh-page h1 {
        font-size: 26px;
    }
    
    .montazh-page h2 {
        font-size: 22px;
        margin: 30px 0 15px 0;
        padding: 10px 0 10px 14px;
    }
    
    .montazh-page h3 {
        font-size: 18px;
    }
    
    .montazh-benefits {
        margin-top: 0;
        gap: 12px;
    }
    
    .benefit-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .benefit-item h3 {
        font-size: 16px;
    }
    
    .benefit-item p {
        font-size: 14px;
    }
    
    /* ===== АДАПТАЦІЯ ТАБЛИЦЬ ===== */
    .montazh-page .table-wrapper {
        border-radius: 8px;
    }
    
    .montazh-page table {
        font-size: 13px;
        min-width: 480px;
    }
    
    .montazh-page table td,
    .montazh-page table th {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    /* ===== АДАПТАЦІЯ СПИСКУ ===== */
    .montazh-page .services-list {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px 18px;
        border-radius: 12px;
    }
    
    .montazh-page .services-list li {
        padding: 6px 0 6px 30px;
        font-size: 14px;
        border-bottom: 1px solid #eef2f7;
    }
    
    .montazh-page .services-list li::before {
        top: 6px;
        font-size: 14px;
    }
}

/* ============================================
   АДАПТАЦІЯ ДЛЯ ДУЖЕ МАЛЕНЬКИХ ЕКРАНІВ (до 480px)
   ============================================ */
@media (max-width: 480px) {
    .montazh-page table {
        min-width: 360px;
        font-size: 12px;
    }
    
    .montazh-page table td,
    .montazh-page table th {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    
    .montazh-page .services-list {
        padding: 12px 14px;
        gap: 2px;
    }
    
    .montazh-page .services-list li {
        padding: 5px 0 5px 28px;
        font-size: 13px;
    }
    
    .montazh-page .services-list li::before {
        top: 5px;
        font-size: 13px;
    }
}

/* ============================================
   ФОРМА ЗАМОВЛЕННЯ
   ============================================ */
.montazh-form {
    max-width: 680px;
    margin: 40px auto;
    background: #ffffff;
    border: 2px solid #2b6e9f;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.montazh-form__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.montazh-form__badge {
    background: transparent;
    color: #1a73e8;
    font-weight: 800;
    font-size: 16px;
}

.montazh-form__timer {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    border-radius: 50px;
    padding: 8px 20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.5);
    border: 1px solid rgba(255,255,255,0.3);
}

.montazh-form__timer span {
    font-size: 20px;
    font-weight: 800;
}

.montazh-form__title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 12px 0 20px 0;
    color: #1a2c3e;
    line-height: 1.3;
}

.montazh-form__highlight {
    color: #1a73e8;
}

.montazh-form__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.montazh-form__field {
    flex: 1;
    min-width: 160px;
}

.montazh-form__field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfdde6;
    border-radius: 48px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
    text-align: center;
}

.montazh-form__field input:focus {
    border-color: #2b6e9f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(43,110,159,0.2);
}

.montazh-form__btn {
    background: #25a65b;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 48px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.montazh-form__btn:hover {
    background: #1e8c4c;
}

.montazh-form__disclaimer {
    font-size: 13px;
    color: #5a6e7c;
    text-align: center;
    margin-top: 14px;
}

@media (max-width: 550px) {
    .montazh-form {
        padding: 16px;
        margin: 30px auto;
    }
    
    .montazh-form__top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .montazh-form__badge,
    .montazh-form__timer {
        text-align: center;
        white-space: normal;
    }
    
    .montazh-form__title {
        font-size: 18px;
    }
    
    .montazh-form__timer {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .montazh-form__timer span {
        font-size: 16px;
    }
    
    .montazh-form__disclaimer {
        font-size: 11px;
    }
}