/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(242, 242, 251);
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: rgb(242, 242, 251);
    overflow-x: hidden;
}

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

/* Общие стили для заголовков секций */
.section-heading {
    font-size: 3rem;
    font-weight: 400;
    color: rgba(60, 75, 111, 1);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
}

/* Buttons */
.btn {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
    color: white;
    /* margin-left: 150px; */ /* Временно закомментировано */
    /* margin-right: -67px; */ /* Временно закомментировано */
    display: block;
    /* outline: 2px solid red !important; */ /* Удаляю отладочную рамку */
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E90FF 0%, #0066CC 100%);
    transform: translateY(0px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Класс для скролла - матовое стекло */
.header.scrolled {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    height: 110px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(0, 0, 0, 0.96) 20%, 
        rgba(0, 0, 0, 0.94) 50%, 
        rgba(0, 0, 0, 0.90) 100%, 
        rgba(0, 0, 0, 0.80) 100%,
        rgba(0, 0, 0, 0.60) 100%,
        rgba(0, 0, 0, 0.30) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 5%;
    transition: all 0.4s ease;
    height: 110px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Левый блок - логотип и название */
.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.logo-text {
    font-size: 32px;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

/* Центральный блок - навигация */
.nav {
    display: flex;
    gap: 70px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 300;
    font-size: 18px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.nav-link:hover {
    color: #00BFFF;
    transform: translateY(-2px);
}

/* Правый блок - кнопки */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Стили для кнопок */
.header-button {
    padding: 12px 30px; /* Увеличил горизонтальные отступы */
    font-size: 16px;
    font-weight: 450;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px; /* Сильное закругление (как у .btn) */
    border: 2px solid transparent; /* Добавил границу для консистентности */
}

.header2-button {
    padding: 12px 30px; /* Увеличил горизонтальные отступы */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px; /* Сильное закругление (как у .btn) */
    border: 2px solid transparent; /* Добавил границу для консистентности */
}

.header-button:hover {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.header2-button:hover {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

/* New Hero Combined Section */
.hero-combined {
    padding: 60px 0 60px 0;
    background: rgb(242, 242, 251);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Upper Hero Background Card */
.hero-bg-card {
    width: 1800px;
    height: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Матовое стекло поверх изображения */
.hero-glass-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 45px 50px;
    z-index: 2;
    display: flex;
    align-items: flex-end; /* Выравниваем по нижнему краю */
    justify-content: space-between;
    padding: 0 3cm 40px 3cm; /* Добавляем отступ снизу */
    box-sizing: border-box;
}

/* Контейнер для текста слева */
.hero-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1000px;
}

/* Заголовок */
.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    text-align: left;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Описание */
.hero-description {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: rgb(255, 255, 255);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0;
    max-width: 600px;
}

.hero-btn-container {
    display: flex;
    align-items: flex-end; /* Выравниваем кнопку по низу */
    justify-content: center;
    padding-bottom: 0px; /* Такой же отступ как у текста */
}

/* Кнопка */
.hero-btn {
    font-family: 'Unbounded', sans-serif;
    font-weight: 350;
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
    color: white;
    padding: 15px 30px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
    min-width: 180px; /* Фиксированная минимальная ширина */
    text-align: center;
}

.hero-btn:hover {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    /* Никаких transform или изменяющих размер свойств */
}

/* Убираем ненужные элементы */
.hero-content-card,
.hero-content-bg,
.hero-content-bg-img {
    display: none;
}

/* Mission and Approach Section */
.mission-approach {
    background: rgb(242, 242, 251);
    padding: 80px 0;
    margin-left: -5mm; /* Отрицательный margin слева */
    margin-right: 5mm; /* Компенсирующий margin справа */
}

.feature-card {
    background: white;
    border-radius: 40px;
    padding: 50px 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    margin-top: 140px;
    width: 450px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 160px;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Более плавная кривая */
    transform-origin: center;
    will-change: transform; /* Оптимизация для плавности */
}

.feature-card:hover{
    transform: scale(1.01);
}

.feature-card:hover .feature-icon {
    transform: translateX(-50%) scale(1.08); /* Чуть меньше увеличение для плавности */
    filter: drop-shadow(0 12px 35px rgba(0, 191, 255, 0.5)); /* Мягче тень */
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: translateX(-50%) scale(1.1); /* Увеличение иконки */
    filter: drop-shadow(0 10px 30px rgba(0, 191, 255, 0.6)); /* Более яркая тень */
}

.feature-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #2C4A6B;
    text-align: left;
    width: 100%;
    line-height: 1.3;
    margin: 0;
    padding-left: 15px;
    transition: all 0.5s ease-out; /* Отдельная плавная анимация */
}

.feature-card:hover .feature-text {
    color: #2a5c8b;
    transform: translateY(-2px); /* Легкое поднятие текста */
}

.mission-approach .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Changed to center to align tiles */
    width: 100%;
    padding: 10px 10px; /* Corrected padding syntax */
}

.mission-approach .section-title {
    font-size: 3rem;
    font-weight: 400;
    color: rgba(60, 75, 111, 1);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the block element */
    width: fit-content; /* Allow margin auto to work */
}

.approach-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
    justify-items: center;
    width: 100%; /* Добавлено для принудительного центрирования */
    justify-content: center; /* Добавлено для центрирования дорожек сетки */
    transform: translateX(18.9px); /* Корректировка на 0.5 см вправо */
}

.feature-description {
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #436189;
    line-height: 1.5;
    text-align: left;
    width: 100%;
    margin: 15px 0 0 0;
    padding-left: 15px;
    max-width: 300px;
    transition: all 0.5s ease-out 0.1s; /* Задержка для каскадного эффекта */
}

.feature-icon {
    width: 250px;
    height: 250px;
    object-fit: contain;
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 6px 20px rgba(0, 191, 255, 0.4));
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Синхронизированная анимация */
    will-change: transform, filter;
}

.feature-card:hover .feature-description {
    color: #3a5270;
    transform: translateY(-1px); /* Легкое поднятие */
}


/* Mission Section */
.mission {
    padding: 100px 0;
    background: rgb(242, 242, 251);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mission-description {
    font-size: 2rem;
    font-weight: 300;
    color: #436189;
    margin-bottom: 40px;
    line-height: 1.4;
}

.mission-card {
    background: white;
    padding: 5px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mission-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 50px;
}

.mission-card h3 {
    font-size: 2rem;
    color: #436189;
    margin-bottom: 20px;
}

.mission-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.mission-approach .feature-icon {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

/* Clients Section */
.clients {
    padding: 100px 0;
    background: rgb(242, 242, 251);
}

.clients .btn.btn-primary2 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 350;
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
    color: white;
    padding: 15px 30px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-sizing: border-box;
    max-width: 250px; /* Фиксированная минимальная ширина */
    text-align: center;
}

.clients .btn.btn-primary2:hover {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.clients-content {
    display: grid;
    grid-template-columns: 1fr 26px 1.5fr; /* Added 7mm gap column */
    grid-template-rows: auto 26px auto; /* Added 7mm gap row */
    gap: 0;
    margin-bottom: 60px;
    align-items: start;
    margin-left: 396px; /* 98mm + 7mm = 105mm from left edge */
    margin-right: 310px; /* 321px - 11px to extend right block by additional 3mm */
    padding-right: 20px;
    grid-template-areas: 
        "description . achievements"
        "description . ."
        ". . logos";
}

/* Left block - Client Description */
.clients-description {
    margin-left: -135px;
    min-width: 500px;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 650px; /* 150mm + 16mm = 166mm */
    grid-area: description;
}

.clients-description-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clients-description-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clients-description-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.clients-main-text {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 110px;
    color: white;
}

.clients-sub-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Right block - Achievements */
.clients-achievements {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    min-height: 240px;
    min-width: 870px;
    grid-area: achievements;
}

.clients-achievements-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.clients-achievements-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clients-achievements-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: white;
}

.achievements-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.achievements-text-blocks {
    display: flex;
    gap: 20px;
    flex: 1;
}

.achievements-text-left,
.achievements-text-right {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Client Logos */
.client-logos {
    grid-area: logos;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    margin-top: -317px; /* Move up by 65mm + 4mm + 16mm = 85mm total */
    margin-left: 4px; /* Move right by 1mm */
}

.client-logo-tile {
    background: white;
    border-radius: 40px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 151px; /* 40mm - original size */
}

.client-logo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.client-logo-empty {
    background: transparent;
    box-shadow: none;
}

.client-logo {
    max-height: 76px; /* 20mm height */
    max-width: 152px; /* Proportional width (2:1 ratio) */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* All logos now have uniform 20mm size */

.learn-more {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.case-card.learn-more:hover {
    color: #0c76e0 !important;
}

.learn-more:hover {
    color: #0c76e0 !important;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: rgb(242, 242, 251);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 1380px; /* 34cm + 2.5cm = 36.5cm */
    margin: 0 auto;
    margin-left: calc(50% - 690px + 0.2px); /* Corrected for 1cm left shift */
    justify-content: center;
}

.service-tile {
    background: white;
    padding: 30px;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 189px; /* 5cm exact height */
    overflow: hidden;
}

.service-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 20px;
}

.service-tile h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.service-tile p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px; /* Increased to accommodate 240px icons */
    max-width: 240px;
}

.service-icon img {
    max-width: 240px; /* Increased by 4x from original 60px (120px × 2) */
    max-height: 240px; /* Increased by 4x from original 60px (120px × 2) */
    width: auto;
    height: auto;
    object-fit: contain;
}

.service-link {
    color: #1E90FF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #000000;
    
}

/* Values Section */
.values {
    padding: 100px 0;
    background: rgb(242, 242, 251);
}

.values .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 auto;
}

.values-background-tile {
    width: 1800px;
    height: 500px;
    margin: 0 auto;
    background: #111; /* черный фон */
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0 40px 0 0; /* top:0, right:40px, bottom:0, left:0 */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.values-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease; /* Добавлено для плавного перехода размера */
}

.values-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.values-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-text-content {
    color: white;
    padding: 40px;
}

.values-text-content:hover {
    color: turquoise;
}

.values-content:hover {
    transform: scale(1.03);
}

.values-title {
    font-size: 3rem;
    font-weight: 300;
    color: white;
    margin-bottom: 40px;
    line-height: 1.2;
    margin-top: -90px;
    transition: color 0.3s ease; /* Добавлено для плавного перехода цвета */
}

.values-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 130px;
    transition: color 0.3s ease; /* Добавлено для плавного перехода цвета */
}

.values-text-content:hover .values-title,
.values-text-content:hover .values-description {
    color: turquoise;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.value-item h4 {
    font-size: 1.4rem;
    font-weight: 400;
    color: white;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.chart-bars {
    display: flex;
    gap: 20px;
    align-items: end;
    height: 100%;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(135deg, #00BFFF 0%, #436189 100%);
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    background: linear-gradient(135deg, #1E90FF 0%, #0066CC 100%);
}

/* Cases Section */
.cases {
    padding: 100px 0;
    background: rgb(242, 242, 251);
}

.cases .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none !important; /* ← Это самое важное */
    padding: 0 !important; /* ← Убрать отступы */
    margin: 0 auto;
}

.cases-background-tile {
    width: 1800px;
    height: 729px;
    margin: 0 auto;
    background: url('assets/cases-bg-new.png') center/cover;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative; /* Revert to base position */
    overflow: visible; /* Revert to visible */
}

.cases-title {
    font-size: 3rem;
    font-weight: 300;
    color: white;
    margin: 0 0 30px 0;
    line-height: 1.2;
    position: absolute;
    top: 40px;
    left: 40px;
}

.cases-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    height: calc(100% - 100px); /* Account for title space */
    align-items: stretch;
    margin-top: 80px; /* Space for title */
}

.case-card {
    background: rgba(250, 6, 6, 0.1);
    backdrop-filter: blur(100px);
    padding: 30px;
    border-radius: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1; /* Revert to base z-index */
    transform: translateZ(0); /* Force new stacking context */
}

.case-card:hover {
    transform: translateX(10px) !important; /* Test with a simple translation */
}

.case-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-card p {
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.case-card .learn-more {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
}

/* Contact Form Section */
.contact-form {
    padding: 100px 0;
    background: rgb(242, 242, 251);
}

/* белая плитка с закруглениями и тенью */
.contact-form .form-content {
    background: #ffffff;
    border-radius: 40px;
    padding: 40px;
    max-width: 2000px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

.form-title {
    font-size: 3rem;
    font-weight: 300;
    color: #436189;
    text-align: left;
    margin-bottom: 60px;
    line-height: 1.2;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* две равные колонки */
    grid-template-rows: auto auto 1fr; /* Определяем 3 строки, 3-я растягивается */
    gap: 20px 30px;                /* 20px по вертикали, 30px по горизонтали */
    align-items: start;            /* все «ячейки» выравниваются сверху */
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* textarea остаётся в левой колонке */
.message-group {
    grid-column: 1; /* Первая колонка */
    grid-row: 3; /* Третья строка */
}

/* Новый оберточный div для Company name и кнопки */
.company-name-and-button-wrapper {
    grid-column: 2; /* Вторая колонка */
    grid-row: 3; /* Третья строка */
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимаем всю высоту ячейки */
    position: relative; /* Для абсолютного позиционирования кнопки */
    /* flex-grow: 1; */ /* Удаляю, так как не нужен при явной высоте */
    /* justify-content: space-between; */ /* Удаляю, чтобы margin-top работал */
    /* gap: 20px; */ /* Удаляю отступ между элементами */
}

/* Сброс стилей для form-submit, так как теперь он внутри flexbox */
.form-submit {
    /* grid-column: 2; */ /* Удаляю */
    /* grid-row: 4; */ /* Удаляю */
    /* align-self: end; */ /* Удаляю */
    /* justify-self: start; */ /* Удаляю */
    /* margin-top: -10px; */ /* Удаляю */
    position: absolute; /* Абсолютное позиционирование */
    bottom: 0; /* Прижимаем к низу */
    left: 0; /* Прижимаем к левому краю */
    /* margin-right: auto; */ /* Удаляю */
    /* margin-top: 20px; */ /* Удаляю */
}

  .form-submit .btn.btn-primary {
    display: inline-block; 
    padding-top:    13px;               /* прежний vertical padding */
    padding-bottom: 13px;
    padding-left:  40px;   /* Уменьшаю отступ */
    padding-right: 40px;   /* Уменьшаю отступ */
    /* outline: 2px solid purple !important; */ /* Удаляю отладочную рамку */
  }

.form-group label {
    font-weight: 300;
    color: #436189;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    font-family: 'Unbounded', sans-serif;
    padding: 15px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 40px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00BFFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px; /* Увеличиваю минимальную высоту textarea */
}
  
  /* Footer */
  .footer {
      position: relative;
      padding: 40px 0 30px;
      color: rgba(255, 255, 255, 0.9);
      overflow: hidden;
      min-height: 500px;
      display: flex;
      align-items: center;
  }
  
  .footer-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: -1;
      height: 100%;
      width: 100%;
  }
  
  .footer-bg::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 20%; /* Высота градиента */
      background: linear-gradient(to bottom, 
          rgb(242, 242, 251) 0%, 
          rgb(242, 242, 251) 50%,
          transparent 100%);
      z-index: 2;
  }
  
  .footer-bg-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 0.4;
  }
  
  .footer-content {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
      background: rgba(60, 75, 111, 0.8);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-radius: 40px;
      padding: 40px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      width: 1600px;
      min-height: 200px;
      max-height: 400px;
  }
  
  .footer-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 40px;
      padding-bottom: 30px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .footer-logo .logo-text {
      font-size: 28px;
      font-weight: 400;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .footer-menu {
      display: flex;
      gap: 70px;
  }
  
  .footer-menu a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      font-size: 16px;
      font-weight: 300;
      transition: all 0.3s ease;
      padding: 8px 0;
      position: relative;
  }
  
  .footer-menu a:hover {
      color: #00BFFF;
  }
  
  .footer-menu a:after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 1px;
      background: #00BFFF;
      transition: width 0.3s ease;
  }
  
  .footer-menu a:hover:after {
      width: 100%;
  }
  
  .footer-buttons {
      display: flex;
      gap: 10px; /* Reduced gap to match header buttons */
  }
  
  /* Common styles for footer buttons to match header buttons (excluding size) */
  .footer-button-common {
      backdrop-filter: blur(10px);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      
      background: rgb(255, 255, 255) ; /* Default transparent background */
      color: rgb(0, 0, 0); /* Default white text color */
  }
  
  /* Specific styles for the outline-like footer button */
  .footer-button-outline-style {
      font-weight: 450; /* Matches header-button's font-weight */
  }
  
  /* Specific styles for the primary-like footer button */
  .footer-button-primary-style {
      font-weight: 500; /* Matches header2-button's font-weight */
  }
  
  /* Hover styles for all footer buttons (common) */
  .footer-button-common:hover {
      background: transparent; /* Remains transparent on hover */
      border: 2px solid rgba(255, 255, 255, 0.8);
      color: #ffffff; /* Text remains white on hover */
  }
  
  /* Контакты без плиток */
  .footer-contacts {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 40px;
      text-align: left;
      align-items: center;
  }
  
  .contact-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 0;
      background: transparent;
      border-radius: 0;
      transition: all 0.3s ease;
  }
  
  .contact-group:hover {
      background: transparent;
      transform: translateY(-2px);
  }
  
  .contact-label {
      font-size: 14px;
      opacity: 0.7;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 5px;
  }
  
  .contact-value {
      font-size: 16px;
      font-weight: 400;
      color: white;
  }
  
  .clients.section-title-clients {
      font-size: 3rem;
      font-weight: 400;
      color: rgba(60, 75, 111, 1);
      text-align: center;
      margin-bottom: 40px;
      line-height: 1.2;
      z-index: 3;
  }
  
  .clients .container {
      max-width: none;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
