:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;

    /* Figma Light Theme Color Tokens */
    --page-bg: #f7faf8;
    --surface-white: #ffffff;
    --surface-card: #eaf5f0;
    --surface-badge: #ddf4e8;
    --border-line: #cadfd3;

    --brand-green: #07894d;
    --brand-green-hover: #067541;
    --brand-green-active: #056236;

    --text-primary: #14251d;
    --text-muted: #52685e;
    --text-light: #f7faf8;

    --focus-ring: rgb(7 137 77 / 35%);

    /* Universal / Fallback System Tokens */
    --surface: #ffffff;
    --surface-muted: #eaf5f0;
    --text: #14251d;
    --muted: #52685e;
    --border: #cadfd3;
    --accent: #07894d;
    --accent-hover: #067541;
    --danger: #a93636;
    --success: #07894d;
    --warning: #845d13;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background-color: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: anywhere;
    word-break: break-word;
}

a {
    color: var(--brand-green);
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-green-hover);
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

::selection {
    color: #ffffff;
    background: var(--brand-green);
}

/* Base Typography */
h1, h2, h3, h4, h5, h6, p, label, dt, dd, li {
    margin-top: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Base Form Elements (Admin & Fallbacks) */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border-line);
    border-radius: 10px;
    background-color: var(--surface-white);
    color: var(--text-primary);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 137, 77, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #8c9b93;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    background-color: var(--brand-green);
    color: var(--text-light);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
    background-color: var(--brand-green-hover);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 137, 77, 0.2);
}

.button-secondary {
    border: 1px solid var(--border-line);
    background-color: var(--surface-badge);
    color: var(--text-primary);
}

.button-secondary:hover {
    background-color: #cceedc;
    color: var(--text-primary);
}

.button-danger {
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: var(--danger);
}

.button-danger:hover {
    border-color: var(--danger);
    background-color: var(--danger);
    color: #ffffff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.auth-card {
    width: min(100% - 48px, 480px);
    margin: 10vh auto 72px;
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    background-color: var(--surface-white);
    box-shadow: 0 6px 28px rgba(20, 37, 29, 0.05);
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-card form > button {
    margin-top: 8px;
    height: 48px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Public Site Header & Navigation
   ========================================================================== */

.site-header {
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--border-line);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.site-header-container {
    width: min(100% - 48px, 1264px);
    height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 23px;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
}

.brand-logo:hover {
    color: var(--brand-green-hover);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--brand-green);
}

.nav-cta-btn {
    background-color: var(--brand-green);
    color: var(--text-light) !important;
    font-size: 14px;
    font-weight: 700;
    height: 42px;
    padding: 0 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta-btn:hover {
    background-color: var(--brand-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 137, 77, 0.2);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 16px;
    gap: 8px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--brand-green);
    color: var(--text-light);
    border-radius: 12px;
}

.btn-primary:hover {
    background-color: var(--brand-green-hover);
    color: var(--text-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(7, 137, 77, 0.25);
}

.btn-primary:active {
    background-color: var(--brand-green-active);
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--surface-badge);
    color: var(--text-primary);
    border-radius: 12px;
}

.btn-secondary:hover {
    background-color: #cceedc;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-hero {
    height: 62px;
    font-size: 18px;
    padding: 0 32px;
    gap: 8px;
}

.btn-cta-light {
    background-color: var(--text-light);
    color: var(--brand-green);
    border-radius: 12px;
    height: 62px;
    padding: 0 36px;
    font-size: 18px;
    font-weight: 700;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-cta-light:hover {
    background-color: #ffffff;
    color: var(--brand-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Pill Badges & Common Components
   ========================================================================== */

.badge-pill {
    display: inline-flex;
    align-items: center;
    background-color: var(--surface-badge);
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 19px;
    height: 38px;
    padding: 0 18px;
    margin-bottom: 24px;
}

.arrow-icon {
    display: inline-block;
    transition: transform 0.15s ease;
}

.btn:hover .arrow-icon {
    transform: translate(2px, -2px);
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--border-line);
    margin: 64px 0 56px;
}

/* ==========================================================================
   Landing Page Layout
   ========================================================================== */

.landing-page {
    width: 100%;
}

.landing-container {
    width: min(100% - 48px, 1264px);
    max-width: 1264px;
    margin-inline: auto;
    padding: 40px 0 80px;
    min-width: 0;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
    padding-top: 24px;
    min-width: 0;
}

.hero-copy {
    min-width: 0;
    max-width: 100%;
}

.hero-title {
    font-size: clamp(38px, 5.6vw, 82px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

.hero-summary {
    font-size: clamp(17px, 1.6vw, 23px);
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 800px;
    margin: 0 0 36px;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* Hero Event Fact Card */
.event-card {
    background-color: var(--surface-card);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(20, 37, 29, 0.03);
    min-width: 0;
    max-width: 100%;
}

.event-card-date-badge {
    background-color: var(--surface-badge);
    color: var(--brand-green);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 18px;
    padding: 8px 20px;
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card-time {
    font-size: 35px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 16px;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card-divider {
    border: 0;
    border-top: 1px solid var(--border-line);
    margin: 0 0 18px;
}

.event-card-place {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card-address {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card .event-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 24px;
    padding: 12px 0;
    border-top: 1px dashed var(--border-line);
    border-bottom: 1px dashed var(--border-line);
    font-size: 14px;
    min-width: 0;
}

.event-fact-row {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}

.event-fact-row dt {
    color: var(--text-muted);
    font-weight: 600;
}

.event-fact-row dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
}

.btn-card-cta {
    width: 100%;
    height: 60px;
    font-size: 19px;
    font-weight: 700;
    border-radius: 10px;
    gap: 8px;
}

/* ==========================================================================
   Content Sections (Program / What awaits you, Speakers, About)
   ========================================================================== */

.content-section {
    padding: 24px 0 32px;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: clamp(32px, 3.4vw, 49px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 36px;
}

/* Reasons / Program Grid ("Что тебя ждёт") */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    min-width: 0;
}

.reason-card {
    background-color: var(--surface-card);
    border-radius: 20px;
    padding: 28px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    min-width: 0;
    max-width: 100%;
}

.reason-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 37, 29, 0.05);
}

.reason-index {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 16px;
}

.reason-title {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.reason-text {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Speaker Section */
.speaker-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.speaker-card {
    background-color: var(--surface-card);
    border-radius: 22px;
    padding: 30px;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    border: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
    max-width: 100%;
}

.speaker-card:hover {
    transform: translateY(-2px);
}

.speaker-photo {
    width: 155px;
    height: 155px;
    border-radius: 18px;
    background-color: var(--surface-badge);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.speaker-photo__placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.speaker-photo__placeholder span {
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-green);
    letter-spacing: -0.02em;
}

.speaker-photo--empty .speaker-photo__placeholder,
.speaker-photo--failed .speaker-photo__placeholder {
    display: flex;
}

.speaker-card__details {
    min-width: 0;
    max-width: 100%;
}

.speaker-card__details h3 {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.speaker-card__details p {
    font-size: clamp(17px, 1.5vw, 22px);
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.speaker-card__details strong {
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* About workshop section */
.about-card {
    background-color: var(--surface-card);
    border-radius: 22px;
    padding: 32px;
    min-width: 0;
    max-width: 100%;
}

.about-card .multiline {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
}

/* Final CTA Banner */
.cta-banner-section {
    padding: 32px 0 16px;
}

.cta-banner {
    background-color: var(--brand-green);
    border-radius: 22px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 12px 32px rgba(7, 137, 77, 0.2);
    min-width: 0;
    max-width: 100%;
}

.cta-banner-copy {
    min-width: 0;
    max-width: 100%;
}

.cta-banner-title {
    font-size: clamp(24px, 2.5vw, 35px);
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 8px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cta-banner-subtitle {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text-light);
    opacity: 0.92;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ==========================================================================
   Registration Form & Success Pages
   ========================================================================== */

.form-page {
    width: min(100% - 48px, 680px);
    margin: 48px auto 80px;
}

.form-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-line);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(20, 37, 29, 0.04);
}

.form-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.form-intro {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 28px;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border-line);
    border-radius: 10px;
    background-color: var(--surface-white);
    color: var(--text-primary);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 137, 77, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8c9b93;
}

.checkbox-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 4px 0 8px;
}

.checkbox-row label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 450;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--brand-green);
    cursor: pointer;
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.btn-submit {
    height: 54px;
    padding: 0 32px;
    font-size: 17px;
    gap: 8px;
}

.btn-cancel {
    height: 54px;
    padding: 0 24px;
    font-size: 16px;
}

/* Form Validation & Accessibility */
.form-required-legend {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.required {
    color: var(--danger);
    font-weight: 700;
    margin-left: 2px;
}

.field-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.field-error {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
    margin-top: 4px;
    line-height: 1.4;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: var(--danger) !important;
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(169, 54, 54, 0.18) !important;
}

.checkbox-row--error label {
    color: var(--danger);
}

button:disabled,
.btn:disabled,
.button-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Success Page */
.success-page {
    width: min(100% - 48px, 640px);
    margin: 64px auto 80px;
}

.success-card {
    background-color: var(--surface-white);
    border: 1px solid var(--border-line);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 28px rgba(20, 37, 29, 0.05);
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--surface-badge);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.success-text {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 480px;
    margin: 0 0 32px;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* Empty State / Not configured */
.empty-state {
    width: min(100% - 48px, 680px);
    margin: 64px auto;
}

.empty-state-card {
    background-color: var(--surface-card);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-state-card h1 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0;
}

.empty-state-card p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 0 28px;
}

/* System Alerts / Messages */
.message {
    padding: 18px 20px;
    border-radius: 14px;
    margin: 16px 0 24px;
}

.message h2, .message h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.message ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.message li {
    font-size: 14px;
    margin-bottom: 4px;
}

.message--error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.message--warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.message-actions {
    margin-top: 18px;
}

/* Legacy & Admin Helpers */
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ==========================================================================
   Admin Panel Preservation Styles
   ========================================================================== */

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 8px 0 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    min-width: 0;
}

.nav-logout {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    color: var(--brand-green);
}

.admin-nav a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.admin-shell {
    width: min(100% - 48px, 1100px);
    max-width: 1100px;
    margin: 24px auto 72px;
    padding: 0;
    background: transparent;
    min-width: 0;
}

.admin-shell--wide {
    width: min(100% - 48px, 1240px);
    max-width: 1240px;
    min-width: 0;
}

.admin-shell > header,
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

.admin-shell > header h1,
.page-heading h1 {
    margin-bottom: 5px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-shell > header p,
.page-heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-list {
    display: grid;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
}

a.admin-list-item:hover strong {
    color: var(--accent);
}

.admin-list-item p {
    margin: 5px 0;
}

.admin-list-item strong,
.admin-list-item small {
    display: block;
}

.admin-list-item small,
.muted {
    color: var(--muted);
    font-weight: 400;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 24px 0;
    border-block: 1px solid var(--border);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    border-right: 1px solid var(--border);
    background: transparent;
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card strong {
    font-size: 30px;
    line-height: 1.1;
}

.stat-card span {
    color: var(--muted);
    font-size: 14px;
}

.button-secondary {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 550;
    cursor: pointer;
}

.button-secondary:hover {
    background: var(--surface-muted);
}

.button-danger {
    padding: 9px 16px;
    border: 1px solid #d7aaaa;
    border-radius: 6px;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-weight: 550;
    cursor: pointer;
}

.button-danger:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.speaker-photo--admin {
    width: 116px;
    height: 140px;
    margin: 8px 0 16px;
    border-radius: 8px;
    background-color: var(--surface-badge);
}

.speaker-photo--admin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.field-error {
    color: #8c2929;
    font-size: 13px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border-line);
    background-color: var(--page-bg);
    padding: clamp(32px, 5vw, 48px) 0 clamp(40px, 5vw, 56px);
    margin-top: clamp(48px, 6vw, 72px);
}

.site-footer-container {
    width: min(100% - 48px, 1264px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px 32px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.footer-logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.footer-organizers {
    margin: 0;
    font-size: 14px;
    color: var(--brand-green);
    font-weight: 600;
}

.site-footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 520px;
}

.footer-meta {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-privacy {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 36px;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header-container {
        height: 66px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background-color: var(--surface-white);
        border-bottom: 1px solid var(--border-line);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 12px 30px rgba(20, 37, 29, 0.08);
        display: none;
    }

    .nav-menu.nav-menu--open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }

    .nav-cta-btn {
        width: 100%;
        height: 48px;
        font-size: 15px;
    }

    .hero-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .event-card {
        width: 100%;
        max-width: 480px;
    }

    .reasons-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .speaker-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 24px;
    }

    .speaker-photo {
        width: 120px;
        height: 120px;
    }

    .cta-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 32px;
    }

    .cta-banner-action {
        width: 100%;
    }

    .btn-cta-light {
        width: 100%;
    }

    .admin-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 0 16px;
        margin-bottom: 20px;
        width: 100%;
    }

    .nav-logout {
        order: 1;
        align-self: flex-end;
        margin-left: 0;
    }

    .nav-logout button {
        min-height: 34px;
        padding: 6px 14px;
        font-size: 13px;
    }

    .admin-nav-links {
        order: 2;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
    }

    .admin-nav a {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        border-radius: 8px;
        background-color: var(--surface-card);
        color: var(--text-primary);
        font-size: 13px;
        font-weight: 550;
        text-decoration: none;
        line-height: 1.25;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .admin-nav a:hover,
    .admin-nav a[aria-current="page"] {
        background-color: var(--surface-badge);
        color: var(--brand-green);
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .site-header-container,
    .landing-container,
    .form-page,
    .success-page,
    .empty-state,
    .admin-shell,
    .admin-shell--wide,
    .site-footer-container {
        width: min(100% - 32px, 1264px);
    }

    .site-footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-title {
        font-size: 39px;
    }

    .hero-summary {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero {
        width: 100%;
        height: 56px;
        font-size: 17px;
    }

    .event-card {
        padding: 24px;
        border-radius: 20px;
    }

    .event-card-time {
        font-size: 30px;
    }

    .event-card-place {
        font-size: 24px;
    }

    .event-card-address {
        font-size: 17px;
    }

    .section-title {
        font-size: 33px;
        margin-bottom: 24px;
    }

    .speaker-card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
        border-radius: 18px;
    }

    .speaker-photo {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }

    .speaker-photo__placeholder span {
        font-size: 24px;
    }

    .speaker-card__details h3 {
        font-size: 24px;
    }

    .speaker-card__details p {
        font-size: 17px;
    }

    .speaker-card__details strong {
        font-size: 15px;
    }

    .cta-banner {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .cta-banner-title {
        font-size: 26px;
    }

    .cta-banner-subtitle {
        font-size: 15px;
    }

    .form-card,
    .success-card,
    .empty-state-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }

    .admin-shell,
    .admin-shell--wide {
        width: min(100% - 32px, 1240px);
    }

    .admin-shell > header,
    .page-heading,
    .admin-list-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .admin-list-item > div {
        width: 100%;
        min-width: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .stat-card:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
