/* Импорт шрифта Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* Основные переменные */
:root {
    /* Цветовая палитра */
    --color-primary: #04101C;       /* Основной тёмно-синий */
    --color-secondary: #F1F8FF;    /* Светлый голубовато-белый */
    --color-accent: #354359;        /* Для хедера и акцентов */
    --color-text-dark: #1C2431;     /* Тёмный текст */
    --color-header-bg: rgba(183, 206, 228, 0.8); /* Полупрозрачный фон хедера */
    --color-card-bg: #FFFFFF;       /* Фон карточек */
    
    /* Светлая тема */
    --bg-primary: var(--color-secondary);
    --bg-secondary: var(--color-card-bg);
    --text-primary: var(--color-text-dark);
    --text-secondary: var(--color-accent);
    --shadow-color: rgba(163, 177, 198, 0.5);
    --light-shadow: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Типографика */
    --font-base: 'Montserrat', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-base);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on header height */
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

/* Общие стили для секций */
section {
    width: 100%;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

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

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex; 
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

/* Стили хедера */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
}

.header-capsule {
    background: var(--color-header-bg);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin: 0 4px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo-img {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(22%) sepia(15%) saturate(1019%) hue-rotate(182deg) brightness(93%) contrast(87%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Переключатель языка */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    height: 28px;
    padding: 0 4px;
}

.lang-label {
    font-family: var(--font-base);
    font-weight: 600;
    font-size: 22px;
    line-height: 26px;
    color: var(--color-accent);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.lang-label.ru {
    color: var(--color-accent);
}

.lang-label.en {
    color: var(--color-text-dark);
}

.lang-switcher.en-active .lang-label.ru {
    color: var(--color-text-dark);
}

.lang-switcher.en-active .lang-label.en {
    color: var(--color-accent);
}

/* Стили переключателя языка */
.lang-toggle {
    position: relative;
    width: 54px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle-bg {
    position: absolute;
    width: 54px;
    height: 28px;
    background: linear-gradient(285.55deg, #8194AC 24.84%, #BAD8FC 95.37%);
    border-radius: 58.3342px;
    z-index: 1;
}

.lang-toggle-inner {
    position: absolute;
    width: 52px;
    height: 26px;
    left: 1px;
    top: 1px;
    background: #7DA0CA;
    box-shadow: inset 11.6668px 29.1671px 58.3342px rgba(0, 0, 0, 0.25);
    border-radius: 58.3342px;
    z-index: 2;
}

.lang-toggle-knob {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 2px;
    left: 2px;
    background: linear-gradient(129.34deg, #F1F8FF 15.19%, #B5D1FB 85.25%);
    box-shadow: inset 0px -1.75px 1.75px 0.58px rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: var(--transition-bounce);
    z-index: 3;
}

.lang-switcher.en-active .lang-toggle-knob {
    left: 28px;
}

/* Контактная информация */
.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.phone {
    color: var(--color-accent);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.phone:hover {
    color: rgba(50, 65, 92, 0.8);
    text-shadow: 0 0 15px rgba(53, 67, 89, 0.2);
}

/* Социальные иконки */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon:active {
    transform: translateY(1px);
}

.circle-icon {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: block;
    transition: all 0.3s ease;
}

.header-capsule .circle-icon path {
    fill: #F1F8FF !important;
    transition: all 0.3s ease;
}

.social-icon:hover .circle-icon {
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(53, 67, 89, 0.3);
}

.social-icon:hover .circle-icon path {
    fill: #FFFFFF !important;
}

.social-icon:active .circle-icon {
    filter: brightness(0.9);
    box-shadow: 0 0 8px rgba(53, 67, 89, 0.2);
}

.social-icon:active .circle-icon path {
    fill: #E6F0FF !important;
}

/* Секция Hero */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: left;
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
}

#dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    height: calc(100vh - 120px);
}

.hero-main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    text-transform: uppercase;
    width: 100%;
    max-width: 1920px;
    box-sizing: border-box;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
    padding: 0;
}

.hero-card-wrapper {
    width: 100%;
    max-width: 1920px;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 120px);
    position: relative;
}

.hero-card {
    background: linear-gradient(145deg, rgba(116, 154, 192, 0.3), rgba(183, 196, 218, 0.4));
    border-radius: 20px;
    padding: 8px;
    box-shadow: 
        0 10px 30px rgba(4, 16, 28, 0.3),
        0 5px 15px rgba(53, 67, 89, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(183, 206, 228, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex: 1;
    margin-bottom: 16px;
    height: 100%;
}

.hero-card-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    flex: 1;
    min-height: 0;
}

.hero-card-text {
    position: absolute;
    bottom: 350px;
    left: 0;
    right: 0;
    transform: none;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    color: var(--color-accent);
    line-height: 1.4;
    max-width: 80%;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 4;
    background: var(--color-header-bg);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Remove old hero styles */
.hero-content,
.hero-text {
    display: none;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Индикатор прокрутки */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 6px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Секция услуг */
.services {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    bottom: 180px;
    background: linear-gradient(135deg, 
        #445772,
        rgba(54, 73, 104, 0.9) 50%,
        #445772);
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px);
}

.services .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services .section-title {
    color: var(--color-secondary);
    text-shadow: 0 0 15px rgba(53, 67, 89, 0.2);
    text-align: center;
    width: 100%;
}

/* Заголовки секций */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
    font-weight: 700;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    letter-spacing: 0.5px;
}

/* Слайдеры */
.swiper {
    width: 100%;
    max-width: 1400px;
    height: 60vh;
    padding: 20px 0;
    overflow: visible !important;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.swiper-wrapper {
    align-items: center;
    padding: 15px 0;
}

.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    padding-bottom: 20px;
}

/* Карточки услуг */
.service-card {
    position: relative;
    width: 100%;
    height: 320px;
    cursor: pointer;
    margin-bottom: 30px;
    border-radius: 25px;
    padding: 25px 20px;
    background: rgba(90, 116, 153, 0.1);
    border: 1px solid rgba(192, 228, 254, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    will-change: transform, opacity;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(90, 116, 153, 0.15);
    border-color: rgba(192, 228, 254, 0.4);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.service-card h3 {
    font-family: var(--font-base);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    margin: 0 0 12px;
    color: #C0E4FE;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    z-index: 2;
    text-shadow: 0 0 10px rgba(192, 228, 254, 0.3);
    line-height: 1.3;
    max-width: 90%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card p {
    font-family: var(--font-base);
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.4;
    margin: 0;
    color: #C0E4FE;
    text-shadow: 0 0 8px rgba(192, 228, 254, 0.2);
    padding-bottom: 20px;
    hyphens: none;
    white-space: normal;
    max-width: 90%;
}

.service-icon {
    font-size: 48px;
    color: #C0E4FE;
    margin-bottom: 20px;
    padding-top: 0;
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(192, 228, 254, 0.4));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    width: 90px;
}

.service-icon svg {
    width: 90px;
    height: 90px;
    stroke-width: 1.5;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 12px rgba(192, 228, 254, 0.6));
}

/* Секция кейсов */
.cases {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.cases::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 1920px;
    height: 70vh;
    background-image: url('Assets/2.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    z-index: 0;
    filter: blur(0);
    -webkit-filter: blur(0);
}

.cases .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.cases-swiper {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

/* Карточки кейсов */
.case-card {
    font-size: 1rem;
    background: transparent;
    border-radius: 25px;
    text-align: left;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-shadow: none;
    position: relative;
    transform: translateZ(0);
    transition: var(--transition-smooth);
    border: none;
    margin: 0;
    color: var(--color-text-dark);
    max-width: 1200px;
    margin: 0 auto;
    perspective: 2000px;
    cursor: pointer;
    z-index: 3;
    will-change: transform, opacity;
}

.case-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    will-change: transform;
    transform-origin: center center -100px;
    z-index: 3;
}

.case-card.flipped .case-card-inner {
    transform: rotateX(180deg) translateZ(100px);
}

.case-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: visible;
    transform: none;
}

.case-card-front h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--color-primary);
    padding: 15px;
    border-radius: 15px;
    background: #D0DBEB;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease-out, filter 0.3s ease-out, box-shadow 0.3s ease-out;
    position: relative;
    z-index: 10;
    will-change: transform, filter, box-shadow;
}

.case-card-front h3:hover {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(255, 255, 255, 0.4);
}

.case-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    box-shadow: 
        0 10px 30px rgba(4, 16, 28, 0.4),
        0 5px 15px rgba(53, 67, 89, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
    border: 1px solid rgba(183, 206, 228, 0.2);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.case-card-front {
    transform: translateZ(50px);
}

.case-card-back {
    transform: rotateX(180deg) translateZ(50px);
    visibility: hidden;
    opacity: 0;
}

.case-card.flipped .case-card-back {
    visibility: visible;
    opacity: 1;
}

.case-card-front p {
    padding: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    text-align: left;
    text-shadow: none;
}

.case-card-back h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.2px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-card-back h4 i {
    font-size: 1.1rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.case-card:hover .case-card-back h4 i {
    transform: rotate(180deg);
}

.case-card-back p {
    background: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    text-align: left;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Слайды */
.swiper-slide {
    padding: 0 10px;
    overflow: visible;
    transform-style: preserve-3d;
}

.swiper-wrapper {
    overflow: visible;
    transform-style: preserve-3d;
}

/* Секция предложения */
.proposal {
    background: linear-gradient(180deg, #445772 22%, #323E50 74%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

.proposal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vh;
    height: 80vh;
    background-image: url('Assets/Logo.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.proposal.visible::before {
    opacity: 0.5;
    z-index: 1;
}

.proposal-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.proposal-card {
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.proposal h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--color-secondary);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.proposal p {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin-bottom: 60px;
    color: var(--color-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Кнопка CTA */
.cta-button {
    background: linear-gradient(145deg, rgba(4, 16, 28, 0.95), rgba(2, 8, 14, 0.95));
    color: var(--color-secondary);
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    transform-origin: center;
    box-shadow: 
        0 10px 30px rgba(4, 16, 28, 0.5),
        0 5px 15px rgba(2, 8, 14, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(183, 206, 228, 0.15);
    text-decoration: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(4, 16, 28, 0.6),
        0 8px 20px rgba(2, 8, 14, 0.5);
    background: linear-gradient(145deg, rgba(4, 16, 28, 1), rgba(2, 8, 14, 1));
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button .icon {
    transition: var(--transition);
}

.cta-button:hover .icon {
    transform: translateX(5px);
}

/* Футер */
footer {
    position: relative;
    width: 100%;
    height: 415px;
    background: var(--color-secondary); /* Использовать переменную для #F1F8FF */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: none; /* Удалить предыдущую тень */
}

.footer-card {
    position: absolute;
    height: 340px;
    left: 1.56%;
    right: 1.56%;
    bottom: 47px;
    padding-top: 64px;
    background: #D0DBEB;
    border-radius: 20.0107px;
    width: calc(100% - 3.12%); /* 100% - (1.56% * 2) */
    max-width: 1860px; /* Для больших экранов, если 1920px - ширина макета */
    margin: 0 auto;
}

.footer-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 25%;
    margin: 0 auto;
}

.footer-icon-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 74px;
    height: 74px;
    background: #04101C;
    box-shadow: 0px 4px 34px rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    flex: none;
    order: 0;
    flex-grow: 0;
    transition: var(--transition-smooth);
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-icon-wrapper:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.35);
}

.footer-icon-wrapper:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.2);
}

.footer-icon-wrapper svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-icon-wrapper svg path {
    fill: #F1F8FF;
}

.footer-icon-wrapper svg rect {
    fill: #04101C;
}

.footer-phone-icon svg {
    transform: rotate(1deg);
}

.footer-mail-icon svg {
    /* width: 52px; */
    /* height: 32px; */
}

.footer-telegram-icon svg {
    /* width: 45px; */
    /* height: 38px; */
}

.footer-text {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 20px;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 39px;
    color: #04101C;
    margin-bottom: 10px;
}

.privacy-policy-link {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #04101C;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.privacy-policy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Пагинация */
.swiper-pagination-bullet {
    background: var(--color-accent) !important;
    opacity: 0.5 !important;
    transition: var(--transition);
    bottom: 10px !important;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary) !important;
    opacity: 1 !important;
    bottom: 10px !important;
    transform: scale(1.2);
}

/* Анимация для обновления текста */
@keyframes fadeText {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card h3,
.case-card-front h3,
.case-card-front p,
.case-card-back h4,
.case-card-back p {
    animation: fadeText 0.3s ease forwards;
}

/* Медиа-запросы */
@media (min-width: 1200px) {
    .case-card {
        font-size: 1.2rem;
    }
    
    .cases-swiper {
        padding: 20px 40px;
    }
    
    .swiper-slide {
        padding: 0 15px;
    }

    .hero-card-text {
        bottom: 400px;
    }
}

@media (max-width: 1199px) {
    .cases-swiper {
        padding: 20px 30px;
    }
    
    .swiper-slide {
        padding: 0 12px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo svg {
        width: 140px;
    }
    
    .phone {
        font-size: 18px;
    }
    
    .social-icon {
        font-size: 22px;
    }
    
    .case-card {
        padding: 30px;
    }

    .case-card h3 {
        font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    }

    .case-card p {
        font-size: clamp(0.9rem, 1vw, 1rem);
    }

    .service-card-front, 
    .service-card-back {
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    .swiper {
        height: 65vh;
        padding: 10px 0 40px;
    }
    
    .mobile-pagination {
        display: flex;
    }

    .header-right {
        gap: 20px;
    }
    
    .phone {
        font-size: 18px;
    }
    
    .social-icon {
        font-size: 24px;
    }
    
    .logo svg {
        width: 140px;
    }
    
    .lang-btn {
        padding: 6px 15px;
        font-size: 15px;
    }
    
    .cases-swiper {
        padding: 20px 25px;
    }
    
    .swiper-slide {
        padding: 0 10px;
    }

    .footer-icons {
        padding: 0 30%;
    }

    .footer-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .footer-icon-wrapper svg {
        width: 50px;
        height: 50px;
    }

    .footer-copyright {
        font-size: 28px;
        line-height: 34px;
    }

    .cases::before {
        top: 55%;
        height: 65vh;
        width: calc(100% - 16px);
    }
}

@media (max-width: 768px) {
    .contact-info {
        gap: 15px;
    }
    
    .phone {
        display: none;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .service-card-front, 
    .service-card-back, 
    .case-card {
        padding: 25px 20px;
        font-size: 1.1rem;
    }
    
    .proposal-card {
        padding: 40px 20px;
    }

    .swiper {
        height: 70vh;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card.flipped .service-card-inner {
        transform: rotateY(180deg) scale(0.95);
    }

    .header-capsule {
        padding: 6px 10px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .lang-btn {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .phone {
        font-size: 15px;
    }
    
    .social-icon .circle-icon {
        width: 30px;
        height: 30px;
    }

    .mouse {
        display: none;
    }
    
    .cases {
        padding: 40px 0;
    }
    
    .cases-swiper {
        padding: 20px 10px;
    }
    
    .swiper-slide {
        padding: 0 4px;
    }

    .case-card-inner {
        transform-origin: center center -50px;
    }
    
    .case-card.flipped .case-card-inner {
        transform: rotateY(180deg) translateZ(50px);
    }
    
    .case-card-front {
        transform: translateZ(25px);
    }
    
    .case-card-back {
        transform: rotateY(180deg) translateZ(25px);
    }

    .case-card-front, 
    .case-card-back {
        padding: 20px 15px;
    }

    .case-card-back h3 {
        font-size: 1.5rem;
    }
    
    .case-card-back h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .case-card-back h4 i {
        font-size: 1rem;
    }
    
    .case-card-back p {
        font-size: 1rem;
        padding: 15px;
    }

    footer {
        height: 350px;
    }

    .footer-card {
        height: 280px;
        bottom: 30px;
    }

    .footer-icons {
        padding: 0 20%;
    }

    .footer-text {
        margin-top: 50px;
        padding-bottom: 15px;
    }

    .footer-copyright {
        font-size: 22px;
        line-height: 28px;
    }

    .cases::before {
        height: 70vh;
    }

    .proposal::before {
        width: 90vw;
        height: 90vw;
    }

    .hero-content-wrapper {
        padding: 0 15px;
    }

    .hero-main-title,
    .hero-card-text,
    .section-title {
        transform: translateY(20px);
    }

    .hero-card-wrapper {
        margin-bottom: 30px; /* Consistent spacing */
    }

    .hero-card-text {
        bottom: 240px;
        max-width: 90%;
        padding: 15px 25px;
    }
}

@media (max-width: 576px) {    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        margin-bottom: 30px;
    }
    
    .service-card-front, 
    .service-card-back {
        padding: 25px 15px;
    }

    .cases {
        padding: 0 8px;
    }

    .case-card {
        padding: 20px 15px;
        font-size: 1.05rem;
    }

    .swiper {
        height: 75vh;
        padding: 5px 0 30px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .cases-swiper {
        padding: 15px 5px;
    }
    
    .swiper-slide {
        padding: 0 2px;
    }

    .case-card-front, 
    .case-card-back {
        padding: 15px 12px;
    }

    .case-card-back h3 {
        font-size: 1.3rem;
    }
    
    .case-card-back h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .case-card-back p {
        font-size: 0.95rem;
        padding: 12px;
    }

    footer {
        height: 300px;
    }

    .footer-card {
        height: 240px;
        bottom: 20px;
    }

    .footer-icons {
        padding: 0 20%;
    }

    .footer-text {
        margin-top: 40px;
        padding-bottom: 10px;
    }

    .footer-copyright {
        font-size: 18px;
        line-height: 24px;
    }

    .cases::before {
        height: 75vh;
    }

    .proposal::before {
        width: 90vw;
        height: 90vw;
    }

    .proposal p {
        margin-bottom: 40px;
    }

    .hero-card-text {
        bottom: 140px;
        max-width: 85%;
        padding: 12px 20px;
    }

    .hero-card {
        padding: 12px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        gap: 8px;
        height: 24px;
    }

    .lang-label {
        font-size: 18px;
        line-height: 22px;
    }

    .lang-toggle {
        width: 46px;
        height: 24px;
    }

    .lang-toggle-bg {
        width: 46px;
        height: 24px;
    }

    .lang-toggle-inner {
        width: 44px;
        height: 22px;
        left: 1px;
        top: 1px;
    }

    .lang-toggle-knob {
        width: 20px;
        height: 20px;
        top: 2px;
        left: 2px;
    }

    .lang-switcher.en-active .lang-toggle-knob {
        left: 24px;
    }

    .logo-img {
        height: 28px;
    }
    
    .phone {
        font-size: 13px;
    }

    .footer-card {
        height: 200px;
        bottom: 15px;
    }

    .footer-icons {
        padding: 0 15%;
    }

    .footer-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    .footer-icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

    .footer-text {
        margin-top: 40px;
        padding-bottom: 10px;
    }

    .footer-copyright {
        font-size: 18px;
        line-height: 24px;
    }

    .cases::before {
        height: 80vh;
    }

    .proposal::before {
        width: 90vw;
        height: 90vw;
    }

    .proposal p {
        margin-bottom: 40px;
    }

    .hero-content-wrapper {
        padding: 0 10px;
    }

    .hero-main-title,
    .hero-card-text,
    .section-title {
        transform: translateY(15px);
    }

    .hero-card-wrapper {
        margin-bottom: 25px; /* Consistent spacing */
    }

    .hero-card-text {
        bottom: 100px;
        max-width: 80%;
        padding: 10px 15px;
    }

    .hero-card {
        padding: 10px;
        margin-bottom: 15px;
    }
}

@media (max-width: 320px) {
    .services::before {
        width: calc(100% - 12px);
    }

    .header-capsule {
        padding: 4px 4px;
    }

    .service-card-front, 
    .service-card-back {
        padding: 20px 12px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .cases {
        padding: 0 2px;
    }

    .case-card {
        padding: 18px 12px;
        font-size: 0.95rem;
    }
    
    .case-card h3 {
        font-size: 1.3rem;
    }

    .proposal-card {
        padding: 30px 15px;
    }

    .swiper {
        height: 80vh;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .social-icon .circle-icon {
        width: 24px;
        height: 24px;
    }
    
    .cases-swiper {
        padding: 10px 2px;
    }
    
    .swiper-slide {
        padding: 0 1px;
    }

    .case-card-front, 
    .case-card-back {
        padding: 12px 10px;
    }

    .case-card-back h3 {
        font-size: 1.2rem;
    }
    
    .case-card-back h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .case-card-back p {
        font-size: 0.9rem;
        padding: 10px;
    }

    .footer-phone-icon svg {
        width: 32px;
        height: 26px;
    }
    
    .footer-mail-icon svg {
        width: 40px;
        height: 25px;
    }
    
    .footer-telegram-icon svg {
        width: 35px;
        height: 30px;
    }

    .footer-icons {
        padding: 0 15%;
    }

    .hero-content-wrapper {
        padding: 0 5px;
    }

    .hero-main-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
        margin-bottom: 20px;
    }

    .hero-card-wrapper {
        margin-bottom: 20px; /* Consistent spacing */
    }

    .hero-card-text {
        bottom: 100px;
        max-width: 90%;
        padding: 8px 10px;
    }

    .hero-card {
        padding: 8px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    .hero-content-wrapper {
        height: calc(100vh - 100px);
    }
    .hero-card-wrapper {
        height: calc(100% - 100px);
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 80px;
    }
    .hero-content-wrapper {
        height: calc(100vh - 80px);
    }
    .hero-card-wrapper {
        height: calc(100% - 80px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
    }
    .hero-content-wrapper {
        height: calc(100vh - 70px);
    }
    .hero-card-wrapper {
        height: calc(100% - 70px);
    }
}

@media (max-width: 320px) {
    .hero {
        padding-top: 60px;
    }
    .hero-content-wrapper {
        height: calc(100vh - 60px);
    }
    .hero-card-wrapper {
        height: calc(100% - 60px);
    }
}

/* Медиа-запросы для оптимизации анимаций на разных устройствах */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 480px) {
    .hero-main-title,
    .hero-card-text,
    .section-title {
        transform: translateY(15px);
    }

    .service-card,
    .case-card {
        transform: translateY(10px);
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        font-size: clamp(2rem, 4vw, 3.5rem);
        line-height: 1.3;
        margin-bottom: 30px;
        transform: translateY(20px);
    }
}

@media (max-width: 576px) {
    .hero-main-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
        margin-bottom: 25px;
        transform: translateY(15px);
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
        margin-bottom: 20px;
        transform: translateY(15px);
    }
}

@media (max-width: 320px) {
    .hero-main-title {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        margin-bottom: 15px;
        transform: translateY(10px);
    }
}