html {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: #ffffff;
    color: #182033;
    font-family: var(--atsp-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-body-size, 18px);
    line-height: 1.65;
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

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

a {
    color: #087d7a;
}

.screen-reader-text,
.atsp-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.atsp-skip-link:focus {
    top: 10px;
    left: 10px;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 16px;
    clip: auto;
    border-radius: 8px;
    background: #12233f;
    color: #ffffff;
}

.atsp-site-header {
    position: sticky;
    top: 0;
    z-index: 9990;
    background: #ffffff;
    border-bottom: 1px solid #d9e2ea;
    box-shadow: 0 8px 24px rgba(18, 35, 63, 0.08);
}

.atsp-header-wrap,
.atsp-footer-wrap,
.atsp-content-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.atsp-topbar {
    background: #12233f;
    color: #ffffff;
}

.atsp-topbar .atsp-header-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
}

.atsp-topbar p {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.atsp-topbar a {
    color: #f6b73c;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.atsp-header-main .atsp-header-wrap {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 18px;
}

.atsp-branding {
    flex: 0 0 auto;
}

.custom-logo-link,
.atsp-brand-text {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    display: block;
    max-height: 58px;
    width: auto;
}

.atsp-brand-text {
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    gap: 4px;
    color: #12233f;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.atsp-brand-text span {
    color: #087d7a;
}

.atsp-brand-text strong {
    color: #12233f;
}

.atsp-primary-nav {
    flex: 1 1 auto;
}

.atsp-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: var(--atsp-menu-justify, center);
    margin: 0;
    padding: 0;
    list-style: none;
}

.atsp-menu li {
    position: relative;
}

.atsp-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #233448;
    font-family: var(--atsp-menu-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-menu-size, 15px);
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
}

.atsp-menu a:hover,
.atsp-menu a:focus {
    background: #f5f8fb;
    color: #087d7a;
}

.atsp-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    display: grid;
    min-width: 240px;
    gap: 4px;
    margin: 0;
    padding: 10px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(18, 35, 63, 0.14);
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.atsp-menu li:hover > .sub-menu,
.atsp-menu li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.atsp-menu .sub-menu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
}

.atsp-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    border: 1px solid #c9d8e5;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.atsp-search-form label {
    flex: 1 1 auto;
    min-width: 0;
}

.atsp-search-form input {
    width: 100%;
    min-height: 42px;
    border: 0;
    padding: 9px 10px;
    color: #182033;
    font-family: var(--atsp-form-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-form-size, 18px);
}

.atsp-search-form button {
    min-height: 42px;
    border: 0;
    padding: 9px 12px;
    background: #087d7a;
    color: #ffffff;
    font-family: var(--atsp-button-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-button-size, 18px);
    font-weight: 900;
    cursor: pointer;
}

.atsp-header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
}

.atsp-header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--atsp-button-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-button-size, 18px);
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.atsp-header-call {
    background: #c94b3c;
    color: #ffffff;
}

.atsp-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.atsp-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 4px;
    background: #12233f;
}

.atsp-basic-page {
    padding: 72px 0;
    background: #ffffff;
}

.atsp-basic-page h1,
.atsp-single-header h1 {
    margin: 0 0 20px;
    color: #12233f;
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-heading-size, 38px);
    line-height: 1.12;
    letter-spacing: 0;
}

.atsp-post-list {
    display: grid;
    gap: 18px;
}

.atsp-post-card {
    padding: 24px;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(18, 35, 63, 0.06);
}

.atsp-post-card h2 {
    margin: 0 0 10px;
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: calc(var(--atsp-heading-size, 38px) * 0.74);
    line-height: 1.2;
}

.atsp-post-card h2 a {
    color: #12233f;
    text-decoration: none;
}

.atsp-read-more {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #087d7a;
    color: #ffffff;
    font-family: var(--atsp-button-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-button-size, 18px);
    font-weight: 900;
    text-decoration: none;
}

.atsp-single-header {
    padding: 58px 0;
    background: #f5f8fb;
    border-bottom: 1px solid #d9e2ea;
}

.atsp-single-kicker {
    margin: 0 0 10px;
    color: #087d7a;
    font-weight: 900;
}

.atsp-single-content {
    padding: 56px 0;
    max-width: 860px;
}

.atsp-single-content h2,
.atsp-single-content h3 {
    color: #12233f;
    line-height: 1.2;
}

.atsp-site-footer {
    background: #111d2f;
    color: #ffffff;
    font-family: var(--atsp-footer-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.atsp-site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.atsp-site-footer a:hover,
.atsp-site-footer a:focus {
    color: #f6b73c;
}

.atsp-footer-wrap {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(160px, 0.8fr));
    gap: 30px;
    padding: 48px 0;
}

.atsp-footer-brand .atsp-brand-text span,
.atsp-footer-brand .atsp-brand-text strong {
    color: #ffffff;
}

.atsp-footer-brand p,
.atsp-site-footer li,
.atsp-footer-legal p,
.atsp-footer-legal a {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--atsp-footer-size, 15px);
    line-height: 1.55;
}

.atsp-site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 18px;
    letter-spacing: 0;
}

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

.atsp-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.atsp-footer-legal-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
    align-items: center;
    padding: 22px 0;
}

.atsp-footer-legal p {
    margin: 0;
}

.atsp-footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: flex-end;
}

.atsp-footer-widget-band {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.atsp-footer-widgets {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    padding-top: 30px;
    padding-bottom: 30px;
}

.widget,
.wp-block-widget {
    font-family: var(--atsp-widget-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-widget-size, 16px);
}

.widget-title,
.widget h1,
.widget h2,
.widget h3,
.widget h4,
.widget h5,
.widget h6 {
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.atsk-enabled .atsk-section {
    font-size: var(--atsp-body-size, 18px);
}

.atsk-enabled .atsk-section,
.atsk-enabled .atsk-hero,
.atsk-enabled .atsk-contact-band,
.atsk-enabled .atsk-final-cta,
.atsk-enabled .atsk-disclaimer-band,
.atsk-enabled .atsk-chat-panel {
    font-family: var(--atsp-body-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.atsk-enabled .atsk-section h1,
.atsk-enabled .atsk-section h2,
.atsk-enabled .atsk-section h3,
.atsk-enabled .atsk-hero h1,
.atsk-enabled .atsk-final-cta h2,
.atsk-enabled .atsk-contact-band h2,
.atsk-enabled .atsk-disclaimer-band h2,
.atsk-enabled .atsk-chat-card h2 {
    font-family: var(--atsp-heading-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.atsk-enabled .atsk-section h2,
.atsk-enabled .atsk-final-cta h2,
.atsk-enabled .atsk-contact-band h2 {
    font-size: var(--atsp-heading-size, 38px);
}

.atsk-enabled .atsk-section h3,
.atsk-enabled .atsk-chat-card h2,
.atsk-enabled .atsk-disclaimer-band h2 {
    font-size: calc(var(--atsp-heading-size, 38px) * 0.58);
}

.atsk-enabled .atsk-hero h1 {
    font-size: var(--atsp-hero-heading-size, 56px);
}

.atsk-enabled .atsk-section p,
.atsk-enabled .atsk-section li,
.atsk-enabled .atsk-final-cta p,
.atsk-enabled .atsk-contact-band p {
    font-size: var(--atsp-body-size, 18px);
}

.atsk-enabled .atsk-btn,
.atsk-enabled .atsk-link-btn,
.atsk-enabled .atsk-contact-form button {
    font-family: var(--atsp-button-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-button-size, 18px);
}

.atsk-enabled .atsk-contact-form,
.atsk-enabled .atsk-contact-form input,
.atsk-enabled .atsk-contact-form textarea {
    font-family: var(--atsp-form-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: var(--atsp-form-size, 18px);
}

@media (max-width: 1180px) {
    .atsp-menu a {
        padding-inline: 9px;
    }
}

@media (max-width: 980px) {
    .atsk-enabled .atsk-hero h1 {
        font-size: min(var(--atsp-hero-heading-size, 56px), 44px);
    }
}

@media (max-width: 1040px) {
    .atsp-menu-toggle {
        display: inline-flex;
        order: 3;
        margin-left: auto;
    }

    .atsp-primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 14px 20px 20px;
        border-top: 1px solid #d9e2ea;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(18, 35, 63, 0.12);
    }

    .atsp-primary-nav.is-open {
        display: block;
    }

    .atsp-menu {
        display: grid;
        gap: 4px;
        justify-content: stretch;
    }

    .atsp-menu a {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        font-size: max(var(--atsp-menu-size, 15px), 17px);
    }

    .atsp-menu .sub-menu {
        position: static;
        display: grid;
        margin: 4px 0 8px 12px;
        padding: 6px;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .atsp-header-actions {
        margin-left: auto;
    }
}

@media (max-width: 780px) {
    .atsp-topbar .atsp-header-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }

    .atsp-header-main .atsp-header-wrap {
        min-height: 70px;
    }

    .atsp-header-actions {
        display: none;
    }

    .atsp-brand-text {
        font-size: 22px;
    }

    .atsp-basic-page h1,
    .atsp-single-header h1 {
        font-size: min(var(--atsp-heading-size, 38px), 36px);
    }

    .atsk-enabled .atsk-hero h1 {
        font-size: min(var(--atsp-hero-heading-size, 56px), 36px);
    }

    .atsk-enabled .atsk-section h2,
    .atsk-enabled .atsk-final-cta h2,
    .atsk-enabled .atsk-contact-band h2 {
        font-size: min(var(--atsp-heading-size, 38px), 30px);
    }

    .atsp-footer-wrap,
    .atsp-footer-legal-grid {
        grid-template-columns: 1fr;
    }

    .atsp-footer-legal nav {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .atsp-header-wrap,
    .atsp-footer-wrap,
    .atsp-content-wrap {
        width: min(100% - 28px, 1180px);
    }

    .atsp-topbar p {
        font-size: 14px;
    }
}
