/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f7f3;
}

/* Таблес точка хэтэмээл*/
.portfoliotab {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}


.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Навигация */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #8B4513;
    text-decoration: none;
    font-family: 'Georgia', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s; 
}

.nav-menu a:hover {
    color: #8B4513;
}

/* Герой-секция */
.hero {
    background: #000000;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #8B4513;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #6d3410;
}

/* О компании */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.features {
    list-style: none;
    margin-top: 20px;
}

.features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.features i {
    color: #8B4513;
    margin-right: 10px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Материалы */
.materials {
    padding: 80px 0;
    background-color: #f9f7f3;
}

.materials .container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: black;
    margin-bottom: 15px;
}

.materials .container > p {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.material-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.material-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.material-card:hover .material-image img {
    transform: scale(1.05);
}

.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #8B4513;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.material-info {
    padding: 20px;
}

.material-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.material-info > p {
    color: #5d6d7e;
    line-height: 1.5;
    margin-bottom: 15px;
}

.material-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.material-info li {
    color: #5d6d7e;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.material-info li:before {
    content: "✓";
    color: #27ae60;
    margin-right: 8px;
    font-weight: bold;
}

/* Продукция */
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-family: 'Georgia', serif;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 20px 20px 10px;
    color: #8B4513;
}

.product-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* Контакты */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: #8B4513;
    width: 25px;
    margin-right: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* футер */

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
}
/* Стили для контейнера логотипа */
.logo-container {
    display: flex;
    align-items: center;
    gap: 30px; /* Расстояние между иконкой и текстом */
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(15deg);
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #8B4513;
    text-decoration: none;
    font-family: 'Georgia', serif;
}

/* медиа-запрос для мобильных */
@media (max-width: 768px) {
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 22px;
    }
}

/* ===== СТИЛИ ДЛЯ КНОПОК МАТЕРИАЛОВ ===== */
/*.material-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-select, .btn-quote {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-select {
    background: #8B4513;
    color: white;
}

.btn-select:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

.btn-select.selected {
    background: #27ae60;
}

.btn-quote {
    background: #f8f5f0;
    color: #8B4513;
    border: 2px solid #8B4513;
}

.btn-quote:hover {
    background: #8B4513;
    color: white;
}

/* ===== УВЕДОМЛЕНИЕ О ВЫБОРЕ ===== */
.material-alert {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 5px solid #27ae60;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    transition: opacity 0.3s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-content i {
    color: #27ae60;
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.alert-content p {
    margin: 3px 0;
    font-size: 13px;
    color: #7f8c8d;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.alert-close:hover {
    background: #f0f0f0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .material-actions {
        flex-direction: column;
    }
    
    .material-alert {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .btn-select, .btn-quote {
        padding: 10px;
        font-size: 13px;
    }
}

/* Стили */
.my-footer {
    background: white;
    padding: 25px 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Убедимся что другие стили не мешают */
.footer-socials a {
    display: inline-block !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    line-height: 55px !important;
    text-align: center !important;
    font-size: 25px !important;
    color: white !important;
    transition: all 0.3s !important;
}

/* ЦВЕТА: */
.social-tg {
    background: #0088cc !important; /* Telegram синий */
}

.social-vk {
    background: #4a76a8 !important; /* VK синий */
}

.social-tt {
    background: #000000 !important; /* TikTok черный */
}

/* Эффекты при наведении */
.footer-socials a:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.social-tg:hover { background: #0077b5 !important; }
.social-vk:hover { background: #3d6898 !important; }
.social-tt:hover { background: #333333 !important; }