/* =========================================================
   Стили контента для шаблона page-full-new (тема InStyle)
   Файл: page-full-new-content.css
   ========================================================= */

/* 1. Базовая типографика и нейтрализация инлайн-цветов */
.entry,
.entry p {
    color: #333333 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

/* 2. Заголовки в единой синей гамме */
.entry h1 {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1a4f8b !important;
    line-height: 1.3 !important;
    margin-bottom: 18px !important;
}

.entry h2 {
    font-size: 25px !important;
    font-weight: 700 !important;
    color: #1a4f8b !important;
    line-height: 1.35 !important;
    margin-top: 28px !important;
    margin-bottom: 16px !important;
}

.entry h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a4f8b !important;
    margin-top: 22px !important;
    margin-bottom: 12px !important;
}

.entry h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a4f8b !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
}

.entry h5 {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a4f8b !important;
    margin-top: 16px !important;
    margin-bottom: 10px !important;
}

/* Нейтрализация болотных и синих инлайн-спанов */
.entry span[style*="color: #333300"],
.entry span[style*="color:#333300"] {
    color: #444444 !important;
    font-weight: normal !important;
}

/* Смягчение агрессивных предупреждений (красный и оранжевый капс) */
.entry span[style*="color: #ff0000"],
.entry span[style*="color:#ff0000"],
.entry span[style*="color: #ff6600"],
.entry span[style*="color:#ff6600"] {
    color: #b32d2e !important;
    display: block !important;
    margin: 8px 0 !important;
    line-height: 1.4 !important;
}

/* 3. Маркеры списка: сплошной текст и центрированная синяя галочка */
#content-area .entry ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 25px !important;
}

#content-area .entry ul li {
    display: block !important;               /* Возвращает нормальный сплошной поток текста */
    position: relative !important;
    list-style: none !important;
    list-style-image: none !important;
    padding: 12px 18px 12px 46px !important; /* Внутренние отступы плашки, 46px слева под галочку */
    margin-bottom: 12px !important;
    line-height: 1.55 !important;
    text-align: left !important;
}

#content-area .entry ul li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 16px !important;                  /* Расположение галочки внутри плашки слева */
    top: 50% !important;                   /* Строго по вертикальному центру плашки */
    transform: translateY(-50%) !important;
    color: #1a4f8b !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* 4. Кнопка-баннер "Телефон и адрес" */
.entry a[href*="page_id=119"] {
    display: block !important;
    text-align: center !important;
    margin: 25px auto !important;
}

.entry a[href*="page_id=119"] img {
    max-width: 320px !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry a[href*="page_id=119"] img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
}

/* 5. Центровка и адаптивность медиа (Видео и Фото) */
.entry iframe {
    display: block !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

.entry img.wp-image-1255,
.entry img.wp-image-1318 {
    display: block !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* 6. Телефон и контакты в тексте */
.entry a[href^="tel:"] {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #eef7ee !important;
    border: 1px solid #c2e2c2 !important;
    border-radius: 6px !important;
    font-size: 17px !important;
    text-decoration: none !important;
    color: #1a7e22 !important;
    margin: 6px 0 !important;
}

/* 7. Форма заявки Contact Form 7 */
.entry .wpcf7,
.entry form {
    max-width: 540px !important;
    margin: 25px auto !important;
    padding: 24px !important;
    background: #f9fbfd !important;
    border: 1px solid #dce4ec !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.entry form h2,
.entry form h3,
.entry form h4 {
    margin-top: 0 !important;
    text-align: center !important;
    color: #1a4f8b !important;
}

.entry input[type="text"],
.entry input[type="email"],
.entry input[type="tel"],
.entry textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border: 1px solid #ccd5df !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
}

.entry input[type="file"] {
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

.entry input[type="submit"] {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: #1a4f8b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.entry input[type="submit"]:hover {
    background: #133a66 !important;
}

/* 8. Кнопки мессенджеров (MAX, WhatsApp, Telegram) */
.entry a[href*="wa.me"],
.entry a[href*="t.me"],
.entry a[href*="max.ru"] {
    margin: 4px 3px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.entry a[href*="wa.me"]:hover,
.entry a[href*="t.me"]:hover,
.entry a[href*="max.ru"]:hover {
    transform: translateY(-1px) !important;
    opacity: 0.92 !important;
}