/* Основные переменные */
:root {
    --primary-color: #B8860B;
    --primary-hover: #D4B483;
    --dark-bg: #1A1F2C;
    --dark-gray: #2A303C;
    --medium-gray: #3A424F;
    --light-gray: #8B95A5;
    --very-light-gray: #C4C9D4;
    --light-text: #F5F2EB;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
    --spacing-unit: 1rem;
    --section-padding: 5rem;
    --border-radius: 8px;
}

/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.section-title {
    color: var(--light-text);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 400;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
    opacity: 0.8;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

/* Шапка */
.header {
    background-color: var(--dark-bg);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 44, 0.95);
    z-index: -1;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__item a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__item a:hover {
    color: var(--primary-color);
}

.nav__item a:hover::after {
    width: 100%;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: var(--transition);
}

.phone:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.whatsapp {
    color: var(--very-light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp:hover {
    color: var(--primary-color);
}

.whatsapp img {
    width: 16px;
    height: 16px;
}

/* Главный экран */
.hero {
    background-color: var(--dark-bg);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 44, 0.85);
    z-index: 1;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 42px;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--very-light-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Процесс работы */
.process {
    padding: 80px 0;
    background-color: var(--dark-gray);
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    padding: 30px;
    background-color: var(--dark-gray);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.process-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.process-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.process-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.process-card:hover .process-card__icon img {
    transform: scale(1.1);
}

.process-card__title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.process-card__text {
    color: var(--very-light-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Услуги */
.services {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 0;
    background-color: var(--dark-gray);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.service-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 20px;
    padding: 0;
}

/* Галерея */
.gallery {
    padding: 80px 0;
    background-color: var(--dark-gray);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: var(--light-text);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery__item:hover .gallery__item-overlay {
    transform: translateY(0);
}

.gallery__item-overlay h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* Контакты */
.contacts {
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.contacts__map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contacts__map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 44, 0.85);
    z-index: 2;
}

.map {
    width: 100%;
    height: 100%;
}

.contacts__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 31, 44, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3;
    padding: 1rem 0;
    border-top: 1px solid var(--medium-gray);
}

.contacts__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--very-light-gray);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--medium-gray);
}

.contact-item:last-child {
    border-right: none;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    display: inline;
}

.contact-item p,
.contact-item a {
    color: var(--very-light-gray);
    text-decoration: none;
    transition: var(--transition);
    margin: 0;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 31, 44, 0.95);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.social-link:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.social-link img {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.social-link:hover img {
    filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
    .contacts {
        height: 500px;
    }
    
    .contacts__content {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contacts {
        height: 400px;
    }
    
    .contacts__content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .contact-item {
        border-right: none;
        border-bottom: 1px solid var(--medium-gray);
        padding: 0.5rem;
    }
    
    .contact-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .contacts {
        height: 350px;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .social-link img {
        width: 16px;
        height: 16px;
    }
}

/* Подвал */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-gray);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Анимации */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Мобильное меню */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button__line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contacts__map {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header__content {
        flex-direction: column;
        text-align: center;
    }

    .nav__list {
        margin: 20px 0;
        flex-direction: column;
        display: none;
    }

    .nav--active .nav__list {
        display: flex;
    }

    .nav__item {
        margin: 10px 0;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .contacts__content {
        grid-template-columns: 1fr;
    }

    .mobile-menu-button {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .process__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .map-container {
        height: 300px;
    }
}

/* Секция с картой */
.map-section {
    padding: var(--section-padding) 0;
    background-color: var(--dark-gray);
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--dark-bg);
}

.map {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 300px;
    }
} 