/* Global Styles */
:root {
    --primary-bg: #f0f4fd; /* светло-голубой */
    --accent-color: #32509d; /* темно-синий */
    --white: #FFFFFF;
    --text-color: #333333; /* темно-серый для основного текста */
    --light-gray: #e5e5e5;
    --green: #00b67a; /* для рейтинга Trustpilot */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --logo-scroll-width: calc(-180px * 3); /* Default value, будет перезаписан в JS */
    --typing-text-width: 265px; /* Будет перезаписано в JS */
    --cursor-offset: 8px; /* Будет перезаписано в JS */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gilroy', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gilroy', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: #243a72; /* немного темнее основного акцентного цвета */
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.accent-bg {
    background-color: var(--accent-color);
    color: var(--white);
}

.light-text {
    color: var(--white);
}

.light-text h2, .light-text h3, .light-text h4 {
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: #243a72;
    color: var(--white);
}

.light-btn {
    background-color: var(--white);
    color: var(--accent-color);
}

.light-btn:hover {
    background-color: #f5f5f5;
    color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: relative;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.company-name {
    margin-left: 15px;
}

.company-name a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f406d;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f406d;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

.contact-phone, 
.contact-email {
    line-height: 1.4;
}

.contact-phone a, 
.contact-email a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.contact-phone a:hover, 
.contact-email a:hover {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.05rem;
}

.main-nav ul li a.active, 
.main-nav ul li a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px; /* Увеличиваем нижний padding для карусели */
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
    min-height: 800px; /* Добавляем минимальную высоту */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    background: 
        linear-gradient(to right, transparent 10%, rgba(173, 216, 230, 0.1) 20%, transparent 30%),
        linear-gradient(to right, transparent 40%, rgba(173, 216, 230, 0.15) 50%, transparent 60%),
        linear-gradient(to right, transparent 70%, rgba(173, 216, 230, 0.1) 80%, transparent 90%);
}

.hero-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='wavyPattern' patternUnits='userSpaceOnUse' width='200' height='200' patternTransform='scale(1) rotate(0)'%3E%3Cpath d='M-50 25C-30 25 -10 0 10 0S50 25 70 25 90 0 110 0s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 75C-30 75 -10 50 10 50S50 75 70 75 90 50 110 50s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 125C-30 125 -10 100 10 100S50 125 70 125 90 100 110 100s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 175C-30 175 -10 150 10 150S50 175 70 175 90 150 110 150s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23wavyPattern)'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-shapes::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.3" d="M0,160L48,170.7C96,181,192,203,288,186.7C384,171,480,117,576,101.3C672,85,768,107,864,122.7C960,139,1056,149,1152,138.7C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-height: 600px; /* Добавляем минимальную высоту контейнеру */
}

.hero-text {
    flex: 1;
    max-width: 550px;
    margin-right: 40px;
}

.hero-text h1 {
    font-size: 3.2rem; /* Увеличиваем размер заголовка */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2.2rem; /* Увеличиваем размер подзаголовка */
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.hero-text p {
    font-size: 1.2rem; /* Увеличиваем размер текста */
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-btn-wrapper {
    margin-bottom: 40px;
}

/* Typing animation styles */
.typing-wrapper {
    display: block;
    margin-bottom: 20px;
    position: relative;
    min-height: 45px; /* Добавляем минимальную высоту */
}

.typing-animation {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    color: var(--accent-color);
    font-weight: 600;
}

.fixed-placeholder {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

.typing-animation::after {
    content: '|';
    position: absolute;
    right: -8px;
    top: 0;
    color: var(--accent-color);
    font-size: 2.2rem;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 400px;
}

.hero-image img {
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    margin-bottom: -60px; /* Прижимаем изображение к нижней части секции */
    border-radius: 0; /* Убираем скругление для изображения */
}

.hero-img {
    max-height: 650px !important; /* Увеличиваем максимальную высоту */
}

.form-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Welcome Section */
.welcome {
    padding: 80px 0;
    background-color: var(--white);
}

.welcome-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px;
}

.welcome-text {
    flex: 1;
    max-width: 550px;
}

.welcome-image {
    flex: 1;
    max-width: 500px;
}

/* Welcome Stats Styles */
.welcome-stats {
    flex: 1;
    min-width: 300px;
    background-color: #3b5998;
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
}

/* Добавляем специальные стили для десктопной версии */
@media screen and (min-width: 992px) {
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px;
        text-align: center;
    }
}

/* Оставляем мобильные стили для маленьких экранов */
@media screen and (max-width: 992px) {
    .welcome-stats {
        margin-top: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
    }
    .welcome-text {
        width: 100%;
        margin-bottom: 30px;
    }
    .welcome-stats {
        width: 100%;
        margin-top: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 1rem;
    line-height: 1.4;
}

.values-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.value-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.value-card h3 {
    color: #3b5998;
}

.icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* Who We Are Section */
.who-we-are {
    padding: 60px 0 40px;
}

.who-we-are .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.who-we-are .section-header h2 {
    color: var(--white);
}

.who-we-are .who-text .btn {
    margin-top: 20px;
}

.who-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.who-text {
    flex: 1;
    color: var(--white);
    max-width: 500px;
}

/* Team Carousel */
.team-carousel-container {
    flex: 1;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
    perspective: 1200px;
    overflow: hidden;
}

.team-carousel {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    width: 100%;
}

.team-carousel-inner {
    display: flex;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
    margin: 0 auto;
    position: relative;
    height: 450px;
    align-items: center;
}

.team-member-card {
    position: absolute;
    width: 300px;
    height: 420px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(0) translateZ(-100px);
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
}

.team-member-card.active {
    transform: scale(1) translateZ(0);
    opacity: 1;
    visibility: visible;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.team-member-card.prev {
    transform: scale(0.8) translateZ(-30px);
    opacity: 0.8;
    visibility: visible;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-card.next {
    transform: scale(0.8) translateZ(-30px);
    opacity: 0.8;
    visibility: visible;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-img {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.team-member-card:hover .team-member-img img {
    transform: scale(1.05);
}

.team-member-info {
    padding: 20px 20px 25px;
    text-align: center;
    background-color: var(--white);
    border-top: 3px solid var(--accent-color);
}

.team-member-info h3 {
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.team-member-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.carousel-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-control:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.carousel-control:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-control i {
    font-size: 1.2rem;
}

@media screen and (max-width: 992px) {
    .team-carousel-container {
        max-width: 600px;
    }
    
    .team-carousel-inner {
        height: 430px;
    }
    
    .team-member-card {
        width: 280px;
        height: 400px;
    }
    
    .team-member-img {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .who-we-are {
        padding: 50px 0 30px;
    }
    
    .who-we-are .section-header {
        margin-bottom: 20px;
    }
    
    .who-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .who-text {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin-bottom: 10px;
        order: 1;
    }
    
    .who-text .btn {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .team-carousel-container {
        width: 100%;
        max-width: 500px;
        order: 2;
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .team-carousel-inner {
        height: 400px;
    }
    
    .team-member-card {
        width: 250px;
        height: 370px;
    }
    
    .team-member-img {
        height: 270px;
    }
    
    .team-member-info {
        padding: 15px 15px 20px;
    }
}

@media screen and (max-width: 576px) {
    .who-we-are {
        padding: 40px 0 20px;
    }
    
    .team-carousel-container {
        max-width: 400px;
        width: 100%;
    }
    
    .team-carousel-inner {
        height: 360px;
    }
    
    .team-member-card {
        width: 220px;
        height: 330px;
    }
    
    .team-member-img {
        height: 230px;
    }
    
    .carousel-controls {
        gap: 20px;
        margin-top: 15px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .team-member-info {
        padding: 12px 12px 18px;
    }
    
    .team-member-info h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .team-member-info p {
        font-size: 0.85rem;
    }
}

/* Process Section */
.process {
    padding: 80px 0;
    background-color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.process-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Global Trust Section */
.global-trust {
    padding: 80px 0;
}

.trust-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--white);
}

/* Reasons to Work Section */
.reasons-to-work {
    padding: 80px 0;
    background-color: var(--white);
}

.reasons-to-work.accent-bg {
    background-color: var(--accent-color);
    color: var(--white);
}

.reasons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.reasons-container.reverse {
    flex-direction: row-reverse;
}

.reasons-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reasons-content.right-aligned .reason-item {
    flex-direction: row-reverse;
    text-align: left;
    justify-content: flex-end;
}

.reasons-content.right-aligned .reason-text {
    text-align: left;
}

.reasons-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reasons-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.reason-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: #f0f4fd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(50, 80, 157, 0.15);
}

.accent-bg .reason-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reason-text h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.accent-bg .reason-text h3 {
    color: var(--white);
}

.reason-text p {
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.accent-bg .reason-text p {
    color: var(--white);
    opacity: 0.9;
}

.reasons-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--primary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.reasons-cta p {
    margin-bottom: 20px;
}

/* Media Queries for Reasons Section */
@media screen and (max-width: 992px) {
    .reasons-container {
        flex-direction: column;
    }
    .reasons-content, .reasons-illustration {
        width: 100%;
    }
    .reasons-illustration {
        margin-top: 30px;
        order: 2;
    }
    .welcome-stats {
        margin-top: 30px;
    }
    
    .header-contact {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero {
        padding: 120px 0 90px; /* Увеличиваем вертикальные отступы */
        min-height: unset; /* Сбрасываем минимальную высоту */
    }
    .hero-content {
        flex-direction: column;
        min-height: unset; /* Сбрасываем минимальную высоту */
    }
    .hero-text {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        order: 1;
        text-align: center; /* Центрируем текст */
    }
    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .hero-btn-wrapper {
        margin-bottom: 60px; /* Увеличиваем нижний отступ для кнопки на мобильных */
    }
    .hero-image {
        width: 100%;
        max-width: 100%;
        min-height: unset;
        margin-top: 0;
        text-align: center;
        order: 2;
    }
    .hero-image img {
        max-width: 90%;
        max-height: 350px;
        margin: 0 auto 0;
    }
    
    /* Мобильный хэдер */
    .header-content {
        flex-wrap: wrap;
        justify-content: flex-start; /* Выравнивание по левому краю вместо центра */
        position: relative;
    }
    .logo-container {
        width: auto; /* Изменяем с 100% чтобы не занимать всю ширину */
        justify-content: flex-start; /* Выравнивание по левому краю */
        text-align: left;
        margin-bottom: 10px;
        margin-left: 0;
        padding-left: 0;
    }
    .company-name {
        margin-top: 5px;
        margin-left: 10px;
        text-align: left;
    }
    .company-name a {
        font-size: 1rem;
        display: inline-block;
        text-align: left;
    }
    .mobile-menu-btn {
        position: absolute;
        top: 25px;
        right: 10px;
        z-index: 10;
    }
    .logo {
        display: flex;
        justify-content: flex-start;
    }
    .logo img {
        max-height: 60px;
    }
    
    /* Welcome секция */
    .welcome-content {
        flex-direction: column;
    }
    .welcome-text {
        width: 100%;
        margin-bottom: 30px;
    }
    .welcome-stats {
        width: 100%;
        margin-top: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Value cards */
    .values-cards {
        flex-direction: column;
        gap: 20px;
    }
    .value-card {
        width: 100%;
    }
    
    /* Partners Carousel */
    .partners-carousel {
        padding: 15px 0;
    }
    .partners-scroller img {
        height: 30px;
        margin: 0 25px;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding: 100px 0 90px;
    }
    .hero-text h1 {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .stat-value {
        font-size: 1.8rem;
    }
    .hero-image img {
        max-height: 250px;
    }
}

/* Partners Carousel */
.partners-carousel {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 0;
    overflow: hidden;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.partners-scroller {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: scroll 30s linear infinite;
    will-change: transform; /* Оптимизирует производительность анимации */
}

.partners-scroller img {
    height: 40px;
    margin: 0 50px;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    will-change: filter, opacity; /* Оптимизирует hover эффекты */
}

.partners-scroller img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--logo-scroll-width, -540px)); /* Используем CSS переменную с фолбэком */
    }
}

/* Стиль для невидимого текста, занимающего место */
.invisible-char {
    opacity: 0;
    visibility: visible;
}

/* Expertise Section */
.expertise {
    padding: 80px 0;
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.expertise .section-header {
    position: relative;
    z-index: 2;
}

.expertise-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    background: 
        linear-gradient(to right, transparent 10%, rgba(173, 216, 230, 0.1) 20%, transparent 30%),
        linear-gradient(to right, transparent 40%, rgba(173, 216, 230, 0.15) 50%, transparent 60%),
        linear-gradient(to right, transparent 70%, rgba(173, 216, 230, 0.1) 80%, transparent 90%);
}

.expertise-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='wavyPattern' patternUnits='userSpaceOnUse' width='200' height='200' patternTransform='scale(1) rotate(0)'%3E%3Cpath d='M-50 25C-30 25 -10 0 10 0S50 25 70 25 90 0 110 0s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 75C-30 75 -10 50 10 50S50 75 70 75 90 50 110 50s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 125C-30 125 -10 100 10 100S50 125 70 125 90 100 110 100s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 175C-30 175 -10 150 10 150S50 175 70 175 90 150 110 150s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23wavyPattern)'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.expertise-shapes::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.3" d="M0,160L48,170.7C96,181,192,203,288,186.7C384,171,480,117,576,101.3C672,85,768,107,864,122.7C960,139,1056,149,1152,138.7C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 1;
}

.expertise-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.expertise-image {
    flex: 1;
    max-width: 45%;
    position: relative;
}

.expertise-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.expertise-list {
    flex: 1;
    max-width: 50%;
}

.expertise-list ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.expertise-list ul li {
    position: relative;
    padding-left: 5px;
    line-height: 1.5;
}

.expertise-list ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}

.expertise-list.light-text ul li::before {
    color: var(--white);
}

.expertise-list ul li strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Call to Action Section */
.cta {
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    z-index: -1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--white);
    color: var(--accent-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta .btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #212121;
    color: #B0BEC5;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    margin-left: -30px; /* Начинаем футер левее */
}

.footer-logo {
    flex: 1;
    margin-right: 40px;
    padding-right: 20px;
    margin-left: -15px; /* Оставляем существующий отступ */
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer-logo h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-logo p {
    line-height: 1.8;
}

.footer-links {
    flex: 2.5; /* Увеличиваем долю для ссылок, чтобы был больше отступ */
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 160px;
    margin-bottom: 30px;
    padding-right: 10px;
}

.footer-col:nth-child(4) { /* Колонка с контактами */
    margin-left: 30px; /* Больший отступ от столбца с адресами */
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #B0BEC5;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #B0BEC5;
    background-color: transparent;
}

.contact-info li i {
    min-width: 25px;
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .footer-content {
        margin-left: -15px; /* Уменьшаем левый отступ на средних экранах */
    }
    
    .footer-col:nth-child(4) {
        margin-left: 15px; /* Уменьшаем отступ между адресами и контактами */
    }
}

@media screen and (max-width: 992px) {
    .expertise-image, .expertise-list {
        max-width: 100%;
    }
    
    .expertise-content {
        flex-direction: column;
    }
    
    .expertise-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-col {
        min-width: 45%; /* Делаем колонки в два ряда */
        flex: 0 0 45%;
    }
    
    .footer-col:nth-child(4) {
        margin-left: 0; /* Убираем дополнительный отступ */
    }
}

@media screen and (max-width: 768px) {
    .expertise-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .expertise-list {
        width: 100%;
        max-width: 100%;
    }
    
    .expertise-shapes::after {
        height: 20%;
    }
    
    .footer-content {
        margin-left: 0; /* Убираем отрицательный отступ слева */
    }
    
    .footer-logo {
        margin-left: 0; /* Убираем отрицательный отступ для лого */
    }
    
    .footer-logo, .footer-links {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
        flex-wrap: wrap;
        gap: 20px; /* Добавляем отступ между колонками */
    }
    
    .footer-col {
        min-width: 45%;
        flex: 0 0 45%;
        padding-right: 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .expertise-list ul li {
        padding-left: 0;
    }
    
    .footer {
        padding: 50px 0 20px; /* Уменьшаем вертикальные отступы */
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-col {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .footer-logo {
        margin-right: 0;
        padding-right: 0;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* About Page Styles */
.about-hero {
    padding: 120px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.about-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    background: 
        linear-gradient(to right, transparent 10%, rgba(173, 216, 230, 0.1) 20%, transparent 30%),
        linear-gradient(to right, transparent 40%, rgba(173, 216, 230, 0.15) 50%, transparent 60%),
        linear-gradient(to right, transparent 70%, rgba(173, 216, 230, 0.1) 80%, transparent 90%);
}

.about-hero-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='wavyPattern' patternUnits='userSpaceOnUse' width='200' height='200' patternTransform='scale(1) rotate(0)'%3E%3Cpath d='M-50 25C-30 25 -10 0 10 0S50 25 70 25 90 0 110 0s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 75C-30 75 -10 50 10 50S50 75 70 75 90 50 110 50s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 125C-30 125 -10 100 10 100S50 125 70 125 90 100 110 100s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3Cpath d='M-50 175C-30 175 -10 150 10 150S50 175 70 175 90 150 110 150s40 25 60 25 20-25 40-25 40 25 60 25' stroke='%23a1bdff' fill='none' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23wavyPattern)'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.about-hero p {
    font-size: 1.4rem;
    opacity: 0.9;
}

.about-welcome {
    padding: 80px 0;
}

.about-welcome-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-welcome-text {
    flex: 1;
}

.about-welcome-image {
    flex: 1;
}

.about-welcome-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accent-bg-light {
    background-color: #f0f4fd;
}

.our-story {
    padding: 80px 0;
}

.our-story-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.our-story-image {
    flex: 1;
}

.our-story-text {
    flex: 1;
}

.our-story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-vision {
    padding: 80px 0;
}

.mission-vision-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.mission-vision-text {
    flex: 1;
}

.mission-vision-image {
    flex: 1;
}

.mission-vision-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leadership-team {
    padding: 80px 0;
}

.team-description {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-image {
    height: 250px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin: 15px 0 5px;
    font-size: 1.2rem;
}

.team-member p {
    color: #666;
    margin-bottom: 15px;
}

.about-values {
    padding: 80px 0;
}

.what-we-offer {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.what-we-offer .container {
    position: relative;
    z-index: 2;
}

.what-we-offer-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.what-we-offer-text {
    flex: 1;
}

.what-we-offer-image {
    flex: 1;
}

.what-we-offer-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.services-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.services-list i {
    color: #32509d;
    margin-right: 10px;
    font-size: 1.1rem;
}

.community-engagement {
    padding: 80px 0;
}

.community-engagement-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.community-engagement-image {
    flex: 1;
}

.community-engagement-text {
    flex: 1;
}

.community-engagement-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for About page */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-welcome-content,
    .our-story-content,
    .mission-vision-content,
    .what-we-offer-content,
    .community-engagement-content {
        flex-direction: column;
    }
    
    .about-welcome-image,
    .our-story-image,
    .mission-vision-image,
    .what-we-offer-image,
    .community-engagement-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .about-hero {
        padding: 80px 0;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-welcome,
    .our-story,
    .mission-vision,
    .leadership-team,
    .about-values,
    .what-we-offer,
    .community-engagement {
        padding: 50px 0;
    }
}

/* Services Page Styles */
.services-hero {
    padding: 120px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.services-hero-content {
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.services-hero p {
    font-size: 1.4rem;
    opacity: 0.9;
}

.asset-recovery-services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.service-item p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.ready-to-recover {
    padding: 80px 0;
}

.recover-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.recover-text {
    flex: 1;
}

.recover-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.recover-text p {
    margin-bottom: 30px;
}

.recover-image {
    flex: 1;
}

.recover-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.our-expertise {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.expertise-list.light-text ul li {
    color: var(--white);
}

.expertise-list.light-text ul li strong {
    color: var(--white);
}

.why-choose-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.why-choose-list {
    flex: 1;
}

.why-choose-list ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-choose-list ul li {
    position: relative;
    padding-left: 5px;
    line-height: 1.5;
}

.why-choose-list ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}

.why-choose-list ul li strong {
    color: var(--accent-color);
    font-weight: 700;
}

.why-choose-image {
    flex: 1;
}

.why-choose-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Removing unused styles for choose-us-grid, choose-us-item, etc. */

@media (max-width: 768px) {
    .why-choose-content {
        flex-direction: column;
    }
    
    .why-choose-image {
        order: -1;
        margin-bottom: 30px;
    }
}

/* Responsive styles for Services page */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 80px 0;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .recover-content {
        flex-direction: column;
    }
    
    .recover-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .recover-text h2 {
        font-size: 2rem;
    }
    
    .choose-us-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .choose-us-item {
        padding: 20px;
    }
    
    .choose-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }
    
    .asset-recovery-services,
    .ready-to-recover,
    .our-expertise,
    .why-choose-us {
        padding: 50px 0;
    }
}

.why-choose-us {
    padding: 80px 0;
    background-color: var(--white);
}

/* Contact Page Styles */
.contact-hero {
    padding: 120px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-form-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-form-container {
    flex: 2;
}

.contact-intro {
    margin-bottom: 30px;
}

.contact-form {
    background-color: var(--white);
    padding: 0;
    border-radius: var(--border-radius);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-info {
    flex: 1;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.contact-info h3 {
    margin-bottom: 25px;
    color: var(--accent-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: transparent;
}

.info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--white);
    font-size: 1.1rem;
}

.info-content h4 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

.info-content p {
    color: var(--text-color);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #243a72;
    color: var(--white);
}

.map-section {
    height: 450px;
    position: relative;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive styles for Contact page */
@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        order: -1;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .map-section {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 50px 0;
    }
    
    .map-section {
        height: 300px;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1f406d;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn i {
    font-size: 20px;
}

.scroll-top-btn:hover {
    background-color: #162f50; /* темнее основного цвета #1f406d */
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top-btn i {
        font-size: 16px;
    }
} 