/* Canonical navigation and complete grouped footer — registry-driven v2. */

.header__nav-item {
    position: relative;
}

.header__nav-item.is-active > .header__nav-link {
    color: var(--gold);
}

.header__nav-item.is-active > .header__nav-link::after {
    width: 100%;
}

.header__nav-item--has-children {
    display: flex;
    align-items: center;
}

.header__submenu-toggle {
    width: 24px;
    height: 28px;
    margin-left: -2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.header__submenu-toggle span {
    display: block;
    width: 7px;
    height: 7px;
    margin: -4px auto 0;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease, color .2s ease;
}

.header__submenu-toggle[aria-expanded="true"] span {
    transform: translateY(4px) rotate(225deg);
    color: var(--gold);
}

.header__submenu {
    position: absolute;
    z-index: 1002;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 244px;
    padding: 10px;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(212, 160, 23, .23);
    border-radius: 14px;
    background: rgba(10, 8, 22, .98);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .46);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.header__submenu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 15px;
}

.header__nav-item--has-children:hover > .header__submenu,
.header__nav-item--has-children:focus-within > .header__submenu,
.header__submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.header__submenu a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.35;
    white-space: normal;
}

.header__submenu a:hover,
.header__submenu a:focus-visible,
.header__submenu a[aria-current="page"] {
    color: #fff4cf;
    background: rgba(212, 160, 23, .12);
}

.site-footer {
    position: relative;
    color: var(--text-light);
    background:
        radial-gradient(circle at 8% 8%, rgba(182, 76, 35, .17), transparent 29%),
        radial-gradient(circle at 88% 16%, rgba(212, 160, 23, .1), transparent 26%),
        #080614;
}

.site-discovery {
    padding: 56px 0;
    border-top: 1px solid rgba(212, 160, 23, .15);
    background: linear-gradient(110deg, #171020, #0a0813 72%);
}

.site-discovery__inner {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
    gap: 54px;
    align-items: center;
}

.site-discovery__inner > div > span { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-discovery h2 { margin: 8px 0 10px; color: #fff4cf; font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.5rem); }
.site-discovery p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.site-discovery nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.site-discovery nav a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 15px 18px; border: 1px solid rgba(212,160,23,.18); border-radius: 12px; color: #fff0c0; background: rgba(255,255,255,.025); }
.site-discovery nav a:hover { border-color: var(--gold); background: rgba(212,160,23,.07); }
.site-discovery nav strong { color: var(--gold); }

.site-footer .footer__ornament {
    height: 5px;
    background: linear-gradient(90deg, #7f2e1b, var(--gold), #e37b2c, var(--gold), #7f2e1b);
}

.site-footer__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 52px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(212, 160, 23, .17);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 710px;
}

.site-footer__brand img {
    width: 94px;
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 8px 22px rgba(212, 160, 23, .18));
}

.site-footer__brand span,
.site-footer__map::before {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.site-footer__brand h2 {
    margin: 5px 0 7px;
    color: #fff4cf;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

.site-footer__brand p {
    max-width: 560px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.site-footer__contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 8px;
    min-width: 268px;
}

.site-footer__contact-actions a {
    padding: 9px 12px;
    border: 1px solid rgba(212, 160, 23, .2);
    border-radius: 9px;
    color: var(--text-muted);
    font-size: .8rem;
    text-align: center;
}

.site-footer__contact-actions a:hover {
    border-color: var(--gold);
    color: #fff4cf;
    background: rgba(212, 160, 23, .09);
}

.site-footer__contact-actions .site-footer__contact-primary {
    grid-column: 1 / -1;
    padding: 12px;
    border-color: var(--gold);
    color: #17111e;
    background: var(--gold);
    font-weight: 700;
}

.site-footer__map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 28px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.site-footer__map::before {
    content: attr(aria-label);
    grid-column: 1 / -1;
    margin-bottom: -16px;
}

.site-footer__group {
    min-width: 0;
}

.site-footer__group summary {
    position: relative;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(212, 160, 23, .18);
    color: #fff4cf;
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .035em;
    list-style: none;
    cursor: default;
}

.site-footer__group summary::-webkit-details-marker {
    display: none;
}

.site-footer__group ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer__group a {
    display: inline-block;
    color: #9e99aa;
    font-size: .8rem;
    line-height: 1.45;
}

.site-footer__group a:hover,
.site-footer__group a[aria-current="page"] {
    color: var(--gold-light);
}

.site-footer__group a[aria-current="page"]::before {
    content: "•";
    margin-right: 6px;
    color: var(--gold);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 19px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(212, 160, 23, .13);
    color: #777282;
    font-size: .76rem;
}

.site-footer__languages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-footer__languages a,
.site-footer__languages span {
    padding: 5px 8px;
    border-radius: 6px;
    color: #918b9c;
}

.site-footer__languages span[aria-current="page"],
.site-footer__languages a:hover {
    color: #17111e;
    background: var(--gold);
}

@media (max-width: 1180px) {
    .header__nav-list { gap: 10px; }
    .header__nav-link { font-size: .78rem; }
    .header__logo-text { display: none; }
    .site-footer__map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .site-discovery__inner { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__contact { align-items: flex-start; flex-direction: column; }
    .site-footer__contact-actions { width: 100%; }
    .site-footer__map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .header__nav {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        padding: 92px 24px 38px;
        background: rgba(13, 11, 26, .98);
        backdrop-filter: blur(16px);
    }
    .header__nav.active { display: flex; }
    .header__lang { display: none; }
    .header__burger { display: flex; }
    .header__nav-list { width: min(100%, 460px); margin: 0 auto; gap: 5px; text-align: left; }
    .header__nav-item,
    .header__nav-item--has-children { display: grid; grid-template-columns: 1fr 44px; width: 100%; }
    .header__nav-link { padding: 11px 0; font-size: 1.05rem; }
    .header__submenu-toggle { width: 44px; height: 44px; margin: 0; }
    .header__submenu {
        position: static;
        display: none;
        grid-column: 1 / -1;
        min-width: 0;
        padding: 3px 0 9px 15px;
        border: 0;
        border-left: 1px solid rgba(212, 160, 23, .25);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .header__submenu.is-open { display: block; transform: none; }
    .header__submenu a { padding: 8px 10px; font-size: .88rem; }
    .site-footer__contact { gap: 28px; padding-top: 38px; padding-bottom: 34px; }
    .site-footer__brand { align-items: flex-start; gap: 16px; }
    .site-footer__brand img { width: 70px; }
    .site-footer__map { gap: 22px 18px; padding-top: 34px; padding-bottom: 34px; }
    .site-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .site-discovery { padding: 42px 0; }
    .site-discovery nav { grid-template-columns: 1fr; }
    .site-footer__brand img { display: none; }
    .site-footer__contact-actions { min-width: 0; }
    .site-footer__map { grid-template-columns: 1fr; }
    .site-footer__group summary { cursor: pointer; }
    .site-footer__group summary::after {
        content: "+";
        position: absolute;
        right: 0;
        color: var(--gold);
    }
    .site-footer__group[open] summary::after { content: "−"; }
}

@media (prefers-reduced-motion: reduce) {
    .header__submenu,
    .header__submenu-toggle span { transition: none; }
}
