/* ========== ОБЩИЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FDF8F2 0%, #F5EDE0 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path d="M10 10 L 90 10 L 90 90 L 10 90 Z" fill="none" stroke="%239C6F4F" stroke-width="0.5"/><circle cx="50" cy="50" r="5" fill="%239C6F4F"/></svg>');
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ========== ШАПКА ========== */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(181, 139, 107, 0.2);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    flex-wrap: nowrap;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav {
    flex: 1 1 auto;
    margin: 0 15px;
}

.nav__list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

.nav__list a {
    text-decoration: none;
    color: #4A3B2C;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 13px;
    white-space: nowrap;
    padding: 5px 0;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #B58B6B;
    transition: width 0.3s;
}

.nav__list a:hover::after,
.nav__list a.active::after {
    width: 100%;
}

.nav__list a:hover,
.nav__list a.active {
    color: #B58B6B;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header__contacts .phone {
    font-weight: 600;
    color: #4A3B2C;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    white-space: nowrap;
}

.header__contacts .phone:hover {
    color: #B58B6B;
}

.btn {
    display: inline-block;
    background: #B58B6B;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(181, 139, 107, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #9C6F4F;
    transition: width 0.4s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(181, 139, 107, 0.3);
}

.btn:hover::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #4A3B2C;
    flex-shrink: 0;
}

/* Адаптация для больших экранов */
@media (max-width: 1200px) {
    .nav__list {
        gap: 6px;
    }
    .nav__list a {
        font-size: 12px;
    }
    .header__contacts .phone {
        font-size: 14px;
    }
    .btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .nav__list {
        gap: 4px;
    }
    .nav__list a {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .nav, .header__contacts {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav--open,
    .header__contacts--open {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #FFFFFF;
        padding: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav--open .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .header__contacts--open {
        top: auto;
        margin-top: 10px;
        align-items: center;
    }
}

/* ========== ГЕРОЙ ========== */
.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #FDF8F2, transparent);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero__content {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    width: auto;
    margin: 0 auto;
    max-width: 900px;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.hero__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 4;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========== СЕКЦИИ ========== */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
    z-index: 2;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: #4A3B2C;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #B58B6B;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6B5A4A;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(181, 139, 107, 0.1);
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(181,139,107,0.1), transparent);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s;
    opacity: 0;
}

.advantage-item:hover::before {
    opacity: 1;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
}

.advantage-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 50px rgba(0,0,0,0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #F9F5F0;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: #B58B6B;
    font-size: 36px;
    transition: transform 0.3s;
}

.advantage-item:hover .advantage-icon {
    transform: rotate(360deg);
}

.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4A3B2C;
}

.advantage-item p {
    color: #6B5A4A;
}

/* ========== ПРОМО БАННЕР ========== */
.promo-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, #B58B6B, #9C6F4F);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: rotate(25deg);
}

.promo-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.promo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.promo-banner__content {
    flex: 1;
    color: #FFFFFF;
}

.promo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

.promo-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.promo-text {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.promo-banner__image {
    flex: 1;
    text-align: center;
}

.promo-banner__image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

/* ========== ДОМИКИ / КЕМПИНГИ (СЛАЙДЕР) ========== */
.houses-slider {
    padding: 20px 0 50px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #B58B6B;
    background: rgba(255,255,255,0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 22px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #E0D6CC;
    opacity: 0.5;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #B58B6B;
    opacity: 1;
    transform: scale(1.2);
}

.house-card {
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05), 0 10px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.house-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 60px rgba(0,0,0,0.1);
}

.house-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #E44A3C;
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(228,74,60,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.house-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.house-card:hover img {
    transform: scale(1.05);
}

.house-card__content {
    padding: 25px 20px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.house-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4A3B2C;
}

.house-card p {
    color: #6B5A4A;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-block {
    margin-bottom: 20px;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.price {
    font-weight: 700;
    color: #B58B6B;
    font-size: 22px;
}

.house-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.houses__more {
    text-align: center;
    margin-top: 40px;
}

/* ========== УСЛУГИ ========== */
.services-section {
    background: linear-gradient(135deg, #F9F5F0, #F0E8E0);
}

.services__preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(181, 139, 107, 0.1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 48px;
    color: #B58B6B;
    margin-bottom: 20px;
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #4A3B2C;
}

.service-item p {
    color: #6B5A4A;
}

/* ========== ОТЗЫВЫ ========== */
.testimonials {
    background-color: #FFFFFF;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(181, 139, 107, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    color: #B58B6B;
    opacity: 0.1;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.1);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-card__avatar {
    font-size: 60px;
    color: #B58B6B;
}

.testimonial-card h4 {
    font-size: 20px;
    color: #4A3B2C;
}

.testimonial-card__rating {
    color: #FFB800;
    margin-top: 5px;
}

.testimonial-card__text {
    font-style: italic;
    color: #6B5A4A;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, #4A3B2C, #2F241B);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(181,139,107,0.1);
    border-radius: 50%;
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta__info {
    flex: 1 1 300px;
}

.cta__title {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta__text {
    font-size: 18px;
    opacity: 0.9;
}

.cta__text a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: underline;
}

.cta__form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta__form input {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta__form input:focus {
    outline: 2px solid #B58B6B;
}

.cta__form .btn {
    background: #B58B6B;
    color: #FFFFFF;
    border: none;
    align-self: flex-start;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta__form .btn:hover {
    background: #9C6F4F;
}

/* ========== КОНТАКТЫ (ФОРМА) ========== */
.contact-form {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(181, 139, 107, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4A3B2C;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Общие стили для всех полей ввода */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #F0E8E0;
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
    background: #FDF8F2;
    color: #4A3B2C;
}

/* Убираем стандартную стрелку у select */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #B58B6B;
    background: #FFFFFF;
    box-shadow: 0 5px 20px rgba(181, 139, 107, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: #C0B0A0;
    font-weight: 300;
}

/* Иконка внутри поля */
.input-icon {
    position: absolute;
    left: 15px;
    top: calc(50% + 14px);
    transform: translateY(-50%);
    color: #B58B6B;
    font-size: 18px;
    pointer-events: none;
}

/* Для textarea иконка смещена выше (так как поле выше) */
.form-group textarea + .input-icon {
    top: 45px;
    transform: none;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #B58B6B;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(181, 139, 107, 0.3);
}

.btn-submit:hover {
    background: #9C6F4F;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(181, 139, 107, 0.4);
}

.btn-submit i {
    font-size: 18px;
}

/* ========== ПОДВАЛ ========== */
.footer {
    background: #1F2E3A;
    color: #FDF8F2;
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer a {
    color: #FDF8F2;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #B58B6B;
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer__social a {
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    font-size: 20px;
}

.footer__social a:hover {
    background: #B58B6B;
    transform: translateY(-3px);
    color: #FFFFFF;
}

.footer__bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .nav__list {
        gap: 15px;
    }
    .nav__list a {
        font-size: 14px;
    }
    .header__contacts {
        gap: 10px;
    }
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .nav, .header__contacts {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav--open,
    .header__contacts--open {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #FFFFFF;
        padding: 20px;
        position: absolute;
        top: 80px;
        left: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav--open .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .header__contacts--open {
        top: auto;
        margin-top: 10px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 600px;
    }
    .hero__content {
        padding: 30px 20px;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__btns {
        flex-direction: column;
        align-items: center;
    }
    .promo-banner__inner {
        flex-direction: column;
        text-align: center;
    }
    .promo-title {
        font-size: 32px;
    }
    .cta__inner {
        flex-direction: column;
        text-align: center;
    }
    .cta__form .btn {
        align-self: center;
    }
    .section-title {
        font-size: 32px;
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
    .contact-form {
        padding: 20px;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 15px 12px 40px;
    }
}

/* ========== ГАЛЕРЕЯ УСЛУГ ========== */
.services-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4 / 3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px 15px 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}
/* Кнопка возврата к списку услуг */
.back-link-wrapper {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    color: #B58B6B;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid #B58B6B;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #B58B6B;
    color: #FFFFFF;
    transform: translateX(-5px); /* лёгкий сдвиг влево */
    box-shadow: 0 4px 10px rgba(181, 139, 107, 0.3);
}

.back-link:active {
    transform: translateX(-2px);
}