* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background-color: #f6f6f6;
    font-family: Arial, sans-serif;
    color: #222222;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: inherit;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 20px 16px;
}

/* ---------------------------------
   Global content pages
--------------------------------- */

.card {
    width: 100%;
    max-width: 960px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.header {
    background-color: #e8f4f0;
    padding: 28px 24px 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo {
    width: 100%;
    max-width: 120px;
}

.divider {
    height: 2px;
    background-color: #F59E0B;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 0;
    min-height: 0;
}

.content-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 44px;
}

.page-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #227755;
}

.page-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #111111;
}

.page-description {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

.construction-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.note {
    padding: 16px 18px;
    margin: 18px 0 22px;
    background-color: #f8faf9;
    border: 1px solid #dfe9e5;
    border-radius: 10px;
}

.contact-box {
    padding: 18px;
    margin-top: 18px;
    background-color: #f8faf9;
    border: 1px solid #dfe9e5;
    border-radius: 10px;
}

.footer {
    background-color: #e8f4f0;
    padding: 18px 20px;
    text-align: center;
    flex-shrink: 0;
}

.copyright {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5f6b66;
    letter-spacing: 0.2px;
}

/* ---------------------------------
   Global navigation
--------------------------------- */

.top-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e9e9e9;
    padding: 14px 18px;
    flex-shrink: 0;
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.top-nav-link,
.top-nav-button,
.mobile-nav-toggle,
.mobile-nav-link,
.mobile-language-toggle {
    appearance: none;
    border: 1px solid transparent;
    background-color: transparent;
    color: #2f3a36;
    font: inherit;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.top-nav-link,
.top-nav-button {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.top-nav-link:hover,
.top-nav-link:focus-visible,
.top-nav-button:hover,
.top-nav-button:focus-visible {
    background-color: #f7fbf9;
    border-color: #cfe1db;
    color: #227755;
    outline: none;
}

.top-nav-link.is-active {
    background-color: #edf7f3;
    border-color: #b8d8ca;
    color: #1d6a4b;
}

.language-menu {
    position: relative;
}

.top-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.language-menu-caret {
    font-size: 11px;
    line-height: 1;
    color: #5f6b66;
    transition: transform 0.18s ease;
}

.language-menu.is-open .language-menu-caret {
    transform: rotate(180deg);
}

.language-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    display: none;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #d9e2de;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    z-index: 20;
}

.language-menu.is-open .language-menu-panel {
    display: block;
}

.language-menu-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #24302c;
    font-size: 14px;
    line-height: 1.35;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.language-menu-link:hover,
.language-menu-link:focus-visible {
    background-color: #f4faf7;
    color: #227755;
    outline: none;
}

.language-menu-link.is-current {
    background-color: #edf7f3;
    color: #1d6a4b;
    font-weight: 700;
}

/* ---------------------------------
   Mobile navigation
--------------------------------- */

.mobile-nav {
    display: none;
    width: 100%;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
    background-color: #f7fbf9;
    border-color: #cfe1db;
    color: #227755;
    outline: none;
}

.mobile-nav-toggle-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 14px;
    flex-shrink: 0;
}

.mobile-nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.mobile-nav-toggle-icon span:nth-child(1) {
    top: 0;
}

.mobile-nav-toggle-icon span:nth-child(2) {
    top: 6px;
}

.mobile-nav-toggle-icon span:nth-child(3) {
    top: 12px;
}

.mobile-nav.is-open .mobile-nav-toggle-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.mobile-nav.is-open .mobile-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-nav.is-open .mobile-nav-toggle-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.mobile-nav-panel {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9e9e9;
}

.mobile-nav.is-open .mobile-nav-panel {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link,
.mobile-language-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-language-toggle:hover,
.mobile-language-toggle:focus-visible {
    background-color: #f7fbf9;
    border-color: #cfe1db;
    color: #227755;
    outline: none;
}

.mobile-nav-link.is-active {
    background-color: #edf7f3;
    border-color: #b8d8ca;
    color: #1d6a4b;
}

.mobile-language {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-language-caret {
    font-size: 11px;
    line-height: 1;
    color: #5f6b66;
    transition: transform 0.18s ease;
}

.mobile-language.is-open .mobile-language-caret {
    transform: rotate(180deg);
}

.mobile-language-panel {
    display: none;
    padding: 4px 0 0;
}

.mobile-language.is-open .mobile-language-panel {
    display: block;
}

.mobile-language-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
}

.mobile-language-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #24302c;
    font-size: 14px;
    line-height: 1.35;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.mobile-language-link:hover,
.mobile-language-link:focus-visible {
    background-color: #f4faf7;
    color: #227755;
    outline: none;
}

.mobile-language-link.is-current {
    background-color: #edf7f3;
    color: #1d6a4b;
    font-weight: 700;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------
   Account deletion page
--------------------------------- */

.account-form {
    margin-top: 28px;
}

.account-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-label {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #24302c;
}

.account-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #cfd8d4;
    border-radius: 12px;
    background-color: #ffffff;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: #222222;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-input::placeholder {
    color: #8a9490;
}

.account-input:hover {
    border-color: #b9c8c2;
}

.account-input:focus {
    border-color: #227755;
    box-shadow: 0 0 0 3px rgba(34, 119, 85, 0.14);
    outline: none;
}

.account-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #227755;
    border-radius: 12px;
    background-color: #227755;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.account-submit:hover,
.account-submit:focus-visible {
    background-color: #1d6a4b;
    border-color: #1d6a4b;
    box-shadow: 0 8px 18px rgba(34, 119, 85, 0.16);
    outline: none;
}

.account-submit:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    box-shadow: none;
}

.account-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #5f6b66;
}

.account-status {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.55;
}

.account-status-success {
    background-color: #eef8f3;
    border-color: #cce4d8;
    color: #1d6a4b;
}

.account-status-error {
    background-color: #fff4f4;
    border-color: #f1caca;
    color: #9a3030;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 12px;
    }

    .card {
        min-height: calc(100vh - 24px);
        border-radius: 10px;
    }

    .header {
        padding: 22px 16px 18px;
    }

    .logo {
        max-width: 120px;
    }

    .top-nav {
        padding: 12px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .main-content {
        align-items: flex-start;
    }
    
    .content-section {
    max-width: 100%;
    padding: 32px 16px 36px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .account-input {
        min-height: 50px;
        font-size: 16px;
    }

    .account-submit {
        min-height: 50px;
        font-size: 13px;
    }

    .footer {
        padding: 16px;
    }

    .copyright {
        font-size: 11px;
    }
}