/* Общие стили для логотипа */
.logo-container {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 250px;
    height: auto;
}

/* Стили для контактов */
.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.contact-info a {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin: 3px 0;
    transition: background 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.contact-info a:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Стили для десктопной версии - контакты в одну строчку */
@media (min-width: 769px) {
    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        align-items: flex-start;
    }
    
    .contact-info p {
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-width: 200px;
        gap: 0;
    }
    
    .contact-info p strong {
        white-space: nowrap;
        margin-bottom: 0 !important;
        padding-bottom: 0;
        line-height: 0.6;
        margin-bottom: -10px !important;
    }
    
    .contact-info a {
        margin: 0 !important;
        width: 100%;
        text-align: center;
        margin-top: 0 !important;
    }
    
    /* Стили для блока с картой и контактами */
    .tm-section-6 {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 40px 20px;
        border-radius: 15px;
        margin: 40px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .tm-section-6 .row {
        display: flex;
        align-items: stretch;
        margin: 0;
    }
    
    .tm-section-6 .col-lg-7 {
        flex: 0 0 60%;
        max-width: 60%;
        padding-right: 10px;
        padding-left: 0;
    }
    
    .tm-section-6 .col-lg-5 {
        flex: 0 0 40%;
        max-width: 40%;
        padding-left: 10px;
        padding-right: 0;
    }
    
    .tm-contact-right {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-left: 0;
        height: 100%;
    }
    
    .tm-address-box h2 {
        color: #333;
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
        border-bottom: 2px solid #007bff;
        padding-bottom: 8px;
    }
    
    .tm-address-box address {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        border-left: 4px solid #007bff;
        margin-top: 15px;
        font-style: normal;
        line-height: 1.4;
        font-size: 14px;
    }
    
    .contact_message {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        height: 100%;
        min-height: 350px;
    }
    
    .contact_message iframe {
        height: 100% !important;
        min-height: 350px;
    }
}

/* Мобильная версия - карта сверху, контакты снизу */
@media (max-width: 768px) {
    .tm-section-6 .desktop-layout {
        display: block !important;
        flex-wrap: wrap !important;
    }
    
    .tm-section-6 .map-column {
        flex: none !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 20px;
    }
    
    .tm-section-6 .contact-column {
        flex: none !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .tm-contact-right {
        margin-left: 0 !important;
        padding: 20px !important;
    }
    
    .contact_message {
        min-height: 300px !important;
    }
    
    .contact_message iframe {
        min-height: 300px !important;
    }
}

/* Дополнительные мобильные стили для главной страницы */
@media (max-width: 768px) {
    /* Изменение порядка элементов в мобильной версии */
    .tm-section-head {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .tm-section-head .logo-container {
        order: 1 !important;
    }
    
    .tm-section-head #header h1 {
        order: 2 !important;
    }
    
    /* Карусель сразу после заголовка */
    .tm-section-head #tm-section-1 {
        order: 3 !important;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* Контакты после карусели */
    .tm-section-head .contact-info {
        order: 4 !important;
        margin-top: 20px;
    }
    
    /* Меню в самом конце */
    .tm-section-head .simple-menu {
        order: 5 !important;
        margin-top: 20px;
    }
    .container {
        padding: 0 15px;
    }
    
    #header h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        word-wrap: break-word;
    }
    
    #header p {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    #header a {
        font-size: 18px;
        font-weight: bold;
        color: #007bff;
        text-decoration: none;
    }
    
    .logo-container img {
        max-width: 200px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info a {
        padding: 8px 12px;
        font-size: 16px;
    }
    

    
    .tm-slider-img {
        max-height: 300px;
        object-fit: cover;
    }
    
    .tm-slider-caption {
        font-size: 14px;
        padding: 10px;
        background: rgba(206, 212, 218, 0.5);
        color: #111;
    }
    
    .tm-box-3 {
        padding: 20px 15px;
    }
    
    .tm-box-3 h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .tm-box-3 p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .tm-media {
        margin-bottom: 30px;
    }
    
    .tm-media-img {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }
    
    .tm-box-5 h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .tm-box-5 p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        margin: 10px 0;
    }
    
    .btn-big {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .fa-4x {
        font-size: 3rem !important;
    }
    
    .pl-5, .pr-5, .pb-5, .pt-2 {
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    #header h1 {
        font-size: 1.5rem;
    }
    
    .logo-container img {
        max-width: 150px;
    }
    
    .contact-info a {
        font-size: 14px;
        padding: 6px 10px;
    }
    

    
    .tm-slider-img {
        max-height: 200px;
    }
    
    .tm-box-3 {
        padding: 15px 10px;
    }
    
    .tm-box-3 h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .fa-4x {
        font-size: 2.5rem !important;
    }
    
    /* Плавная прокрутка для мобильных устройств */
    html {
        scroll-behavior: smooth;
    }
    
    /* Дополнительный отступ для лучшего позиционирования */
    #tm-section-3 {
        scroll-margin-top: 60px;
    }
    
    #hot-smoking-products {
        scroll-margin-top: 20px;
    }
} 