body, html {
    margin: 0;
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Плавная прокрутка */
}

img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Стиль для кнопки вверх */
.scroll-to-top {
    position: fixed; /* Кнопка остаётся в углу независимо от прокрутки */
    bottom: 20px; /* Отступ от нижнего края */
    right: 20px; /* Отступ от правого края */
    width: 50px;
    height: 50px;
    background-color: #00bfff; /* Голубой фон */
    color: white;
    border: none;
    border-radius: 50%; /* Круглая форма кнопки */
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Лёгкая тень */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимация при наведении */
}

.scroll-to-top:hover {
    transform: scale(1.1); /* Увеличение кнопки при наведении */
    box-shadow: 0 6px 12px rgba(0, 191, 255, 0.5); /* Больше тени при наведении */
}

/* Первый Блок */


.first {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    width: 100%;
    height: 100vh;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    filter: brightness(50%); /* 50% яркости */
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Обрезка под экран */
}

/* Стили для шапки */
.lg img {
    max-width: 100px;
    max-height: 100px;
    margin-left: 50px;
}

header {
    display: flex;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    margin: 0;
}

header nav ul {
    display: flex;
    list-style: none;
    padding-right: 30px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    font-family: "Playfair Display", serif;
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

header nav ul li a:hover {
    color: #08bad4; /* Цвет текста при наведении */
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #08bad4;
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}


.hero {
    height: 100vh; /* Высота блока на весь экран */
    display: flex; /* Включаем Flexbox */
    flex-direction: column;
    justify-content: center; /* Горизонтальное выравнивание */
    align-items: center; /* Вертикальное выравнивание */
    text-align: center; /* Текст по центру */
}

.content {
    max-width: 800px; /* Ограничиваем ширину контента */
    margin-bottom: 150px;
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2.5rem; /* Размер заголовка */
    margin-bottom: 20px;
    font-family: "Russo One", sans-serif;
    letter-spacing: 2px;
    font-weight: normal;
    color: white;
    margin-bottom: -30px;
}

p {
    font-size: 1.25rem; /* Размер текста под заголовком */
    margin-bottom: 30px;
    font-family: "Playfair Display", serif;
    color: white;
}

.more {
    letter-spacing: 3px;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400px;
    font-size: 20px;
    text-align: center;
    color: #08bad4;
    margin-top: 100px;
    margin-bottom: -80px;
    animation-name: blink;
    animation-timing-function: linear;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

@keyframes blink {
    50% {
      opacity: 0;
    }
}

.str {
    font-family: "Russo One", sans-serif;
    animation-name: blink;
    animation-timing-function: linear;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    color: #08bad4;
    font-weight: 400px;
    font-size: 60px;
    margin-bottom: -200px;
}

@keyframes blink {
    50% {
      opacity: 0;
    }
}

/* Стили кнопки */
.cta-button {
    background: linear-gradient(to right, #3de2c4, #0057e7); /* Градиентный фон */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 10px 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: scale(1.05); /* Увеличение кнопки при наведении */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Усиливаем тень */
}

.cta-button:active {
    transform: scale(0.95); /* Уменьшение кнопки при клике */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ослабляем тень */
}

.gradient-button {
    background: linear-gradient(to right, #3de2c4, #0057e7); /* Градиентный фон */
    color: white; /* Цвет текста */
    font-size: 18px; /* Размер текста */
    font-weight: bold; /* Полужирный текст */
    border: none; /* Убираем рамку */
    border-radius: 30px; /* Закругляем края */
    padding: 10px 30px; /* Внутренние отступы */
    cursor: pointer; /* Изменяем курсор на указатель */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Анимация */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}

/* Эффект при наведении */
.gradient-button:hover {
    transform: scale(1.05); /* Увеличение кнопки */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* Усиливаем тень */
}

/* Для мобильных устройств */
.gradient-button:active {
    transform: scale(0.95); /* Небольшое уменьшение при нажатии */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ослабляем тень */
}

/* Второй Блок */

.info, .serv, .gal, .cons {
    padding: 50px 15px;
}

.info {
    background-image: url("images/fon2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding-top: 10px;
    margin: 0;
    background-color: #000; /* Фон страницы */
    color: white;
    display: flex;
    justify-content: left;
}

.info h2 {
    margin: 0;
    padding-left: 30px;
    font-size: 70px;
    font-family: "Russo One", sans-serif;
    font-weight: normal;
    color: white;
}

.circle-container {
    display: flex; /* Выравниваем круги в строку */
    gap: 15px; /* Расстояние между кругами */
    flex-wrap: wrap;
    padding-left: 20px;
    padding-top: 30px;
    font-size: 11px; /* Размер шрифта */
}

.circle {
    width: 120px; /* Ширина круга */
    height: 120px; /* Высота круга */
    border: 2px solid #00bcd4; /* Цвет и толщина рамки */
    border-radius: 50%; /* Делаем элемент круглым */
    display: flex; /* Для центрирования текста внутри */
    justify-content: center;
    align-items: center;
    text-align: center; /* Текст по центру */
    font-family: "Playfair Display", serif;
    line-height: 1.4; /* Межстрочный интервал для текста */
    font-size: 11px; /* Размер шрифта */
    color: white; /* Цвет текста */
    transition: transform 0.3s ease; /* Плавная анимация при наведении */
}

.circle:hover {
    transform: scale(1.1); /* Увеличение круга при наведении */
    border-color: gold; /* Изменение цвета рамки при наведении */
}

.maintxt {
    font-size: 18px;
    margin-top: 30px;
    padding-left: 30px;
    width: 100%;
    max-width: 600px;
    line-height: 1.6;
    text-align: justify;
}

/* Третий Блок */

.serv {
    background-image: url("images/fon3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    color: white;
    text-align: center;
    min-height: 200vh;
}


.serv h1 {
    margin: 0;
    padding-top: 10px;
    font-size: 44px;
    font-family: "Russo One", sans-serif;
    font-weight: normal;
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивная сетка */
    gap: 15px; /* Расстояние между карточками */
    justify-content: center;
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
}

.service-card {
    background-color: #222; /* Фон карточки */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.service-card h2 {
    margin: 15px 0;
    padding-top: 10px;
    font-size: 20px;
    font-family: "Russo One", sans-serif;
    font-weight: normal;
    color: white;
}

.service-card p {
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.order-button {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(to right, #00bfff, #007bff);
    color: white;
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: "Russo One", sans-serif;
    font-weight: normal;
    letter-spacing: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

/* Четвёртый Блок */

.gal {
    background-image: url("images/fon4.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    color: white;
    text-align: center;
}

.gal h1 {
    margin: 0;
    padding-top: 50px;
    font-size: 44px;
    font-family: "Russo One", sans-serif;
    font-weight: normal;
    color: white;
}

/* Сетка изображений */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Расстояние между карточками */
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.gallery-item {
    border: 3px solid #00bfff; /* Голубая рамка */
    border-radius: 10px; /* Закругленные углы */
    overflow: hidden; /* Убираем выходы изображения за рамки */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 350px;
    height: 250px;
}

.gallery-item:hover {
    transform: scale(1.05); /* Увеличение при наведении */
    box-shadow: 0 6px 12px rgba(0, 191, 255, 0.5); /* Тень при наведении */
    cursor: pointer;
}

/* Стили модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000; /* Поверх всех элементов */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
}

/* Изображение в модальном окне */
.modal-content {
    max-width: 50%; /* Ограничиваем ширину изображения */
    max-height: 80%; /* Ограничиваем высоту изображения */
    border: 3px solid #00bfff;
    border-radius: 10px;
}

/* Крестик для закрытия */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close:hover {
    transform: scale(1.2); /* Увеличение крестика при наведении */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Пятый Блок */

.cons {
    background-image: url("images/fon-rules.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    color: white;
    text-align: center;
    margin: 0;
    color: white;
    display: flex;
}

.consultation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.form-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.form-container h1 {
    font-size: 33px;
    margin-bottom: 20px;
    line-height: 1.4;
}


form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input {
    width: 93%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid white;
    border-radius: 5px;
    background-color: transparent;
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
}

form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

form input:focus {
    border-color: #00bfff;
}

.submit-button {
    background: linear-gradient(to right, #00bfff, #007bff);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

/* Стили для изображений */
.images-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 550px;
    padding-left: 50px;
    margin-left: 100px;
}

.image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
    border: 3px solid #00bfff;
    box-shadow: 0 4px 8px rgba(0, 191, 255, 0.5);
}

.image:hover {
    transform: scale(1.05) rotate(0deg);
}

.image-1 {
    position: absolute;
    top: -30px;
    left: 5px;
}

.image-2 {
    position: absolute;
    top: 100px;
    left: 200px;
    z-index: 2;
    transform: rotate(-5deg);
}

.image-3 {
    position: absolute;
    top: 300px;
    left: 10px;
    z-index: 1;
    transform: rotate(-5deg);
}

/* Шестой Блок */

.cont {
    background-image: url("images/fon6.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    color: white;
}

.contact-info {
    align-self: flex-end;
    text-align: right;
    margin-bottom: 20px;
}

.contact-info h1 {
    margin: 0;
    padding-top: 30px;
    font-size: 90px;
    font-family: "Russo One", sans-serif;
    font-weight: normal;
    color: white;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    text-align: right;
    margin-right: 100px;
}

.tel {
    font-size: 30px;
    font-family: "Russo One", sans-serif;
    letter-spacing: 2px;
    color: white;
    margin-right: 170px;
}

.tel:hover {
    color: #00bfff;
}

.social-icons {
    padding-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: right;
    margin-right: 150px;
}

.icon {
    display: flex;
    width: 100px;
    height: 100px;
    border: 2px solid #00bfff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon:hover {
    transform: scale(1.2); /* Увеличение при наведении */
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.7); /* Тень при наведении */
}

.icon img {
    width: 60%;
    height: auto;
}

.map-container {
    display: flex;
    width: 100%;
    max-width: 450px;
    float: right;
    margin-top: 20px;
    justify-content: flex-end;
    margin-right: 100px;
    overflow: hidden;
    box-sizing: border-box;
    border: 5px solid;
    border-image-source: linear-gradient(45deg, #ff0000, #ff7300, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    border-image-slice: 1;
    animation: animate-border 1s linear infinite;
}

iframe {
    max-width: 100%;
}

@keyframes animate-border {
    0% {
        border-image-source: linear-gradient(45deg, #ff0000, #ff7300, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
    }
    100% {
        border-image-source: linear-gradient(405deg, #ff0000, #8b00ff, #0000ff, #00ff00, #ffff00, #ff7300, #ff0000);
    }
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 265px;
    position: relative;
    z-index: 2; /* Карта под рамкой */
}


/* Медиазапросы для адаптивности */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .circle {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .hero {
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .consultation {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
        padding-bottom: 10%;
    }

    .hero p {
        font-size: 0.875rem;
        padding: 15px;
        margin: 15px;
    }

    .info {
        max-width: 480px;
    }

    .circle-container {
        max-width: 200px;
        padding-left: 70px;
        margin-bottom: 20px;
    }

    .circle {
        width: 85px;
        height: 85px;
    }

    .circle p {
        font-size: 0.875rem;
        padding-top: 10px;
    }

    .maintxt {
        font-size: 0.850rem;
        padding: 0px;
        margin-top: 10px;
        width: 90%;
    }

    .services {
        max-width: 480px;
    }

    .serv {
        height: 100%;
    }

    .serv h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        gap: 15px; /* Расстояние между карточками */
        margin: 20%;
        max-height: 100%;
    }

    .services-grid h2 {
        font-size: 1.2rem;
    }

    .services-grid p {
        font-size: 0.990rem;
    }

    .gal {
        max-width: 100%;
        height: 100vh;
        padding: 0;
        margin: 0;
    }

    .gal h1 {
        padding: 0;
        margin: 0;
        padding-bottom: 10px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 40%;
        padding: 0;
        margin: 0;
        padding-left: 120px;
    }

    .gallery-item {
        max-width: 90%;
    }

    .cons {
        padding: 0;
        margin: 0;
        align-items: center;
    }

    .cons h1 {
        text-align: center;
        font-size: 1.35rem;
    }

    .form-container input {
        width: 90%;
    }

    .submit-button {
        margin: 5px;
    }

    .images-container {
        display: none;
    }

    .contact-info h1 {
        font-size: 1.5rem;
    }

    .info {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        margin: 0;
        padding: 0;
    }

    .contact-info h1 {
        margin: 0;
        padding: 0;
        text-align: center;
        padding-bottom: 50px;
        font-size: 1.5rem;
    }

    .tel {
        padding: 0;
        margin: 0;
    }

    .social-icons {
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0 auto;
        justify-content: center;
        padding-top: 10px;
    }

    .map-container {
        margin: 0;
        padding: 0;
        margin-top: 50px;
    }

    .icon {
        width: 40px;
        height: 40px;
    }

    .circle-container {
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 0.75rem;
    }

    .circle {
        width: 50px;
        height: 50px;
    }

    header nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        max-width: 50%;
    }

    .gallery-item {
        max-width: 50%;
    }

    .contact-info {
        padding: 10px;
        font-size: 0.875rem;
    }

    .maintxt {
        font-size: 10px;
    }

    .social-icons {
        gap: 10px;
    }

    .icon {
        width: 40px;
        height: 40px;
    }
}
