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

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-width: 0;
}

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

/* Hero Section — ровно по высоте окна (стык с панелью задач) */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px 0 0;
    max-width: 1440px;
    margin: 0 auto;
    background: #FFFFFF;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}

/* Декоративные линии — скрыты, серые полосы не показываем */
.line,
.line-1,
.line-2,
.line-3,
.line-4,
.line-5 {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Графический элемент hero — одна картинка, на десктопе обрезана пополам по высоте */
.hero-image {
    position: absolute;
    width: 1800px;
    height: 810px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -36%);
    background: url(images/brixagency._A_3D_torus_abstract_shape_blue_and_purple_holograph_685b2ecc-bb8e-4ca3-a0a8-21e31c671039-topaz-enhance-3-Photoroom.png);
    background-size: 1800px 1620px;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Блок текста Hero — по центру первого экрана */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 10px;
    position: absolute;
    width: 100%;
    max-width: 1200px;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    z-index: 10;
    overflow: visible;
}

.hero-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    overflow: visible;
}

/* Заголовок — две строки, по центру (размер подогнан под ширину, чтобы не обрезалось) */
.hero-title {
    width: 100%;
    max-width: 100%;
    font-family: 'Bebas Neue Cyrillic', 'Bebas Neue', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(96px, 9.5vw, 144px);
    line-height: 0.92;
    text-align: center;
    letter-spacing: 0.02em;
    word-spacing: 0;
    background: linear-gradient(180deg, #21488A 0%, #4491FE 89.71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
    pointer-events: none;
    overflow: visible;
}

.hero-title-line1 {
    white-space: nowrap;
}

/* Описание */
.hero-description .hero-desc-line {
    display: block;
}
.hero-description {
    width: 100%;
    max-width: 1000px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
    text-align: center;
    color: #000000;
    flex: none;
    order: 1;
    flex-grow: 0;
    margin: 0;
    margin-top: 28px;
    pointer-events: none;
}

/* Кнопка */
.hero-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    gap: 10px;
    width: 320px;
    height: 100px;
    margin-top: 36px;
    background: #000000;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.button-text {
    width: auto;
    max-width: 280px;
    height: auto;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 28px;
    line-height: 160%;
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 0;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: clamp(48px, 12vw, 150px);
    }
}

@keyframes float1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    33% { 
        transform: translate(50px, -50px) scale(1.2);
        opacity: 0.9;
    }
    66% { 
        transform: translate(-40px, 40px) scale(0.9);
        opacity: 0.8;
    }
}

@keyframes float2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% { 
        transform: translate(-60px, 60px) scale(1.1);
        opacity: 0.9;
    }
    66% { 
        transform: translate(50px, -50px) scale(0.95);
        opacity: 0.7;
    }
}

@keyframes float3 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(30px, -30px) scale(1.15);
        opacity: 0.85;
    }
}

@keyframes sparkle {
    0% { 
        background-position: 0% 0%, 50% 50%, 25% 75%, 75% 25%, 10% 90%, 90% 10%, 30% 70%, 70% 30%;
        opacity: 0.6;
    }
    50% { 
        background-position: 15% 15%, 65% 65%, 40% 95%, 95% 40%, 25% 100%, 100% 25%, 45% 85%, 85% 45%;
        opacity: 1;
    }
    100% { 
        background-position: 0% 0%, 50% 50%, 25% 75%, 75% 25%, 10% 90%, 90% 10%, 30% 70%, 70% 30%;
        opacity: 0.6;
    }
}

/* Services Section */
.services {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 800px;
    padding: 120px 24px 100px;
    background: #FFFFFF;
    overflow: hidden;
    z-index: 2;
}

/* Декоративные линии в секции services — скрыты */
.services-line,
.services-line-1,
.services-line-2,
.services-line-3,
.services-line-4 {
    display: none !important;
}

/* Заголовок секции */
.services-title {
    position: absolute;
    width: 169px;
    height: 40px;
    left: calc(50% - 169px/2 - 0.5px);
    top: 165px;
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;
    color: #22498B;
    z-index: 3;
    visibility: visible;
    display: block;
}

/* Карточки услуг — без фона и тени (только картинки) */
.service-card {
    position: absolute;
    width: 510px;
    height: 210px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Карточка 1: Software Design */
.service-card-1 {
    left: 195px;
    top: 298px;
}

.service-title-1 {
    position: absolute;
    width: 263px;
    height: 24px;
    left: 30px;
    top: 30px;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    color: #000000;
    margin: 0;
}

.service-description-1 {
    position: absolute;
    width: 330px;
    height: 114px;
    left: calc(50% - 330px/2 - 60px);
    top: 66px;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #000000;
    margin: 0;
}

.service-mask-1 {
    position: absolute;
    width: 219.04px;
    height: 219.61px;
    left: calc(50% - 219.04px/2 + 134.52px);
    top: -92px;
    transform: rotate(-46.23deg);
}

.service-image-mask-1,
.service-image-abstract-1 {
    position: absolute;
    width: 219.04px;
    height: 219.61px;
    left: 280px;
    top: -92px;
    background: url(images/Screenshot\ 2024-01-10\ 171725-topaz-enhance-6x\ \(1\).png);
    background-size: cover;
    background-position: center;
    transform: rotate(-46.23deg);
}

.service-update-color-1 {
    position: absolute;
    width: 258.88px;
    height: 258.88px;
    left: 252.05px;
    top: -119.99px;
    mix-blend-mode: overlay;
    border-radius: 14.382px;
    transform: rotate(-46.23deg);
    background: rgba(28, 118, 254, 0.3);
}

.service-color-block-1 {
    position: absolute;
    width: 258.88px;
    height: 258.88px;
    left: calc(50% - 258.88px/2 - 0.62px);
    top: calc(50% - 258.88px/2 + 0.01px);
    background: #1C76FE;
    transform: rotate(-46.23deg);
    opacity: 0.5;
}

/* Карточка 2: Web Design */
.service-card-2 {
    left: 735px;
    top: 298px;
}

.service-title-2 {
    position: absolute;
    width: 134px;
    height: 38px;
    left: 30px;
    top: 30px;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 160%;
    color: #000000;
    margin: 0;
}

.service-description-2 {
    position: absolute;
    width: 330px;
    height: 95px;
    left: calc(50% - 330px/2 - 60px);
    top: 80px;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #000000;
    margin: 0;
}

.service-mask-2 {
    position: absolute;
    width: 330.39px;
    height: 227.09px;
    left: 241px;
    top: -164px;
    transform: rotate(50.56deg);
}

.service-image-mask-2,
.service-image-abstract-2 {
    position: absolute;
    width: 227.09px;
    height: 330.39px;
    left: calc(50% - 227.09px/2 + 99.55px);
    top: calc(50% - 330.39px/2 - 103.8px);
    background: url(images/Screenshot\ 2024-01-10\ 161525-topaz-enhance-6x\ \(1\).png);
    background-size: cover;
    background-position: center;
    transform: rotate(-39.44deg);
}

.service-update-color-2 {
    position: absolute;
    width: 377.01px;
    height: 377.01px;
    left: calc(50% - 377.01px/2 + 101.74px);
    top: calc(50% - 377.01px/2 - 145.67px);
    mix-blend-mode: overlay;
    border-radius: 20.9452px;
    transform: rotate(50.56deg);
    background: rgba(28, 118, 254, 0.3);
}

.service-color-block-2 {
    position: absolute;
    width: 377.01px;
    height: 377.01px;
    left: calc(50% - 377.01px/2 - 0.07px);
    top: calc(50% - 377.01px/2 + 0.69px);
    background: #1C76FE;
    transform: rotate(50.56deg);
    opacity: 0.5;
}

/* Карточка 3: Network & Cyber Security Consultancy */
.service-card-3 {
    left: calc(50% - 510px/2);
    top: 540px;
}

.service-title-3 {
    position: absolute;
    width: 250px;
    height: 48px;
    left: 30px;
    top: 30px;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    color: #000000;
    margin: 0;
}

.service-description-3 {
    position: absolute;
    width: 330px;
    height: 95px;
    left: calc(50% - 330px/2 - 60px);
    top: 90px;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #000000;
    margin: 0;
}

.service-mask-3 {
    position: absolute;
    width: 249.8px;
    height: 206.88px;
    left: 310.75px;
    top: -62.93px;
    transform: rotate(6.25deg);
}

.service-image-mask-3,
.service-image-abstract-3 {
    position: absolute;
    width: 249.8px;
    height: 206.88px;
    left: 310.75px;
    top: -62.93px;
    background: url(images/Screenshot\ 2024-01-11\ 122730-topaz-enhance-6x-2.png);
    background-size: cover;
    background-position: center;
    transform: rotate(-173.75deg);
}

.service-update-color-3 {
    position: absolute;
    width: 258.13px;
    height: 258.13px;
    left: calc(50% - 258.13px/2 + 178.14px);
    top: calc(50% - 258.13px/2 - 64.43px);
    mix-blend-mode: overlay;
    border-radius: 14.3408px;
    transform: rotate(6.25deg);
    background: rgba(28, 118, 254, 0.3);
}

.service-color-block-3 {
    position: absolute;
    width: 258.13px;
    height: 258.13px;
    left: calc(50% - 258.13px/2 - 0.06px);
    top: calc(50% - 258.13px/2 - 0.07px);
    background: #1C76FE;
    transform: rotate(6.25deg);
    opacity: 0.5;
}

/* About Section */
.about {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 596px;
    padding: 80px 24px 100px;
    background: #FFFFFF;
    overflow: hidden;
}

/* Декоративные линии в секции about — скрыты */
.about-line,
.about-line-1,
.about-line-2,
.about-line-3,
.about-line-4 {
    display: none !important;
}

/* Заголовок секции */
.about-title {
    position: absolute;
    width: 255px;
    height: 40px;
    left: calc(50% - 255px/2 - 0.5px);
    top: 60px;
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;
    color: #22498B;
    margin: 0;
}

/* Документы - позиционированы относительно секции about */
.document-file {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.document-file-1 {
    width: 240px;
    height: 337.12px;
    left: 465px;
    top: 140px;
    background: url(images/file-001.png) no-repeat center center;
    background-size: contain;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-file-2 {
    width: 240px;
    height: 395.29px;
    left: 735px;
    top: 140px;
    background: url(images/file-001-2.png) no-repeat center center;
    background-size: contain;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Fallback если изображения не загрузились */
.document-file-1:not([style*="background-image"]),
.document-file-2:not([style*="background-image"]) {
    background-color: #F5F5F5;
}


.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Document Styles */
.document {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Trade License Document */
.document-license .document-header {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.license-title-arabic {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    direction: rtl;
    text-align: right;
}

.license-subtitle {
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo-dez {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
}

.logo-squares {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 4px;
}

.logo-squares::before {
    content: '';
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.document-content {
    padding: 0;
}

.document-section {
    border-bottom: 1px solid #E0E0E0;
}

.document-section:last-child {
    border-bottom: none;
}

.section-header {
    background-color: #1E3F6D;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-en {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.section-title-ar {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    direction: rtl;
}

.section-content {
    padding: 0;
}

.data-row {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.data-row:nth-child(even) {
    background-color: #FAFAFA;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-en {
    font-size: 13px;
    color: #666666;
    font-weight: 500;
}

.label-ar {
    font-size: 12px;
    color: #999999;
    direction: rtl;
    text-align: right;
}

.data-value {
    flex: 1;
    font-size: 13px;
    color: #000000;
    font-weight: 500;
    text-align: right;
}

.document-footer {
    background-color: #F8F8F8;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E0E0E0;
}

.footer-left {
    flex: 1;
}

.logo-ifza {
    font-size: 20px;
    font-weight: 700;
    color: #1E3F6D;
    letter-spacing: 2px;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.phone-number {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.seal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    margin-left: auto;
    display: inline-block;
    border: 3px solid #FFA500;
}

/* Unit Lease Agreement Document */
.document-lease .document-header-lease {
    padding: 30px;
    background-color: #ffffff;
    border-bottom: 2px solid #1E3F6D;
}

.lease-logo {
    font-size: 18px;
    font-weight: 700;
    color: #1E3F6D;
    margin-bottom: 20px;
}

.lease-logo::after {
    content: ' | PROPERTY';
    color: #999999;
    font-weight: 400;
}

.lease-banner {
    background-color: #1E3F6D;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.lease-title-arabic {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 8px;
    direction: rtl;
}

.lease-title-en {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lease-section .section-header {
    background-color: #D4AF37;
}

.lease-section .section-title-en,
.lease-section .section-title-ar {
    color: #000000;
}

.legal-text {
    padding: 20px;
}

.legal-text p {
    font-size: 11px;
    color: #333333;
    line-height: 1.6;
    text-align: justify;
}

.signature-section {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    border-top: 2px solid #E0E0E0;
    margin-top: 20px;
}

.signature-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signature-label {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
}

.signature-company {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.signature-line {
    position: relative;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
    margin-top: 20px;
}

.signature-seal {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #FFA500;
}

.signature-text {
    font-size: 11px;
    color: #666666;
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
}

.document-footer-lease {
    background-color: #F8F8F8;
    padding: 15px 20px;
    border-top: 1px solid #E0E0E0;
}

.footer-text {
    font-size: 11px;
    color: #999999;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .hero {
        width: 100%;
        max-width: 1440px;
    }
    
    .services {
        width: 100%;
        max-width: 1440px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Hero: мобильный вид уже с 1024px (многие телефоны дают viewport 901–1024px) */
@media (max-width: 1024px) {
    .hero {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 700px;
        padding: 48px 0 0 0;
        position: relative;
        overflow-x: visible;
        border: none;
        outline: none;
    }
    
    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        border: none;
        outline: none;
    }
    
    .hero-content-inner {
        max-width: 100%;
        width: 100%;
        border: none;
        outline: none;
    }
    
    .hero-title {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: auto;
        top: auto;
        font-size: clamp(46px, 13vw, 78px);
        line-height: 0.95;
        margin-bottom: 30px;
        text-align: center;
        border: none;
        outline: none;
    }
    
    .hero-description {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: auto;
        top: auto;
        margin-bottom: 30px;
        text-align: center;
        font-size: 12px;
        line-height: 1.35;
        border: none;
        outline: none;
    }
    .hero-description .hero-desc-line {
        display: block;
    }
    .hero-button {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        border: none;
        outline: none;
    }
    
    .hero-image {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        height: 82vh;
        min-height: 400px;
        margin-top: -140px;
        box-sizing: border-box;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        overflow: hidden;
        /* На мобильных можно использовать облегчённую картинку: положите в images/ файл hero-mobile.jpg (сжатый) и раскомментируйте строку ниже */
        /* background-image: url(images/hero-mobile.jpg); */
    }
    .hero-button {
        max-width: 280px;
        padding: 14px 28px;
        height: auto;
    }
    .hero-button .button-text {
        font-size: 17px;
    }
    
    .line {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .services {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 80px 24px 60px;
    }
    
    .services-title {
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 32px;
    }
    
    .service-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        max-width: 510px;
        height: auto;
        margin: 0 auto 32px;
    }
    
    .service-card-1,
    .service-card-2,
    .service-card-3 {
        left: auto !important;
        top: auto !important;
    }
    
    .hero {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 700px;
        padding: 48px 0 0 0;
        position: relative;
        overflow-x: visible;
        border: none;
        outline: none;
    }
    
    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        border: none;
        outline: none;
    }
    
    .hero-content-inner {
        max-width: 100%;
        width: 100%;
        border: none;
        outline: none;
    }
    
    .hero-title {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: auto;
        top: auto;
        font-size: clamp(46px, 13vw, 78px);
        line-height: 0.95;
        margin-bottom: 30px;
        text-align: center;
        border: none;
        outline: none;
    }
    
    .hero-description {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: auto;
        top: auto;
        margin-bottom: 30px;
        text-align: center;
        font-size: 12px;
        line-height: 1.35;
        border: none;
        outline: none;
    }
    .hero-description .hero-desc-line {
        display: block;
    }
    .hero-button {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto;
        width: auto;
        max-width: 280px;
        padding: 14px 28px;
        height: auto;
        border: none;
        outline: none;
    }
    
    .hero-button .button-text {
        font-size: 17px;
    }
    
    .hero-image {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        height: 82vh;
        min-height: 400px;
        margin-top: -140px;
        background-size: cover;
        background-position: center top;
        overflow: hidden;
    }
    
    .line {
        display: none !important;
    }
    
    .about {
        position: relative;
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
        padding: 60px 20px;
        min-height: 596px;
    }
    
    .about-line {
        display: none;
    }
    
    .about-title {
        position: relative;
        width: auto;
        left: auto;
        top: auto;
        margin-bottom: 40px;
    }
    
    .document-file {
        position: relative;
        left: auto;
        top: auto;
        margin: 0 auto 30px;
    }
    
    .document-file-1,
    .document-file-2 {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 300px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 52px;
    }
    
    .hero-description {
        font-size: 11px;
    }
    
    .services-title {
        flex-direction: column;
        gap: 15px;
    }
    
    .title-line {
        max-width: 100px;
    }
    
    .title-text {
        font-size: 28px;
    }
    
    .about-title {
        font-size: 32px;
    }
    
    .signature-section {
        grid-template-columns: 1fr;
    }
    
    .document-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ФОРМЫ
   ============================================ */
.application-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
}

.application-modal[style*="flex"],
.application-modal.show-modal {
    display: flex !important;
}

/* Дополнительное правило для надежности */
.application-modal[style*="display: flex"],
.application-modal[style*="display:flex"] {
    display: flex !important;
}

.application-modal-content {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #4491FE;
    border-radius: 18px;
    padding: 32px 24px;
    width: 90%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.application-modal-title {
    font-family: 'Bebas Neue', 'Bebas Neue Cyrillic', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #000000;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 340px;
    align-items: stretch;
    margin: 0 auto;
}

.application-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #4491FE;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #000000;
    background: #FFFFFF;
    box-sizing: border-box;
    outline: none;
}

.application-input::placeholder {
    color: #CCCCCC;
    font-weight: 400;
}

.application-input:focus {
    outline: none;
    border-color: #21488A;
}

.application-submit-btn {
    width: 100%;
    padding: 14px;
    background: #4491FE;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: none;
}

.application-submit-btn:hover {
    background: #21488A;
}

.application-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-modal-close:hover {
    color: #999999;
}

/* Мобильная версия формы */
@media screen and (max-width: 768px) {
    .application-modal-content {
        padding: 24px 18px;
        width: 92%;
        max-width: 360px;
    }
    
    .application-modal-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .application-input {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .application-submit-btn {
        font-size: 16px;
        padding: 10px;
    }
}
