:root {
    --page-bg: #eef3f1;
    --surface: #ffffff;
    --surface-soft: #f8faf7;
    --surface-warm: #fbf6ec;
    --line: #dbe5df;
    --line-strong: #c8d7d1;
    --text: #1f2f35;
    --muted: #60727a;
    --brand: #145f68;
    --brand-deep: #0f3d46;
    --brand-soft: #dff0ef;
    --sky: #d9edf7;
    --gold: #d49a2a;
    --gold-hover: #bd8620;
    --danger: #c94f4f;
    --shadow-sm: 0 8px 20px rgba(18, 48, 56, 0.08);
    --shadow-md: 0 18px 45px rgba(18, 48, 56, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    background: #fff;
    margin: 0;
    min-height: 100vh;
    padding: 0 16px 32px;
    color: var(--text);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

button,
a,
input {
    font-family: inherit;
    font-style: normal;
}

strong,
em,
h1,
div,
span,
table,
th,
td {
    font-style: normal;
}

button {
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.account-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

.logout-btn,
.header-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--brand);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 750;
    padding: 8px 14px;
    text-decoration: none;
}

.logout-btn:hover,
.header-admin-link:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.header-admin-link {
    background: var(--gold);
    border-color: var(--gold);
    color: #1f2f35;
}

.header-admin-link:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #fff;
}

.app-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 30, 34, 0.58);
    padding: 18px;
}

.app-modal-overlay.is-closing {
    opacity: 0;
}

.app-modal {
    position: relative;
    width: min(100%, 480px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.app-modal-kicker {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.app-modal h2 {
    color: var(--brand-deep);
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0 34px 14px 0;
}

.app-modal-body {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.app-modal-body p + p {
    margin-top: 6px;
}

.app-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.app-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 780;
    padding: 9px 14px;
    text-decoration: none;
}

.app-modal-action-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.app-modal-action-label,
.app-modal-action-detail {
    display: block;
}

.app-modal-action-detail {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.78;
}

.app-modal-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.app-modal-action-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-modal-action.contact-card {
    justify-content: flex-start;
    gap: 10px;
    min-width: min(100%, 210px);
    min-height: 58px;
    padding: 10px 13px;
    text-align: left;
}

.app-modal-action.contact-card.primary .app-modal-action-icon {
    background: rgba(31, 47, 53, 0.12);
}

.app-modal-action.contact-card.secondary .app-modal-action-icon {
    background: var(--brand-soft);
    color: var(--brand);
}

.app-modal-action.primary {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #1f2f35;
}

.app-modal-action.primary:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #fff;
}

.app-modal-action.secondary {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--brand);
}

.app-modal-action.secondary:hover,
.app-modal-action.ghost:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.app-modal-action.danger {
    background: var(--surface);
    border: 1px solid #e7b5b5;
    color: var(--danger);
}

.app-modal-action.danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.app-modal-action.ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--brand);
}

.country-select-wrap {
    position: relative;
}

.country-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.country-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--brand-deep);
    cursor: pointer;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    outline: none;
    padding: 11px 34px 11px 12px;
}

.country-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 95, 104, 0.12);
    background: var(--surface);
}

.contact-request-modal {
    width: min(100%, 520px);
}

.contact-request-object {
    color: var(--brand-deep);
    font-weight: 760;
}

.contact-request-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.contact-request-field {
    display: grid;
    gap: 7px;
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 760;
}

.contact-request-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    padding: 11px 13px;
}

.contact-request-phone {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 10px;
}

.contact-request-input:focus,
.contact-request-phone .country-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 95, 104, 0.12);
    background: var(--surface);
}

.contact-request-error {
    min-height: 18px;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-request-submit {
    width: 100%;
}

.contact-request-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.app-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.app-modal-close:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-deep);
}

@media (max-width: 720px) {
    body {
        padding: 0 12px 24px;
    }

    .account-actions {
        justify-self: start;
        flex-wrap: wrap;
    }

    .app-modal {
        padding: 20px;
    }

    .app-modal-actions {
        flex-direction: column;
    }

    .app-modal-action {
        width: 100%;
    }

    .contact-request-phone {
        grid-template-columns: 1fr;
    }
}
