/* ===== ОБЩИЕ СТИЛИ ===== */
img {
    max-width: 100%;
    height: auto;
}

@supports (-webkit-overflow-scrolling: touch) {
    #text2 br {
        display: block !important;
    }
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination .ditto_currentpage {
    color:#fff; 
    background-color:#68a5ea; 
    border:1px solid #fff;  
    border-radius:22px; 
    padding: 6px 12px; 
    margin:2px;  
    font-weight:bold;  
    font-size:16px;
}   

.pagination .ditto_previous_link, 
.pagination .ditto_next_link {
    margin:0 10px;
} 

.pagination .ditto_page { 
    padding: 2px 5px; 
    font-size:26px;
}

/* ===== БАННЕР ===== */
a.banner_left {
    text-decoration:none; 
    height:30px;
}
a.banner_left div {
    background:#FFFF00; 
    color:#0099FF;  
    margin: 6px; 
    border: 2px solid #CCCC99; 
    border-radius:12px; 
    height:30px; 
    width:230px; 
    padding:18px 8px 8px 8px;
}
a:hover.banner_left div {
    background: #009999;  
    color:#FFFFFF;
}

/* ===== КНОПКИ ШАПКИ ===== */
.top1 {
    margin-left:22px; 
    padding:0px 5px 15px 5px;  
    height:23px;
}
.top2 {
    display: inline-block;
    background: #007bff;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}
.top2:hover,
.top2:active {
    background: #0056b3;
    transform: translateY(-1px);
}

/* ===== САЙДБАР (правый блок внутри левого) ===== */
#sidebar2 ul li {
    list-style-type:none;
    padding-top:15px;
}
#sidebar2 ul li a {
    display:inline;
    color: rgb(7, 37, 83);
    font-size: 14px; 
}
#sidebar2 h3 {
    padding-left:15px;
}

/* ===== ОСНОВНЫЕ ТЕГИ ===== */
body {
    font: 12pt Arial, Helvetica, sans-serif;
    font-style: italic;
    margin-top:-5px;
}
h1 {
    font-size: 28px;
    color: #072553;
    margin-top: 0;
    padding-bottom: 10px;
}
h2 {
    font-size: 18px;
}
a {
    color:#072553;
}
a:hover {
    color:#0a387e;
}
.B_currentCrumb {
    font-size:12px;
}
.B_crumb {
    font-size:12px; 
    font-color:#000000;
}
.B_homeCrumb {
    font-size:12px;
}

/* ===== КОНТЕЙНЕР ===== */
#container {
    width: 1024px;
    margin: 0 auto;
    background: #eff6fc;
}

/* ===== БЛОК С ГРАДИЕНТОМ (пример) ===== */
.sidebar_box {
    margin-left:150px; 
    padding-left:50px;
    width:500px; 
    text-decoration:none;
    margin:7px auto;
    padding:5px 14px 5px 14px;
    color: #fafafa !important;  
    background: #3399FF;
    background-image: -moz-linear-gradient(top, #29deba, #3399FF);
    background-image: -webkit-linear-gradient(#29deba, #3399FF);
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#29deba', endColorstr='#A6b64c');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#29deba', endColorstr='#3399FF')";
    border: 2px solid #3399FF;
    border-top: 1px solid #3399FF;
    border-radius: 6px 6px 20px 20px;
}

/* ===== ШАПКА ===== */
#header {
    font-size: 2.2em;
    padding: 5px;
    height:371px;
    background:url('assets/images/innertpl/bgtop2.jpg') no-repeat;
}
#text1 {    
    margin-top: 8px; 
    margin-left: 40px; 
}
#text1 a {
    color:#72abf7;
    font-size: 18px;
    font-family:Georgia;
    font-style: italic;
    text-decoration:none;
}
#text1 a:hover {
    color:#4893f8;
}
#text2 {    
    margin-top: -10px; 
    margin-left: 50px; 
    width:500px;
}
#text2 p {
    font-size: 26px;
    font-family:Georgia;
    font-style: italic;
    text-decoration:none;
    color:#72abf7;
}
#telefon {    
    margin-top: 15px; 
    margin-left: 50px; 
    font-size: 44px;
    font-family:Georgia;
    font-style: italic;
    color:#072553;
}

/* ===== МЕНЮ (десктоп) ===== */
#top_menu {    
    margin-top: -70px; 
    margin-left: 1px; 
    font-size: 22px;
    font-family:Georgia;
    font-style: italic;
}
#top_menu li {
    display: inline;
    margin-left:24px;
}
#top_menu li a {
    color:#072553;
}
#top_menu li a:hover {
    color:#0a387e;
}

/* ===== САЙДБАР ЛЕВЫЙ ===== */
#sidebar {
    margin-top: 1px; 
    width: 250px;
    padding: 0;
    float: left;
    box-sizing: border-box;
}

/* Исправляем пункты меню */
#sidebar .sidebarmenu a {
    display: block; 
    border: 0px solid #625e00; 
    height: auto;               /* автоматическая высота */
    min-height: 124px;           /* минимальная высота для иконки */
    width: auto;                 /* убираем фиксированную ширину */
    max-width: 100%;             /* не шире родителя */
    font: 11pt Arial, Helvetica, sans-serif; 
    font-style: italic;
    color:#000;
    text-decoration: none;
    margin-bottom: 5px;          /* отступ между пунктами */
}

/* Настраиваем блок с иконкой */
#sidebar .sidebarmenu a > div {
    width: auto !important;
    max-width: 100% !important;
    background-size: contain !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    height: auto !important;
    min-height: 124px;
    padding: 0 !important;
    margin: 0 !important;
}

/* Блок с текстом */
#sidebar .sidebarmenu a > div > div {
    margin-left: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 33px 5px 0 140px !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: 11pt !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* ===== КОНТЕНТ (ДЕСКТОП) ===== */
#content {
    margin-left: 290px;          /* отступ под сайдбар */
    padding-top:15px;
    background: #eff6fc;
    line-height:22px;
    min-height:500px;
    box-sizing: border-box;
}
#content.fullwidth {
    margin-left: 0;
}
#content li {
    margin-top:8px;
}
#content a {
    color:#68a5ea;
    font: 14px;
    font-family:Georgia;
    font-style: italic;
    text-decoration:none;
}
#content a:hover {
    color:#4893f8;
}
a.pricelink {
    color:#072553;
    font-size: 33px;
    font-family:Georgia;
    font-style: italic;
    text-decoration:none;
}

/* ===== ПОДВАЛ ===== */
#footer {
    background: #eae9ee;
    font-size:10px;
    padding: 5px;
    clear: left;
    border-top:1px;
}

/* ===== РАЗНЫЕ БЛОКИ ===== */
.content_box {
    clear: both;
    width: 530px;
    padding: 20px 30px;
    background: #fff;
}
.content_box p {
    margin-top: 5px; 
    padding: 0px;
}
.img-wrapper {
    width: 640px;
    margin: 10px auto;
    border: 5px solid #FFF;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
.img-title {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 640px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 0px;
    text-align: center;
    font: 14px/1em ;
    transition: all 0.2s ease-in-out 0s;
}
#contact-form a {
    color: #fff;
}
#contact-form a:hover {
    color: #333;
}

/* ===== КНОПКА С ГРАДИЕНТОМ ===== */
a.button24 {
    display: inline-block;
    color: white !important;  
    text-decoration: none;
    padding: .5em 2em;
    margin: 15px 25px;
    outline: none;
    border-width: 2px 0;
    border-style: solid none;
    border-color: #FDBE33 #000 #D77206;
    border-radius: 6px;
    background: linear-gradient(#F3AE0F, #E38916) #E38916;
    transition: 0.2s;
    width: 160px;
    text-align: center;
    text-decoration: underline;
} 
a.button24:hover {
    background: linear-gradient(#f5ae00, #f59500) #f5ae00;
}
a.button24:active {
    background: linear-gradient(#f59500, #f5ae00) #f59500;
}

/* ===== СТАТИСТИКА И ПРЕИМУЩЕСТВА ===== */
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    text-align: center;
}
.stat-item strong {
    font-size: 28px;
    color: #0066cc;
    display: block;
}
.stats-block {
    margin: 30px 0;
}
.advantages-block {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #0066cc;
    margin: 20px 0;
}
.advantages-block p {
    margin: 0;
    font-size: 16px;
}

/* ===== ПОДВАЛ (стили таблицы) ===== */
.footer-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}
.footer-row td {
    padding: 15px;
    vertical-align: top;
    text-align: left;
}
.footer-copyright {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
.footer-copyright a {
    color: #007bff;
    text-decoration: none;
}
.footer-copyright a:hover {
    text-decoration: underline;
}
.footer-reviews {
    text-align: center;
    white-space: nowrap;
}
.btn-review {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 16px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-review:hover {
    background: #0056b3;
    text-decoration: none;
}
.yandex-rating {
    border: none;
    width: 150px;
    height: 50px;
    max-width: 100%;
}

/* ===== СТИЛИ ДЛЯ ФОРМЫ ===== */
.modern-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.modern-form-wrapper h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}
.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    transform: scale(1.2);
}
.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}
.submit-btn:active {
    transform: translateY(0);
}
.validation-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}
.validation-message ul {
    margin: 0;
    padding-left: 20px;
}
.checkbox-group a,
label[for="agree"] a {
    color: #000000 !important;
    text-decoration: none !important;
}
.checkbox-group a:hover,
label[for="agree"] a:hover {
    color: #000000 !important;
    text-decoration: none !important;
}

/* ===== ОБЪЕДИНЁННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ ФОРМЫ ===== */
@media screen and (max-width: 800px) {
    /* Убираем отступы у родительского контейнера контента */
    body #content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Сама форма растягивается на всю ширину */
    .modern-form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .modern-form-wrapper h3 {
        font-size: 24px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    .form-description {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    .form-group {
        margin-bottom: 15px !important;
    }
    .form-group label {
        font-size: 15px !important;
        font-weight: 600 !important;
        margin-bottom: 5px !important;
    }
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 12px !important;
        font-size: 16px !important;
        border-width: 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .checkbox-group {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 15px 0 !important;
        padding: 0 !important;
    }
    .checkbox-group input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        transform: none !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    .checkbox-group label {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        color: #333 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .checkbox-group * {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .submit-btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 18px !important;
        font-weight: bold !important;
    }
}

@media screen and (max-width: 480px) {
    .modern-form-wrapper {
        padding: 12px !important;
    }
    .modern-form-wrapper h3 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }
    .form-description {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    .form-group label {
        font-size: 14px !important;
    }
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 10px !important;
        font-size: 15px !important;
    }
    .checkbox-group label {
        font-size: 13px !important;
    }
    .submit-btn {
        padding: 14px !important;
        font-size: 17px !important;
    }
}

@media screen and (max-width: 375px) {
    .checkbox-group {
        flex-wrap: wrap !important;
    }
    .checkbox-group label {
        font-size: 12px !important;
    }
}

/* ===== ВИДЕО-КОНТЕЙНЕР ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 20px auto;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== СТИЛИ ДЛЯ САЙДБАРА НА ДЕСКТОПЕ ===== */
@media screen and (min-width: 769px) {
    #sidebar .sidebarmenu a > div {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        background-size: contain !important;
        background-position: left center !important;
        background-repeat: no-repeat !important;
    }
    #sidebar .sidebarmenu a > div > div {
        margin-left: 0 !important;
        width: auto !important;
        height: auto !important;
        padding-left: 125px !important;
        padding-right: 15px !important;
        word-break: break-word !important;
        white-space: normal !important;
        font-size: 11pt !important;
        font-weight: normal !important;
        font-style: italic !important;
        line-height: 1.15 !important;
    }
}

/* ===== ПОДВАЛ (НОВАЯ ВЕРСИЯ НА FLEX) ===== */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
    background: #eae9ee; /* Фон, как у старого подвала */
    font-size: 10px; /* Базовый размер, если нужен */
}

.footer-copyright {
    flex: 1 1 300px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.footer-copyright a {
    color: #007bff;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-reviews {
    flex: 0 0 auto;
    text-align: center;
}

/* Стили для .btn-review и .yandex-rating уже есть в вашем CSS, их трогать не нужно */

/* Адаптация для мобильных */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-reviews {
        margin-top: 0; /* Убираем лишний отступ, если он был */
    }
}
/* ===== СТИЛИ ДЛЯ КАРТОЧЕК ТОВАРОВ ===== */
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.card h2 a {
    color: #1a4d8c;
    text-decoration: none;
}

.card h2 a:hover {
    color: #ff6b00;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card .description p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.card .description ul {
    padding-left: 20px;
    margin: 10px 0;
}

.card .description li {
    font-size: 13px;
    margin-bottom: 5px;
}

@media (max-width: 900px) {
    .product-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .product-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h2 {
        font-size: 18px;
    }
}


/* ===== СТИЛИ ДЛЯ ССЫЛОК "ПОДРОБНЕЕ" В КАРТОЧКАХ ===== */
.card-link {
    display: inline-block;
    background-color: #0066cc;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}
.card-link:hover {
    background-color: #004499;
    text-decoration: none;
}
/* ===== СТИЛИ ДЛЯ СПИСКА БРЕНДОВ ===== */
.brand-section {
    margin: 30px 0;
}

.brandul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.brandli {
    background: #f5f5f5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
    color: #333;
}

.brandli:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.brandli a {
    text-decoration: none;
    color: #333;
}

.brandli a:hover {
    color: #1a4d8c;
}

@media (max-width: 768px) {
    .brandli {
        padding: 5px 12px;
        font-size: 12px;
    }
}
/* ===== КОНТАКТЫ В ПОДВАЛЕ ===== */
.footer-contacts {
    flex: 0 0 auto;
    text-align: left;
    padding: 0 15px;
    line-height: 1.6;
}

.footer-contacts strong {
    font-size: 14px;
    color: #1a4d8c;
}

.footer-contacts a {
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-contacts {
        text-align: center;
    }
}
/* Сетка для галереи (не прокрутка) */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-images a {
    display: block;
    text-decoration: none;
}

.gallery-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .gallery-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}
/* Сетка для галереи (десктоп и мобильные) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-grid a {
    display: block;
    text-decoration: none;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}
/* Стрелки baguetteBox всегда видны */
.baguetteBox-button#next-button,
.baguetteBox-button#previous-button {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,0.7) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
}

.baguetteBox-button#next-button:hover,
.baguetteBox-button#previous-button:hover {
    background: rgba(0,0,0,0.9) !important;
}

@media (max-width: 768px) {
    .baguetteBox-button#next-button,
    .baguetteBox-button#previous-button {
        width: 40px !important;
        height: 40px !important;
    }
}