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

body {
    /* Сброс стандартных отступов */
    margin: 0;
    padding: 80px 0 1px; /* Отступы для шапки и футера */
    /* Основные параметры */
    width: 100%;
    font-family:  sans-serif;
    /* Флекс-контейнер */
    display: flex;
    align-items: center;
    min-height: 100vh;      /* тело страницы не меньше высоты окна */
    flex-direction: column; /* всё в колонку: header, main, footer */
    /*background: #e74c3c;*/
}

html, body {
    height: 100%;
}

main.content {
    max-width: 1100px;
    flex: 1 0 auto;         /* main растягивается и выталкивает футер вниз */
}

/*Секция шапки*/
.header {
    width: 100%;
    justify-content: center;
    /* Закрепление шапки сверху */
    position: fixed;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /*линия в шапке*/
    z-index: 1000;
}

/* Меню-навигация */
nav {
    text-align: center;
    background-color: #ffffff;
    color: black;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
}

.nav-links {
    font-size: 1.3em;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-links a {
    color: #6c757d;
    text-decoration: #2c3e50;
    transition: color 0.6s;
    margin: 0 1rem; /* 2rem слева и справа от каждой ссылки */
    font-weight: 550;
    text-decoration: none;
}

.nav-links a:hover {
    color: #3498db;
}

/* Дополнительные стили для лучшего визуального разделения секций */
section {
    padding: 1rem 0;
    scroll-margin-top: 80px; /* Высота меню */
}

/* Нечетные секции  с другим фоном для контраста */
section:nth-child(odd) {
    background-color: #ffffff;
}

section:nth-child(even) {
    background-color: rgba(173, 209, 248, 0.55);
}

section h2 {
    text-align: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: #07213b 1px 1px 2px;
}

/* Герой-секция (основная) */
.hero {
    padding: 2rem 2rem;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.8rem;
    color: #4e6570;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Секции */
.section-title {
    margin-top: 1rem;
    text-align: center;
    color: #4e6570;
}
.section-title h2 {
    color: #6791bb;
}

.section-title h1,
.section-title h2 {
    font-size: 2rem; /* Немного меньше чем 3rem для h1 */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.section-title .subtitle {
    color: #053562;
    font-size: 1.2rem;
    /*max-width: 800px;*/
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.5;
}

/* Стили для верхней секции на главной странице */
.features-section {
    margin: 2rem auto;
}

.features-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #4e6570;
    /*margin-bottom: 2rem;*/
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 60% 10% / 10% 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*transition: transform 0.1s ease, box-shadow 0.1s ease;*/
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }
.stat-item:nth-child(5) { animation-delay: 1.0s; }
.stat-item:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(-3rem);
    }
}

.stat-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-value {
    font-size: 1.4rem;
    font-weight: 550;
    color: #2a7fb7;
}


/* Стили для страницы вопросов */
/*#questions, #services, #policy {*/
/*    margin: 1rem auto;*/
/*    max-width: 1100px;*/
/*    padding: 0 1rem;*/
/*}*/

.faq-container {
    padding: 1rem;
}

.faq-item {
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    position: relative;
    background-color: rgba(173, 209, 248, 0.55);
    transition: transform 0.3s, border-radius 0.3s;
}

.faq-item:hover {
    background: #e9ecef;
    border-radius: 60% 10% / 10% 25%;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.10);
}

.faq-question {
    font-size: 1.1rem;
    color: #6791bb;
    font-weight: bold;
    line-height: normal;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-icon {
    color: #062d54;
    font-weight: bold;
    position: absolute;
    left: 1.1rem;
}

.faq-answer {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
}

.faq-article {
    font-size: 1rem;
    color: #062d54;
    line-height: 1.4;
    margin-top: 0.5em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Секция Почему выбирают нас?*/
.questions-section {
    margin: 1rem auto;
    max-width: 600px;
    padding: 0 1rem;
}

.questions-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #4e6570;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.questions-list {
    list-style: none;
    padding: 4% 0;
}

.question-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: #6791bb;
    line-height: normal;
    font-weight: bold;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transition: transform 0.3s, border-radius 0.3s;
}

.question-item:before {
    content: "✓";
    color: #062d54;
    font-weight: bold;
    margin-right: 10px;
}

.question-item:nth-child(1) { animation-delay: 1.2s; }
.question-item:nth-child(2) { animation-delay: 1.4s; }
.question-item:nth-child(3) { animation-delay: 1.6s; }
.question-item:nth-child(4) { animation-delay: 1.8s; }
.question-item:nth-child(5) { animation-delay: 2.0s; }
.question-item:nth-child(6) { animation-delay: 2.2s; }


/* Секция Карточки услуг */
.cards-container {
    margin: 1rem auto;
    max-width: 1100px;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, border-radius 0.3s;
}

.service-card:hover {
    border-radius: 60% 10% / 10% 50%;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Секция Команда */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    width: 100%;
    /*transform: translateY(-5px);*/
}

.team-member {
    text-align: center;
    padding: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #e9ecef;
}

.worker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar i {
    color: #6c757d;
    font-size: 3rem;
}
/* Работники */
#about h2 {
    text-align: center;
    font-size: 2rem;
    color: #4e6570;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.swiper {
    display: flex;
    justify-content: center; /* Центрируем элементы по горизонтали */
    align-items: center; /* Центрируем элементы по вертикали */
    width: 100%; /* Ширина на весь экран */
    height: 100%; /* Высота на весь экран */
}

/* Стили для слайдов (работников) */
.swiper-slide {
    display: flex;
    justify-content: center; /* Центрируем каждый слайд */
    align-items: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    width: 400px; /* Можешь изменить на нужный тебе размер */
    height: 400px; /* Также настрой на подходящий размер */
    box-sizing: border-box;
}

/* Размытие по краям */
.swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.85);
    filter: blur(3px);
}

.worker-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Стрелки */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: none;
    border: none;
    width: auto;
    height: auto;
}

/*Страница с ценами на услуги*/
/*#prices{*/
/*    margin: 1rem auto;*/
/*    max-width: 1100px;*/
/*    padding: 1rem 1rem;*/
/*}*/

.prices-container {
    margin: 1rem;
}

.prices-table {
    text-align: center;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/*Таблица с ценами*/
thead {
    border: 1px;
    width:100%;
    border-collapse: collapse;
    background-color: #d0e2f6;
}

th,
td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
}

table {
  border: 2px solid rgb(17, 101, 190);
  /*font-family: sans-serif;*/
  font-size: 1.1rem;
}

#prices h3 {
    text-align: center;
    font-size: 1.7rem;
    color: #6791bb;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.about-price {
    margin: 20px 50px 30px;
    font-size: 1.1rem;
}

#about-prices h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.7rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

.highlight-price li {
    list-style: none;
    text-align: center;
    margin-bottom: 0.6rem;
}

.highlight-price p {
    text-align: center;
    margin-bottom: 0.6rem;
}

#choices h3 {
    text-align: center;
    font-size: 1.7rem;
    color: #6791bb;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.highlight ul {
    text-align: center;
    margin: 20px 300px;
    max-width: 40rem;
}

.highlight li {
    list-style: none;
    text-align: center;
    margin: 0.8rem;
    background-color: rgba(173, 209, 248, 0.55);
    border-radius: 10px; /* Добавляем скругление всех углов */
    padding: 2rem 2rem; /* Увеличиваем внутренние отступы: сверху-снизу и слева-справа */
    min-height: 80px; /* Минимальная высота элемента */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Увеличиваем размер шрифта */
    line-height: 1.4; /* Увеличиваем межстрочный интервал */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, border-radius 0.3s; /* Добавляем тень для объема */

}

.highlight li:hover {
    border-radius: 20% 50% / 60% 10%;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.contacts-content, .addresses-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    margin-bottom: 1rem;
    gap: 1rem;
}
.addresses-content {
    margin-top: -1rem;
    margin-bottom: -1rem;
    background-color: rgba(173, 209, 248, 0.55);}

.phone-card {
    height: 75px;
    line-height: 1.4;
    font-size: 1.2rem;
    padding: 1.5em 2em;
    transition:  all 0.8s ease;
}

.phone-card:hover {
    transform: scale(1.45);
    font-size: 1.3rem;
    color: #4e6570;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Адреса */
.contact-card {
    padding: 0 2em;
    margin: 2em;
}

.contact-item{
    line-height: 1.4;
    text-align: center;
    padding: 0 2em;
}

/* Верхний футер */
.footer-on-top {
    width: 100%;
    background-color: rgba(173, 209, 248, 0.55);
    padding: 15px 0;
    z-index: 2;
}

.footer-on-top-links {
    font-size: 0.8em;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-on-top a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.footer-on-top-links a:hover {
    color: #1165be;
}
/* Нижняя приписка */
.footer {
    /*!*position: fixed;*!  приклеивает к экрану, а не странице*/
    font-size: 0.8em; /* Еще меньше */
    bottom: 0;
    left: 0; /* Важно: прижимаем к левому краю */
    width: 100%;

    padding: 15px 0 ; /* Отступы только сверху/снизу */
    text-align: center;
    /*box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); !* Тень сверху *!*/
    color: white;
    background-color: rgb(1, 43, 87);
    /*background-color: rgba(238, 233, 233, 0.1);*/
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
    z-index: 3; /* Самый верхний слой */
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(173, 209, 248);
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgb(237, 241, 250);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #6791bb;
    transform: scale(1.2);
}
