/* Mirascı Mobilya - style.css
   Концепция: Скандинавский минимализм и японская эстетика Ваби-саби.
   Методология: Mobile-First.
*/

/* --- Переменные и базовые настройки --- */
:root {
    --bg-color: #F5F5DC;      /* Теплый бежевый */
    --text-color: #2F2F2F;     /* Угольный */
    --accent-color: #556B2F;   /* Оливково-зеленый */
    --header-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Типографика --- */
h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }

/* --- Общие компоненты --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-family: var(--body-font);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #445625; /* Более темный оттенок оливкового */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Анимация появления при скролле --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Навигация --- */
.main-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(245, 245, 220, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none; /* Скрыто на десктопе */
}

/* --- Hero Section (Главная страница) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
    background: url(images/img_62414713.jpg);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* --- Общие секции --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* --- Секция "Коллекции" --- */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.collection-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.collection-card-content h3 {
    color: white;
}

/* --- Секция "Процесс" --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
}

.step {
    flex-basis: 20%;
}

.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.step h4 {
    font-family: var(--header-font);
    margin-bottom: 0.5rem;
}

/* --- Секция "Отзывы" --- */
.testimonial {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-family: var(--header-font);
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 1rem;
    border: none;
}

.testimonial cite {
    font-weight: 500;
}

/* --- Страница "Наши изделия" (Urunlerimiz) --- */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
}
.product-info h3 {
    margin-bottom: 10px;
}

/* --- Страница "Наша история" (Hikayemiz) --- */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: cover;
    height: 100%;
}

/* --- Страница "Контакты" (Iletisim) --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info p { margin-bottom: 1.5rem; }
.contact-info strong { color: var(--accent-color); }

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-family: var(--body-font);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background-color: #e0e0e0;
}

/* --- Юридические страницы --- */
.legal-content {
    padding-top: 120px; /* Чтобы не перекрывалось шапкой */
    padding-bottom: 80px;
    max-width: 800px;
}
.legal-content h2 {
    margin-bottom: 2rem;
}
.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Футер --- */
.main-footer {
    background-color: #EADFCB; /* Более темный оттенок фона */
    padding: 50px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-about h4, .footer-links h4 {
    font-family: var(--header-font);
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-color); }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dcd0b3;
    font-size: 0.9rem;
}


/* --- Адаптивность (Mobile-First) --- */

/* Планшеты (768px и больше) */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    .hero-content h1 { font-size: 4.5rem; }
}

/* Ноутбуки (1024px и больше) */
@media (min-width: 1024px) {
    .main-nav ul { gap: 40px; }
}

/* Стили для мобильных устройств (менее 768px) */
@media (max-width: 767px) {
    .main-header { padding: 15px 0; }
    
    .main-nav {
        display: none; /* Скрываем навигацию */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active { display: block; }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .main-nav li {
        text-align: center;
        margin-bottom: 15px;
    }

    .mobile-toggle {
        display: block; /* Показываем "бургер" */
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-color);
    }

    .section { padding: 60px 0; }
    h1 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }

    .collections-grid { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; }
    .story-content { grid-template-columns: 1fr; }
    .story-content .story-image { order: -1; margin-bottom: 30px; } /* Картинка сверху */
    .contact-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
