@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800;900&display=swap');

/* News - restored visual theme
   Sections: tokens/base, header, controls/forms, pages, cards, widgets, footer, motion, responsive authority. */

:root {
    --site-bg: #f8f8f8;
    --site-panel: #ffffff;
    --site-text: #2c3e50;
    --site-muted: #666666;
    --site-soft: #999999;
    --site-line: #e8e8e8;
    --site-blue: #3498db;
    --site-navy: #2c3e50;
    --site-navy-2: #34495e;
    --site-radius: 8px;
    --site-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --site-shadow-strong: 0 8px 22px rgba(0, 0, 0, 0.12);
    --site-header-h: 66px;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--site-bg);
    color: #333333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 54px 24px 92px;
}

a {
    color: var(--site-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--site-blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--site-text);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}

h1 {
    font-size: 38px;
    letter-spacing: 0;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 14px;
}

/* Header — desktop nav breakpoint must match site-site.js matchMedia (min-width: 1100px) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    flex: 0 0 auto;
    background: var(--site-navy);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.site-header-content {
    position: relative;
    min-height: 66px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 24px;
}

.site-logo {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

.site-logo-main {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.site-logo-subtitle {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.site-logo:hover {
    color: #ffffff;
    transform: scale(1.05);
    opacity: 0.95;
}

@media (min-width: 1100px) {
    .site-header-content {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: stretch;
        justify-content: stretch;
        gap: 12px;
    }

    .site-logo {
        position: static;
        justify-self: start;
        flex-shrink: 0;
        min-width: max-content;
        transform-origin: left center;
    }

    .site-nav-panel {
        display: flex;
        justify-content: center;
        align-items: stretch;
        min-width: 0;
    }

    .site-nav {
        max-width: 100%;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1100px) and (max-width: 1500px) {
    .site-header-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        min-height: auto !important;
    }

    .site-logo {
        position: static !important;
        margin-bottom: 8px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .site-logo-subtitle {
        text-align: center !important;
    }

    .site-nav-panel {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .site-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 2px !important;
    }

    .site-nav a {
        height: 44px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
    }
}

.site-logo img,
.site-logo-mark {
    display: none;
}

.site-menu-toggle {
    display: none;
}

/* Prevent mobile menu toggle from visually expanding across header during breakpoint resizes */
body.site-resizing .site-menu-toggle {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    justify-self: end !important;
    width: auto !important;
    max-width: 180px !important;
}

body.site-resizing .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

body.site-resizing .site-header,
body.site-resizing .site-header-content,
body.site-resizing .site-nav-panel,
body.site-resizing main,
body.site-resizing footer {
    transition: none !important;
}

.site-nav-backdrop {
    display: none;
}

.site-nav-backdrop[hidden] {
    display: none !important;
}

.site-nav-drawer-head {
    display: none;
}

.site-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: flex;
    align-items: center;
    height: 66px;
    padding: 0 30px;
    border-bottom: 3px solid transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav .current > a,
.site-nav .active > a {
    background: rgba(255, 255, 255, 0.09);
    border-bottom-color: var(--site-blue);
    color: #ffffff;
}

/* Buttons */
button,
.btn,
a.btn,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--site-navy) 0%, var(--site-navy-2) 100%);
    color: #ffffff !important;
    padding: 13px 25px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button:hover,
.btn:hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(135deg, var(--site-navy-2) 0%, #465d75 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
    transform: translateY(-2px) translateZ(0);
    text-decoration: none;
}

button:active,
.btn:active,
a.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(44, 62, 80, 0.15);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    border: 2px solid var(--site-line);
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--site-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

select option {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

select option:disabled {
    color: #999999 !important;
}

/* Choices.js options readability (if active) */
.choices__list--dropdown .choices__item,
.choices__list--dropdown .choices__item--selectable,
.choices__list--dropdown .choices__item--choice {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--choice.is-highlighted {
    background-color: #f2f2f2 !important;
    color: #2c3e50 !important;
}

input::placeholder,
textarea::placeholder {
    color: #8b949e;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input[type="file"] {
    width: 100%;
    border: 1px dashed #d8dee4;
    border-radius: 6px;
    padding: 16px;
    background: #ffffff;
}

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    display: none !important;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: var(--site-soft);
    font-size: 12px;
    line-height: 1.5;
}

.site-field-error {
    display: block;
    margin-top: 7px;
    color: #c0392b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.site-field-error[hidden] {
    display: none !important;
}

.form-group.error input:not([type="file"]),
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c !important;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-group.error input[type="file"] {
    border-color: #e74c3c !important;
    background: #fffafa;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--site-text);
    font-size: 14px;
    font-weight: 700;
}

.required,
label .required {
    color: #e74c3c;
    font-weight: 800;
}

.form-group,
.site-form-group {
    margin-bottom: 21px;
}

.form-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 10px auto 0;
    padding: 36px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.submit-page-wrapper {
    max-width: 720px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 2000;
    transform: translateX(calc(100% + 24px));
    transition: transform 0.3s ease;
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #27ae60;
    background: #f0fdf4;
}

.toast.error {
    border-left: 4px solid #e74c3c;
    background: #fef2f2;
}

.toast.warning {
    border-left: 4px solid #f39c12;
    background: #fffbf0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    flex-shrink: 0;
}

.toast.success .toast-icon::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
}

.toast.error .toast-icon::before {
    content: '✕';
    color: #e74c3c;
    font-weight: bold;
}

.toast.warning .toast-icon::before {
    content: '⚠';
    color: #f39c12;
}

.toast-message {
    flex: 1;
    color: var(--site-text);
    font-size: 14px;
    line-height: 1.4;
}

.toast.success .toast-message {
    color: #065f46;
}

.toast.error .toast-message {
    color: #7f1d1d;
}

.toast.warning .toast-message {
    color: #78350f;
}

.toast-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--site-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--site-text);
}

@media (max-width: 600px) {
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

.form-wrapper h1,
.form-wrapper h2 {
    margin: 0 0 16px;
    color: var(--site-text);
}

.form-wrapper h1 {
    font-size: 36px;
}

.form-wrapper h2 {
    font-size: 32px;
}

.char-counter {
    display: block;
    margin-top: 5px;
    color: var(--site-soft);
    font-size: 11px;
    line-height: 1.3;
    text-align: right;
}

.char-counter.warning {
    color: #f39c12;
    font-weight: 700;
}

.char-counter.error {
    color: #e74c3c;
    font-weight: 700;
}

.alert {
    padding: 16px 18px;
    border-left: 4px solid;
    border-radius: 8px;
    margin-bottom: 22px;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Shared page containers */
.news-container,
.offer-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumb-nav {
    margin-bottom: 18px;
    color: var(--site-muted);
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--site-text);
    font-weight: 600;
}

.breadcrumb-link:hover {
    color: var(--site-blue);
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 10px;
    color: #c2c8ce;
}

.breadcrumb-current {
    color: var(--site-text);
    font-weight: 700;
}

.article-count {
    margin: 12px 0 16px !important;
    color: var(--site-muted) !important;
    font-size: 13px !important;
}

.news-submit-link {
    margin: 20px 0;
}

/* Search */
.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 190px 190px;
    gap: 10px;
    align-items: stretch;
    margin: 32px 0 18px;
}

.search-box--news {
    grid-template-columns: minmax(0, 1fr) auto minmax(210px, 250px);
}

.search-box input[type="search"] {
    height: 50px;
}

.search-box input[type="search"]::placeholder {
    color: #999999;
    opacity: 0.7;
}

.search-box button {
    min-width: 74px;
    height: 50px;
    padding: 0 20px;
}

.search-box select {
    height: 50px;
    min-width: 0 !important;
    padding: 0 12px !important;
    border: 2px solid var(--site-line) !important;
    border-radius: 6px !important;
    background: #ffffff;
    font-size: 15px !important;
}

/* News cards */
#newsContent,
.news-items-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: stretch;
    justify-content: center;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    transition: all 0.24s ease;
    cursor: pointer;
}

.news-card:hover {
    border-color: rgba(52, 152, 219, 0.45);
    box-shadow: 0 12px 26px rgba(44, 62, 80, 0.13);
    transform: translateY(-3px) translateZ(0);
}

#newsContent .news-card,
.news-items-grid .news-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.news-items-grid .news-card:only-child,
#newsContent .news-card:only-child {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1100px) {
    #newsContent .news-card,
    .news-items-grid .news-card,
    #homeNewsContent .news-card {
        min-height: 382px;
    }
}

.news-card-image {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: linear-gradient(135deg, var(--site-navy) 0%, var(--site-navy-2) 100%);
}

.news-card-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-card-image--fallback {
    background: #f8f8f8;
}

.news-card-image--fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.news-card-image--fallback::after {
    background: none;
}

.site-default-art {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #999999;
    text-align: center;
    z-index: 1;
}

.site-default-art__brand {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: #cccccc;
}

.site-default-art__line {
    width: 40px;
    height: 2px;
    margin: 8px 0 10px;
    border-radius: 999px;
    background: #dddddd;
}

.site-default-art__label {
    font-size: 11px;
    font-weight: 600;
    color: #999999;
}

.news-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 20px 19px 18px;
}

.news-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.32;
    min-height: 2.64em;
}

.news-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--site-text);
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card .meta {
    display: block;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--site-soft);
    font-size: 13px;
    line-height: 1.4;
    min-height: 1.4em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card .excerpt {
    --site-excerpt-fade-line: 1.55em;
    --site-excerpt-fade-width: 92px;

    display: -webkit-box;
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    min-height: 86px;
    max-height: 86px;
    margin: 0 0 14px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.news-card .excerpt::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--site-excerpt-fade-width);
    height: var(--site-excerpt-fade-line);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 72%);
    pointer-events: none;
}

.read-more-btn {
    align-self: flex-start;
    display: inline-block;
    margin-top: auto;
    padding: 9px 15px;
    border-radius: 5px;
    background: var(--site-navy);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

.read-more-btn:hover {
    background: var(--site-navy-2);
    color: #ffffff !important;
}

/* Home */
.news-container:has(.home-layout) {
    max-width: 1320px;
    margin-top: -8px;
    padding: 0;
    padding-top: 0 !important;
}

.home-layout {
    width: 100%;
    margin: 0 auto;
}

.home-news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
    min-width: 0;
}

.home-news > .promo-banner {
    grid-column: 1 / -1;
}

.home-news-feed {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.home-sidebar {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

.home-news h1 {
    font-size: 48px;
}

.promo-banner {
    position: relative;
    overflow: hidden;
    margin: 0 0 32px;
    padding: 24px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d5aa3 0%, #3d6ab8 50%, #2d5aa3 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(45, 90, 163, 0.20);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.promo-banner:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 12px 32px rgba(45, 90, 163, 0.3);
}

.promo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.15) 0, transparent 50%);
    pointer-events: none;
}

.promo-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr auto;
        gap: 32px;
    }
}

.promo-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.promo-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.promo-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(46, 204, 113, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; border-color: rgba(46, 204, 113, 0.6); background: rgba(46, 204, 113, 0.25); }
    100% { opacity: 0.9; }
}

.promo-banner h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.promo-banner p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14.5px;
    line-height: 1.45;
}

.promo-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.promo-service-tag {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-promo,
a.btn-promo {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: #ffffff !important;
    color: #2d5aa3 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    white-space: nowrap;
}

.btn-promo:hover,
a.btn-promo:hover {
    background: #f0f0f0 !important;
    color: #2d5aa3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-promo:active,
a.btn-promo:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

#homeNewsContent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: stretch;
    justify-content: center;
}

@media (min-width: 720px) {
    #homeNewsContent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#homeNewsContent .news-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
}

.home-sidebar {
    position: sticky;
    top: 90px;
    min-width: 0;
}

.weather-box,
.currency-box {
    position: relative;
    overflow: hidden;
    margin: 0 0 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.currency-box {
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.weather-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d8d8d8;
}

.currency-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d8d8d8;
}

.weather-box::before,
.currency-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--site-blue);
}

.currency-box::before {
    background: var(--site-blue);
}

.weather-info h3,
.currency-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--site-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.weather-info h3 .weather-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-info h3 .weather-title {
    display: block;
}

.weather-info h3 .weather-location {
    display: block;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.widget-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--site-blue);
}

.widget-title-icon .widget-svg-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.weather-box:hover .widget-title-icon {
    transform: none;
}

.currency-box:hover .widget-title-icon {
    transform: none;
}

.currency-box .widget-title-icon {
    color: var(--site-blue);
}

#weatherCondition {
    margin: 0 0 12px;
    color: #666666;
    font-size: 14px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.currency-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.weather-detail-item,
.currency-detail-item {
    min-width: 0;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.weather-detail-item:hover,
.currency-detail-item:hover {
    background: #f0f0f0;
}

.weather-detail-label,
.currency-detail-label {
    display: block;
    margin-bottom: 4px;
    color: #999999;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.weather-detail-value,
.currency-detail-value {
    display: block;
    color: var(--site-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.currency-details-container {
    display: block;
}

.currency-detail-value {
    white-space: nowrap;
}

.home-sidebar > a.btn {
    padding: 18px 24px !important;
    font-size: 17px !important;
}

.home-submit-link {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px !important;
    border-radius: 8px;
    font-size: 16px !important;
    font-weight: 700;
    text-align: center;
}

.home-page-container {
    padding-top: 20px !important;
}

.home-news-title {
    margin-top: 0;
    margin-bottom: 20px;
}

.home-news-actions {
    margin-top: 30px;
    text-align: center;
}

.widget-loading {
    color: #555555;
    font-size: 14px;
}

.widget-error {
    color: #dc3545;
    font-size: 14px;
}

/* Offer page */
.offer-container {
    padding-top: 38px;
}

.offer-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.offer-hero-content,
.offer-contact-card,
.offer-focus,
.offer-service-card,
.offer-cta-band {
    border: 1px solid rgba(44, 62, 80, 0.11);
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.offer-hero-content {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    background:
        linear-gradient(135deg, rgba(52, 152, 219, 0.13), rgba(244, 162, 97, 0.12)),
        #ffffff;
}

.offer-hero-content::after {
    content: "";
    position: absolute;
    right: clamp(18px, 5vw, 58px);
    bottom: -34px;
    width: clamp(150px, 22vw, 240px);
    aspect-ratio: 1;
    border: 18px solid rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.offer-kicker {
    margin: 0 0 10px;
    color: var(--site-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.offer-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    padding-bottom: 0;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.04;
}

.offer-hero h1::after {
    display: none;
}

.offer-intro {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 18px 0 0;
    color: #4d5963;
    font-size: 17px;
    line-height: 1.65;
}

.offer-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.offer-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.offer-actions svg {
    width: 18px;
    height: 18px;
}

.offer-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    border-top: 4px solid var(--site-blue);
}

.offer-contact-card h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.offer-contact-card p {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    color: #45515d;
    font-size: 14px;
    line-height: 1.45;
}

.offer-contact-card svg {
    width: 18px;
    height: 18px;
    color: var(--site-blue);
}

.offer-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.offer-focus {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 22px;
}

.offer-focus span {
    grid-row: span 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 12px;
    background: #eef7ff;
    color: var(--site-blue);
}

.offer-focus svg {
    width: 24px;
    height: 24px;
}

.offer-focus h2 {
    margin: 0;
    font-size: 18px;
}

.offer-focus p {
    margin: 0;
    color: #5f6973;
    font-size: 14px;
    line-height: 1.55;
}

.offer-section-heading {
    max-width: 760px;
    margin-bottom: 18px;
}

.offer-section-heading h2,
.offer-cta-band h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
}

.offer-services {
    margin-bottom: 30px;
}

.offer-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.offer-service-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 24px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.offer-service-card:hover,
.offer-service-card:focus-within {
    border-color: rgba(52, 152, 219, 0.45);
    box-shadow: var(--site-shadow-strong);
    transform: translateY(-3px);
}

.offer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: #eef7ff;
    color: var(--site-blue);
}

.offer-icon svg {
    width: 27px;
    height: 27px;
}

.offer-service-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.offer-service-card p {
    margin: 0;
    color: #5f6973;
    font-size: 15px;
    line-height: 1.65;
}

.offer-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 28px;
    border-left: 4px solid var(--site-accent-warm);
}

.offer-cta-band .btn {
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .offer-hero {
        grid-template-columns: 1fr;
    }

    .offer-contact-card {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .offer-contact-card h2 {
        grid-column: 1 / -1;
    }

    .offer-focus-grid,
    .offer-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .offer-container {
        padding-top: 20px;
    }

    .offer-hero {
        gap: 14px;
        margin-bottom: 18px;
    }

    .offer-hero-content,
    .offer-contact-card,
    .offer-focus,
    .offer-service-card,
    .offer-cta-band {
        border-radius: 8px;
    }

    .offer-hero-content {
        padding: 24px 20px;
    }

    .offer-hero-content::after {
        right: -38px;
        bottom: -58px;
        width: 170px;
    }

    .offer-hero h1 {
        font-size: 32px;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .offer-intro {
        font-size: 15px;
        line-height: 1.55;
    }

    .offer-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .offer-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .offer-contact-card,
    .offer-focus-grid,
    .offer-services-grid,
    .offer-cta-band {
        grid-template-columns: 1fr;
    }

    .offer-contact-card {
        gap: 12px;
        padding: 20px;
    }

    .offer-focus-grid {
        gap: 12px;
        margin-bottom: 24px;
    }

    .offer-focus {
        padding: 18px;
    }

    .offer-services {
        margin-bottom: 20px;
    }

    .offer-services-grid {
        gap: 12px;
    }

    .offer-service-card {
        min-height: 0;
        padding: 20px;
    }

    .offer-section-heading h2,
    .offer-cta-band h2 {
        font-size: 24px;
    }

    .offer-cta-band {
        display: grid;
        padding: 22px 20px;
    }

    .offer-cta-band .btn {
        width: 100%;
        justify-content: center;
    }

}

@media (max-width: 420px) {
    .offer-hero h1 {
        font-size: 29px;
    }

    .offer-focus {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 3px 12px;
    }

    .offer-focus span {
        width: 42px;
        height: 42px;
    }

}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 470px 470px;
    gap: 34px;
    align-items: stretch;
    max-width: 974px;
    margin: 14px auto 0;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.contact-info-col h1 {
    margin-bottom: 12px;
    font-size: 36px;
}

.contact-desc {
    margin-bottom: 24px;
    color: #4d5963;
    font-size: 14px;
    line-height: 1.6;
}

.contact-details-box {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-left: 4px solid var(--site-blue);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.contact-details-box h3 {
    margin-bottom: 12px;
    font-size: 25px;
}

.contact-details-box p {
    margin-bottom: 8px;
    color: #3c4650;
    font-size: 14px;
    line-height: 1.6;
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: var(--site-text);
    vertical-align: text-bottom;
}

.contact-icon--stacked {
    margin-top: 5px;
}

.contact-address-line {
    margin-left: 25px;
}

.currency-detail-item--fallback .currency-detail-value {
    color: var(--site-soft);
}

.map-container {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 320px;
    margin-top: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

.map-container iframe {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 320px;
    height: 100% !important;
    border: 0 !important;
    pointer-events: none;
}

.map-container.map-active iframe {
    pointer-events: auto;
}

.map-interaction-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    background: transparent;
    touch-action: pan-y;
    user-select: none;
}

.map-container.map-active .map-interaction-overlay {
    display: none;
}

.contact-layout .form-wrapper {
    max-width: none;
    margin: 0 !important;
    padding: 30px !important;
}

.contact-form-panel {
    margin: 0 !important;
    padding: 30px !important;
}

.contact-form-panel h2 {
    margin-top: 0;
}

.contact-layout .form-wrapper h2 {
    font-size: 31px;
}

.contact-layout textarea {
    min-height: 106px;
}

/* Empty state and modal */
.empty-state {
    padding: 60px 20px;
    color: var(--site-soft);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 14px;
    color: var(--site-text);
}

.empty-state--not-found {
    padding: 80px 20px;
}

.empty-state-code {
    margin-bottom: 20px !important;
    color: #e74c3c !important;
    font-size: 48px !important;
}

.empty-state-action {
    margin-top: 20px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal[hidden] {
    display: none !important;
}

html:not(.lenis) body.site-modal-open {
    overflow: hidden;
    /* Fixed header leaves flow; reserve its height so scroll position does not jump. */
    padding-top: var(--site-header-h);
}

/* Sticky header unpins when scroll-lock sets overflow on ancestors (body/html/Lenis). */
html:not(.lenis).site-modal-open .site-header,
html:not(.lenis) body.site-modal-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 44px 40px 40px 40px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
}

.modal-image-wrap {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.modal-content h2 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569 !important;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-icon {
    display: block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.modal-close:hover,
.modal-close:focus-visible {
    background: #e2e8f0;
    color: #0f172a !important;
    transform: rotate(90deg);
    box-shadow: none;
}

.modal-meta {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body {
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-body p {
    margin-top: 0;
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-body hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

.modal-action-close {
    margin-top: 28px;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-action-close:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

footer {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-height: 250px;
    margin-top: auto;
    padding: 58px 40px 48px;
    background: var(--site-navy);
    color: #ecf0f1;
    border: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr;
    gap: 80px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.footer-section {
    padding-top: 0;
    padding-bottom: 0;
}

.footer-section h4 {
    margin: 0 0 11px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.footer-section h4::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.9);
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.65;
}

.footer-section p {
    margin: 0 0 8px;
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section li {
    margin-bottom: 9px;
}

.footer-section a:hover {
    color: var(--site-blue);
    text-decoration: none;
}

.footer-brand {
    display: none !important;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.footer-bottom {
    display: block;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(236, 240, 241, 0.78);
    font-size: 13px;
    line-height: 1.6;
}

.footer-section--contact p {
    margin-bottom: 10px;
}

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

.footer-section--contact a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-section--about p:last-child {
    margin-bottom: 0;
    color: rgba(236, 240, 241, 0.88);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .footer-section {
        padding: 0;
    }
}

/* Loading helpers */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-right: 9px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: site-spin 0.6s linear infinite;
    vertical-align: text-bottom;
}

button[type="submit"].loading .spinner {
    display: inline-block;
}

button[type="submit"].loading {
    opacity: 0.75;
    pointer-events: none;
}

@keyframes site-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: min(360px, calc(100vw - 40px));
    padding: 16px 24px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #17a2b8;
}

.toast-leaving {
    animation: slideOutRight 0.3s ease forwards;
}

/* Interaction polish */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.news-card:focus-within,
.offer-card:focus-within {
    outline: 3px solid rgba(52, 152, 219, 0.45);
    outline-offset: 3px;
}

.news-card,
.offer-card,
.promo-banner,
.weather-box,
.currency-box,
.contact-details-box {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-wrapper,
.btn,
button {
    transition:
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.news-card:hover .news-card-image img,
.news-card:focus-within .news-card-image img {
    transform: scale(1.025);
}

.news-card-image img {
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(44, 62, 80, 0) 55%, rgba(44, 62, 80, 0.08));
}

.site-menu-toggle {
    display: none;
}

/* Motion — layout-only transitions (avoid fighting card/widget hover lifts) */
@media (prefers-reduced-motion: no-preference) {
    main,
    .news-container,
    .offer-container,
    .home-layout,
    .home-news,
    .home-news-feed,
    .home-sidebar,
    .contact-layout,
    .contact-info-col,
    #homeNewsContent,
    #newsContent,
    .news-items-grid,
    .offer-grid,
    .search-box,
    footer,
    .footer-content {
        transition:
            width 320ms cubic-bezier(0.22, 1, 0.36, 1),
            max-width 320ms cubic-bezier(0.22, 1, 0.36, 1),
            padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
            margin 320ms cubic-bezier(0.22, 1, 0.36, 1),
            gap 320ms cubic-bezier(0.22, 1, 0.36, 1),
            grid-template-columns 320ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 180ms ease;
    }

    body.site-resizing .home-layout,
    body.site-resizing .contact-layout,
    body.site-resizing .offer-grid {
        opacity: 0.96;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes site-mobile-shell-in {
    from {
        opacity: 0.88;
    }
    to {
        opacity: 1;
    }
}

@keyframes site-menu-item-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1099px) and (prefers-reduced-motion: no-preference) {
    .site-header-content {
        animation: site-mobile-shell-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .site-header.site-menu-open .site-nav li {
        opacity: 0;
        animation: site-menu-item-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .site-header.site-menu-open .site-nav li:nth-child(1) {
        animation-delay: 35ms;
    }

    .site-header.site-menu-open .site-nav li:nth-child(2) {
        animation-delay: 70ms;
    }

    .site-header.site-menu-open .site-nav li:nth-child(3) {
        animation-delay: 120ms;
    }

    .site-header.site-menu-open .site-nav li:nth-child(4) {
        animation-delay: 170ms;
    }

    .site-header.site-menu-open .site-nav li:nth-child(5) {
        animation-delay: 220ms;
    }

    .site-header.site-menu-open .site-nav li:nth-child(6) {
        animation-delay: 270ms;
    }
}

/* Consolidated responsive authority (hamburger / drawer nav) */
@media (max-width: 1099px) {
    /* mobile header height variable to match expanded header shell with full site name */
    body { --site-header-h: 72px; }

    html,
    body {
        width: 100%;
        max-width: none;
        overflow-x: hidden;
    }

    body {
        display: block;
        font-size: 15px;
    }

    body.site-menu-open {
        overflow: hidden;
        padding-top: var(--site-header-h);
    }

    html.site-menu-open .site-header,
    body.site-menu-open .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 11000; /* ensure header stays above nav panel/backdrop and other fixed UI */
        pointer-events: auto; /* allow interactions with header elements */
        transform: translateZ(0); /* promote to its own layer to avoid stacking issues */
    }

    /* Always keep header visible on small screens (not only when menu open) */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 11000 !important;
    }

    /* Push content down so it isn't hidden by the fixed header */
    body, main {
        padding-top: var(--site-header-h) !important;
    }

    .site-header,
    .site-header-content,
    .site-nav-panel,
    main,
    footer {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .site-header-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        min-height: 72px !important;
        padding: 6px 14px !important;
    }

    .site-logo {
        position: static !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        width: auto !important;
        height: auto !important;
        justify-content: center !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important;
        overflow: hidden !important;
        padding-right: 4px !important;
    }

    .site-logo-main {
        font-size: 24px !important;
        line-height: 1.05 !important;
        flex-shrink: 0;
    }

    .site-logo-subtitle {
        font-size: 9px !important;
        line-height: 1.15 !important;
        flex-shrink: 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: break-word;
    }

    .site-logo:hover {
        transform: none !important;
        opacity: 1 !important;
    }

    .site-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        justify-self: end;
        gap: 9px;
        height: 40px;
        min-width: 94px;
        max-width: 180px;
        width: auto;
        padding: 0 13px !important;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
        font-size: 13px;
        font-weight: 800;
        box-shadow: none;
        transition: opacity 220ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease;
        will-change: opacity, transform;
    }

    .site-menu-toggle:hover,
    .site-menu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.17);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.24);
        transform: none;
    }

    .site-header.site-menu-open .site-menu-toggle {
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .site-logo,
    .site-menu-toggle {
        position: relative !important;
        z-index: 1020;
    }

    .site-menu-toggle-icon {
        width: 18px;
        height: 14px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .site-menu-toggle-icon span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
    }

    .site-header.site-menu-open .site-menu-toggle-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.site-menu-open .site-menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .site-header.site-menu-open .site-menu-toggle-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1005;
        display: block;
        background: rgba(17, 28, 40, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 260ms ease;
    }

    .site-header.site-menu-open .site-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav-panel {
        position: fixed !important;
        top: var(--site-header-h) !important;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1010;
        width: min(330px, calc(100vw - 32px)) !important;
        height: calc(100dvh - var(--site-header-h)) !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column;
        padding: 0 !important;
        overflow: hidden !important;
        background:
            linear-gradient(180deg, rgba(52, 152, 219, 0.08), transparent 34%),
            var(--site-navy);
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: -18px 0 42px rgba(9, 22, 34, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        clip-path: inset(0 0 0 100%);
        transform-origin: right center;
        transform: translateX(100%);
        will-change: transform, opacity;
        transition:
            transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
            clip-path 320ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s linear 320ms;
    }

    .site-header.site-menu-open .site-nav-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        clip-path: inset(0);
        transform: translateX(0);
        transition:
            transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
            clip-path 320ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s linear 0s;
    }

    .site-nav-drawer-head {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        gap: 0;
        margin: 0;
        padding: max(16px, env(safe-area-inset-top, 0px)) 16px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        background:
            linear-gradient(180deg, rgba(52, 152, 219, 0.12), transparent 72%);
    }

    /* Legacy cached markup: <span>site</span> + close as direct children */
    .site-nav-drawer-head:not(:has(.site-nav-drawer-top)) {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .site-nav-drawer-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .site-nav-drawer-logo,
    .site-nav-drawer-head > span {
        color: #ffffff;
        font-size: 28px;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1;
        text-decoration: none;
    }

    .site-nav-drawer-logo {
        display: flex;
        flex-direction: column;
        gap: 1px;
        text-decoration: none;
    }

    .site-nav-drawer-logo-main {
        display: block;
        font-size: 28px;
        font-weight: 900;
        line-height: 1;
        color: #ffffff;
    }

    .site-nav-drawer-logo-subtitle {
        display: block;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0.5px;
        color: #ffffff;
        opacity: 0.95;
    }

    .site-nav-drawer-logo:hover,
    .site-nav-drawer-logo:focus-visible {
        color: #ffffff;
        opacity: 0.92;
    }

    .site-nav-drawer-label {
        margin: 10px 0 0;
        padding: 0;
        color: rgba(255, 255, 255, 0.58);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .site-nav-close {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
        box-shadow: none;
        font: inherit;
        line-height: 1;
        transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .site-nav-close-icon {
        display: block;
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
        transform: translateY(-1px);
    }

    .site-nav-close:hover,
    .site-nav-close:focus-visible {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.24);
        transform: none;
    }

    .site-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-content: start;
        gap: 10px !important;
        flex: 1 1 auto;
        min-height: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        padding: 16px 16px 22px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav li {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0;
    }

    .site-nav a {
        width: 100%;
        height: 52px !important;
        justify-content: flex-start !important;
        padding: 0 17px !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.075);
        font-size: 15px !important;
        line-height: 1.2;
        text-align: left;
        white-space: normal;
    }

    .site-nav a:hover,
    .site-nav a.active,
    .site-nav .current > a,
    .site-nav .active > a {
        border-color: rgba(52, 152, 219, 0.95) !important;
        border-left-width: 5px !important;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    main {
        padding: 28px 12px 60px !important;
    }

    .news-container,
    .offer-container,
    .news-container:has(.home-layout),
    .home-layout,
    .home-news,
    .home-community-hub,
    .home-sidebar,
    .contact-layout,
    .contact-info-col,
    .form-wrapper,
    #homeNewsContent,
    #newsContent,
    .news-items-grid,
    .offer-grid,
    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .home-layout,
    .contact-layout {
        display: block !important;
    }

    .home-news {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    .home-news > .promo-banner,
    .home-news-feed,
    .home-community-hub,
    .home-sidebar {
        grid-column: auto;
        grid-row: auto;
    }

    .home-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 18px 0 8px !important;
    }

    .home-sidebar .weather-box,
    .home-sidebar .currency-box {
        margin: 0;
        padding: 16px 14px;
    }

    .home-sidebar .weather-info h3,
    .home-sidebar .currency-info h3 {
        margin-bottom: 8px;
        font-size: 14px;
        gap: 7px;
    }

    .home-sidebar .widget-title-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .home-sidebar .widget-title-icon .widget-svg-icon {
        width: 15px;
        height: 15px;
    }

    .home-sidebar #weatherCondition {
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 1.35;
    }

    .home-sidebar .weather-details {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .home-sidebar .weather-detail-item,
    .home-sidebar .currency-detail-item {
        padding: 8px 9px;
    }

    .home-sidebar .weather-detail-label,
    .home-sidebar .currency-detail-label {
        font-size: 9px;
    }

    .home-sidebar .weather-detail-value,
    .home-sidebar .currency-detail-value {
        font-size: 12px;
    }

    .home-sidebar .currency-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-sidebar .home-submit-link {
        grid-column: 1 / -1;
        margin-top: 0 !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
    }

    .home-news-feed {
        margin-top: 8px;
    }

    .home-community-hub {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-top: 32px;
        padding-top: 28px;
    }

    .hub-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .hub-link-more {
        white-space: normal;
    }

    .promo-banner,
    .offer-card,
    .weather-box,
    .currency-box,
    .contact-details-box,
    .map-container,
    .form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .promo-banner {
        min-height: 0;
        padding: 32px 24px !important;
    }

    .promo-banner::before {
        display: block;
    }

    .promo-banner::after {
        display: none;
    }

    .promo-banner h2 {
        max-width: 100%;
        font-size: 28px !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .promo-banner p {
        max-width: 100%;
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .home-news h1,
    .news-container > h1,
    .offer-container > h1,
    .contact-info-col h1,
    .form-wrapper h1,
    .form-wrapper h2 {
        font-size: 32px !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    #homeNewsContent,
    #newsContent,
    .news-items-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 20px !important;
        justify-content: center;
        width: 100% !important;
        max-width: 100% !important;
    }

    .offer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #homeNewsContent .news-card,
    #newsContent .news-card,
    .news-items-grid .news-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        width: auto !important;
        max-width: none !important;
        overflow: hidden;
    }

    .news-card-image,
    #homeNewsContent .news-card-image,
    #newsContent .news-card-image {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        border-radius: var(--site-radius) var(--site-radius) 0 0 !important;
    }

    .news-card-image picture,
    .news-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .search-box {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto auto !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .search-box--news {
        grid-template-columns: minmax(0, 1fr) auto minmax(190px, 240px) !important;
    }

    .search-box button,
    .search-box select,
    .search-box input[type="search"] {
        min-width: 0 !important;
        width: auto !important;
    }

    .search-box input[type="search"] {
        min-width: 0 !important;
    }

    .search-box button {
        min-width: 74px !important;
    }

    .search-box select {
        min-width: 190px !important;
    }

    .offer-card {
        min-height: 0;
        height: auto;
        padding: 24px;
        align-self: stretch;
    }

    .contact-layout .form-wrapper,
    .form-wrapper {
        padding: 24px !important;
    }

    .contact-info-col {
        display: block;
    }

    .map-container {
        flex: none;
        min-height: 0;
        margin-top: 0;
    }

    .map-container iframe {
        min-height: 0;
        height: 240px !important;
    }

    footer {
        padding: 32px 20px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 640px) {
    .home-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    #homeNewsContent,
    #newsContent,
    .news-items-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    #homeNewsContent .news-card,
    #newsContent .news-card,
    .news-items-grid .news-card {
        min-height: 0 !important;
    }
}

@media (max-width: 520px) {
    .search-box {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .search-box button,
    .search-box select,
    .search-box input[type="search"] {
        width: 100% !important;
        min-width: 0 !important;
    }

    main {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .news-container,
    .offer-container,
    .news-container:has(.home-layout) {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .promo-banner {
        padding: 28px 20px !important;
    }

    .promo-banner h2 {
        font-size: 26px !important;
    }

    .home-news h1,
    .news-container > h1,
    .offer-container > h1,
    .contact-info-col h1,
    .form-wrapper h1,
    .form-wrapper h2 {
        font-size: 30px !important;
    }
}

@media (max-width: 430px) {
    main,
    .footer-content {
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .site-menu-toggle {
        min-width: 84px;
        padding-right: 11px !important;
        padding-left: 11px !important;
    }
}

@media (max-width: 600px) {
    footer {
        min-height: 0;
        padding: 28px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .footer-section {
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-section--contact {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .footer-section--about {
        padding-top: 0;
    }

    .footer-brand {
        display: none !important;
        margin: 0 0 6px;
        color: #ffffff;
        font-size: 26px;
        font-weight: 900;
        letter-spacing: 0.02em;
        line-height: 1;
    }

    .footer-section--about h4 {
        display: block !important;
    }

    .footer-section h4 {
        margin-bottom: 12px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .footer-section h4::after {
        width: 28px;
        margin-top: 6px;
    }

    .footer-section p,
    .footer-section li,
    .footer-section a {
        font-size: 14px;
        line-height: 1.55;
    }

    .footer-section--about p:last-child {
        margin-bottom: 0;
        color: rgba(236, 240, 241, 0.88);
    }

    .footer-section--nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .footer-section--nav li {
        margin: 0;
    }

    .footer-section--nav li:last-child {
        grid-column: 1 / -1;
    }

    .footer-section--nav a {
        display: block;
        padding: 11px 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.06);
        font-size: 14px;
        font-weight: 700;
        text-align: center;
    }

    .footer-section--nav a:hover,
    .footer-section--nav a:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    .footer-section--contact p {
        margin-bottom: 10px;
    }

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

    .footer-section--contact a {
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .footer-section--nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .footer-section--nav li {
        margin: 0;
    }

    .footer-section--nav li:last-child {
        grid-column: 1 / -1;
    }

    .footer-section--nav a {
        display: block;
        padding: 11px 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.06);
        font-size: 14px;
        font-weight: 700;
        text-align: center;
    }

    .footer-section--nav a:hover,
    .footer-section--nav a:focus-visible {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    .footer-bottom {
        display: block;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        text-align: center;
    }

    .footer-bottom p {
        margin: 0;
        color: rgba(236, 240, 241, 0.78);
        font-size: 12px;
        line-height: 1.5;
    }

    body:has(.site-submit-fab) footer {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    main,
    .footer-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .site-header-content {
        width: 100% !important;
        max-width: none !important;
    }

    .site-nav-panel,
    .site-nav,
    .news-container,
    .offer-container,
    .news-container:has(.home-layout),
    .home-layout,
    .home-news,
    .home-community-hub,
    .home-sidebar,
    .promo-banner,
    #homeNewsContent,
    #newsContent,
    .news-items-grid,
    .news-card,
    .offer-grid,
    .offer-card,
    .contact-layout,
    .contact-info-col,
    .contact-details-box,
    .map-container,
    .form-wrapper,
    .weather-box,
    .currency-box,
    .search-box {
        max-width: 100% !important;
    }

    .site-header-content {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-menu-toggle {
        min-width: 84px;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* Widget loading skeleton */
.site-widget-loading .weather-details,
.site-widget-loading .currency-details {
    position: relative;
    min-height: 72px;
}

.site-widget-loading .weather-detail-item,
.site-widget-loading .currency-detail-item {
    color: transparent !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.06) 100%);
    background-size: 200% 100%;
    animation: site-skeleton-shimmer 1.2s ease-in-out infinite;
    border-color: transparent;
}

.site-widget-loading-text {
    color: var(--site-muted);
    font-style: italic;
}

@keyframes site-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Mobile submit FAB */
.site-submit-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    z-index: 2900;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--site-blue) 0%, #2980b9 100%);
    color: #ffffff !important;
    padding: 0;
    margin: 0;
    box-shadow: 0 10px 24px rgba(52, 152, 219, 0.45);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-submit-fab:hover,
.site-submit-fab:focus-visible {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.04) translateZ(0);
    box-shadow: 0 14px 28px rgba(52, 152, 219, 0.5);
}

.fab-icon {
    width: 28px;
    height: 28px;
}

/* Adjust FAB when cookie banner is present (all viewport sizes) */
body:has(.site-cookie-notice) .site-submit-fab {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1099px) {
    .site-submit-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 16px;
        bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        z-index: 2900;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--site-blue) 0%, #2980b9 100%);
        color: #ffffff !important;
        padding: 0;
        margin: 0;
        box-shadow: 0 10px 24px rgba(52, 152, 219, 0.45);
    }

    .site-submit-fab:hover,
    .site-submit-fab:focus-visible {
        color: #ffffff !important;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 14px 28px rgba(52, 152, 219, 0.5);
    }

    body:has(.site-cookie-notice) .site-submit-fab {
        bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    body.site-menu-open .site-submit-fab,
    body.site-modal-open .site-submit-fab {
        opacity: 0;
        pointer-events: none;
    }
}

.site-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(25, 90, 150, 0.95);
    color: #ffffff;
    box-shadow: 0 -4px 24px rgba(25, 90, 150, 0.5);
}

.site-cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 52rem;
}

.site-cookie-notice a {
    color: #ffffff;
    font-weight: 600;
}

.site-cookie-accept {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    background: #1a4d7a;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-cookie-accept:hover {
    background: #0f3555;
}

.form-wrapper.privacy-page {
    max-width: min(880px, 92vw);
}

.privacy-page .privacy-content {
    line-height: 1.6;
}

.privacy-page .privacy-content h2 {
    margin-top: 1.5rem;
}

/* Force animations to work regardless of prefers-reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.3s !important;
        animation-delay: 0s !important;
        transition-duration: 0.3s !important;
        transition-delay: 0s !important;
    }

    .news-card,
    .offer-card,
    .promo-banner,
    .weather-box,
    .currency-box,
    .contact-details-box,
    button,
    .btn,
    a.btn,
    input[type="submit"],
    input[type="button"],
    .site-submit-fab {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .news-card:hover,
    .news-card:focus-within,
    .offer-card:hover,
    .offer-card:focus-within,
    .promo-banner:hover,
    .promo-banner:focus-within,
    button:hover,
    button:focus-visible,
    .btn:hover,
    a.btn:hover,
    input[type="submit"]:hover,
    input[type="button"]:hover,
    .site-submit-fab:hover,
    .site-submit-fab:focus-visible {
        transform: translateY(-3px) translateZ(0) !important;
    }
}

/* WBI CUSTOM SUBPAGES STYLING */

/* Unified tab switcher */
/* Unified tab switcher */
.submit-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px;
    border-radius: var(--site-radius, 8px);
    border: 1px solid var(--site-line, #e8e8e8);
}

.mode-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--site-muted, #666666);
    padding: 12px 16px;
    border-radius: calc(var(--site-radius, 8px) - 2px);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mode-tab-btn:hover {
    color: var(--site-text, #2c3e50);
    background: rgba(0, 0, 0, 0.03);
}

.mode-tab-btn.active {
    background: linear-gradient(135deg, var(--site-blue, #3498db) 0%, #2980b9 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.submit-form-block h2 {
    font-size: 22px !important;
    margin-bottom: 20px;
    color: var(--site-text, #2c3e50);
}

/* Regional Content Base */
.regional-container {
    width: 100%;
    max-width: var(--site-max-width, 1200px);
    margin: 0 auto;
    padding: 0 15px;
}

/* Premium Hero styling */
.premium-hero {
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.85) 0%, rgba(21, 67, 96, 0.95) 100%);
    padding: 50px 30px;
    border-radius: var(--site-radius, 12px);
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.premium-hero--tour {
    background: linear-gradient(135deg, rgba(23, 165, 137, 0.85) 0%, rgba(19, 141, 117, 0.95) 100%);
}

.premium-hero-content h1 {
    font-size: 38px !important;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.45;
    max-width: 800px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 45px;
}

.about-section h2 {
    font-size: 24px !important;
    color: var(--site-text, #2c3e50);
    margin-top: 0;
    margin-bottom: 18px;
}

.about-section p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--site-muted, #666666);
    margin-bottom: 22px;
}

.tragedy-box {
    background: rgba(231, 76, 60, 0.08);
    border-left: 4px solid #e74c3c;
    padding: 22px;
    border-radius: 0 var(--site-radius, 8px) var(--site-radius, 8px) 0;
    margin-bottom: 25px;
    border-top: 1px solid rgba(231, 76, 60, 0.15);
    border-right: 1px solid rgba(231, 76, 60, 0.15);
    border-bottom: 1px solid rgba(231, 76, 60, 0.15);
}

.tragedy-box h3 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.landmarks-box {
    background: var(--site-panel, #ffffff);
    border: 1px solid var(--site-line, #e8e8e8);
    padding: 24px;
    border-radius: var(--site-radius, 12px);
    box-shadow: var(--site-shadow);
}

.landmarks-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 18px;
    color: var(--site-text, #2c3e50);
    border-bottom: 1px solid var(--site-line, #e8e8e8);
    padding-bottom: 10px;
}

.landmarks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.landmarks-list strong {
    color: var(--site-blue, #3498db);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.landmarks-list p {
    font-size: 13.5px;
    margin: 0;
    line-height: 1.45;
    color: var(--site-muted, #666666);
}

/* Authentic Links Grid */
.authentic-links-section {
    border-top: 1px solid var(--site-line, #e8e8e8);
    padding-top: 40px;
    margin-bottom: 40px;
}

.authentic-links-section h2 {
    font-size: 26px !important;
    color: var(--site-text, #2c3e50);
    margin-bottom: 10px;
}

.links-intro {
    font-size: 15px;
    color: var(--site-muted, #666666);
    margin-bottom: 25px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.link-card {
    background: var(--site-panel, #ffffff);
    border: 1px solid var(--site-line, #e8e8e8);
    border-radius: var(--site-radius, 10px);
    padding: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--site-shadow);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-card:hover {
    background: var(--site-panel, #ffffff);
    border-color: var(--site-blue, #3498db);
    box-shadow: var(--site-shadow-strong);
    transform: translateY(-3px);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-blue, #3498db);
    margin-bottom: 6px;
}

.link-icon svg {
    width: 20px;
    height: 20px;
}

.link-card h4 {
    margin: 0;
    font-size: 17px;
    color: var(--site-text, #2c3e50);
    font-weight: 700;
}

.link-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--site-muted, #666666);
    line-height: 1.45;
    flex: 1;
}

.link-arrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--site-blue, #3498db);
    margin-top: 10px;
}

/* Tour Guides */
.tour-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tour-card {
    background: var(--site-panel, #ffffff);
    border: 1px solid var(--site-line, #e8e8e8);
    border-radius: var(--site-radius, 12px);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--site-shadow);
}

.tour-badge {
    background: rgba(23, 165, 137, 0.15);
    color: #17a589;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.tour-card h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--site-text, #2c3e50);
}

.tour-meta {
    font-size: 12.5px;
    color: rgba(23, 165, 137, 0.9);
    font-weight: 700;
    margin: 0 0 14px;
}

.tour-card p:last-child {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--site-muted, #666666);
}

.tour-info-box {
    background: rgba(52, 152, 219, 0.05);
    border: 1px dashed rgba(52, 152, 219, 0.3);
    border-radius: var(--site-radius, 12px);
    padding: 24px;
    margin-bottom: 40px;
}

.tour-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--site-text, #2c3e50);
    font-size: 18px;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tip-item strong {
    color: var(--site-blue, #3498db);
    display: block;
    margin-bottom: 6px;
    font-size: 14.5px;
}

.tip-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--site-muted, #666666);
}

/* Badges for front-end cards */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.category-badge--announcement {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.category-badge--business {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.ann-phone-meta {
    font-size: 13.5px;
    margin: 8px 0 12px;
    color: var(--site-muted, #666666);
}

.bus-address {
    font-size: 13px;
    color: var(--site-soft, #999999);
    margin: 4px 0 10px;
}

.bus-actions {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.btn-call-icon, .btn-web-icon {
    font-size: 11px !important;
    padding: 6px 10px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px !important;
    line-height: 1 !important;
}

.btn-call-icon svg, .btn-web-icon svg {
    width: 12px !important;
    height: 12px !important;
}

.btn-call-icon {
    background: #2ecc71 !important;
    color: #ffffff !important;
    border: 1px solid #2ecc71 !important;
    font-weight: 700 !important;
}

.btn-call-icon:hover {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #ffffff !important;
}

.btn-web-icon {
    background: var(--site-blue, #3498db) !important;
    color: #ffffff !important;
    border: 1px solid var(--site-blue, #3498db) !important;
    font-weight: 700 !important;
}

.btn-web-icon:hover {
    background: #2980b9 !important;
    border-color: #2980b9 !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .premium-hero {
        padding: 40px 20px;
    }
    .premium-hero h1 {
        font-size: 32px !important;
    }
}

/* WBI Monitoring Panel Premium Styles */
.monitoring-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 16px;
}

@media (min-width: 1024px) {
    .monitoring-dashboard-layout {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.monitoring-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.monitoring-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Admin Action Cards */
.action-cards-container,
.db-health-card,
.terminal-card,
.log-files-card {
    background: var(--site-panel, #ffffff);
    border-radius: var(--site-radius, 8px);
    padding: 20px;
    box-shadow: var(--site-shadow, 0 2px 8px rgba(0, 0, 0, 0.05));
    border: 1px solid var(--site-line, #e8e8e8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-cards-container:hover,
.db-health-card:hover,
.terminal-card:hover,
.log-files-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.action-card-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn-desc {
    font-size: 12.5px;
    color: var(--site-muted, #666666);
    line-height: 1.4;
}

/* Database Health Indicators */
.db-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.db-gauge-item {
    background: var(--site-bg, #f8f8f8);
    border: 1px solid var(--site-line, #e8e8e8);
    border-radius: 6px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.db-gauge-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.db-gauge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.db-gauge-item.gauge-news::before { background: var(--site-blue, #3498db); }
.db-gauge-item.gauge-contacts::before { background: #e74c3c; }
.db-gauge-item.gauge-announcements::before { background: #9b59b6; }
.db-gauge-item.gauge-businesses::before { background: #e67e22; }

.db-gauge-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--site-text, #2c3e50);
}

.db-gauge-label {
    font-size: 12px;
    color: var(--site-muted, #666666);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Monospace Log Terminal */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-badge-group {
    display: flex;
    gap: 6px;
}

.terminal-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.terminal-badge.badge-error { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.terminal-badge.badge-warning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.terminal-badge.badge-notice { background: rgba(52, 152, 219, 0.15); color: #3498db; }

.monitoring-terminal {
    background: #0f1419;
    color: #e6e6e6;
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 16px;
    border-radius: 6px;
    height: 380px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
    border: 1px solid #1a232b;
}

/* Custom Scrollbar for Terminal */
.monitoring-terminal::-webkit-scrollbar {
    width: 8px;
}
.monitoring-terminal::-webkit-scrollbar-track {
    background: #0f1419;
}
.monitoring-terminal::-webkit-scrollbar-thumb {
    background: #2c3e50;
    border-radius: 4px;
}
.monitoring-terminal::-webkit-scrollbar-thumb:hover {
    background: var(--site-blue, #3498db);
}

.log-line {
    margin: 0;
    padding: 5px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: 3px;
    transition: background-color 0.1s ease;
}

.log-line:hover {
    background: rgba(255, 255, 255, 0.03);
}

.log-line:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #8899a6;
    margin-right: 8px;
    font-weight: 700;
}

.log-error {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.06);
    border-left: 3px solid #ff4d4d;
}

.log-warning {
    color: #ffb900;
    background: rgba(255, 185, 0, 0.06);
    border-left: 3px solid #ffb900;
}

.log-notice {
    color: #3399ff;
    background: rgba(51, 153, 255, 0.06);
    border-left: 3px solid #3399ff;
}

.log-info {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.06);
    border-left: 3px solid #2ecc71;
}

/* Log Files Table */
.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 13.5px;
}

.log-table th,
.log-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--site-line, #e8e8e8);
}

.log-table th {
    background: var(--site-bg, #f8f8f8);
    color: var(--site-text, #2c3e50);
    font-weight: 700;
}

.log-table tr:hover {
    background: rgba(52, 152, 219, 0.04);
}

/* Spinner loader animation */
.action-btn-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: monitoring-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes monitoring-spin {
    to { transform: rotate(360deg); }
}

/* WBI Premium Aesthetics Overhaul Styles */

/* Database Health Indicators Progress Bars */
.db-gauge-bar {
    width: 100%;
    height: 5px;
    background: rgba(44, 62, 80, 0.08);
    border-radius: 99px;
    margin-top: 10px;
    overflow: hidden;
}

.db-gauge-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gauge-news .db-gauge-fill { background: linear-gradient(to right, #3498db, #2980b9); }
.gauge-contacts .db-gauge-fill { background: linear-gradient(to right, #e74c3c, #c0392b); }
.gauge-announcements .db-gauge-fill { background: linear-gradient(to right, #9b59b6, #8e44ad); }
.gauge-businesses .db-gauge-fill { background: linear-gradient(to right, #e67e22, #d35400); }

/* Dynamic Header Shrink with Frosted Glass */
.site-header {
    transition: padding 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), backdrop-filter 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header-content {
    transition: min-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-logo, .site-logo-main, .site-logo-subtitle {
    transition: font-size 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.header-shrunk {
    background: rgba(44, 62, 80, 0.82) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16) !important;
}

.site-header.header-shrunk .site-header-content {
    min-height: 52px;
}

@media (min-width: 1100px) {
    .site-header.header-shrunk .site-logo-main {
        font-size: 23px;
    }
    .site-header.header-shrunk .site-logo-subtitle {
        font-size: 8.5px;
        opacity: 0.85;
    }
}

/* Premium Lift & Hover Shimmer Effects */
.news-card, .offer-card, .landmarks-box, .link-card, .tour-card {
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover, .offer-card:hover, .landmarks-box:hover, .link-card:hover, .tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(44, 62, 80, 0.12) !important;
}

.news-card::after, .offer-card::after, .landmarks-box::after, .link-card::after, .tour-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 5;
}

.news-card:hover::after, .offer-card:hover::after, .landmarks-box:hover::after, .link-card:hover::after, .tour-card:hover::after {
    left: 150%;
    transition: left 0.85s ease-in-out;
}

/* Modal Spring zoom transitions */
@keyframes modalSpringIn {
    0% {
        transform: scale(0.93) translateY(10px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal:not([hidden]) .modal-content {
    animation: modalSpringIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center center;
}

/* Skeleton Loading Screens styles */
.skeleton-card {
    background: #ffffff;
    border-radius: var(--site-radius, 8px);
    border: 1px solid var(--site-line, #e8e8e8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--site-shadow, 0 2px 8px rgba(0,0,0,0.05));
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(240, 242, 245, 0) 0%,
        rgba(240, 242, 245, 0.8) 50%,
        rgba(240, 242, 245, 0) 100%
    );
    animation: skeleton-sweep 1.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

@keyframes skeleton-sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.skeleton-item {
    background: #eceff1;
    border-radius: 4px;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.skeleton-title {
    height: 20px;
    width: 75%;
    margin-top: 8px;
}

.skeleton-meta {
    height: 12px;
    width: 40%;
}

.skeleton-text {
    height: 14px;
    width: 100%;
}

.skeleton-text:nth-child(2) {
    width: 90%;
}

.skeleton-text:nth-child(3) {
    width: 60%;
}

/* Premium Tab Switcher for Przeslij */
.submit-mode-selector {
    display: flex;
    gap: 8px;
    background: rgba(44, 62, 80, 0.04);
    padding: 6px;
    border-radius: var(--site-radius, 8px);
    margin-bottom: 24px;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.mode-tab-btn {
    flex: 1;
    background: transparent !important;
    color: var(--site-text, #2c3e50) !important;
    border: none;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none !important;
    transform: none !important;
}

.mode-tab-btn:hover {
    background: rgba(44, 62, 80, 0.08) !important;
    color: var(--site-navy, #2c3e50) !important;
    box-shadow: none !important;
    transform: none !important;
}

.mode-tab-btn.active {
    background: linear-gradient(135deg, var(--site-navy) 0%, var(--site-navy-2) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
}

.submit-form-block {
    animation: tabFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes tabFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    color: #2c3e50;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid #3498db;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #27ae60;
    background: #f0f9f7;
}

.toast-success::before {
    content: '✓ ';
    color: #27ae60;
    font-weight: 700;
    margin-right: 8px;
}

.toast-error {
    border-left-color: #e74c3c;
    background: #fef5f5;
}

.toast-error::before {
    content: '✕ ';
    color: #e74c3c;
    font-weight: 700;
    margin-right: 8px;
}

.toast-info {
    border-left-color: #3498db;
    background: #f0f8ff;
}

.toast-info::before {
    content: 'ℹ ';
    color: #3498db;
    font-weight: 700;
    margin-right: 8px;
}

@media (max-width: 600px) {
    #toastContainer {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: none;
    }
}
    }
}

/* Map active state to disable overlay */
.map-container.map-active .map-interaction-overlay {
    pointer-events: none !important;
    display: none !important;
}

/* Homepage Overhaul: Featured News Hero */
.home-news-hero {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--site-line, #e8e8e8);
    border-radius: var(--site-radius, 12px);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--site-shadow, 0 2px 8px rgba(0, 0, 0, 0.05));
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.home-news-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.12);
    border-color: rgba(52, 152, 219, 0.35);
}

@media (min-width: 860px) {
    .home-news-hero {
        flex-direction: row;
        min-height: 320px;
    }
    .home-news-hero .news-card-image {
        flex: 0 0 45%;
        aspect-ratio: auto;
    }
}

.home-news-hero-content {
    display: flex;
    flex-direction: column;
    padding: 30px;
    flex: 1;
    justify-content: center;
}

.home-news-hero-content h2 {
    font-size: 26px !important;
    line-height: 1.3;
    font-weight: 800;
    margin: 8px 0 12px;
}

.home-news-hero-content h2 a {
    color: var(--site-text, #2c3e50);
}

.home-news-hero-content h2 a:hover {
    color: var(--site-blue, #3498db);
}

.home-news-hero-content .excerpt {
    font-size: 15px;
    color: var(--site-muted, #666666);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-badge--featured {
    background: rgba(52, 152, 219, 0.12);
    color: var(--site-blue, #3498db);
}

/* Home News Grid */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

/* Home Community Hub */
.home-community-hub {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    min-width: 0;
    margin-top: 50px;
    border-top: 1.5px solid var(--site-line, #e8e8e8);
    padding-top: 40px;
}

@media (min-width: 900px) {
    .home-community-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .home-community-hub {
        grid-column: 1;
    }
}

.hub-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid var(--site-line, #e8e8e8);
    padding-bottom: 12px;
    min-width: 0;
}

.hub-header h3 {
    margin: 0;
    font-size: 20px !important;
    font-weight: 800;
    color: var(--site-text, #2c3e50);
    min-width: 0;
    overflow-wrap: anywhere;
}

.hub-link-more {
    flex: 0 0 auto;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--site-blue, #3498db);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.hub-link-more:hover {
    color: var(--site-navy, #2c3e50);
}

.hub-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.hub-card {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--site-line, #e8e8e8);
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hub-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: width 0.2s ease;
}

.hub-column--announcements .hub-card::before {
    background: #9b59b6;
}

.hub-column--businesses .hub-card::before {
    background: #e67e22;
}

.hub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.08);
    border-color: rgba(44, 62, 80, 0.15);
}

.hub-card:hover::before {
    width: 6px;
}

.hub-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--site-text, #2c3e50);
    overflow-wrap: anywhere;
}

.hub-meta {
    margin: 0;
    font-size: 12.5px;
    color: var(--site-soft, #999999);
    overflow-wrap: anywhere;
}

.hub-empty {
    font-size: 14px;
    font-style: italic;
    color: var(--site-soft, #999999);
    padding: 10px 0;
}

/* Visual polish: compact mobile rhythm, quieter widgets, denser footer, consistent actions. */
:root {
    --site-accent-warm: #e67e22;
    --site-accent-community: #9b59b6;
    --site-surface-soft: #f5f7f9;
}

.btn,
a.btn,
button,
input[type="submit"],
input[type="button"],
.read-more-btn,
.hub-link-more {
    letter-spacing: 0;
}

.btn,
a.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 7px;
    line-height: 1.2;
    white-space: normal;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 7px;
    background: var(--site-navy);
    box-shadow: none;
}

.hub-link-more {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 3px 0;
    border-bottom: 2px solid rgba(52, 152, 219, 0.24);
    color: var(--site-blue);
    line-height: 1.2;
    text-decoration: none;
}

.hub-link-more:hover,
.hub-link-more:focus-visible {
    border-bottom-color: var(--site-blue);
}

.home-news-title,
.news-container > h1,
.offer-container > h1,
.contact-info-col h1,
.form-wrapper h1 {
    position: relative;
    padding-bottom: 12px;
}

.home-news-title::after,
.news-container > h1::after,
.offer-container > h1::after,
.contact-info-col h1::after,
.form-wrapper h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-blue), var(--site-accent-warm));
}

.home-community-hub {
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.home-community-hub::before {
    content: "";
    grid-column: 1 / -1;
    width: 78px;
    height: 3px;
    margin-bottom: -18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--site-accent-community), var(--site-accent-warm));
}

.weather-box,
.currency-box {
    padding: 16px;
    background: #fbfcfd;
    border-color: rgba(44, 62, 80, 0.1);
    box-shadow: none;
}

.weather-box:hover,
.currency-box:hover {
    border-color: rgba(44, 62, 80, 0.16);
    box-shadow: 0 5px 14px rgba(44, 62, 80, 0.06);
}

.weather-box::before,
.currency-box::before {
    height: 2px;
    opacity: 0.75;
}

.weather-info h3,
.currency-info h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.weather-info h3 .weather-location,
#weatherCondition {
    color: #7a8490;
    font-size: 12.5px;
}

.widget-title-icon {
    width: 22px;
    height: 22px;
    color: #4b9bd3;
}

.widget-title-icon .widget-svg-icon {
    width: 18px;
    height: 18px;
}

.weather-details,
.currency-details {
    gap: 8px;
}

.weather-detail-item,
.currency-detail-item {
    padding: 8px 9px;
    background: var(--site-surface-soft);
    border-color: rgba(44, 62, 80, 0.06);
}

.weather-detail-label,
.currency-detail-label {
    margin-bottom: 3px;
    font-size: 10px;
}

.weather-detail-value,
.currency-detail-value {
    font-size: 13px;
    line-height: 1.3;
}

.home-submit-link {
    margin-top: 14px;
    padding: 13px 15px !important;
    font-size: 14px !important;
}

footer {
    min-height: 0;
    padding: 38px 32px 30px;
}

.footer-content {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 1fr) minmax(240px, 0.9fr);
    gap: 38px;
    align-items: start;
}

.footer-section h4 {
    margin-bottom: 9px;
    font-size: 15px;
}

.footer-section h4::after {
    width: 30px;
    margin-top: 6px;
}

.footer-section p,
.footer-section li,
.footer-section a {
    font-size: 14px;
    line-height: 1.5;
}

.footer-section p {
    margin-bottom: 6px;
}

.footer-section li {
    margin-bottom: 5px;
}

.footer-section--nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 3px 14px;
}

.footer-section--nav li {
    margin-bottom: 0;
}

.footer-section--nav a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(236, 240, 241, 0.26);
}

.footer-bottom {
    max-width: 1320px;
    margin: 20px auto 0;
    padding-top: 16px;
}

@media (max-width: 900px) {
    main {
        padding-top: 24px !important;
        padding-bottom: 54px !important;
    }

    .home-page-container {
        padding-top: 0 !important;
    }

    .home-news {
        gap: 22px;
    }

    .home-news-feed {
        margin-top: 4px;
    }

    .home-news-title,
    .news-container > h1,
    .offer-container > h1,
    .contact-info-col h1,
    .form-wrapper h1,
    .form-wrapper h2 {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .promo-banner {
        padding: 24px 20px !important;
    }

    .promo-banner h2 {
        margin-bottom: 10px;
    }

    .home-sidebar {
        gap: 10px;
        margin: 12px 0 4px !important;
    }

    .home-sidebar .weather-box,
    .home-sidebar .currency-box {
        padding: 13px 12px;
    }

    .home-community-hub {
        gap: 16px !important;
        margin-top: 24px;
        padding-top: 22px;
    }

    .home-community-hub::before {
        margin-bottom: -8px;
    }

    .hub-column {
        gap: 12px;
    }

    .hub-header {
        gap: 8px;
        padding-bottom: 9px;
    }

    .hub-header h3 {
        font-size: 18px !important;
    }

    .hub-list {
        gap: 10px;
    }

    .hub-card {
        padding: 13px 15px;
    }

    .hub-card h4 {
        margin-bottom: 4px;
        font-size: 15px;
        line-height: 1.28;
    }

    .hub-meta {
        font-size: 12px;
        line-height: 1.35;
    }

    #homeNewsContent,
    #newsContent,
    .news-items-grid {
        gap: 14px !important;
    }

    .news-card-content {
        padding: 16px;
    }

    .news-card h3 {
        min-height: 0;
        margin-bottom: 8px;
        font-size: 17px;
    }

    .news-card .meta {
        margin-bottom: 8px;
        white-space: normal;
    }

    .news-card .excerpt {
        min-height: 0;
        max-height: none;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
    }

    .news-card .excerpt::after {
        display: none;
    }

    .home-news-actions {
        margin-top: 20px;
    }

    footer {
        padding: 28px 20px 24px;
    }

    .footer-content {
        gap: 22px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 18px 10px 44px !important;
    }

    .promo-banner {
        padding: 20px 16px !important;
    }

    .promo-banner p {
        margin-bottom: 12px;
    }

    .home-news h1,
    .news-container > h1,
    .offer-container > h1,
    .contact-info-col h1,
    .form-wrapper h1,
    .form-wrapper h2 {
        font-size: 27px !important;
        line-height: 1.12;
    }

    .btn,
    a.btn,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 40px;
        padding: 10px 14px;
    }

    .home-sidebar {
        gap: 9px;
        margin-top: 10px !important;
    }

    .home-sidebar .weather-box,
    .home-sidebar .currency-box {
        padding: 12px;
    }

    .home-sidebar .weather-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-sidebar .currency-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .home-sidebar .weather-detail-item,
    .home-sidebar .currency-detail-item {
        padding: 7px;
    }

    .currency-detail-value {
        white-space: normal;
    }

    .home-submit-link {
        padding: 12px 14px !important;
    }

    .home-community-hub {
        margin-top: 20px;
        padding-top: 20px;
    }

    .hub-header {
        flex-direction: row;
        align-items: flex-end;
    }

    .hub-link-more {
        flex: 0 1 auto;
        justify-content: flex-end;
        max-width: 46%;
        text-align: right;
        white-space: normal;
    }

    .hub-card {
        padding: 12px 13px 12px 15px;
    }

    .category-badge {
        margin-bottom: 8px;
    }

    footer {
        padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    }

    .footer-content {
        gap: 0;
    }

    .footer-section {
        padding: 13px 0;
    }

    .footer-section h4 {
        margin-bottom: 8px;
    }

    .footer-section--nav ul {
        gap: 8px;
    }

    .footer-bottom {
        margin-top: 14px;
        padding-top: 12px;
    }

    body:has(.site-submit-fab) footer {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 390px) {
    .hub-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-link-more {
        max-width: 100%;
        text-align: left;
    }

    .home-sidebar .currency-details {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-section--nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .footer-section--nav li,
    .footer-section--nav li:last-child {
        grid-column: auto;
        flex: 0 1 auto;
    }

    .footer-section--nav a {
        display: inline-flex;
        min-height: 0;
        padding: 5px 8px;
        border: 0;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.08);
        font-size: 13px;
        line-height: 1.25;
        text-align: left;
    }

    .footer-section--nav a:hover,
    .footer-section--nav a:focus-visible {
        background: rgba(255, 255, 255, 0.14);
        color: #ffffff;
    }

    .footer-section--contact p {
        margin-bottom: 6px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    footer {
        overflow: hidden;
    }

    .footer-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-section {
        min-width: 0;
        width: 100%;
    }

    .footer-section--nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px 8px !important;
        width: 100%;
    }

    .footer-section--nav li,
    .footer-section--nav li:last-child {
        grid-column: auto;
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .footer-section--nav a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding: 7px 8px;
        border: 0;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.08);
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .regional-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .links-grid,
    .tour-routes-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .link-card,
    .tour-card,
    .tour-info-box,
    .landmarks-box,
    .tragedy-box {
        min-width: 0;
        width: 100%;
    }

    .premium-hero {
        padding: 32px 16px;
    }

    .premium-hero h1,
    .premium-hero-content h1 {
        font-size: 28px !important;
        overflow-wrap: anywhere;
    }

    .tour-meta,
    .link-card p,
    .landmarks-list p {
        overflow-wrap: anywhere;
    }

    .footer-section--nav ul {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .footer-section--nav a {
        justify-content: flex-start;
        min-height: 32px;
        text-align: left;
    }
}

