/* ===================================
   СТРАНИЦА ОФИЦИАЛЬНОГО ДИЛЕРА
   Чувашкабель
   =================================== */

/* === БАЗОВЫЕ СТИЛИ === */
.section-padding {
    padding: 40px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e31e24;
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* === БАННЕР === */
.dealer-hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.dealer-banner {
    max-width: 900px;
    margin: 0 auto;
}

.dealer-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.dealer-banner p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #e31e24;
    color: #fff;
}

.btn-primary:hover {
    background: #c4181d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

.btn-outline {
    border-color: #e31e24;
    color: #e31e24;
    background: transparent;
}

.btn-outline:hover {
    background: #e31e24;
    color: #fff;
}

.btn-link {
    color: #e31e24;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 15px 35px;
    margin-top: 15px;
}

/* === ПРЕИМУЩЕСТВА === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.advantage-item p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === О КОМПАНИИ === */


.about-content p {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.6;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.about-list li {
    padding: 8px 0;
    color: #495057;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.stats-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #e31e24;
    color: #fff;
    padding: 15px 25px;
    border-radius: 6px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* === ПРАЙС-ЛИСТ (скачивание) === */
.pricelist-download {
    margin-top: 30px;
}

.download-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e31e24;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.1);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.download-box h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.download-box p {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 10px;
}

.pricelist-note {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 8px 0 0;
    font-style: italic;
}

/* === КОНТАКТЫ И ФОРМА === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-details .contact-item {
    margin-bottom: 25px;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 1.05rem;
}

.contact-details p,
.contact-details a {
    color: #495057;
    text-decoration: none;
    margin: 0;
    line-height: 1.5;
}

.contact-details a:hover {
    color: #e31e24;
}

/* Стили формы Битрикс */
.dealer-form .webform-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.dealer-form input[type="text"],
.dealer-form input[type="tel"],
.dealer-form input[type="email"],
.dealer-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.dealer-form input:focus,
.dealer-form textarea:focus {
    outline: none;
    border-color: #e31e24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.dealer-form textarea {
    min-height: 120px;
    resize: vertical;
}

.dealer-form .webform-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.dealer-form .webform-checkbox input {
    width: auto;
    margin-top: 4px;
}

.dealer-form .webform-submit {
    background: #e31e24;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.dealer-form .webform-submit:hover {
    background: #c4181d;
    transform: translateY(-2px);
}

/* ===================================
   АДАПТИВНАЯ ВЁРСТКА (МОБИЛЬНЫЕ)
   =================================== */

/* Планшеты и меньше (992px) */
@media (max-width: 992px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .dealer-hero {
        padding: 60px 0;
    }
    
    .dealer-banner h1 {
        font-size: 2rem;
    }
    
    .download-box {
        padding: 30px 25px;
    }
}

/* Мобильные устройства (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        padding-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Баннер */
    .dealer-hero {
        padding: 40px 0;
    }
    
    .dealer-banner h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .dealer-banner p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* Преимущества */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .advantage-item {
        padding: 25px 20px;
    }
    
    .advantage-icon {
        font-size: 2.5rem;
    }
    
    /* О компании */
    .about-content p {
        font-size: 0.95rem;
    }
    
    .about-list li {
        font-size: 0.95rem;
        padding: 6px 0;
    }
    
    .stats-badge {
        padding: 12px 20px;
        bottom: 15px;
        left: 15px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    /* Прайс-лист */
    .download-box {
        padding: 25px 20px;
    }
    
    .download-icon {
        font-size: 3rem;
    }
    
    .download-box h3 {
        font-size: 1.2rem;
    }
    
    .download-box p {
        font-size: 0.95rem;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Контакты */
    .contact-grid {
        gap: 35px;
    }
    
    .contact-details .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-details strong {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
}

/* Маленькие мобильные (480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .dealer-banner h1 {
        font-size: 1.3rem;
    }
    
    .dealer-banner p {
        font-size: 0.95rem;
    }
    
    .advantage-item h3 {
        font-size: 1.1rem;
    }
    
    .advantage-item p {
        font-size: 0.9rem;
    }
    
    .download-box h3 {
        font-size: 1.1rem;
    }
    
    .pricelist-note {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Улучшения для печати */
@media print {
    .dealer-hero,
    .dealer-contact {
        display: none;
    }
    
    .download-box {
        border: 1px solid #000;
        box-shadow: none;
    }
}
/* === ГАРАНТИРОВАННОЕ ОТОБРАЖЕНИЕ КАРТИНКИ === */
.dealer-about .about-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.dealer-about .about-image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    max-width: 100% !important;
    border-radius: 8px !important;
}

.dealer-about .about-image .stats-badge {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}