/**
 * Стили страницы сервиса БИОМЕР (/сервис/)
 * Версия: 1.0.1
 * По образцу contacts.css: CSS-переменные --biomer-* (из :root style.css),
 * адаптив 980 / 640 / 380. Подключается ТОЛЬКО на странице сервиса
 * (functions.php v6.9.15, ID 123 / слаг «сервис»).
 *
 * ИЗМЕНЕНИЯ v1.0.1:
 * - ИСПРАВЛЕНО: .service-cta-section { margin: 56px 0 0; } → margin: 56px 0;
 *   (3-значное сокращение делало margin-bottom = 0, теперь 2-значное — 56px снизу)
 */

/* ========================================================
   КОНТЕЙНЕР СТРАНИЦЫ (класс на main — работает независимо от body-классов)
   ======================================================== */
.biomer-service-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ========================================================
   ЗАГОЛОВОК СТРАНИЦЫ
   ======================================================== */
.service-title-section {
    margin: 32px 0 8px;
}

.service-title-section h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--biomer-text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.service-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--biomer-text-secondary);
    max-width: 780px;
    margin: 0;
}

/* ========================================================
   ОБЩАЯ СЕКЦИЯ
   ======================================================== */
.service-section {
    margin: 56px 0;
}

.service-section-header {
    margin-bottom: 24px;
}

.service-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.service-section-header p {
    font-size: 15px;
    color: var(--biomer-text-secondary);
    margin: 0;
}

.service-maplink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--biomer-blue);
    text-decoration: none;
    transition: gap 0.2s;
}

.service-maplink:hover {
    gap: 10px;
    color: var(--biomer-blue-hover);
}

/* ========================================================
   СЕКЦИЯ: ОБОРУДОВАНИЕ (grid карточек с чек-иконкой)
   ======================================================== */
.service-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-device-card {
    background: var(--biomer-white);
    border: 1px solid var(--biomer-border);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
}

.service-device-card:hover {
    border-color: var(--biomer-blue);
    box-shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
    transform: translateY(-3px);
}

.service-device-check {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--biomer-green-light);
    color: var(--biomer-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-device-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--biomer-text-primary);
    line-height: 1.45;
    margin: 0;
}

/* ========================================================
   СЕКЦИЯ: СОПРОВОДИТЕЛЬНОЕ ПИСЬМО
   ======================================================== */
.service-letter-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.service-letter-main {
    background: var(--biomer-white);
    border: 1px solid var(--biomer-border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-letter-lead {
    font-size: 16px;
    font-weight: 600;
    color: var(--biomer-text-primary);
    margin: 0 0 4px;
}

.service-letter-item {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 15px;
    line-height: 1.6;
    color: var(--biomer-text-secondary);
    margin: 0;
}

.service-letter-num {
    font-weight: 700;
    color: var(--biomer-blue);
    flex-shrink: 0;
}

.service-dl-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--biomer-blue);
    color: var(--biomer-white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.service-dl-btn:hover {
    background: var(--biomer-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.service-letter-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 28px;
}

.service-letter-note-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #92400e;
}

.service-letter-note-head strong {
    font-size: 16px;
}

.service-letter-note p {
    font-size: 14px;
    line-height: 1.7;
    color: #78350f;
    margin: 0;
}

/* ========================================================
   СЕКЦИЯ: СПОСОБЫ ОТПРАВКИ
   ======================================================== */
.service-ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-way-card {
    background: var(--biomer-white);
    border: 1px solid var(--biomer-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s ease;
}

.service-way-card:hover {
    border-color: var(--biomer-blue);
    box-shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
    transform: translateY(-3px);
}

.service-way-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-way-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--biomer-blue-light);
    color: var(--biomer-blue);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-way-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    margin: 0;
    line-height: 1.35;
}

.service-way-address {
    font-size: 14px;
    line-height: 1.6;
    color: var(--biomer-text-secondary);
    margin: 0;
}

.service-way-note {
    font-size: 13px;
    color: var(--biomer-text-muted);
    display: block;
}

.service-way-card .service-maplink {
    margin-top: auto;
    padding-top: 4px;
}

/* ========================================================
   СЕКЦИЯ: ФОТОГРАФИИ КОМПАНИИ
   ======================================================== */
#service-photos .service-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.service-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-photo {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--biomer-border);
    background: var(--biomer-gray-bg);
}

.service-photo img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-photo:hover img {
    transform: scale(1.04);
}

/* ========================================================
   СЕКЦИЯ: КАРТА 2GIS
   ======================================================== */
.service-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 20px;
}

.service-map-links a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--biomer-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.service-map-links a:hover {
    color: var(--biomer-blue-hover);
    text-decoration: underline;
}

.service-map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--biomer-border);
    background: var(--biomer-gray-bg);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.service-map-container iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

/* ========================================================
   СЕКЦИЯ: КОНТАКТНЫЕ КАРТОЧКИ
   ======================================================== */
.service-contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-contact-card {
    background: var(--biomer-white);
    border: 1px solid var(--biomer-border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s ease;
}

.service-contact-card:hover {
    border-color: var(--biomer-blue);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.08);
    transform: translateY(-4px);
}

.service-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-contact-icon--blue { background: var(--biomer-blue-light); color: var(--biomer-blue); }
.service-contact-icon--red { background: var(--biomer-red-light); color: var(--biomer-red); }
.service-contact-icon--green { background: var(--biomer-green-light); color: var(--biomer-green); }
.service-contact-icon--purple { background: #f3e8ff; color: #7c3aed; }

.service-contact-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.service-contact-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-contact-strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--biomer-text-primary);
    margin: 0;
}

.service-contact-phone {
    font-size: 17px;
    font-weight: 700;
    color: var(--biomer-text-primary);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}

.service-contact-phone:hover { color: var(--biomer-blue); }

.service-contact-mail {
    font-size: 15px;
    font-weight: 600;
    color: var(--biomer-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.service-contact-mail:hover { color: var(--biomer-blue-hover); text-decoration: underline; }

.service-contact-note {
    font-size: 13px;
    color: var(--biomer-text-muted);
    line-height: 1.5;
    display: block;
}

.service-contact-telegram {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--biomer-blue);
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.service-contact-telegram:hover {
    color: var(--biomer-blue-hover);
    gap: 10px;
}

/* ========================================================
   СЕКЦИЯ: CTA (как на контактах)
   ======================================================== */
.service-cta-section {
    margin: 56px 0;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    color: var(--biomer-white);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.25);
}

.service-cta-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--biomer-white);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.service-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 32px;
    max-width: 620px;
    line-height: 1.6;
}

.service-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.service-cta-btn-primary {
    background: var(--biomer-white);
    color: var(--biomer-blue);
}

.service-cta-btn-primary:hover {
    background: var(--biomer-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-cta-btn-secondary {
    background: transparent;
    color: var(--biomer-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--biomer-white);
    transform: translateY(-2px);
}

/* ========================================================
   АДАПТИВНОСТЬ
   ======================================================== */

/* Планшеты (≤ 980px) */
@media (max-width: 980px) {
    .service-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-letter-card {
        grid-template-columns: 1fr;
    }
    .service-contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-title-section h1 {
        font-size: 32px;
    }
    .service-section-header h2 {
        font-size: 24px;
    }
    .service-map-container iframe {
        height: 420px;
    }
    .service-cta-section {
        padding: 40px 28px;
    }
}

/* Мобильные (≤ 640px) */
@media (max-width: 640px) {
    .biomer-service-page {
        padding: 0 16px 60px;
    }
    .service-title-section h1 {
        font-size: 27px;
    }
    .service-subtitle {
        font-size: 15px;
    }
    .service-section {
        margin: 40px 0;
    }
    .service-section-header h2 {
        font-size: 22px;
    }
    .service-equipment-grid,
    .service-ways-grid,
    .service-contacts-grid,
    .service-photos-grid {
        grid-template-columns: 1fr;
    }
    .service-letter-main {
        padding: 22px;
    }
    .service-letter-note {
        padding: 20px;
    }
    .service-way-card,
    .service-contact-card,
    .service-device-card {
        padding: 20px;
    }
    .service-photo img {
        height: 200px;
    }
    .service-map-container iframe {
        height: 360px;
    }
    .service-cta-section {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .service-cta-content h2 {
        font-size: 22px;
    }
    .service-cta-content p {
        font-size: 14px;
    }
    .service-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .service-cta-btn {
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
    }
}

/* Очень маленькие экраны (≤ 380px) */
@media (max-width: 380px) {
    .service-title-section h1 {
        font-size: 24px;
    }
    .service-contact-phone {
        font-size: 16px;
    }
    .service-way-head h3 {
        font-size: 15px;
    }
    .service-map-container iframe {
        height: 300px;
    }
}



