/* Общие стили */
:root {
    --primary-color: #f0f0f0;
    --secondary-color: #2c2c2c;
    --accent-color: #e6b800;
    --text-color: #fff;
    --bg-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.phone-button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.phone-button:hover {
    background-color: #ffcc00;
}

/* Главный экран */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards 0.5s;
    background-color: var(--bg-color);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: 100px;
}

.hero-title {
    font-size: 4em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffcc00;
}

/* Секции */
.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.about-section, .contacts-section, .gallery-section {
    padding: 80px 0;
}

/* Обновлённые стили для раздела "О нас" */
.about-flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text-content {
    flex: 1;
    text-align: left;
}

.about-text {
    font-size: 1.3em;
    line-height: 1.8;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.about-image-with-price {
    flex: 1;
    position: relative;
    max-width: 450px;
}

.hookah-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Стили для раздела "Контакты" */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffcc00;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 40px;
    height: 40px;
}

.map-container {
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Слайдер */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border: none;
    padding: 15px;
    font-size: 2.5em;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Футер */
.footer {
    text-align: center;
    padding: 20px 0;
    background: var(--secondary-color);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .nav-list {
        margin: 15px 0;
    }

    .about-flex-container {
        flex-direction: column;
    }

    .about-text-content {
        text-align: center;
    }

    .about-image-with-price {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3em;
    }

    /* Обновлённые стили для контактов на мобильных */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container {
        order: 2;
        height: 300px;
    }
    
    .contact-info {
        order: 1;
        text-align: center;
    }
    
    .social-link {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
   
    .hero-subtitle {
        font-size: 1.2em;
    }

    .phone-button, .cta-button {
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .about-text, .contact-info p, .contact-info a {
        font-size: 1em;
    }

    /* Дополнительные стили для очень маленьких экранов */
    .map-container {
        height: 250px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    
    .map-container iframe {
        border-radius: 0;
    }
}