* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 1em;
}

:root {
    --primary-blue: #000000;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --card-bg: #E0EAFF;
    --section-bg: #FDFDFD;
    
    /* Шрифты */
    --font-primary: 'Commissioner', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

html {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: 1.3;
    min-height: 100vh;
    padding: 0;
    padding-top: 5em; /* Отступ для фиксированного header */
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    opacity: 0.5;
    z-index: -1;
    /* background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 50%, #f3e5f5 100%); */
    background-image: url('images/background.png');
    background-size: cover;
    background-position-x: -0.375em;
    background-position-y: -14.625em;
    background-attachment: relative;
    background-repeat: no-repeat;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* background: linear-gradient(90deg, rgba(199, 217, 255, 0.5) 0%, rgba(212, 226, 255, 0.5) 100%); */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.125em 0.5em rgba(0, 0, 0, 0.1);
    padding: 0.75em 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
}

.main-nav {
    max-width: 75em;
    margin: 0 auto;
    padding: 0 2.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.nav-logo-img {
    width: 2.75em;
    height: 1.75em;
    object-fit: contain;
}

.nav-logo-text-img {
    height: 1.25em;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2em;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

/* Мобильное меню скрыто по умолчанию */
.mobile-menu {
    display: none;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 400;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.03125em;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 1.5em;
    height: 1.5em;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 0.125em;
    background: var(--primary-blue);
    border-radius: 0.0625em;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.3125em, 0.3125em);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.3125em, -0.3125em);
}

.container {
    max-width: 75em;
    margin: 0 auto;
    padding: 3.75em 2.5em;
}

/* Hero Section */
.hero-section {
    text-align: left;
    margin-bottom: 5em;
    max-width: 52em;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625em;
    margin-bottom: 2.5em;
}

.logo-symbol {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text {
    font-size: 4.5em;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.125em;
}

.main-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.main-title-letter {
    height: 2.5em;
    width: auto;
    object-fit: contain;
}

.main-title-logo {
    height: 2.5em;
    width: auto;
    object-fit: contain;
}

.main-title-dash {
    font-size: 3em;
    font-weight: 600;
    color: var(--primary-blue);
}

.main-title-text {
    font-size: 3em;
    font-weight: 500;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.hero-description {
    font-size: 2em;
    color: var(--primary-blue);
    line-height: 1.3;
    max-width: 56.25em;
    font-family: var(--font-secondary);
}

/* Sections */
.section {
    margin-bottom: 6.25em;
}

.section-title {
    font-size: 3em;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    margin-bottom: 1.5em;
    text-align: left;
    letter-spacing: 0.0625em;
}

/* What We Do - Cards Grid */
.what-we-do .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875em;
}

.card {
    /* background: var(--card-bg); */
    padding: 2.1875em;
    border-radius: 0.9375em;
    box-shadow: 0.25em 0.25em 0.6em rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    /* mix-blend-mode: soft-light; */
    /* opacity: 0.9; */
    background-color: rgba(255, 255, 255, 0.45);
}

.card:hover {
    transform: translateY(-0.3125em);
    box-shadow: 0 0.5em 1.875em rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.9375em;
    text-transform: uppercase;
    line-height: 1.3;
}

.card-description {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--primary-blue);
    line-height: 1.3;
    font-family: var(--font-secondary);
}

/* Why Us - Oval Cards */
.why-us {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.why-us .section-title {
    padding-left: 2.5em;
    padding-right: 2.5em;
}

.why-us .oval-cards {
    display: flex;
    flex-direction: column;
    gap: -1.5625em;
    padding: 0;
    position: relative;
}

.oval-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.875em 2.5em;
    box-shadow: 0.25em 0.25em 0.6em rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    /* opacity: 0.3; */
    animation-play-state: paused;
    /* max-width: calc(100% - 1.25em); */
    width: 100%;
}

/* Левые карточки (нечетные) - скруглены справа, правый край в центре */
.oval-card:nth-child(odd) {
    border-radius: 0 5em 5em 0;
    padding-left: 3.75em;
    padding-right: 2.5em;
    transform: translateX(-100%);
    animation: slideInLeft 0.8s ease-out forwards;
    align-self: flex-start;
    display: flex;
    justify-content: end;
    margin-top: -2.5em;
}

/* Правые карточки (четные) - скруглены слева, левый край в центре */
.oval-card:nth-child(even) {
    border-radius: 5em 0 0 5em;
    padding-left: 2.5em;
    padding-right: 3.75em;
    transform: translateX(100%);
    animation: slideInRight 0.8s ease-out forwards;
    align-self: flex-end;
    margin-left: auto;
    display: flex;
    justify-content: start;
    margin-top: -2.5em;
}

.oval-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32em;
    text-align: center;
}
.oval-card-wide {
    border-radius: 0 3.125em 3.125em 0 !important;
    padding-left: 3.75em;
    padding-right: 2.5em;
    transform: translateX(-100%);
    animation: slideInLeft 0.8s ease-out forwards;
    align-self: flex-start;
    max-width: calc(50% - 1.25em);
}

.oval-card:hover {
    transform: translateY(-0.1875em);
    box-shadow: 0 0.5em 1.875em rgba(0, 0, 0, 0.12);
}

/* Анимации появления */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(50%);
    }
}

/* Задержки для последовательного появления */
.oval-card:nth-child(1) { animation-delay: 0.1s; }
.oval-card:nth-child(2) { animation-delay: 0.1s; }
.oval-card:nth-child(3) { animation-delay: 0.1s; }
.oval-card:nth-child(4) { animation-delay: 0.1s; }
.oval-card:nth-child(5) { animation-delay: 0.1s; }
.oval-card:nth-child(6) { animation-delay: 0.1s; }
.oval-card:nth-child(7) { animation-delay: 0.1s; }

/* Адаптивность для секции why-us */
@media (max-width: 64em) {
    .oval-card-content {
        width: 28em;
        max-width: 100%;
    }
}

/* Мобильные устройства (меньше 720px / 45em) - без выезда, просто плавное появление */
@media (max-width: 45em) {
    .why-us {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
    }
    
    .why-us .section-title {
        padding-left: 1.25em;
        padding-right: 1.25em;
        font-size: 2em;
    }
    
    .why-us .oval-cards {
        padding: 0;
        overflow: visible;
    }
    
    .oval-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 1em !important;
        border-radius: 1.5625em !important;
        padding: 1.5em 1.25em !important;
        align-self: stretch !important;
        justify-content: center !important;
        /* Убираем все трансформации на мобильных */
        transform: none !important;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    /* Убираем специфичные трансформации для нечетных/четных карточек */
    .oval-card:nth-child(odd),
    .oval-card:nth-child(even),
    .oval-card-wide {
        transform: none !important;
        animation: fadeInUp 0.8s ease-out forwards;
        border-radius: 1.5625em !important;
        padding: 1.5em 1.25em !important;
    }
    
    .oval-card-content {
        width: 100%;
        max-width: 100%;
    }
    
    .oval-card-title {
        font-size: 1.25em;
        margin-bottom: 0.5em;
    }
    
    .oval-card-description {
        font-size: 0.875em;
        line-height: 1.4;
    }
    
    /* Простая анимация появления снизу вверх */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(1.5em);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 48em) {
    .why-us {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
    }
    
    .why-us .section-title {
        padding-left: 1.25em;
        padding-right: 1.25em;
        font-size: 2em;
    }
}

.oval-card-title {
    font-size: 2em;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.oval-card-description {
    font-size: 1.1em;
    color: var(--primary-blue);
    font-weight: 400;
    line-height: 1.3;
    font-family: var(--font-secondary);
    max-width: 90%;
}

/* How We Work - Slider */
.how-we-work {
    margin-bottom: 6.25em;
}

.slider-wrapper {
    position: relative;
    padding-bottom: 2em;
}

.slider-track {
    display: flex;
    gap: 1.25em;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding-bottom: 2em;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide {
    min-width: 20em;
    width: 20em;
    flex-shrink: 0;
    background: var(--white);
    padding: 2em 1.5em;
    border-radius: 0.9375em;
    box-shadow: 0 0.125em 0.5em rgba(0, 0, 0, 0.1);
    position: relative;
    height: 17.8125em;
    display: flex;
    flex-direction: column;
    border: 0.0625em solid #e0e0e0;
}

.slide-number {
    position: absolute;
    top: 1.25em;
    left: 1.5em;
    width: 2.5em;
    height: 2.5em;
    background: #2925A9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875em;
    font-weight: 700;
    z-index: 1;
}

.slide-content {
    margin-top: 1em;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slide-title {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.03125em;
    line-height: 1.3;
    margin-top: 1.5em;
}

.slide-description {
    font-size: 1.1em;
    color: var(--primary-blue);
    font-weight: 400;
    line-height: 1.3;
    flex: 1;
    font-family: var(--font-secondary);
}

.slider-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.75em;
    background: linear-gradient(to right, #FFFFFF 0%, #1F66F3 100%);
    z-index: 1;
    width: calc(7 * 20em + 6 * 1.25em); /* ширина всех карточек (7 * 20em) + gaps между ними (6 * 1.25em) */
    pointer-events: none;
    margin-top: 1.75em;
    border-radius: 1em;
}


/* Contact Form */
.contact-section {
    /* растягиваем фон секции на всю ширину экрана */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    /* возвращаем внутренний контент обратно в «контейнер» */
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);

    padding-top: 3em;
    padding-bottom: 3em;
    background: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding-bottom: 1em;
    margin-bottom: 1.25em;
}

.form-group:last-of-type {
    margin-bottom: 2em;
}

.form-group label {
    margin-bottom: 0.25em;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.03125em;
}

.form-group input {
    padding: 0;
    padding-bottom: 0.5em;
    border: none;
    border-bottom: 0.0625em solid #464646;
    border-radius: 0;
    font-size: 1em;
    font-family: var(--font-primary);
    background: transparent;
    color: var(--dark-gray);
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus {
    border-bottom-color: var(--primary-blue);
}

.form-group input.invalid {
    border-bottom-color: #c00;
}

/* Подсветка подписи и звёздочка при ошибке (класс вешаем через JS) */
.form-group.field-invalid label {
    color: #c00;
}

.form-group .error-asterisk {
    display: none;
    color: #c00;
    font-weight: 700;
}

.form-group.field-invalid .error-asterisk {
    display: inline;
}

.form-group .field-error {
    display: block;
    font-size: 0.8125rem;
    color: #c00;
    margin-top: 0.25em;
    min-height: 1.25em;
}

.form-group .field-error:empty {
    display: none;
}

.btn-submit {
    padding: 1em 5em;
    background: #0600A0;
    color: var(--white);
    border: none;
    border-radius: 1.5em;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    font-family: var(--font-primary);
    align-self: flex-start;
    margin-top: 0;
    box-shadow: 0.25em 0.25em 0.3125em rgba(6, 0, 160, 0.39);
}

.btn-submit:hover {
    background: var(--primary-blue);
    transform: translateY(-0.125em);
    box-shadow: 0.3125em 0.3125em 0.375em rgba(0, 0, 0, 0.39);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0.125em 0.125em 0.25em rgba(6, 0, 160, 0.39);
}

.form-message {
    padding: 0.9375em;
    border-radius: 0.5em;
    text-align: center;
    font-weight: 500;
    display: none;
    margin-top: 0.625em;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    /* растягиваем фон футера на всю ширину экрана */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    /* возвращаем внутренний контент обратно в «контейнер» */
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    
    padding-top: 3.75em;
    padding-bottom: 3.75em;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.footer-content {
    display: flex;
/* grid-template-columns: 12.5em 1fr 1fr; */
    gap: 3em;
    justify-content: center;
    align-items: start;
}

.footer-logo {
    display: flex;
    gap: 0.3125em;
    margin-top: 1em;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.footer-logo-letter {
    width: 4em;
    height: 3em;
    object-fit: contain;
}

.footer-logo-text {
    height: 1.5em;
    width: auto;
    object-fit: contain;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 30%;
}

.footer-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.footer-text {
    font-size: 1em;
    color: var(--primary-blue);
    line-height: 1.3;
    font-family: var(--font-secondary);
}

.footer-text b {
    font-weight: 600;
}

.footer-text a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.footer-text a:hover {
    opacity: 0.8;
}

/* Responsive */
/* Узкие десктопы / планшеты (1024px - 1400px) — не даём контенту вылезать за экран */
@media (min-width: 64.0625em) and (max-width: 87.5em) {
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .fixed-header {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        min-width: 0;
    }
    
    .main-nav {
        padding: 0 1.5em;
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
    
    .nav-menu.desktop-menu {
        gap: 1em;
        flex-wrap: wrap;
        min-width: 0;
        flex: 1 1 auto;
        max-width: 100%;
        justify-content: flex-end;
    }
    
    .nav-link {
        font-size: 0.8em;
        white-space: nowrap;
    }
    
    .nav-logo {
        flex-shrink: 0;
        min-width: 0;
    }
    
    .nav-logo-text-img {
        max-height: 1.15em;
        max-width: 100%;
        object-fit: contain;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .slider-wrapper {
        overflow-x: hidden;
        width: 100%;
    }
    
    .slider-track {
        max-width: 100%;
    }
}

/* Планшеты (768px - 1024px) - только между 48em и 64em */
@media (min-width: 48.0625em) and (max-width: 64em) {
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .fixed-header {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }
    
    .main-nav {
        padding: 0 1.5em;
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
    
    .nav-logo {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .nav-logo-img {
        width: 2.25em;
        height: 1.5em;
        max-width: 100%;
    }
    
    .nav-logo-text-img {
        height: 1.1em;
        max-width: 100%;
    }
    
    /* Стили для nav-menu только для планшетов, не для мобильных */
    .nav-menu {
        gap: 0.75em;
        flex-wrap: wrap;
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 8em);
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: all;
        display: flex;
    }
    
    .nav-link {
        font-size: 0.75em;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Скрываем кнопку гамбургера на планшетах */
    .mobile-menu-toggle {
        display: none;
    }
    
    .container {
        padding: 3em 2em;
    }
    
    .main-title-dash,
    .main-title-text {
        font-size: 2.5em;
    }
    
    .hero-description {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 2.5em;
    }
    
    .what-we-do .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
    
    .card {
        padding: 1.75em 1.5em;
    }
    
    .card-title {
        font-size: 1.25em;
    }
    
    .card-description {
        font-size: 1em;
    }
    
    .slide {
        min-width: 18em;
        width: 18em;
    }
    
    .slider-line {
        width: calc(7 * 18em + 6 * 1.25em);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }
    
    .why-us .section-title {
        padding-left: 2em;
        padding-right: 2em;
    }
}

@media (max-width: 48em) {
    body {
        padding-top: 4.5em;
    }
    
    .fixed-header {
        padding: 0.5em 0;
    }
    
    .main-nav {
        padding: 0 1.25em;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .nav-logo {
        flex-shrink: 0;
        z-index: 1002;
    }
    
    .nav-logo-img {
        width: 2em;
        height: 1.25em;
    }
    
    .nav-logo-text-img {
        height: 1em;
    }
    
    /* Скрываем десктопное меню на мобильных */
    .desktop-menu {
        display: none !important;
    }
    
    /* Показываем кнопку гамбургера на мобильных */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1003;
        position: relative;
    }
    
    /* Показываем мобильное меню */
    .mobile-menu {
        display: flex !important;
    }
    
    /* Компактное меню в виде прямоугольника - теперь вне хедера */
    .mobile-menu {
        position: fixed !important;
        top: 4.5em !important;
        right: 1.25em !important;
        width: auto !important;
        min-width: 12em !important;
        max-width: 18em !important;
        background: var(--white) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 1.5em 0 !important;
        gap: 0 !important;
        border-radius: 0.9375em !important;
        box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.15) !important;
        border: 0.0625em solid #e0e0e0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-1em) scale(0.95);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 10000 !important;
        overflow: visible !important;
        list-style: none !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    .mobile-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: all !important;
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 0.0625em solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.875em 1.5em;
        font-size: 0.9em;
        text-align: left;
        white-space: nowrap;
        transition: background 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-link:hover {
        background: rgba(0, 0, 0, 0.03);
    }
    
    .nav-link:active {
        background: rgb(232, 241, 254);
    }
    
    /* Кастомное выделение текста для меню */
    .nav-menu ::selection {
        background: rgb(232, 241, 254);
        color: inherit;
    }
    
    .nav-menu ::-moz-selection {
        background: rgb(232, 241, 254);
        color: inherit;
    }
    
    /* Затемнение фона при открытом меню */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        animation: fadeIn 0.3s ease;
        pointer-events: none;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .container {
        padding: 2em 1.25em;
    }
    
    .hero-section {
        margin-bottom: 3em;
    }
    
    .main-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25em;
    }
    
    .main-title-letter {
        height: 1.75em;
    }
    
    .main-title-dash {
        font-size: 1.75em;
    }
    
    .main-title-text {
        font-size: 1.75em;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1em;
        line-height: 1.4;
    }
    
    .section {
        margin-bottom: 4em;
    }
    
    .section-title {
        font-size: 1.75em;
        margin-bottom: 1.25em;
    }
    
    .what-we-do .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25em;
    }
    
    .card {
        padding: 1.5em 1.25em;
    }
    
    .card-title {
        font-size: 1.1em;
        margin-bottom: 0.75em;
    }
    
    .card-description {
        font-size: 0.95em;
    }
    
    .how-we-work {
        margin-bottom: 4em;
    }
    
    .how-we-work .section-title {
        padding-left: 0;
        padding-right: 0;
    }
    
    .slider-wrapper {
        padding-bottom: 1.5em;
    }
    
    .slide {
        min-width: 16em;
        width: 16em;
        padding: 1.5em 1.25em;
        height: auto;
        min-height: 14em;
    }
    
    .slide-number {
        width: 2em;
        height: 2em;
        font-size: 0.75em;
        top: 1em;
        left: 1.25em;
    }
    
    .slide-title {
        font-size: 0.95em;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }
    
    .slide-description {
        font-size: 0.85em;
    }
    
    .slider-line {
        height: 0.5em;
        margin-top: 1.5em;
        width: calc(7 * 16em + 6 * 1.25em);
    }
    
    .contact-section {
        padding-top: 2em;
        padding-bottom: 2em;
    }
    
    .contact-section .section-title {
        padding-left: 0;
        padding-right: 0;
    }
    
    .form-group {
        padding-bottom: 0.75em;
        margin-bottom: 1em;
    }
    
    .form-group label {
        font-size: 0.875em;
        margin-bottom: 0.5em;
    }
    
    .form-group input {
        font-size: 0.95em;
        padding-bottom: 0.5em;
    }
    
    .btn-submit {
        padding: 0.875em 2.5em;
        font-size: 0.95em;
        width: 100%;
        align-self: stretch;
    }
    
    .footer {
        margin-top: 4em;
        padding-top: 2.5em;
        padding-bottom: 2.5em;
    }
    
    .footer-content {
        flex-direction: column-reverse;
        gap: 2em;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin-top: 0;
        justify-content: center;
    }

    .footer-logo-letter {
        width: 1.5em;
        height: 1.5em;
    }
    
    .footer-logo-text {
        height: 1em;
    }
    
    .footer-block {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .footer-title {
        font-size: 0.95em;
        text-align: center;
    }
    
    .footer-text {
        font-size: 0.875em;
        text-align: center;
    }
}

@media (max-width: 30em) {
    body {
        padding-top: 4em;
    }
    
    .main-nav {
        padding: 0 1em;
    }
    
    .nav-menu {
        top: 4em;
        right: 1em;
        min-width: 11em;
        max-width: 16em;
        padding: 1.25em 0;
    }
    
    .nav-link {
        font-size: 0.85em;
        padding: 0.75em 1.25em;
    }
    
    .container {
        padding: 1.5em 1em;
    }
    
    .main-title-letter {
        height: 1.5em;
    }
    
    .main-title-dash {
        font-size: 1.5em;
    }
    
    .main-title-text {
        font-size: 1.5em;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.5em;
        margin-bottom: 1em;
    }
    
    .card {
        padding: 1.25em 1em;
    }
    
    .card-title {
        font-size: 1em;
    }
    
    .card-description {
        font-size: 0.9em;
    }
    
    .slide {
        min-width: 14em;
        width: 14em;
        padding: 1.25em 1em;
        min-height: 12em;
    }
    
    .slide-title {
        font-size: 0.875em;
    }
    
    .slide-description {
        font-size: 0.8em;
    }
    
    .slider-line {
        width: calc(7 * 14em + 6 * 1.25em);
    }
    
    .oval-card {
        padding: 1.25em 1em !important;
        /* На очень маленьких экранах тоже без трансформаций */
        transform: none !important;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .oval-card:nth-child(odd),
    .oval-card:nth-child(even),
    .oval-card-wide {
        transform: none !important;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .oval-card-title {
        font-size: 1.1em;
        margin-bottom: 0.5em;
    }
    
    .oval-card-description {
        font-size: 0.8em;
        line-height: 1.4;
    }
    
    .form-group label {
        font-size: 0.8em;
    }
    
    .form-group input {
        font-size: 0.9em;
    }
    
    .btn-submit {
        padding: 0.75em 2em;
        font-size: 0.9em;
    }
}
