:root {
    --layout-ink: #0f172a;
    --layout-line: #e2e8f0;
    --layout-accent: #e63946;
    --layout-accent-dark: #c92f3c;
}

header {
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    border-bottom: 1px solid var(--layout-line);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
    backdrop-filter: blur(12px);
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--layout-ink); font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.logo img { display: block; width: auto; height: 70px; }
nav ul.nav-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
nav li.nav-item { position: relative; }
nav a.nav-link { color: #475569; font-size: .95rem; font-weight: 600; text-decoration: none; transition: color .2s; }
nav a.nav-link:hover { color: var(--layout-accent); }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; }
.dropdown-toggle::after { color: #64748b; content: '▾'; font-size: .8rem; transition: transform .2s ease; }
.nav-item:hover .dropdown-toggle::after, .nav-item:focus-within .dropdown-toggle::after, .nav-item.open .dropdown-toggle::after { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 18px); left: 0; z-index: 1100; min-width: 260px; padding: 10px 0; border: 1px solid rgba(148, 163, 184, .2); border-radius: 16px; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s ease; }
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu, .nav-item.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 16px; color: #334155; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dropdown-menu a:hover { background: #f8fafc; color: var(--layout-accent); }
.btn-header { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(230, 57, 70, .18); border-radius: 999px; background: rgba(230, 57, 70, .08); color: var(--layout-ink) !important; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-header--primary { border-color: transparent; background: linear-gradient(135deg, var(--layout-accent), var(--layout-accent-dark)); color: #fff !important; box-shadow: 0 10px 18px rgba(230, 57, 70, .18); }
.btn-theme-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(148, 163, 184, .3); border-radius: 50%; background: rgba(14, 165, 233, .06); color: var(--layout-ink); cursor: pointer; }
.btn-theme-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.hamburger { display: none; z-index: 1001; flex-direction: column; gap: 5px; padding: 4px; border: 0; background: none; cursor: pointer; }
.hamburger .bar { width: 25px; height: 3px; border-radius: 3px; background: var(--layout-ink); transition: all .3s ease; }

footer { position: relative; z-index: 2; padding: 60px 20px 30px; background: #0f172a; color: #94a3b8; }
.footer-container { display: grid; width: min(100%, 1360px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin: 0 auto; padding-bottom: 40px; }
.footer-col h3 { position: relative; display: inline-block; margin: 0 0 16px; color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .5px; }
.footer-col h3::after { position: absolute; bottom: -6px; left: 0; width: 25px; height: 2px; background: var(--layout-accent); content: ''; }
.footer-col p, .footer-col li, .footer-col a { color: #94a3b8; font-size: .9rem; line-height: 1.6; }
.footer-col p { margin: 10px 0; }
.footer-col ul { margin: 10px 0 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-subsection { margin-top: 24px; }
.footer-map { margin-top: 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.footer-map iframe { display: block; width: 100%; height: 150px; border: 0; }
.footer-bottom { max-width: 1360px; margin: 0 auto; padding-top: 25px; border-top: 1px solid #1e293b; color: #64748b; font-size: .82rem; text-align: center; }
.footer-bottom p { color: inherit; font-size: inherit; }
.footer-bottom p + p { margin-top: 8px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

@media (min-width: 993px) and (max-width: 1360px) {
    header { padding-right: 24px; padding-left: 24px; }
    nav ul.nav-menu { gap: 14px; }
    nav a.nav-link { font-size: .85rem; }
}

@media (max-width: 992px) {
    header { padding: 14px 20px; }
    .hamburger { display: flex; }
    nav ul.nav-menu { position: fixed; top: 100px; left: -100%; display: flex; width: 100%; flex-direction: column; gap: 20px; padding: 30px 20px; border-bottom: 1px solid var(--layout-line); background: #fff; box-shadow: 0 10px 15px rgba(0, 0, 0, .05); text-align: center; transition: left .3s ease-in-out; }
    nav ul.nav-menu.active { left: 0; }
    .dropdown-menu { position: static; display: none; margin-top: 10px; border-radius: 12px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .nav-item.open .dropdown-menu, .nav-item:focus-within .dropdown-menu { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    .logo img { height: 58px; }
}

body.dark-theme header,
body.dark-theme nav ul.nav-menu,
body.dark-theme .dropdown-menu { background-color: rgba(15, 23, 42, .98); border-color: #29364a; }
body.dark-theme nav a.nav-link,
body.dark-theme .dropdown-menu a { color: #cbd5e1; }
body.dark-theme .dropdown-menu a:hover { background: #1e293b; }
body.dark-theme .hamburger .bar { background: #e2e8f0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
