/* ========================================
   Стили сервисных страниц (Обучение / Удаление вмятин)
   Подключается глобально для HtmlContent из БД
   ======================================== */

/* Основные стили страницы */
.av-wrapper {
    color: #333;
    line-height: 1.7;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок и расширенное введение */
.av-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 30px;
    background: linear-gradient(to bottom, #f9fbfd, #ffffff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.av-header h1 {
    color: #0061b2;
    margin-bottom: 25px;
    line-height: 1.2;
    text-align:center;
}
.av-header .av-lead {
    color: #0061b2;
    font-weight: 600;
    max-width: 1000px;
    margin: 0 auto 25px auto;
}
.av-header p {
    color: #555;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    text-align: justify;
    text-align-last: center;
}

/* Блок преимуществ с иконками */
.av-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.av-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #eef2f6;
}
.av-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,97,178,0.1);
    border-bottom: 4px solid #0061b2;
}
.av-icon {
    margin-bottom: 25px;
}
.av-feature-card h3 {
    color: #222;
    margin-bottom: 15px;
}
.av-feature-card p {
    color: #666;
}

/* Текстовые секции */
.av-text-section {
    margin-bottom: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}
.av-text-section.highlight-bg {
    background: #f0f7ff;
    border-left: 5px solid #0061b2;
}
.av-text-section h2 {
    color: #0061b2;
    margin-top: 0;
    margin-bottom: 25px;
}
.av-text-section h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}
.av-text-section p {
    margin-bottom: 15px;
}

/* Списки */
.av-list {
    list-style: none;
    padding: 0;
}
.av-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}
.av-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #0061b2;
    font-weight: bold;
}

/* Блок сравнения */
.av-comparison {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.av-comp-col {
    flex: 1;
    padding: 25px;
    border-radius: 8px;
}
.av-comp-bad {
    background: #fff5f5;
    border-top: 4px solid #dc3545;
}
.av-comp-good {
    background: #f0fdf4;
    border-top: 4px solid #28a745;
}

/* Таблицы цен */
.av-tables-section {
    margin-bottom: 60px;
}
.av-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.av-table th, .av-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.av-table th {
    background: #0061b2;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.av-table tr:last-child td { border-bottom: none; }
.av-table tr:hover td { background: #f9fbfd; }
.av-price {
    font-weight: bold;
    color: #0061b2;
    white-space: nowrap;
}

/* Онлайн оценка */
.av-online-calc {
    background: #fff;
    border: 2px dashed #0061b2;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    text-align: center;
}

/* Гарантия */
.av-guarantee {
    text-align: center;
    background: #0061b2;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    font-weight: bold;
    margin: 50px 0;
    box-shadow: 0 10px 20px rgba(0,97,178,0.2);
}

/* Адаптивность */
@media (max-width: 900px) {
    .av-comparison { flex-direction: column; }
}
@media (max-width: 768px) {
    .av-table th, .av-table td { padding: 12px; }
    .av-text-section { padding: 25px; }
    .av-header { padding: 30px 15px; }
}

/* ========================================
   Стили страницы оценки ущерба (/req)
   ======================================== */

.av-photo-guide {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin: 0 auto 40px auto;
    color: #333;
    line-height: 1.6;
}
.av-photo-guide h2 {
    color: #0061b2;
    margin-top: 0;
    margin-bottom: 15px;
}
.av-photo-guide > p {
    margin-bottom: 30px;
    color: #555;
}
.av-tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.av-tip-card {
    display: flex;
    align-items: flex-start;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0061b2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}
.av-tip-card:hover {
    transform: translateX(5px);
    background: #fff;
}
.av-tip-icon {
    flex-shrink: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border-radius: 50%;
}
.av-tip-content strong {
    display: block;
    color: #222;
    margin-bottom: 5px;
}
.av-tip-content p {
    margin: 0;
    color: #666;
}
.av-photo-disclaimer {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    color: #444;
    border: 1px solid #cce0ff;
}
.av-photo-disclaimer strong {
    color: #0061b2;
}
@media (min-width: 768px) {
    .av-tips-grid {
        grid-template-columns: 1fr 1fr;
    }
    .av-tip-card:last-child {
        grid-column: span 2;
    }
}
@media (max-width: 600px) {
    .av-photo-guide {
        padding: 25px 15px;
    }
}

/* ========================================
   Стили страницы обучения удалению вмятин
   ======================================== */

/* Заголовок страницы */
.av-header {
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 60px 20px;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0,97,178,0.05);
}
.av-header h1 {
    color: #0061b2;
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
}
.av-header p {
    font-size: 1.2em;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

/* Секционные заголовки */
.av-section-title {
    text-align: center;
    color: #0061b2;
    font-size: 2.2em;
    margin: 60px 0 30px 0;
    position: relative;
}

/* Блоки: Теория / Практика */
.av-course-blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto 50px auto;
    max-width: 1050px;
}
.av-course-block-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border-top: 5px solid #0061b2;
    flex: 1 1 400px;
    max-width: 500px;
    box-sizing: border-box;
}
.av-course-block-card.full-width {
    flex: 1 1 100%;
    max-width: 100%;
    border-top-color: #28a745;
    background: #f4fdf6;
}
.av-course-block-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}

/* Карточки курсов (Тарифы) */
.av-upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.av-upgrade-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.av-upgrade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.av-upgrade-header {
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
}
.bg-green { background-color: #25b309; }
.bg-yellow { background-color: #fed407; color: #222; }
.bg-red { background-color: #fc3300; }
.bg-blue { background-color: #206bdc; }
.bg-orange { background-color: #ff9900; }
.bg-cyan { background-color: #09e8e8; color: #222; }

.av-upgrade-body {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.av-pricing-subtitle {
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    min-height: 48px;
}
.av-pricing-note {
    font-size: 0.85em;
    color: #777;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}
.av-upgrade-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}
.av-upgrade-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
    font-size: 0.95em;
}
.av-upgrade-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}
.av-upgrade-price {
    font-size: 1.8em;
    color: #222;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

/* Таблица сравнения */
.av-table-container {
    overflow-x: auto;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 10px;
}
.av-table th {
    color: #fff;
    padding: 20px;
    font-size: 1.1em;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.av-table th.col-title { background: #0061b2; text-align: left; }
.av-table th.col-green { background: #25b309; }
.av-table th.col-yellow { background: #fed407; color: #222; }
.av-table th.col-red { background: #fc3300; }

.av-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}
.av-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #444;
}
.av-check-green { color: #25b309; font-weight: bold; font-size: 1.4em; }
.av-check-yellow { color: #d4b000; font-weight: bold; font-size: 1.4em; }
.av-check-red { color: #fc3300; font-weight: bold; font-size: 1.4em; }
.av-dash { color: #ccc; font-weight: bold; }

/* Преимущества (Иконки) */
.av-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}
.av-feature {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #0061b2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.av-feature h3 {
    color: #0061b2;
    margin-top: 0;
    font-size: 1.2em;
}
.av-feature p {
    color: #555;
    margin: 0;
    font-size: 0.95em;
}

/* Команда */
.av-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.av-team-member {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.av-team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f0f7ff;
}
.av-team-member h3 { margin: 0 0 10px 0; color: #0061b2; font-size: 1.4em; }
.av-team-member p { color: #666; margin: 0; }

/* Блоки с акцентом (Цитаты / Важно) */
.av-alert {
    background: #fff;
    border: 2px dashed #0061b2;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}
.av-alert strong { color: #0061b2; font-size: 1.2em; display: block; margin-bottom: 15px; }
.av-callout {
    background: #f0fdf4;
    border-left: 5px solid #28a745;
    padding: 25px 30px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 40px;
}

/* Видео галерея */
.av-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.av-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.av-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Сертификаты */
.av-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}
.av-certs img {
    height: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.av-certs img:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .av-header h1 { font-size: 2.2em; }
    .av-section-title { font-size: 1.8em; }
    .av-video-grid { grid-template-columns: 1fr; }
    .av-course-blocks { flex-direction: column; }
}
