/* Базовые стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --dark-bg: #2f3640;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--dark-bg);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.slogan {
    color: white;
    font-size: 0.2rem;
    align-items: center;
    /*font-weight: bold;*/
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
}

/* Геро-секция */
.hero {
    height: 100vh;
    background-image: url('img/bg-img.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
	justify-content: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Темный полупрозрачный слой */
    z-index: 1;
}

/* Выравнивание: по центру (по умолчанию) */
.hero.hero--center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Выравнивание: снизу по центру */
/* .hero.hero--bottom-center {
    display: flex;
    justify-content: center;
    align-items: flex-end;
} */
.hero.hero--bottom-center .cta-button {
    left: 50%;
    transform: translateX(-50%);
}

/* Выравнивание: снизу слева */
/* .hero.hero--bottom-left {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
} */
.hero.hero--bottom-left .cta-button {
    left: 50px;
}

.cta-button {
    position: absolute;
	/* position: relative; */
    z-index: 2;
    padding: 1rem 2rem;
    background-color: transparent; /* Прозрачный фон */
    color: white;
    text-decoration: none;
    border: 2px solid white; /* Белая рамка толщиной 2px */
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease; /* Плавный переход */
	bottom: 50px; /* отступ снизу */
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Лёгкое затемнение при наведении */
    border-color: rgba(255, 255, 255, 0.8); /* Слегка прозрачная белая рамка */
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    background-color: white;
}

.gallery-item {
    background-color: #ecf0f1;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Полупрозрачное затемнение */
    z-index: 2;
    transition: background-color 0.3s ease;
}

.gallery-item:hover::after {
    background-color: rgba(0, 0, 0, 0.15); /* Светлее при наведении */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-weight: bold;
    z-index: 3;
}

/* Текстовые колонки */
.content-section {
    padding: 2rem;
    background-color: var(--light-bg);
}

.columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.full-width-column {
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Контакты */
.contact-section {
    padding: 2rem;
    background-color: white;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Футер */
.footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.footer button {
    position: absolute;
    bottom: 1rem;
    left: 2rem; /* Теперь кнопка слева */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 20px; /* Смещение вправо от левого края */
        width: calc(100% - 40px); /* Чтобы не вылезало за правый край */
        max-width: 300px; /* Ограничение ширины */
        background-color: var(--dark-bg);
        flex-direction: column;
        display: none;
        padding: 1rem;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .cta-button {
        bottom: 100px; /* отступ снизу */
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .hero.hero--bottom-center .cta-button {
        transform: translateX(-50%);
        left: 50%;
    }

    .hero.hero--bottom-left .cta-button {
        left: 20px;
    }
	
	.columns {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
	
    .footer button {
        left: 1rem;
        bottom: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }	
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}