:root {
    --primary: #FDB225;
    --dark: #121212;
    --light: #ffffff;
    --gray: #f5f5f5;
    --text: #333333;
    --accent: #2c5282;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Адаптированная шапка сайта */
header {
    background-color: #E8E8E8;
    background-image: url('logo1.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20px;
    position: relative;
}

header nav ul {
    list-style-type: none;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

header nav a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    position: relative;
}

.nav-button {
    display: inline-block;
    padding: 10px 10px;
    background-color: rgb(253, 178, 37);
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    width: 140px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FDB225;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.nav-button:hover {
    background-color: rgb(255, 200, 100);
}

.logo img {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-top: -12px;
}

/* Эффект выделения вкладок при наведении */
header nav a:hover {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Адаптивность ТОЛЬКО для шапки на мобильных устройствах */
@media (max-width: 768px) {
    /* Фиксируем body чтобы не было горизонтальной прокрутки */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Адаптация шапки */
    header {
        padding: 8px 5px;
        min-height: auto;
        background-image: url('logo.jpeg');
        background-size: cover;
        background-position: center;
        min-height: 80px;
        position: relative;
    }
    
    /* Полупрозрачный оверлей для лучшей читаемости */
    header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.85);
        z-index: 0;
    }
    
    /* Навигационное меню */
    header nav ul {
        position: relative;
        z-index: 1;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 0;
        width: 100%;
    }
    
    /* Стили для кнопок */
    .nav-button {
        font-size: 9.5px;
        padding: 6px 4px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
        width: calc(50% - 8px);
        max-width: 175px;
        min-width: 175px;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        background-color: rgba(253, 178, 37, 0.95);
    }
    
    /* Специальные стили для длинных текстов */
    .nav-button.long-text {
        font-size: 9px;
        padding: 5px 3px;
        line-height: 1.0;
        letter-spacing: -0.1px;
        min-height: 36px;
    }
    
    /* Позиционирование логотипа */
    .logo {
        order: 1;
        flex: 0 0 100%;
        text-align: center;
        margin: 5px 0;
        position: relative;
        z-index: 1;
    }
    
    .logo img {
        width: 25px;
        margin: 0;
    }
}



/* Для очень маленьких экранов (только шапка) */
@media (max-width: 480px) {
    .nav-button {
        font-size: 9px;
        min-width: 110px;
        width: calc(50% - 6px);
    }
    
    .nav-button.long-text {
        font-size: 8.5px;
        min-height: 36px;
    }
    
    .logo img {
        width: 22px;
    }
}

/* Фикс для экранов меньше 400px (только шапка) */
@media (max-width: 400px) {
    .nav-button {
        font-size: 8.5px;
        min-width: 105px;
    }
    
    .nav-button.long-text {
        font-size: 8px;
        padding: 4px 2px;
    }
}

/* Hero секция */
.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23FDB225" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--dark) 100%);
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Основной контент */
.content-section {
    padding: 80px 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
    position: relative;
}

.about-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(to right, var(--primary), #ffcc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.services-list {
    margin: 30px 0;
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
}

.services-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.guarantees {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.guarantee-item {
    background: var(--gray);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.guarantee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.guarantee-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

/* Контактная информация */
.contact-info {
    background: linear-gradient(135deg, var(--dark), #1a1a2e);
    color: var(--light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text {
    flex-grow: 1;
}

.contact-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-text p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

/* Галерея */
.gallery {
    margin-top: 80px;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

.gallery h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: var(--light);
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Карта */
.map-section {
    margin: 80px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    height: 500px;
    background: #e0e0e0;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.8) 40%, transparent);
    display: flex;
    align-items: center;
    padding: 0 50px;
    z-index: 2;
    color: var(--light);
}

.map-content {
    max-width: 500px;
}

.map-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.map-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.map-marker {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.map-marker-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Подвал */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), #ffcc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.copyright {
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Существующие медиазапросы (оставляем без изменений) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .grid-container {
        gap: 30px;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .map-overlay {
        padding: 30px;
        background: rgba(18, 18, 18, 0.85);
    }
    
    .map-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .guarantees {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .map-section {
        height: 400px;
    }
    
    .gallery h2 {
        font-size: 2rem;
    }
}