body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #222;
    scroll-behavior: smooth;
    /* плавная прокрутка */
}

header {
    background: linear-gradient(to right, #ffcc00, #ff9933);
    color: #fff;
    text-align: center;
    padding: 100px 20px 50px 20px;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

header p {
    font-size: 1.2em;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.logo:hover {
    color: #e63946;
    /* красивый акцентный цвет */
    transform: scale(1.05);
}

/* Навигация */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #ffcc00, #ff9933);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

nav .logo {
    font-weight: bold;
    font-size: 1.2em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Бургер меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
}

/* service oil */
#service-info {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.service-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* делает адаптивность */
}

.service-image {
    flex: 1 1 400px;
    min-width: 280px;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-text {
    flex: 1 1 400px;
    text-align: left;
}

.service-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-text li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

/* адаптивность */
@media (max-width: 768px) {
    .service-block {
        flex-direction: column;
        text-align: center;
    }

    .service-text {
        text-align: center;
    }

    .service-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    #service-info {
        padding: 30px 15px;
    }

    .service-text li {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        padding: 10px;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

#services {
    padding: 50px 20px;
    background: #f9f9f9;
    text-align: center;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.intro-text strong {
    color: #000;
}

/* адаптивность */
@media (max-width: 768px) {
    .intro-text h2 {
        font-size: 1.6rem;
    }

    .intro-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #services {
        padding: 30px 15px;
    }

    .intro-text h2 {
        font-size: 1.4rem;
    }

    .intro-text p {
        font-size: 0.95rem;
    }
}

.contact {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f9f9f9;
}

.contact p {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #555;
}

.contact-link {
    color: #f9f9f9;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
}

.contact-link:hover {
    color: #e63946;
    /* акцентный цвет */
    transform: scale(1.05);
}

/* карта гугл */
iframe {
    width: 100%;
    height: 400px;
    border: 0;
    margin-top: 20px;
}

#map {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

#map h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.map-container {
    max-width: 900px;
    /* чуть больше чем у карусели (600px) */
    margin: 0 auto;
    /* выравнивание по центру */
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* адаптивность */
@media (max-width: 768px) {
    .map-container {
        max-width: 95%;
    }

    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    #map {
        padding: 30px 15px;
    }

    .map-container iframe {
        height: 300px;
    }
}

footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* Кнопка наверх */
#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffcc00;
    color: #222;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* карусель */

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/2;
    /* сохранение пропорций */
    overflow: hidden;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel img.active {
    display: block;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s;
}

.carousel button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {

    /* планшеты */
    .carousel {
        max-width: 90%;
        aspect-ratio: 4/3;
    }

    .carousel button {
        font-size: 16px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {

    /* телефоны */
    .carousel {
        max-width: 95%;
        aspect-ratio: 1/1;
    }

    .carousel button {
        font-size: 14px;
        padding: 5px 10px;
    }
}