/* Header + footer + accente vizuale — toate paginile */
: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;
    --site-header-h: 68px;
    --app-vh: 100vh;
    --hm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (height: 100dvh) {
    :root {
        --app-vh: 100dvh;
    }
}

body.nav-open {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    width: 100%;
    min-height: var(--site-header-h);
    padding: max(10px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 10px max(20px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 30px rgba(15, 23, 42, 0.04);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 42%, rgba(22, 163, 74, 0) 100%);
    pointer-events: none;
}

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

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

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

.site-header .brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #34d399 0%, #16a34a 58%, #15803d 100%);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
}

.site-header .nav-toggle {
    display: none;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
}

.site-header .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    background: #0f172a;
    border-radius: 2px;
    flex: 0 0 2px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
}

.site-header .lang-switch,
#language-selector.lang-switch {
    order: 2;
}

.site-header .nav-toggle {
    order: 3;
}

.site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.site-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #334155;
    font-family: var(--hm-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background-color 0.2s var(--hm-ease), color 0.2s var(--hm-ease);
}

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

.site-header .lang-switch,
#language-selector.lang-switch {
    display: inline-flex;
    padding: 3px;
    background: #f1f5f9;
    border: 1px solid var(--hm-line);
    border-radius: 999px;
}

.site-header .lang-switch a,
#language-selector.lang-switch .lang-link {
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-family: var(--hm-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.site-header .lang-switch a.active,
.site-header .lang-switch a[aria-current="page"],
.site-header .lang-switch a:hover,
#language-selector.lang-switch .lang-link.active,
#language-selector.lang-switch .lang-link[aria-current="page"],
#language-selector.lang-switch .lang-link:hover {
    background: var(--hm-green);
    color: #111;
    text-decoration: none;
}

.site-header .btn,
.site-footer .btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--hm-font);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--hm-ease), box-shadow 0.2s var(--hm-ease), filter 0.2s ease, background-color 0.2s ease;
}

.site-header .btn-primary,
.site-header a.btn-primary,
.btn-primary,
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);
}

.site-header .btn-primary:hover,
.btn-primary:hover,
a.btn-primary:hover {
    filter: brightness(1.04);
    color: #111;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.site-header .btn-short {
    display: none;
}

.site-header .brand:focus-visible,
.site-header a:focus-visible,
.site-header .nav-toggle:focus-visible,
.site-footer a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--hm-green);
    outline-offset: 2px;
}

.site-footer {
    padding: 48px max(20px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background:
        radial-gradient(700px 280px at 12% 0%, rgba(34, 197, 94, 0.16), transparent 60%),
        linear-gradient(180deg, #102016 0%, #0b1220 48%, #0a1018 100%);
    color: #94a3b8;
    font-family: var(--hm-font);
    font-size: 14px;
    text-align: left;
    border-top: 0;
}

.site-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px 32px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-brand .logo-word {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: #f8fafc;
}

.footer-brand .logo-tld {
    color: #4ade80;
}

.footer-brand .brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #34d399 0%, #16a34a 100%);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}

.footer-brand p {
    margin: 0;
    max-width: 280px;
    line-height: 1.65;
    color: #94a3b8;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h2,
.footer-col .footer-heading {
    margin: 0 0 6px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col a,
.site-footer .footer-links a {
    color: #cbd5e1;
    font-weight: 550;
    text-decoration: none;
}

.footer-col a:hover,
.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: #86efac;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-top: 20px;
}

.site-footer .footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.site-footer .footer-langs a {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.site-footer .footer-langs a:hover {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.site-footer .footer-bottom p {
    margin: 0;
    line-height: 1.6;
    color: #7c8a9a;
}

.site-footer .footer-bottom a {
    color: #86efac;
    font-weight: 600;
    text-decoration: none;
}

.visual-grid,
.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 8px 0 28px;
    padding: 0;
    list-style: none;
}

.feature-card,
.visual-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--hm-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s var(--hm-ease), box-shadow 0.2s var(--hm-ease);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.feature-card img,
.visual-card img,
.page-visual img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eef6ef;
}

.feature-card strong {
    display: block;
    padding: 14px 16px 0;
    color: var(--hm-ink);
    font-size: 15px;
}

.feature-card span {
    display: block;
    padding: 4px 16px 16px;
    color: var(--hm-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.page-visual {
    margin: 8px 0 24px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.page-visual img {
    height: 240px;
}

.page-visual img.crop-city {
    object-position: 78% 42%;
}

.page-visual.square img {
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background: #f3faf4;
}

@media (min-width: 640px) {
    .visual-grid,
    .feature-cards {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card img,
    .visual-card img {
        height: 200px;
    }
}

@media (min-width: 900px) {
    .feature-cards.three {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1119.98px) {
    .site-header .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        order: 3;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
    }

    .site-header .lang-switch,
    #language-selector.lang-switch {
        order: 1;
        flex-shrink: 0;
    }

    .site-header .lang-switch a,
    #language-selector.lang-switch .lang-link {
        min-width: 32px;
        padding: 6px 7px;
    }

    .site-menu {
        display: none;
        order: 3;
        flex-basis: 100%;
        position: absolute;
        top: calc(var(--site-header-h) + 1px);
        left: 0;
        right: 0;
        max-height: calc(var(--app-vh, 100vh) - var(--site-header-h) - 8px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--hm-line);
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
        flex-direction: column;
        align-items: stretch;
    }

    .site-header.is-open .site-menu {
        display: flex;
    }

    .site-links {
        flex-direction: column;
        gap: 2px;
    }

    .site-links a {
        padding: 11px 12px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .site-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 1120px) {
    .site-links {
        flex-wrap: nowrap;
    }

    .site-links a {
        padding: 8px 11px;
    }
}

@media (max-width: 639.98px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 420px) {
    .site-header {
        padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
    }

    .site-header .logo-word {
        font-size: 17px;
    }

    .site-header .brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .site-header .lang-switch a,
    #language-selector.lang-switch .lang-link {
        min-width: 28px;
        padding: 5px 6px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-visual img {
        height: 180px;
    }
}

/* Locality / street chips — wrap on phone, 44px tap, no overflow */
.place-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 24px;
    padding: 0;
    list-style: none;
}

.place-chips li {
    margin: 0;
    min-width: 0;
}

.place-chips a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--hm-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.place-chips a:hover {
    border-color: rgba(22, 163, 74, 0.35);
    background: #fff;
    color: var(--hm-green-dark);
    text-decoration: none;
}

@media (min-width: 640px) {
    .place-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
