:root {
    --page-bg: #eef2f4;
    --page-bg-accent: #d9e2e8;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: #f8faf8;
    --surface-muted: #edf2f0;
    --border: rgba(40, 58, 74, 0.12);
    --text: #1a2733;
    --muted: #667482;
    --brand: #22384c;
    --brand-strong: #172736;
    --brand-soft: #e6ecef;
    --accent: #4fa6ff;
    --accent-soft: rgba(79, 166, 255, 0.16);
    --accent-rgb: 79, 166, 255;
    --shadow-soft: 0 24px 60px rgba(16, 24, 32, 0.09);
    --shadow-card: 0 12px 32px rgba(16, 24, 32, 0.07);
    --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(var(--accent-rgb), 0.14), transparent 22%),
        linear-gradient(180deg, var(--page-bg-accent) 0%, var(--page-bg) 22%, #f6f7f5 100%);
    color: var(--text);
    overflow-x: auto;
}

h1,
h2,
h3,
.panel-title,
.footer-block-title,
.footer-eyebrow,
.brand-kicker {
    font-family: var(--font-display);
}

h1,
h2,
h3,
.panel-title,
.footer-block-title,
.brand-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes fadeLift {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(26, 88, 154, 0.24);
    }

    50% {
        box-shadow: 0 16px 34px rgba(31, 107, 184, 0.32);
    }
}

.dashboard {
    display: flex;
    align-items: start;
    flex-wrap: nowrap;
    gap: 28px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 32px 28px 48px;
    background: transparent;
    animation: fadeLift 0.7s ease both;
}

.side-menu {
    order: 1;
    flex: 0 0 320px;
    max-width: 320px;
}

.personal-data,
.offers-section {
    order: 2;
    flex: 1 1 auto;
}

.personal-data {
    min-width: 920px;
}

.offers-section {
    min-width: 0;
}

.side-menu,
.profile-settings,
.personal-data,
.offers-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.personal-data,
.offers-section {
    position: relative;
    overflow: hidden;
}

.personal-data::before,
.offers-section::before {
    content: "";
    position: absolute;
    inset: 0 24px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.45) 50%, transparent 100%);
}

.side-menu,
.personal-data,
.offers-section,
.site-footer {
    animation: fadeLift 0.7s ease both;
}

.side-menu {
    position: sticky;
    top: 24px;
    height: fit-content;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 247, 246, 0.96) 100%);
    overflow: hidden;
}

.menu-photo {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f4f7f6 100%);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    position: relative;
}

.menu-photo::after {
    content: "";
    position: absolute;
    inset: auto 16px -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.45) 50%, transparent 100%);
}

.menu-photo-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    object-fit: cover;
    background: #dde3e7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.menu-photo-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.menu-photo-change,
.menu-photo-save {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    min-height: 54px;
    border-radius: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}

.menu-photo-change {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, var(--brand) 0%, #2f5f92 100%);
    box-shadow: 0 14px 28px rgba(35, 87, 145, 0.22);
}

.menu-photo-change:hover,
.menu-photo-change:focus-visible {
    background: linear-gradient(135deg, var(--brand-strong) 0%, #244e79 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(28, 72, 120, 0.26);
}

.menu-photo-save {
    border: 1px solid rgba(21, 83, 63, 0.18);
    background: linear-gradient(135deg, #2e8b70 0%, #1f6b57 100%);
    box-shadow: 0 14px 28px rgba(31, 107, 87, 0.22);
}

.menu-photo-save:hover,
.menu-photo-save:focus-visible {
    background: linear-gradient(135deg, #25745d 0%, #175142 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(21, 81, 66, 0.26);
}

.menu-photo-save:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 10px 20px rgba(31, 107, 87, 0.12);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.menu-list a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 13px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2e8b70 0%, #1f6b57 100%);
    border: 1px solid rgba(21, 83, 63, 0.18);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(31, 107, 87, 0.16);
}

.menu-list a::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.92) 0%, rgba(var(--accent-rgb), 0.2) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.menu-list a:nth-child(1) { animation: fadeLift 0.45s ease 0.08s both; }
.menu-list a:nth-child(2) { animation: fadeLift 0.45s ease 0.12s both; }
.menu-list a:nth-child(3) { animation: fadeLift 0.45s ease 0.16s both; }
.menu-list a:nth-child(4) { animation: fadeLift 0.45s ease 0.2s both; }
.menu-list a:nth-child(5) { animation: fadeLift 0.45s ease 0.24s both; }
.menu-list a:nth-child(6) { animation: fadeLift 0.45s ease 0.28s both; }

.menu-list a.active {
    background: linear-gradient(135deg, var(--brand) 0%, #2a455d 100%);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: 0 12px 24px rgba(23, 39, 54, 0.22);
}

.menu-list a.active:hover,
.menu-list a.active:focus-visible {
    background: linear-gradient(135deg, #2e8b70 0%, #1f6b57 100%);
    border-color: rgba(21, 83, 63, 0.24);
    color: #fff;
    transform: translateX(2px);
    box-shadow: 0 12px 24px rgba(31, 107, 87, 0.24);
}

.menu-list a.active::before,
.menu-list a:hover::before,
.menu-list a:focus-visible::before {
    opacity: 1;
}

.menu-list a:hover,
.menu-list a:focus-visible {
    background: linear-gradient(135deg, #25745d 0%, #175142 100%);
    border-color: rgba(21, 83, 63, 0.24);
    color: #ffffff;
    transform: translateX(2px);
    box-shadow: 0 12px 24px rgba(31, 107, 87, 0.22);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.profile-type {
    display: grid;
    gap: 6px;
    min-width: 220px;
}

.panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-strong);
    line-height: 1.1;
}

.profile-settings {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #f9fafb;
    margin-bottom: 20px;
}

.profile-photo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: #e5e7eb;
}

.profile-info {
    display: grid;
    gap: 6px;
}

.profile-name {
    margin: 0;
    font-size: 18px;
}

.profile-role {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.settings-group {
    margin-top: 20px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8faf9 100%);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.offers-section #excursion-language-block {
    margin-top: 0;
}

.settings-group:hover {
    box-shadow: 0 18px 36px rgba(16, 24, 32, 0.08);
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.settings-group:nth-of-type(1) { animation: fadeLift 0.45s ease 0.1s both; }
.settings-group:nth-of-type(2) { animation: fadeLift 0.45s ease 0.14s both; }
.settings-group:nth-of-type(3) { animation: fadeLift 0.45s ease 0.18s both; }
.settings-group:nth-of-type(4) { animation: fadeLift 0.45s ease 0.22s both; }
.settings-group:nth-of-type(5) { animation: fadeLift 0.45s ease 0.26s both; }
.settings-group:nth-of-type(6) { animation: fadeLift 0.45s ease 0.3s both; }
.settings-group:nth-of-type(7) { animation: fadeLift 0.45s ease 0.34s both; }
.settings-group:nth-of-type(8) { animation: fadeLift 0.45s ease 0.38s both; }

.settings-group[data-collapsible] > .panel-header {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.settings-group[data-collapsible] > .panel-header::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.settings-group[data-collapsible]:not(.is-collapsed) > .panel-header::after {
    transform: rotate(-135deg);
}

.settings-group[data-collapsible].is-collapsed > :not(.panel-header) {
    display: none;
}

.section-subtitle {
    margin: 0;
    font-size: 16px;
}

.field-row {
    display: grid;
    gap: 8px;
}

.personal-data .field-row {
    position: relative;
    padding-top: 10px;
}

.field-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-grid > .panel-header {
    grid-column: 1 / -1;
}

.contact-grid .field-row {
    gap: 10px;
}

.contact-grid .field-inline {
    flex-direction: column;
    align-items: stretch;
}

.stacked-actions .field-row {
    gap: 10px;
}

.stacked-actions .field-inline {
    flex-direction: column;
    align-items: stretch;
}


.field-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.personal-data .field-label {
    position: absolute;
    top: 0;
    left: 12px;
    padding: 0 8px;
    background: var(--surface);
    z-index: 1;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.settings-group > .field-label,
.license-item > .field-label {
    position: static;
    padding: 0;
    background: transparent;
    line-height: 1.3;
    white-space: normal;
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: linear-gradient(180deg, #fcfcfb 0%, #f5f7f6 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.textarea {
    min-height: 140px;
    line-height: 1.6;
}

.field-input:hover {
    background: #ffffff;
    border-color: rgba(34, 56, 76, 0.18);
}

.field-input:focus {
    outline: none;
    border-color: rgba(var(--accent-rgb), 0.58);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
    background: #ffffff;
}

select.field-input {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fbfcfb;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%236f8fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    padding-right: 34px;
}

.field-grid {
    display: grid;
    gap: 12px;
}

.field-grid.two-column {
    grid-template-columns: 1fr 1fr;
}

.textarea {
    resize: vertical;
}

.helper-text {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.field-error {
    margin: 2px 0 0;
    font-size: 12px;
    color: #c0392b;
    min-height: 16px;
}

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

.field-input.is-invalid {
    border-color: rgba(192, 57, 43, 0.55);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
    background: #fffdfd;
}

.phone-group {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.video-presentation-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-presentation-filename {
    font-size: 13px;
    color: var(--muted);
    word-break: break-word;
}

.toggle-group {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.toggle-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
}

.toggle-btn.is-active,
.toggle-btn:hover,
.toggle-btn:focus-visible {
    background: var(--brand);
    color: #ffffff;
}

.top-nav,
.site-footer,
.footer-bottom {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 30%),
        linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 18px 32px;
    color: #fff;
    gap: 24px;
    box-shadow: 0 16px 36px rgba(12, 29, 45, 0.2);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-nav::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.75) 50%, transparent 100%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin-left: auto;
}

.brand-kicker {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e6eeff;
}

.brand-subtitle {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(12, 29, 45, 0.14);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    background: rgba(34, 56, 76, 0.06);
}

.chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: rotate(45deg);
    margin-left: 2px;
}

.lang-menu {
    position: absolute;
    min-width: 200px;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    display: none;
    z-index: 10;
}

.lang-menu.is-open {
    display: grid;
    gap: 6px;
}

.multi-lang-select {
    position: relative;
    width: 100%;
}

.multi-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.multi-lang-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-lang-value.is-placeholder {
    color: var(--muted);
}

.multi-lang-select.is-open .multi-lang-toggle {
    border-color: rgba(var(--accent-rgb), 0.58);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
    background: #ffffff;
}

.multi-lang-select.is-open .chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}

.multi-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 12;
}

.multi-lang-menu.is-open {
    display: grid;
}

.multi-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.multi-lang-option:hover,
.multi-lang-option:focus-visible {
    background: var(--surface-muted);
}

.multi-lang-option.is-active {
    background: linear-gradient(135deg, var(--brand) 0%, #2a455d 100%);
    color: #ffffff;
}

.multi-lang-option.is-active .flag {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.multi-lang-option-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.multi-lang-check {
    opacity: 0;
    font-size: 14px;
    font-weight: 700;
}

.multi-lang-option.is-active .multi-lang-check {
    opacity: 1;
}

.lang-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible {
    background: var(--surface-muted);
}

.lang-option.is-active {
    background: linear-gradient(135deg, var(--brand) 0%, #2a455d 100%);
    color: #ffffff;
}

.lang-option.is-active .flag {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.flag-eng {
    background:
        linear-gradient(45deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(0deg, transparent 40%, #c8102e 40% 60%, transparent 60%),
        linear-gradient(90deg, transparent 40%, #c8102e 40% 60%, transparent 60%),
        linear-gradient(45deg, transparent 42%, #ffffff 42% 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #ffffff 42% 58%, transparent 58%),
        linear-gradient(0deg, transparent 34%, #ffffff 34% 66%, transparent 66%),
        linear-gradient(90deg, transparent 34%, #ffffff 34% 66%, transparent 66%),
        #012169;
}

.flag-it {
    background: linear-gradient(90deg, #009246 0 33%, #ffffff 33% 66%, #ce2b37 66% 100%);
}

.flag-de {
    background: linear-gradient(#000000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}

.flag-es {
    background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-fr {
    background: linear-gradient(90deg, #0055a4 0 33%, #ffffff 33% 66%, #ef4135 66% 100%);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-settings .btn-secondary,
.profile-settings .btn-secondary:hover,
.profile-settings .btn-secondary:focus-visible {
    background: #ffffff;
}

.btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f5 100%);
    border-color: var(--border);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.top-nav .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.top-nav .btn-secondary:hover,
.top-nav .btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(var(--accent-rgb), 0.38);
}

.top-nav .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #5877e6 100%);
    color: #fffdf8;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.26);
}

.top-nav .btn-primary:hover,
.top-nav .btn-primary:focus-visible {
    background: linear-gradient(135deg, #5f7fff 0%, #4867d4 100%);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f0 100%);
    border-color: rgba(var(--accent-rgb), 0.28);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #2d465b 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(23, 39, 54, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--brand-strong) 0%, #22384c 100%);
    transform: translateY(-1px);
}

.dashboard-actions .btn-primary {
    animation: glowPulse 3.8s ease-in-out infinite;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.dashboard-actions .btn-primary {
    min-width: 220px;
}

.dashboard-actions .btn-secondary {
    min-width: 140px;
}

.fondation-list {
    display: grid;
    gap: 12px;
}

.fondation-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    gap: 12px;
    align-items: end;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.fondation-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    gap: 12px;
    align-items: center;
}

.transport-list {
    display: grid;
    gap: 12px;
}

.transport-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px minmax(180px, 220px) auto;
    gap: 12px;
    align-items: center;
}

.transport-head {
    grid-template-columns: minmax(0, 1fr) 120px minmax(180px, 220px) auto;
}

.fondation-year {
    text-align: center;
}

.transport-year {
    text-align: center;
}

.calendar-shell {
    display: grid;
    gap: 16px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-range-label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

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

.calendar-month {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    padding: 14px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calendar-month:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(16, 24, 32, 0.08);
}

.calendar-month-title {
    margin: 0 0 12px;
    font-size: 16px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.calendar-day-empty {
    min-height: 74px;
}

.calendar-day {
    min-height: 74px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    display: grid;
    align-content: start;
    gap: 6px;
    text-align: left;
    cursor: pointer;
}

.calendar-day:hover,
.calendar-day:focus-visible {
    border-color: rgba(31, 79, 120, 0.35);
    background: #f6fafe;
}

.calendar-day.is-selected {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.calendar-day.is-booked {
    background: #fff1f0;
    border-color: #f2b6b1;
}

.calendar-day.is-free {
    background: #eef9f3;
    border-color: #a8d8ba;
}

.calendar-day-number {
    font-weight: 700;
    color: var(--text);
}

.calendar-day-note {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-editor {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-card);
}

.calendar-editor-date {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.calendar-editor-fields {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
}

.calendar-field {
    display: grid;
    gap: 8px;
}

.calendar-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.calendar-editor-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .top-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard {
        padding: 20px;
    }

    .profile-settings,
    .side-menu {
        position: static;
    }

    .fondation-item {
        grid-template-columns: 1fr;
    }

    .transport-item {
        grid-template-columns: 1fr;
    }

    .calendar-months {
        grid-template-columns: 1fr;
    }

    .calendar-editor-fields {
        grid-template-columns: 1fr;
    }

    .fondation-head {
        grid-template-columns: 1fr;
    }

    .fondation-head span:last-child {
        display: none;
    }
}
* Social media icons block at the bottom of the footer */
.site-footer {
    margin-top: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 28px 28px;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
}

.footer-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.16);
    color: #dce6ff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-block {
    min-width: 180px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 210px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    filter: brightness(0) invert(1);
}

.footer-intro {
    margin: 0;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
    font-size: 15px;
}

.footer-block-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    width: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon svg .social-dot {
    fill: currentColor;
    stroke: none;
}

.social-icon[aria-label="Facebook"] svg,
.social-icon[aria-label="TikTok"] svg,
.social-icon[aria-label="YouTube"] svg {
    fill: currentColor;
    stroke: none;
}

.social-icon:hover {
    background: rgba(var(--accent-rgb), 0.2);
    color: #ffffff;
    border-color: rgba(var(--accent-rgb), 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.footer-company-list li {
    color: rgba(255, 255, 255, 0.66);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
    letter-spacing: 0.01em;
}

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

@media (max-width: 900px) {
    .brand-copy {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding: 36px 18px 20px;
    }
    .footer-block-title {
        font-size: 1rem;
    }

    .footer-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }
}