/* style.css - Древесная цветовая гамма для столярной мастерской */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #3e2e23; /* Темно-коричневый текст */
    background-color: #faf3e8; /* Теплый бежевый фон */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка (цвета дерева) */
.header {
    background-color: #5d3a1a; /* Глубокий коричневый (цвет мореного дуба) */
    color: #f5e6d3; /* Светлый бежевый */
    box-shadow: 0 4px 10px rgba(62, 39, 24, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fae6c3; /* Светлое дерево */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-span {
    color: #d9a066; /* Теплый янтарь */
    font-weight: 700;
}

.logo-city {
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 1px;
    color: #e0c9a6;
}

.header-contacts {
    text-align: right;
}

.contact-phone {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f5cba0; /* Светлый песочный */
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.contact-phone:hover {
    color: #ffb96a; /* Медовый */
}

/* Новая кнопка Telegram */
.telegram-btn {
    display: inline-block;
    background-color: #27a7e7; /* Ярко-голубой Telegram */
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 8px 0;
    transition: background-color 0.3s, transform 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.telegram-btn:hover {
    background-color: #1e8fc9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.contact-address {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #e0c9a6;
}

/* Навигация (вкладки) - текстура дерева */
.tabs-nav {
    background-color: #7b4f2e; /* Коричневый светлее шапки */
    border-top: 2px solid #a5672f; /* Окантовка под дерево */
    border-bottom: 2px solid #3e2a17;
}

.tabs-nav .container {
    display: flex;
    gap: 5px;
}

.tab-button {
    background: none;
    border: none;
    color: #efd9bf;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    color: #faeac9;
    background-color: rgba(170, 110, 50, 0.3);
}

.tab-button.active {
    color: #ffd194; /* Светлое золото */
    border-bottom-color: #e69d4e; /* Янтарный */
    background-color: rgba(200, 130, 50, 0.2);
}

/* Основной контент */
.main-content {
    min-height: 60vh;
    padding: 40px 0;
    background-color: #fff9f0; /* Очень светлый кремовый */
    background-image: radial-gradient(circle at 10% 20%, rgba(200, 150, 100, 0.03) 0%, transparent 30%);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Главная - Hero секция с "деревянным" фоном */
.hero {
    background: linear-gradient(rgba(70, 40, 20, 0.8), rgba(50, 30, 10, 0.8)), 
                url('https://images.unsplash.com/photo-1611485988300-b7530defb8e2?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
    background-color: #4a3727; /* Запасной цвет */
    color: #fef3e4;
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 60px;
    box-shadow: inset 0 0 0 1px rgba(255,215,140,0.2), 0 15px 25px rgba(0,0,0,0.2);
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background-color: #b87c4b; /* Терракотово-деревянный */
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(100, 60, 20, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #9b622e;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(80, 45, 15, 0.4);
}

/* Преимущества (карточки с текстурой) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 70px 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f6efe3; /* Светлая древесина */
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(100, 60, 30, 0.15);
    border-left: 6px solid #be8a5c;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: scale(1.02);
}

.feature-item h3 {
    color: #5a3a22;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px dotted #be8a5c;
    padding-bottom: 10px;
}

.feature-item p {
    color: #5f4c3b;
}

/* Текст о мастерской */
.about-text {
    background: #f4e8d9; /* Цвет старого дерева */
    padding: 45px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid #dbbc94;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.8), 0 5px 15px rgba(100, 60, 20, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    color: #4f341d;
    margin-bottom: 20px;
    border-left: 8px solid #c29a6b;
    padding-left: 20px;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.1rem;
    color: #3f2e1f;
}

/* Портфолио */
.section-title {
    font-size: 2.5rem;
    color: #543f2b;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: #8b6f50;
    margin-bottom: 50px;
    font-size: 1.2rem;
    font-style: italic;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.portfolio-item {
    background: #fcf5ea;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(90, 60, 30, 0.2);
    transition: all 0.3s;
    border: 1px solid #dbbc94;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(70, 40, 15, 0.3);
    border-color: #b5824b;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 4px solid #be8a5c;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    display: block;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 22px;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    color: #4f341d;
    margin-bottom: 8px;
    font-weight: 600;
}

.portfolio-info p {
    color: #735f4a;
    font-size: 1rem;
}

/* Футер (темное дерево) */
.footer {
    background-color: #3f2c1b; /* Темный шоколад */
    color: #d4bc9c;
    padding: 30px 0;
    border-top: 6px solid #b8864b; /* Золотистый дуб */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ecd5b0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffb870;
}

.footer-telegram {
    background-color: #27a7e7;
    padding: 8px 18px;
    border-radius: 30px;
    color: white !important;
    font-weight: 500;
}

.footer-telegram:hover {
    background-color: #1e8fc9;
    color: white !important;
}

/* Адаптация */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contacts {
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .tab-button {
        padding: 12px 18px;
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}