/* Variables - Regus style palette */
:root {
    --color-graphite: #2c2f33;
    --color-dark-gray: #3a3d42;
    --color-mid-gray: #7a7d82;
    --color-light-gray: #f4f5f7;
    --color-white: #ffffff;
    --color-red: #d32f2f;
    --color-red-hover: #b71c1c;
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-graphite);
    line-height: 1.6;
    background-color: var(--color-white);
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-small {
    max-width: 800px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.header-descriptor {
    font-size: 19.2px;
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: 500;
    color: #111111;
    letter-spacing: 0.5px;
    text-align: center;
    flex-grow: 1;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 6px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color var(--transition-speed);
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
}

.text-red {
    color: var(--color-red);
}

/* Typography & Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: inherit;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--color-mid-gray);
}

.text-lead {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Section Backgrounds */
.section-dark {
    background-color: var(--color-graphite);
    color: var(--color-white);
}

.section-light {
    background-color: var(--color-white);
    color: var(--color-graphite);
}

.section-gray {
    background-color: var(--color-light-gray);
    color: var(--color-graphite);
}

.section-bg-shanghai {
    position: relative;
    overflow: hidden;
}

.section-bg-shanghai::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Реалистичный силуэт делового района (Шанхай Пудун): телебашня, небоскреб "открывашка", Цзинь Мао */
    background: 
        /* 1. Темный оверлей для контраста текста */
        linear-gradient(to top, rgba(44, 47, 51, 0.85) 0%, rgba(44, 47, 51, 0.55) 60%, rgba(44, 47, 51, 0.75) 100%),
        
        /* 2. Шары Жемчужины Востока */
        radial-gradient(circle at 18% 45%, #606369 0%, #606369 8px, transparent 9px),
        radial-gradient(circle at 18% 70%, #606369 0%, #606369 15px, transparent 16px),
        
        /* 3. Ось Жемчужины Востока */
        linear-gradient(to right, transparent 17.6%, #606369 17.6%, #606369 18.4%, transparent 18.4%),
        
        /* 4. Отверстие в "Открывашке" (цвет фона чтобы "прорезать" дырку) */
        linear-gradient(to right, transparent 42%, rgba(44, 47, 51, 0.95) 42%, rgba(44, 47, 51, 0.95) 46%, transparent 46%),
        
        /* 5. Сама "Открывашка" (ШВФЦ) */
        linear-gradient(to right, transparent 40%, #5a5d62 40%, #5a5d62 48%, transparent 48%),
        
        /* 6. Цзинь Мао - Ступень 1 (широкая, низкая) */
        linear-gradient(to right, transparent 65%, #505358 65%, #505358 73%, transparent 73%),
        /* 7. Цзинь Мао - Ступень 2 (средняя) */
        linear-gradient(to right, transparent 66%, #505358 66%, #505358 72%, transparent 72%),
        /* 8. Цзинь Мао - Ступень 3 (узкая) */
        linear-gradient(to right, transparent 67%, #505358 67%, #505358 71%, transparent 71%),
        /* 9. Цзинь Мао - Шпиль */
        linear-gradient(to right, transparent 68.8%, #505358 68.8%, #505358 69.2%, transparent 69.2%),
        
        /* 10. Группа офисных зданий разной высоты */
        linear-gradient(to right, 
            transparent 5%, #4a4d52 5%, #4a4d52 12%, transparent 12%,
            transparent 13%, #3a3d42 13%, #3a3d42 15%, transparent 15%,
            transparent 22%, #4a4d52 22%, #4a4d52 28%, transparent 28%,
            transparent 29%, #3a3d42 29%, #3a3d42 35%, transparent 35%,
            transparent 36%, #404348 36%, #404348 39%, transparent 39%,
            transparent 49%, #4a4d52 49%, #4a4d52 56%, transparent 56%,
            transparent 58%, #3a3d42 58%, #3a3d42 62%, transparent 62%,
            transparent 75%, #404348 75%, #404348 83%, transparent 83%,
            transparent 85%, #4a4d52 85%, #4a4d52 92%, transparent 92%
        );

    background-size: 
        100% 100%,
        100% 100%,
        100% 100%,
        100% 360px, /* Ось Жемчужины */
        100% 18px,  /* Высота отверстия */
        100% 330px, /* Высота Открывашки */
        100% 130px, /* Цзинь Мао низ */
        100% 210px, /* Цзинь Мао средний */
        100% 290px, /* Цзинь Мао верх */
        100% 360px, /* Шпиль Цзинь Мао */
        100% 180px; /* Офисные здания */
        
    background-position: 
        bottom left,
        bottom left,
        bottom left,
        bottom left,
        left bottom 280px, /* Положение отверстия */
        bottom left,
        bottom left,
        bottom left,
        bottom left,
        bottom left,
        bottom left;
        
    background-repeat: no-repeat;
    z-index: 0;
}

.section-bg-shanghai > .container {
    position: relative;
    z-index: 1;
}

.section-bg-abstract-lines {
    position: relative;
    background-color: var(--color-white);
    overflow: hidden;
}

.section-bg-abstract-lines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Абстрактный узор: тонкие светло-серые линии */
    background: 
        repeating-linear-gradient(45deg, #e8e9eb 0px, #e8e9eb 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(-45deg, #e8e9eb 0px, #e8e9eb 1px, transparent 1px, transparent 60px);
    z-index: 0;
}

.section-bg-abstract-lines > .container {
    position: relative;
    z-index: 1;
}

.section-bg-buildings {
    position: relative;
    overflow: hidden;
}

.section-bg-buildings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--color-light-gray) 0%, rgba(244,245,247,0.8) 100%),
                repeating-linear-gradient(90deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px),
                repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 40px);
    z-index: 0;
}

.section-bg-buildings > .container {
    position: relative;
    z-index: 1;
}

/* Grids & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card {
    background: var(--color-light-gray);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--color-red);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-graphite);
}

.card h3.text-red {
    color: var(--color-red);
}

.card p {
    color: var(--color-mid-gray);
    font-size: 15px;
}

.card-jurisdiction {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card-jurisdiction h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.divider-red {
    width: 40px;
    height: 3px;
    background-color: var(--color-red);
    margin-bottom: 20px;
}

/* Steps & UTP */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 30px;
    background: var(--color-light-gray);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 8px;
    transition: background var(--transition-speed);
}

.step:hover {
    background: #ebeef2;
}

.step-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-red);
    margin-right: 20px;
    min-width: 40px;
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-graphite);
}

.step-content p {
    color: var(--color-mid-gray);
}

.utp-block {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.6); /* Темный фон для выделения в темной теме */
    color: var(--color-white);
    border-left: 5px solid var(--color-red);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    position: relative;
}

.utp-block::before {
    content: '✦';
    position: absolute;
    top: -15px;
    left: -18px;
    font-size: 24px;
    color: var(--color-red);
    background: var(--color-white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.utp-content p {
    margin-bottom: 15px;
    font-size: 16px;
}
.utp-content p:last-child {
    margin-bottom: 0;
}
.utp-content em {
    color: var(--color-red);
    font-style: normal;
    font-weight: 600;
}

/* Form */
.form-wrapper {
    background: rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--color-graphite);
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    border-color: var(--color-red);
}

.select-css {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c2f33%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 12px auto;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-speed);
    margin-bottom: 15px;
}

.btn-submit:hover {
    background: var(--color-red-hover);
}

.form-disclaimer {
    font-size: 12px;
    color: var(--color-mid-gray);
    text-align: center;
}

/* Privacy Section */
.section-privacy {
    background: var(--color-dark-gray);
    color: var(--color-white);
    padding: 60px 0;
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0,0,0,0.2);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.privacy-icon {
    font-size: 48px;
}

/* Footer */
.footer {
    background: var(--color-graphite);
    color: var(--color-mid-gray);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    text-align: center;
}

.footer-bureaucratic {
    font-size: 14px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    margin: 0 15px;
    transition: color var(--transition-speed);
    text-decoration: underline;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-copyright {
    font-size: 12px;
}

/* Media Queries */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    
    .header-descriptor {
        position: absolute;
        top: 10px;
        left: 0;
        width: 100%;
        font-size: 12.1px;
    }
    
    .header-logo {
        margin-top: 15px;
    }
    
    .header-action {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    
    .header-container {
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 15px;
    }
    
    .header {
        height: 100px;
    }
    
    body {
        padding-top: 100px;
    }

    .header-logo img {
        height: 36px;
    }

    .header-action {
        position: absolute;
        right: 20px;
        bottom: 15px;
    }

    .header-logo {
        position: absolute;
        left: 20px;
        bottom: 15px;
        margin-top: 0;
    }
    
    .btn-primary {
        padding: 5px 16px;
        font-size: 12px;
    }

    .section { padding: 50px 0; }
    .form-wrapper { padding: 30px 20px; }
    .privacy-content { flex-direction: column; text-align: center; }
}
