/* Pagini interioare — Despre */
:root {
    --hm-green: #16a34a;
    --hm-green-dark: #15803d;
    --hm-green-soft: #dcfce7;
    --hm-ink: #0f172a;
    --hm-muted: #64748b;
    --hm-line: rgba(15, 23, 42, 0.08);
    --hm-font: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    font-family: var(--hm-font);
    color: var(--hm-ink);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background:
        radial-gradient(1100px 520px at 8% -12%, rgba(34, 197, 94, 0.18), transparent 58%),
        radial-gradient(800px 420px at 100% 0%, rgba(16, 185, 129, 0.1), transparent 52%),
        linear-gradient(180deg, #f3faf4 0%, #f8fafc 38%, #f1f5f9 100%);
    -webkit-font-smoothing: antialiased;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hm-line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hm-ink);
}

.logo-word {
    display: inline-flex;
    align-items: baseline;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.055em;
    color: var(--hm-ink);
    line-height: 1;
    white-space: nowrap;
}

.logo-tld {
    color: var(--hm-green);
    letter-spacing: -0.06em;
}

.brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary,
.page-card a.btn-primary {
    background: linear-gradient(180deg, #34d399 0%, #16a34a 55%, #15803d 100%);
    color: #111;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover,
.page-card a.btn-primary:hover {
    color: #111;
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.lang-switch {
    display: inline-flex;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
}

.lang-switch a {
    min-width: 40px;
    padding: 6px 11px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: var(--hm-green);
    color: #111;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.page-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px max(16px, env(safe-area-inset-right, 0px)) max(72px, calc(env(safe-area-inset-bottom, 0px) + 48px)) max(16px, env(safe-area-inset-left, 0px));
}

.page-card {
    max-width: 100%;
    overflow-wrap: break-word;
    padding: 32px 28px 40px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(8px);
}

.page-card h1 {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: clamp(1.45rem, 6vw, 2rem);
    letter-spacing: -0.03em;
    color: var(--hm-ink);
    overflow-wrap: break-word;
}

.lead {
    margin: 0 0 28px;
    color: var(--hm-muted);
    font-size: 17px;
    line-height: 1.7;
}

.page-card h2 {
    margin: 28px 0 10px;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--hm-ink);
}

.page-card p,
.page-card li {
    color: #334155;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.page-card ul {
    margin: 0;
    padding-left: 18px;
}

.page-card .feature-cards,
.page-card .place-chips {
    padding-left: 0;
}

.page-card .place-chips li {
    margin: 0;
    padding: 0;
}

.page-card li {
    margin-bottom: 8px;
}

.page-card a {
    color: var(--hm-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.page-card a:hover {
    text-decoration: underline;
}

.page-actions {
    margin-top: 32px;
}

.btn-short {
    display: none;
}

.page-links {
    display: none;
}

@media (min-width: 720px) {
    .page-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px;
        margin-right: 8px;
    }

    .page-links a {
        color: #334155;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }

    .page-links a:hover,
    .page-links a[aria-current="page"] {
        color: var(--hm-green-dark);
    }
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--hm-muted);
}

.crumbs li::after {
    content: "/";
    margin-left: 8px;
    color: #94a3b8;
}

.crumbs li:last-child::after {
    content: "";
}

.crumbs a {
    color: var(--hm-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.city-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .city-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.city-card {
    display: block;
    min-height: 44px;
    padding: 16px 16px 14px;
    border: 1px solid var(--hm-line);
    border-radius: 18px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.city-card:hover {
    border-color: rgba(22, 163, 74, 0.35);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}

.city-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hm-ink);
}

.city-card span {
    color: var(--hm-muted);
    font-size: 14px;
    font-weight: 400;
}

.table-wrap {
    overflow-x: auto;
    margin: 16px 0 8px;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 15px;
}

.btn:focus-visible,
.lang-switch a:focus-visible,
.page-links a:focus-visible,
.page-card a:focus-visible,
.page-footer a:focus-visible,
.brand:focus-visible {
    outline: 3px solid var(--hm-green);
    outline-offset: 2px;
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--hm-line);
    text-align: left;
}

.data-table th {
    color: var(--hm-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.city-map {
    position: relative;
    margin: 10px 0 26px;
    border-radius: 20px;
    overflow: hidden;
    background: #e8eef2;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.city-map-canvas {
    width: 100%;
    height: clamp(300px, 46vw, 460px);
}

.city-map::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--hm-line);
}

.city-map-fallback {
    display: none;
    padding: 16px 18px;
    margin: 0;
    color: var(--hm-muted);
    font-size: 13px;
    line-height: 1.5;
}

.city-map.is-failed .city-map-canvas {
    display: none;
}

.city-map.is-failed .city-map-fallback {
    display: block;
}

.city-map-pin {
    display: block;
    line-height: 0;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.35));
}

.city-map .maplibregl-ctrl-attrib {
    font-size: 11px;
}

@media (orientation: landscape) and (max-height: 520px) {
    .city-map-canvas {
        height: clamp(220px, 60vh, 320px);
    }
}

.page-hero {
    margin: 8px 0 24px;
}

.page-hero--inline {
    margin: 22px 0 26px;
}

.page-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 20px;
    object-fit: cover;
    background: #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.page-hero figcaption {
    margin: 8px 2px 0;
    color: var(--hm-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.page-hero figcaption a {
    color: var(--hm-muted);
    font-weight: 500;
}

.page-footer {
    padding: 20px max(16px, env(safe-area-inset-right, 0px)) max(32px, calc(env(safe-area-inset-bottom, 0px) + 20px)) max(16px, env(safe-area-inset-left, 0px));
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.page-footer a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

.faq-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 8px;
}

.faq-list details {
    padding: 14px 16px;
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    background: #f8fafc;
}

.faq-list summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
    font-weight: 700;
    color: var(--hm-ink);
    overflow-wrap: anywhere;
}

.faq-list details p {
    margin: 10px 0 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -56px;
    z-index: 20;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--hm-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

@media (max-width: 699.98px) {
    .page-card {
        padding: 22px 16px 26px;
        border-radius: 20px;
    }

    .lead {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding: 10px 12px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .logo-word {
        font-size: 20px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-full {
        display: none;
    }

    .btn-short {
        display: inline;
    }

    .page-card {
        padding: 22px 18px 28px;
        border-radius: 20px;
    }

    .page-card h1 {
        font-size: clamp(1.35rem, 7vw, 1.65rem);
    }

    .page-main {
        padding: 20px max(12px, env(safe-area-inset-right, 0px)) 48px max(12px, env(safe-area-inset-left, 0px));
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}
