/* Reset и общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: darken(var(--primary-color), 10%);
}

.btn--whatsapp {
    background-color: #25D366;
    color: var(--white);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn--whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp i {
    margin-right: 5px;
}

.btn--2gis {
    background-color: #30b848;
    color: var(--white);
    font-size: 0.9rem;
    padding: 8px 16px;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn--2gis:hover {
    background-color: #2a9e3f;
    transform: translateY(-2px);
}

.btn--2gis i {
    font-size: 1.1rem;
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 10px 0;
}

.logo img {
    height: 75px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__list a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav__list a:hover {
    color: var(--primary-color);
}

.nav__list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Герой секция */
.hero {
    height: 100vh;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    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 h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* О подологии */
.about {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__text {
    font-size: 1.1rem;
}

.about__text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.about__image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Услуги */
.services {
    padding: 100px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Почему мы */
.why-us {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-us__item {
    text-align: center;
    padding: 30px;
}

.why-us__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Как проходит приём */
.process {
    padding: 100px 0;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.process__step {
    text-align: center;
    position: relative;
}

.process__number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* Галерея */
.gallery {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.gallery-slider {
    padding: 20px 0;
}

.gallery-slider .swiper-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-slider img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Portfolio Section */
.portfolio {
    padding: 60px 5%;
}

.gallery_1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery_1-item {
    border: 2px solid #2F4F4F;
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
    position: relative;
}

.gallery_1-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery_1-item:hover::after {
    opacity: 1;
}

.gallery_1-item:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Отзывы */
.reviews {
    padding: 100px 0;
}

.reviews-slider {
    padding: 20px 0;
}

.reviews-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card__content {
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.review-card__rating {
    display: flex;
    gap: 5px;
    color: #ffd700;
    margin-top: 10px;
}

.review-card__rating i {
    font-size: 16px;
}

.reviews-slider .swiper-button-next,
.reviews-slider .swiper-button-prev {
    color: #4a90e2;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.reviews-slider .swiper-button-next:hover,
.reviews-slider .swiper-button-prev:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.reviews-slider .swiper-button-next:after,
.reviews-slider .swiper-button-prev:after {
    font-size: 18px;
}

.reviews-slider .swiper-button-prev {
    left: 10px;
}

.reviews-slider .swiper-button-next {
    right: 10px;
}

.reviews-slider .swiper-pagination {
    bottom: 0;
}

.reviews-slider .swiper-pagination-bullet {
    background: #4a90e2;
    opacity: 0.5;
}

.reviews-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Контакты */
.contacts {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.contacts__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contacts__item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contacts__item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contacts__map {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
}

.contacts__map iframe {
    width: 100%;
    max-width: 100%;
    height: 450px;
    border: none;
    border-radius: 10px;
}

.contacts__form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Футер */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer__logo img {
    height: 75px;
}

.footer__nav ul {
    list-style: none;
}

.footer__nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: var(--primary-color);
}

.footer__social {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Цены */
.prices {
    padding: 100px 0;
    background-color: var(--white);
}

.price-category {
    margin-bottom: 50px;
}

.price-category__title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.price-list {
    display: grid;
    gap: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.price-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.price-item__info {
    flex: 1;
    padding-right: 20px;
}

.price-item__info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.price-item__description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.price-item__duration {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}

.price-item__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    min-width: 140px;
}

.price-item__price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.price-item .btn--whatsapp {
    opacity: 1;
    transform: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 25px;
    background-color: #808080;
    box-shadow: 0 2px 5px rgba(128, 128, 128, 0.3);
}

.price-item .btn--whatsapp:hover {
    background-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

.price-item .btn--whatsapp i {
    font-size: 1.1rem;
}

.price-item:hover .btn--whatsapp {
    transform: translateY(-2px);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header {
        height: auto;
    }

    .header__content {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 15px;
    }

    .logo {
        order: 1;
    }

    .mobile-menu-btn {
        order: 2;
    }

    .nav {
        order: 4;
        width: 100%;
    }

    .header .btn--whatsapp {
        order: 3;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .logo img {
        height: 60px;
    }

    .contacts__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacts__map {
        margin-top: 20px;
    }

    .contacts__map iframe {
        height: 300px;
    }

    .contacts__form {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav__list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav__list--active {
        display: block;
    }

    .nav__list li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }

    .about__content,
    .contacts__content {
        grid-template-columns: 1fr;
    }

    .gallery-slider .swiper-slide {
        grid-template-columns: 1fr;
    }

    .price-item {
        padding: 15px;
    }

    .price-item__right {
        min-width: auto;
    }

    .price-item .btn--whatsapp {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .price-item__info {
        padding-right: 10px;
    }

    .nav__list a {
        font-size: 1rem;
        padding: 10px 0;
        display: block;
    }

    .reviews-slider .swiper-button-next,
    .reviews-slider .swiper-button-prev {
        display: none;
    }

    .contacts__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn--2gis {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .header .btn--whatsapp {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .contacts__map iframe {
        height: 250px;
    }
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team__member {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team__member:hover {
    transform: translateY(-5px);
}

.team__photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.team__member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.team__member p {
    color: #666;
    font-size: 1.1rem;
}

/* Сотрудники */
.staffs {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.staffs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.staffs__item {
    width: 100%;
    height: 260px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.staffs__item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* Сертификаты */
.certificates {
    padding: 80px 0;
    background-color: #fff;
}

.certificates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificates__item {
    width: 100%;
    height: 320px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.certificates__item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* Стили для модального окна выбора филиала */
.branch-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.branch-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.branch-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.branch-modal-close:hover {
    color: #333;
}

.branch-modal-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.branch-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.branch-option {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.branch-option:hover {
    border-color: #25D366;
    background-color: #f0fff4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.branch-option-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.branch-option-address {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .branch-modal-content {
        margin: 20% 20px;
        padding: 20px;
    }

    .branch-modal-title {
        font-size: 20px;
    }

    .branch-option-name {
        font-size: 16px;
    }
}