/* ==========================================================================
   Restrained Executive Corporate Theme (Stripe Press / Swiss Typographic Grid)
   Zero Cards • Open Architectural Layout • Large Transparent Logos
   ========================================================================== */
:root {
    --bg-main: #0a0b0e;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #8892b0;
    
    --accent-aws: #ff9900;
    --accent-aws-hover: #ffad33;
    
    --border-line: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.1rem);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

/* ==========================================================================
   Buttons (Guaranteed Comfortable Padding & Executive Dimensions)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2.25rem;
    font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);
    min-height: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-aws);
    outline-offset: 4px;
}

.btn-primary {
    background: var(--accent-aws);
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-aws-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.25);
}

.btn-header {
    padding: 0.65rem 1.75rem;
    font-size: 0.95rem;
    min-height: 2.6rem;
}

.btn-hero {
    padding: 1.125rem 3rem;
    font-size: 1.1rem;
    min-height: 3.5rem;
}

.btn-summary {
    padding: 1rem 2.75rem;
    font-size: 1.05rem;
}

.btn-submit {
    flex-shrink: 0;
    padding: 1.125rem 3.5rem;
    font-size: 1.1rem;
    min-height: 3.5rem;
}

/* ==========================================================================
   Executive Top Header
   ========================================================================== */
.executive-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 11, 14, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-line);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(5rem, 8vh, 6rem);
}

.brand-link {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.65rem);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 3vw, 3rem);
}

/* Large Transparent Logos */
.header-logos {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-aws {
    height: clamp(3.2rem, 5vw, 4.2rem);
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

.logo-muk {
    height: clamp(2.3rem, 3.8vw, 3.1rem);
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

/* ==========================================================================
   Editorial Hero Section (Open Architectural Grid)
   ========================================================================== */
.hero-section {
    padding: clamp(5.5rem, 12vh, 8.5rem) 0 clamp(4.5rem, 8vh, 6rem);
    border-bottom: 1px solid var(--border-line);
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: clamp(0.9rem, 0.2vw + 0.85rem, 1.05rem);
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3.5rem;
}

.meta-sep {
    color: var(--border-line);
}

.meta-accent {
    color: var(--accent-aws);
}

.hero-main-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr));
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: 1.25rem;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw + 1rem, 6.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw + 0.8rem, 2rem);
    font-weight: 700;
    color: var(--accent-aws);
}

.hero-lead-col {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-lead {
    font-size: clamp(1.15rem, 0.4vw + 1rem, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ==========================================================================
   Speaker & Invitation Open Section
   ========================================================================== */
.speaker-section {
    padding: clamp(4.5rem, 9vh, 6.5rem) 0;
    border-bottom: 1px solid var(--border-line);
}

.speaker-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.speaker-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.speaker-photo {
    width: clamp(6.5rem, 12vw, 8.5rem);
    height: clamp(6.5rem, 12vw, 8.5rem);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--accent-aws);
}

.speaker-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.speaker-name {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
}

.speaker-role {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.speaker-company {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-aws);
    margin-top: 0.25rem;
}

.invitation-col {
    border-left: 1px solid var(--border-line);
    padding-left: clamp(2rem, 4vw, 3.5rem);
}

.invitation-text {
    font-size: clamp(1.15rem, 0.4vw + 1rem, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   Program Section ("Что вы узнаете") - Open Typographic Rows
   ========================================================================== */
.program-section {
    padding: clamp(5rem, 10vh, 7.5rem) 0;
    border-bottom: 1px solid var(--border-line);
}

.section-heading-row {
    margin-bottom: clamp(3rem, 6vh, 4.5rem);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.program-rows {
    display: flex;
    flex-direction: column;
}

.program-row {
    display: flex;
    align-items: baseline;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 2.5vw, 2rem) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.program-row:hover {
    padding-left: 0.75rem;
}

.row-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-aws);
    width: 3rem;
    flex-shrink: 0;
}

.row-content {
    font-size: clamp(1.1rem, 0.3vw + 0.95rem, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

.row-qa {
    border-bottom: none;
    padding-top: 2rem;
}

.qa-pill {
    background: var(--accent-aws);
    color: #000000;
    padding: 0.25rem 0.65rem;
    border-radius: 0.25rem;
    width: auto !important;
    min-width: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Benefits Section ("Почему стоит присоединиться?")
   ========================================================================== */
.benefits-section {
    padding: clamp(5rem, 10vh, 7.5rem) 0;
    border-bottom: 1px solid var(--border-line);
}

.benefits-header {
    margin-bottom: clamp(3rem, 6vh, 4rem);
}

.section-subtitle {
    font-size: clamp(1.15rem, 0.3vw + 1rem, 1.35rem);
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(4rem, 8vh, 6rem);
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.check-mark {
    color: var(--accent-aws);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-row p {
    font-size: clamp(1.1rem, 0.3vw + 0.95rem, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

.summary-row {
    padding-top: clamp(3rem, 6vh, 4.5rem);
    border-top: 1px solid var(--border-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.summary-text {
    flex: 1 1 auto;
    max-width: 44rem;
    font-size: clamp(1.15rem, 0.3vw + 1rem, 1.35rem);
    color: var(--text-primary);
    line-height: 1.65;
}

/* ==========================================================================
   Registration Form Section
   ========================================================================== */
.reg-section {
    padding: clamp(5.5rem, 10vh, 8rem) 0;
}

.reg-container {
    max-width: 58rem;
}

.reg-title {
    margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 2rem;
}

.field-item {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.field-item label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.field-item input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-line);
    padding: 1.125rem 1.35rem;
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    min-height: 3.5rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.field-item input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.field-item input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-aws);
}

.form-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-line);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    cursor: pointer;
    flex: 1 1 auto;
    max-width: 32rem;
}

.privacy-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid var(--border-line);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    margin-top: 0.15rem;
    position: relative;
    transition: all 0.2s ease;
}

.privacy-checkbox input:checked + .checkbox-box {
    background: var(--accent-aws);
    border-color: var(--accent-aws);
}

.privacy-checkbox input:focus-visible + .checkbox-box {
    outline: 2px solid var(--accent-aws);
    outline-offset: 2px;
}

.privacy-checkbox input:checked + .checkbox-box::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 0.15rem;
    width: 0.38rem;
    height: 0.72rem;
    border: solid #000000;
    border-width: 0 0.15rem 0.15rem 0;
    transform: rotate(45deg);
}

.privacy-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Minimalist Success Page
   ========================================================================== */
.success-section {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3rem, 8vh, 6rem) 0;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 46rem;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.35rem;
    border: 1px solid var(--accent-aws);
    color: var(--accent-aws);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.success-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.success-lead {
    font-size: clamp(1.15rem, 0.4vw + 1rem, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

.success-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 3rem;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-line);
    border-radius: 0.5rem;
}

/* ==========================================================================
   Executive Footer
   ========================================================================== */
.executive-footer {
    border-top: 1px solid var(--border-line);
    padding: 0.5rem 0;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.footer-layout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.executive-footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Overrides (Compacting Whitespace & Gaps for Mobile/Tablet)
   ========================================================================== */
@media (max-width: 60rem) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-meta-row {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }

    .hero-main-split {
        row-gap: 1.25rem;
        column-gap: 2rem;
    }

    .hero-lead {
        margin-bottom: 1.75rem;
    }

    .speaker-section,
    .program-section,
    .benefits-section,
    .reg-section {
        padding: 3rem 0;
    }

    .speaker-layout,
    .benefits-list {
        gap: 2rem;
    }

    .section-heading-row,
    .benefits-header,
    .reg-title {
        margin-bottom: 2rem;
    }

    .invitation-col {
        border-left: none;
        border-top: 1px solid var(--border-line);
        padding-left: 0;
        padding-top: 1.75rem;
    }
    
    .speaker-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    
    .summary-row {
        padding-top: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .summary-text {
        max-width: 100%;
        width: 100%;
    }

    .benefits-list {
        margin-bottom: 2.5rem;
    }
    
    .form-bottom {
        padding-top: 1.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .privacy-checkbox {
        max-width: 100%;
        width: 100%;
    }
    
    .btn-submit {
        width: 100%;
    }

    .executive-footer {
        padding: 0.5rem 0;
    }
}

@media (max-width: 48rem) {
    .header-grid {
        height: 5rem;
    }

    .header-logos {
        gap: 0.6rem;
    }

    .logo-aws {
        height: 2.75rem;
    }

    .logo-muk {
        height: 2rem;
    }

    .btn-header {
        padding: 0.5rem 1.15rem;
        font-size: 0.85rem;
        min-height: 2.35rem;
    }

    .hero-section {
        padding: 2.25rem 0 2rem;
    }

    .hero-meta-row {
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-lead {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .speaker-section,
    .program-section,
    .benefits-section,
    .reg-section {
        padding: 2.25rem 0;
    }

    .speaker-photo {
        width: 5.5rem;
        height: 5.5rem;
    }

    .speaker-name {
        font-size: 1.5rem;
    }

    .invitation-text,
    .summary-text {
        font-size: 1.05rem;
    }

    .program-row {
        padding: 1.15rem 0;
        gap: 1rem;
    }

    .row-num {
        font-size: 1rem;
        width: 2.25rem;
    }

    .qa-pill {
        width: auto !important;
        min-width: 3.5rem !important;
    }

    .row-content,
    .benefit-row p {
        font-size: 1rem;
    }

    .fields-grid {
        gap: 1.25rem;
    }

    .reg-form {
        gap: 1.5rem;
    }

    .field-item input {
        min-height: 3.125rem;
        padding: 0.875rem 1rem;
    }
}
