* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}


/* Навигационное меню */
.navbar {
    background-color: #4679aa;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .logo img {
    height: 40px;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #ddd;
}

.navbar .contact-button a {
    background-color: #fff;
    color: #4679aa;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.navbar .contact-button a:hover {
    background-color: #4679aa;
    color: #fff;
}

.navbar .logo img {
    max-height: 50px;
    width: auto;
}

/* Основной блок с фоновым изображением */
.hero-section {
    background-image: url("1BlockImage.png");
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Затемнение фона */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Секция "О себе" */
.about-section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    flex: 1.5;
    color: #333;
    line-height: 1.6;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    /* color: #333;
    line-height: 1.6; */
}

.about-video {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 9 / 16;
    /* Вертикальное соотношение */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


.about-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.video-caption {
    margin-top: 10px;
    text-align: center;
}

.video-caption p {
    margin: 0;
    color: #666;
}

.video-caption p strong {
    color: #333;
    font-weight: bold;
}

.about-section {
    position: relative;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.about-section::after {
    content: "";
    position: absolute;
    bottom: -20px;
    /* Расстояние от нижней части блока "О себе" */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* Длина линии, например, 80% от ширины блока */
    height: 4px;
    /* Толщина в центре */
    background: linear-gradient(to right,
            rgba(70, 121, 170, 0),
            #4679aa,
            rgba(70, 121, 170, 0));
    border-radius: 10px;
    /* Скругление краёв для более мягкого эффекта */
}

.certificates-section {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.certificates-container {
    display: flex;
    animation: scroll 40s linear infinite;
}

.certificate {
    flex: 0 0 auto;
    margin: 0 15px;
}

.certificate img {
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
    display: block;
}

/* Анимация горизонтального движения */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-500%);
    }
}

/* Секция "Услуги" */
.services-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.services-section p {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #666;
}

/* Карточки услуг */
.services-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 300px;
    /* Гибкая ширина карточек */
    max-width: 500px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
}

.service-icon {
    flex: 0 0 60px;
    margin-right: 20px;
}

.service-card img {
    width: 60px;
    /* Размер иконки */
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.service-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

.service-text {
    padding-right: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Секция "Моя студия" */
.studio-section {
    padding: 60px 20px;
    background-color: #fff;
}

.studio-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.studio-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Для адаптации на маленьких экранах */
}

.studio-image {
    flex: 1;
    max-width: 600px;
}

.studio-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.studio-text {
    flex: 1;
    color: #333;
}


.studio-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

/* Секция с услугой стелек */
.insoles-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: #fff;
    text-align: left;
    min-height: 750px;
    background-image: url("insoles-bg.png");
}

.insoles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Затемнение на весь фон */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.insoles-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    text-align: left;
}

.insoles-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.insoles-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.arrow-icon {
    fill: #ffe100;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-primary:hover .arrow-icon {
    transform: translateX(5px);
}

/* Секция прайс-листа */
.price-list-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.price-list-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.price-table h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #bb0000;
    /* Красный как на скрине */
    text-align: center;
}

.price-table {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* Центрирование блока с прайс-листом */
}

.price-item {
    /* display: flex; */
    text-align: left;
    justify-content: left;
    padding: 15px 0;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    /* Тонкая разделительная линия под каждым пунктом */
}

.price-name {
    font-weight: bold;
    text-align: left;
}

.price-value {
    font-weight: bold;
    text-align: right;
    font-size: 1.2rem;
}

.price-comment {
    font-weight: normal;
    font-size: 1rem;
}

.price-group {
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Секция формы */
.contact-form-section {
    padding: 80px 40px;
    /* Увеличенные отступы сверху/снизу и по бокам */
    background-color: #ffffff;
    text-align: center;
    border: 3px solid #007bff;
    /* Синий обвод */
    border-radius: 15px;
    margin: 40px auto;
    max-width: 700px;
    /* Увеличенная ширина формы */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
    font-size: 2.4rem;
    /* Чуть больше заголовок для более выразительного вида */
    margin-bottom: 30px;
    /* Увеличенный отступ снизу для создания пространства */
    color: #333;
}

.contact-form-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    /* Увеличенный отступ снизу */
}

form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Большее расстояние между элементами формы */
    align-items: center;
}

.input-wrapper {
    width: 100%;
    max-width: 500px;
    /* Увеличенная ширина полей ввода */
    position: relative;
    margin-bottom: 20px;
    /* Отступы снизу для создания пространства */
    padding: 10px 0;
    /* Отступы сверху и снизу */
}

form input {
    width: 100%;
    padding: 20px 15px;
    /* Увеличенные отступы внутри поля ввода */
    border: none;
    border-radius: 0;
    font-size: 1rem;
    outline: none;
    background-color: transparent;
}

form input::placeholder {
    color: #aaa;
    font-size: 1rem;
}

.line {
    width: calc(100% - 20px);
    /* Линия немного короче, чем само поле */
    height: 1px;
    background-color: #ccc;
    position: absolute;
    bottom: 0;
    left: 10px;
    /* Отступ от левого края */
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

.contact-map-section {
    position: relative;
    width: 100%;
    height: 600px;
    /* Высота секции */
    overflow: hidden;
}



/* Контейнер для карты */
.contact-map-section {
    position: relative;
    width: 100%;
    height: 600px;
    /* Высота секции */
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
    border: none;
}

/* Контейнер с контактной информацией */
.contact-info1 {
    display: none;
}

.contact-info {
    position: absolute;
    background-color: white;
    width: 300px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 10;
    /* Размещает блок поверх карты */
    text-align: center;

    /* Настройка позиции */
    top: 20%;
    /* Смещение по вертикали */
    left: 10%;
    /* Смещение по горизонтали */

}

.contact-info h3 {
    margin-bottom: 5px;
    font-size: 1.5em;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1em;
    line-height: 1.6;
}

.contact-info a {
    color: #1f5bff;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-links a img {
    width: 50px;
    height: 50px;
}

/* Секция последнего блока */
.quote-section {
    background-color: #2c2c2c;
    padding: 2px 15%;
    text-align: center;
    color: #ffffff;
}

.quote-text {
    font-size: 0.7em;
    line-height: 1.6;
    font-style: normal;
    max-width: 1000px;
    margin: 0 auto;
}


/* Секция для анимаций */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.modal-navigation button {
    background-color: #4679aa;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.modal-navigation button:hover {
    background-color: #3a5e8c;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}


.certificates-container img {
    cursor: pointer;
}