/* Общие стили */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #101010;
    color: #fff;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: #ffd700; margin-bottom: 1rem; }
h3 { font-size: clamp(1rem, 3vw, 1.2rem); color: #ffd700; margin-bottom: 0.5rem; }
p { font-size: clamp(0.9rem, 2.5vw, 1rem); }

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo img {
    width: clamp(2rem, 5vw, 2.5rem);
    height: auto;
}

.nav-logo:hover {
    color: #fff;
}

/* Номер телефона в навигации */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-phone i {
    font-size: 1rem;
}

.nav-phone:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* Бургер-меню */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 0.25rem;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease, transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.nav-menu a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    transform: translateY(-2px) scale(1.05);
}

.nav-menu a:hover i {
    transform: scale(1.2);
}

/* Секции */
.hero-section, .services-section, .about-section, .contact-section, .map-section, .promo-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-section { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/static/images/car1.jpg'); }
.services-section { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/static/images/car2.jpg'); }
.about-section, .contact-section, .map-section { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/static/images/car3.jpg'); }

.overlay {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    width: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.service-card i {
    color: #ffd700;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.service-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #fff;
}

.service-card:hover h3 {
    color: #fff;
}

/* Контакты */
.contact-info {
    max-width: 600px;
    margin: 1rem auto;
}

.phone {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.phone i {
    color: #ffd700;
    font-size: 1.2rem;
}

.phone a {
    color: #ffd700;
    text-decoration: none;
}

.phone a:hover {
    color: #fff;
}

/* Футер */
footer {
    background: #000;
    padding: 2rem 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* ==== ИКОНКИ СОЦСЕТЕЙ — УВЕЛИЧЕНЫ В 2 РАЗА, КРУГ НЕТРОНУТ ==== */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;        /* ← Круг остался прежним */
    height: 3.5rem;       /* ← 56px */
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links i {
    font-size: 2.8rem;    /* ← Иконка в 2× больше (было ~1.4rem) */
    color: #fff;
    transition: color 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.social-links a:hover i {
    color: #101010;
}

/* ==== АДАПТИВНОСТЬ СОЦСЕТЕЙ ==== */
@media (max-width: 768px) {
    .social-links a {
        width: 3rem;
        height: 3rem;
    }
    .social-links i {
        font-size: 2.2rem;  /* ← 2× от базового на планшете */
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }
    .social-links a {
        width: 2.8rem;
        height: 2.8rem;
    }
    .social-links i {
        font-size: 1.8rem;  /* ← 2× от базового на мобильных */
    }
}

/* Кнопка вверх */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #ffd700;
    color: #101010;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
}

.scroll-top:hover {
    transform: scale(1.1);
}

/* АКЦІЯ ТИЖНЯ — ВВЕРХУ, АДАПТИВНО */
.promo-section {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/static/images/promo-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.promo-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    padding: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-image {
    color: #ffd700;
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.promo-image i {
    transition: transform 0.3s ease;
}

.promo-image:hover i {
    transform: scale(1.1) rotate(5deg);
}

.promo-content {
    flex: 2;
    min-width: 280px;
    text-align: left;
    color: #fff;
}

.promo-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.promo-content h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    margin: 0.5rem 0;
    color: #ffd700;
}

.promo-content p {
    margin: 0.6rem 0;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.promo-note {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #ccc;
    font-style: italic;
    margin-top: 1rem;
}

/* АДАПТИВНОСТЬ АКЦИИ */
@media (max-width: 768px) {
    .promo-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .promo-content {
        text-align: center;
    }
    .promo-image {
        order: -1;
    }
}

@media (max-width: 480px) {
    .promo-content h2 { font-size: 1.6rem; }
    .promo-content h3 { font-size: 1.3rem; }
    .promo-content p { font-size: 0.95rem; }
}

/* Media queries для адаптивности */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-phone {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem 0;
        flex-direction: column;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }

    .nav-menu.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 1rem;
        justify-content: center;
    }

    .hero-section, .services-section, .about-section, .contact-section, .map-section, .promo-section {
        min-height: 50vh;
    }

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

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-phone {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
    }

    .nav-phone i {
        font-size: 1rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    p { font-size: 0.85rem; }

    .overlay {
        padding: 1.5rem 1rem;
    }
}

@media screen and (min-width: 1200px) {
    .nav-container, .overlay {
        max-width: 1400px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}