/* Kairovia — flat centered layout, white background */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-border: rgba(15, 81, 76, 0.12);
    --text: #14221f;
    --muted: #4a5c58;
    --footer: #6b7a76;
    --accent: #0f514c;
    --accent-hover: #0a3f3b;
    --accent-soft: #1a7a72;
    --accent-glow: rgba(15, 81, 76, 0.14);
    --rule: rgba(15, 81, 76, 0.18);
    --shadow: none;
    --radius-card: 18px;
    --radius-btn: 999px;
    --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-weight: 450;
    color: var(--text);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4.75rem 1.35rem 2rem;
    position: relative;
    background-color: var(--bg);
}

/* Language switcher */
.lang-wrap {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    left: auto;
    z-index: 10;
}

[dir="rtl"] .lang-wrap {
    right: auto;
    left: 1.1rem;
}

.lang-switch details {
    position: relative;
}

.lang-switch summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    background: var(--surface);
    box-shadow: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.lang-switch summary::-webkit-details-marker {
    display: none;
}

.lang-switch summary::marker {
    content: "";
}

.lang-switch .lang-flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(15, 81, 76, 0.15);
}

.lang-switch .chevron {
    width: 0.65rem;
    height: 0.65rem;
    opacity: 0.55;
}

.lang-switch details[open] .chevron {
    transform: rotate(180deg);
}

.lang-switch .chevron {
    transition: transform 0.2s ease;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 11.25rem;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: none;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 0.8125rem;
}

.lang-menu a:hover {
    background: rgba(15, 81, 76, 0.07);
}

.lang-menu a.is-current {
    font-weight: 600;
    background: rgba(15, 81, 76, 0.11);
}

/* Main (flat centered layout) */
.main {
    width: 100%;
    max-width: 24.5rem;
    text-align: center;
    margin: auto 0;
    padding: 2rem 1.25rem 2.1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    width: 100%;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

.company-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--accent);
}

.company-title::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin: 0.7rem auto 0;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent));
    border-radius: 3px;
}

.meta {
    font-size: 0.84375rem;
    color: var(--muted);
    margin: 0 auto 0.32rem;
    max-width: 36ch;
    text-align: center;
}

.meta:last-of-type {
    margin-bottom: 0;
}

.office-block {
    margin-top: 1.35rem;
    margin-bottom: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px dashed var(--rule);
    text-align: center;
}

.office-label {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent);
    margin: 0 0 0.35rem;
}

.addr {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0.1rem 0 0;
}

.btn-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0.72rem 1.35rem;
    background: var(--accent);
    color: #f8faf9;
    text-decoration: none;
    font-size: 0.90625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-btn);
    margin-bottom: 1.35rem;
    box-shadow: 0 2px 0 rgba(10, 47, 45, 0.35), 0 8px 24px rgba(15, 81, 76, 0.18);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-mail:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 0 rgba(10, 47, 45, 0.45), 0 10px 28px rgba(15, 81, 76, 0.22);
}

.btn-mail:active {
    transform: translateY(1px);
}

.contact-block {
    font-size: 0.84375rem;
    color: var(--muted);
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    text-align: center;
}

.contact-block p {
    margin: 0 0 0.4rem;
}

.contact-block p:last-child {
    margin-bottom: 0;
}

.contact-block a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 81, 76, 0.35);
}

.contact-block a:hover {
    border-bottom-color: var(--accent);
}

.site-footer {
    margin-top: 1.75rem;
    width: 100%;
    max-width: 24.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--footer);
    padding-top: 1rem;
}

@media (min-width: 480px) {
    .main {
        padding: 2.15rem 1.5rem 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-mail,
    .lang-switch .chevron {
        transition: none;
    }

    .btn-mail:active {
        transform: none;
    }
}
