/* ========== БАЗОВЫЕ СТИЛИ ========== */
:root {
    --primary: #006633;
    --secondary: #008044;
    --accent: #FF6B35;
    --light: #F0F7F3;
    --dark: #004422;
    --background: #E8F5E9;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: #2d3e50;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА ========== */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-link:hover {
    color: var(--accent);
}

/* Навигация */
.nav-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    margin-left: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.contact-item a:hover {
    color: var(--accent);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Десктопная навигация */
.desktop-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.desktop-nav ul li {
    margin-left: 1.5rem;
}

.desktop-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.desktop-nav ul li a:hover {
    color: var(--accent);
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* ========== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ========== */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255,255,255,0.3);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 1002;
    margin-top: 5px;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
}

/* ========== МОБИЛЬНАЯ НАВИГАЦИЯ ========== */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-contacts,
.mobile-language-switcher {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-language-switcher .language-btn {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.1);
}

.mobile-language-switcher .language-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
    display: none;
}

.mobile-language-switcher .language-dropdown.active {
    display: block;
}

/* ========== ГЕРОЙ ========== */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FF6B35' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: float 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn:hover {
    background-color: #FF8457;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ========== О НАС ========== */
.about {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-align: left;
    padding: 0 10px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.7;
    padding: 0 10px;
    text-indent: 1.5em;
}

/* ===== О НАС: ФОТО СЛЕВА, МАЛЕНЬКОЕ, КРУГЛОЕ ===== */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-direction: row;
}

.about-image {
    flex: 0 0 150px;
    text-align: center;
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    filter: grayscale(30%) contrast(95%) brightness(98%);
    opacity: 0.95;
    border: 3px solid rgba(255, 107, 53, 0.2);
}

.team-photo:hover {
    filter: grayscale(0%) contrast(100%) brightness(100%);
    opacity: 1;
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 15px 25px -8px rgba(0, 102, 51, 0.25);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .about-image {
        flex: 0 0 auto;
        max-width: 130px;
        margin-bottom: 10px;
    }
}

/* ===== НАШИ КОМПЕТЕНЦИИ (ТАБЛИЦА С ЗАГОЛОВКОМ) ===== */
.competencies {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,102,51,0.1);
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.competencies-header {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 10px;
}

.competencies-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

.competency-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.competency-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px -10px rgba(255,107,53,0.15);
}

.competency-icon {
    font-size: 1.8rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.competency-item:hover .competency-icon {
    transform: scale(1.1);
}

.competency-item span {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #2d3e50;
}

@media (max-width: 768px) {
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    .competencies-header {
        grid-column: span 1;
    }
    .competency-item {
        padding: 15px;
    }
    .competency-icon {
        font-size: 1.5rem;
    }
    .competency-item span {
        font-size: 1rem;
    }
}

/* ========== УСЛУГИ ========== */
.services {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--light), #e0eee6);
}

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

.service-content-wrapper {
    position: relative;
    width: 100%;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
}

.service-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100px;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    will-change: max-height;
}

.service-card:hover .service-content {
    max-height: 800px;
    -webkit-mask-image: none;
    mask-image: none;
    transition: max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4A5568;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.service-card p:not(.service-text) {
    display: none;
}

.service-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 51, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 102, 51, 0.1);
    animation: none !important;
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(255, 107, 53, 0.03), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 40px -15px rgba(0, 102, 51, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: scaleX(1);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.2rem;
    background: rgba(0, 102, 51, 0.05);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 102, 51, 0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.4s ease;
}

.service-card:hover h3 {
    color: var(--secondary);
}

/* ===== СТОИМОСТЬ УСЛУГИ ===== */
.service-price {
    display: inline-block;
    margin: 20px auto 15px;
    padding: 8px 0;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: center;
    border-top: 2px dashed var(--accent);
    border-bottom: 2px dashed var(--accent);
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    line-height: 1.4;
    width: auto;
    align-self: center;
}

.service-card:hover .service-price {
    color: var(--accent);
    border-top-color: var(--primary);
    border-bottom-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== КНОПКА ЗАКАЗА ===== */
.service-btn {
    align-self: center;
    margin-top: auto;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), #FF8457);
    color: white;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.1);
}

.service-btn:hover {
    background: #FF8457;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 30px -10px rgba(255, 107, 53, 0.3);
    border-color: transparent;
}

/* ========== КЕЙСЫ ========== */
.cases {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, var(--light));
}

.cases-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.1rem;
}

.cases-swiper {
    padding: 20px 0 60px;
    overflow: hidden;
}

.case-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,102,51,0.1);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -15px rgba(0,102,51,0.2);
    border-color: var(--accent);
}

.case-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.case-card:hover .case-icon {
    transform: scale(1.1);
}

.case-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.case-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.case-btn {
    margin-top: auto;
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Стили для навигации Swiper */
.cases-swiper .swiper-button-prev,
.cases-swiper .swiper-button-next {
    color: var(--primary);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cases-swiper .swiper-button-prev:after,
.cases-swiper .swiper-button-next:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.cases-swiper .swiper-button-prev:hover,
.cases-swiper .swiper-button-next:hover {
    background: var(--primary);
    color: white;
}

.cases-swiper .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.5;
}

.cases-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent);
}

@media (max-width: 768px) {
    .cases-swiper .swiper-button-prev,
    .cases-swiper .swiper-button-next {
        display: none;
    }
    .case-card {
        padding: 20px;
    }
    .case-icon {
        font-size: 3rem;
    }
    .case-title {
        font-size: 1.1rem;
    }
}

/* ========== ОТЗЫВЫ ========== */
.reviews {
    padding: 100px 0;
    background-color: white;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.reviews-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
}

.review-item {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: var(--primary);
}

.review-date {
    color: #888;
    font-size: 0.9rem;
}

.review-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,102,51,0.1);
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    transition: background-color 0.4s ease;
}

.modal.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    border-top: 5px solid var(--accent);
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* ========== ОБРАТНАЯ СВЯЗЬ ========== */
.feedback {
    padding: 100px 0;
    background-color: var(--background);
}

.feedback-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.feedback-info {
    flex: 1;
}

.feedback-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feedback-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.7;
    color: #333;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-details .contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details .contact-item a:hover {
    color: var(--accent);
}

.feedback-form {
    flex: 1;
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,102,51,0.1);
}

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta .btn {
    background-color: var(--accent);
    color: white;
}

/* ========== ФУТЕР ========== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-column p,
.footer-column a {
    color: #bbb;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ========== АНИМАЦИЯ ПРИ СКРОЛЛЕ ========== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1.1s cubic-bezier(0.23, 1, 0.32, 1),
                filter 1s ease;
    filter: blur(10px);
    will-change: opacity, transform, filter;
}

.animate-on-scroll.animated {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) translateY(0) scale(1) rotate(0);
}

.section-title.animate-on-scroll {
    transform: translateY(40px);
}

.service-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(8px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.9s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.9s ease,
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}

.service-card.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.about-text p.animate-on-scroll {
    transform: translateX(-50px);
}

.about-text p.animate-on-scroll.animated {
    transform: translateX(0);
}

.about-text h3.animate-on-scroll {
    transform: translateY(40px);
}

.about-text h3.animate-on-scroll.animated {
    transform: translateY(0);
}

.contact-item.animate-on-scroll {
    transform: translateX(-40px);
}

.contact-item.animate-on-scroll.animated {
    transform: translateX(0);
}

.feedback-form.animate-on-scroll {
    transform: scale(0.8);
}

.feedback-form.animate-on-scroll.animated {
    transform: scale(1);
}

.review-item.animate-on-scroll {
    transform: translateX(-60px);
}
.review-item.animate-on-scroll.from-right {
    transform: translateX(60px);
}
.review-item.animate-on-scroll.animated {
    transform: translateX(0);
}

.cta .btn.animate-on-scroll {
    transform: translateY(50px) scale(0.9);
}

.cta .btn.animate-on-scroll.animated {
    transform: translateY(0) scale(1);
}

.service-icon.animate-on-scroll {
    transform: translateY(30px);
}

.service-icon.animate-on-scroll.animated {
    transform: translateY(0);
}

.service-price.animate-on-scroll {
    transform: translateY(30px);
}

.service-price.animate-on-scroll.animated {
    transform: translateY(0);
}

.service-btn.animate-on-scroll {
    transform: translateY(30px);
}

.service-btn.animate-on-scroll.animated {
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .header-contacts { flex-direction: column; gap: 5px; }
    .desktop-nav ul li { margin-left: 1rem; }
    .nav-section { gap: 15px; }
}

@media (max-width: 992px) {
    .header-contacts { display: none; }
    .nav-section { width: 100%; justify-content: space-between; }
    .desktop-nav { display: none; }
}

@media (max-width: 768px) {
    .hero { margin-top: 80px; padding: 100px 0 60px; }
    .hero h1 { font-size: 1.6rem !important; line-height: 1.3; padding: 0 10px; }
    .hero p { font-size: 0.9rem !important; line-height: 1.5; padding: 0 15px; }
    .about-content, .feedback-container, .reviews-container { flex-direction: column; }
    .mobile-menu-btn { display: block; }
    .service-card, .review-item, .feedback-form { padding: 20px; }
    .section-title h2 { font-size: 1.8rem; }
    .service-btn { font-size: 0.95rem; padding: 12px 20px; }
    .container { width: 92% !important; padding: 0 15px !important; }
    
    .service-content {
        max-height: none !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .service-card:hover .service-content {
        max-height: none !important;
    }
    .service-text { font-size: 0.95rem; }
    .service-icon { width: 70px; height: 70px; font-size: 2rem; }
    .service-price { padding: 6px 0; font-size: 1.1rem; margin: 15px auto 12px; }
    
    .cases-swiper .swiper-button-prev,
    .cases-swiper .swiper-button-next {
        display: none;
    }
    .case-card {
        padding: 20px;
    }
    .case-icon {
        font-size: 3rem;
    }
    .case-title {
        font-size: 1.1rem;
    }
    
    .about-text p { font-size: 0.95rem !important; line-height: 1.6; }
    .feedback-info p { font-size: 0.95rem !important; line-height: 1.5; }
    .review-text { font-size: 0.95rem; line-height: 1.5; }
    .footer-column p, .footer-column a { font-size: 0.85rem; }
    .social-links { display: flex !important; justify-content: center; }
    .contact-details .contact-item { flex-direction: column; align-items: flex-start; }
    .mobile-contacts { display: block !important; }
}

@media (max-width: 480px) {
    .hero { padding: 80px 0 50px; margin-top: 70px; }
    .hero h1 { font-size: 1.4rem !important; padding: 0 15px; }
    .hero p { font-size: 0.85rem !important; padding: 0 20px; }
    .btn { padding: 10px 20px; font-size: 0.85rem; }
    .services-grid { grid-template-columns: 1fr; }
    .reviews-container { grid-template-columns: 1fr; }
    .logo { font-size: 1.1rem; }
    .service-btn { font-size: 0.9rem; padding: 10px 18px; }
    .container { width: 90% !important; padding: 0 20px !important; }
    .section-title h2 { font-size: 1.6rem; }
    .about-text h3, .feedback-info h3 { font-size: 1.3rem; }
    .service-card h3 { font-size: 1.2rem; }
    .service-text { font-size: 0.9rem; }
    .service-icon { width: 60px; height: 60px; font-size: 1.8rem; }
    .service-price { padding: 5px 0; font-size: 1rem; margin: 12px auto 10px; }
    
    .contact-item { font-size: 0.8rem; }
    .social-links { gap: 10px; }
    .social-links a { width: 35px; height: 35px; }
    .form-group label { font-size: 0.9rem; }
    .form-group input, 
    .form-group textarea, 
    .form-group select { font-size: 0.9rem; padding: 8px 12px; }
    .footer-column h3 { font-size: 1.1rem; }
    .footer-column p, .footer-column a { font-size: 0.8rem; }
    .copyright { font-size: 0.8rem; }
}