* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.th-public-page {
    margin: 0;
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    color: #122033;
    background: #f7fbff;
}

.th-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 10px clamp(16px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(8, 33, 63, 0.12);
    backdrop-filter: blur(14px);
}

.th-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #08213f;
    text-decoration: none;
    min-width: 0;
}

.th-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
}

.th-brand strong,
.th-brand small {
    display: block;
}

.th-brand strong {
    font-size: 20px;
    line-height: 1;
    text-transform: uppercase;
}

.th-brand small {
    max-width: 360px;
    margin-top: 4px;
    color: #4d617a;
    font-size: 12px;
    line-height: 1.25;
}

.th-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-nav a,
.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #102033;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.th-nav a:hover {
    background: #eff6ff;
}

.th-nav .th-nav-cta,
.th-btn-primary {
    color: #ffffff;
    background: #e12d39;
    box-shadow: 0 12px 26px rgba(225, 45, 57, 0.24);
}

.th-btn-secondary {
    color: #08213f;
    background: #ffd642;
}

.th-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: #08213f;
    font-size: 20px;
}

.th-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(28px, 5vw, 76px) clamp(16px, 5vw, 72px);
    background:
        linear-gradient(120deg, rgba(8, 33, 63, 0.96), rgba(6, 69, 115, 0.86) 42%, rgba(255, 214, 66, 0.22)),
        url("../img/road-safety-banner.png") center / cover no-repeat;
}

.th-hero-copy {
    color: #ffffff;
}

.th-kicker {
    margin: 0 0 12px;
    color: #ffd642;
    font-weight: 800;
    text-transform: uppercase;
}

.th-hero h1,
.th-section-heading h2 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: 0;
}

.th-hero h1 {
    max-width: 780px;
    font-size: clamp(42px, 7vw, 86px);
}

.th-hero-copy > p:not(.th-kicker) {
    max-width: 670px;
    margin: 22px 0 0;
    color: #eef7ff;
    font-size: 18px;
    line-height: 1.65;
}

.th-actions,
.th-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.th-hero-stats span {
    min-width: 150px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.th-hero-stats strong {
    display: block;
    color: #ffd642;
    font-size: 24px;
}

.th-hero-media img {
    display: block;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.th-section {
    padding: clamp(48px, 7vw, 86px) clamp(16px, 5vw, 72px);
}

.th-section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.th-section-heading h2 {
    color: #08213f;
    font-size: clamp(30px, 5vw, 54px);
}

.th-feature-grid,
.th-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.th-feature-grid article,
.th-price-grid article {
    padding: 26px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(8, 33, 63, 0.1);
    box-shadow: 0 16px 36px rgba(8, 33, 63, 0.08);
}

.th-feature-grid i {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: #138f4d;
    font-size: 24px;
}

.th-feature-grid article:nth-child(2) i {
    background: #0b79d0;
}

.th-feature-grid article:nth-child(3) i {
    background: #e12d39;
}

.th-feature-grid h3,
.th-price-grid h3 {
    margin: 18px 0 10px;
    color: #08213f;
    font-size: 22px;
}

.th-feature-grid p,
.th-price-grid p {
    margin: 0;
    color: #516179;
    line-height: 1.6;
}

.th-packages {
    background: linear-gradient(180deg, #eef7ff, #ffffff);
}

.th-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 6px;
    color: #08213f;
    background: #ffd642;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.th-price-grid .th-price {
    margin: 10px 0;
    color: #e12d39;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.th-price-grid .th-featured-price {
    background: #08213f;
}

.th-price-grid .th-featured-price h3,
.th-price-grid .th-featured-price p {
    color: #ffffff;
}

.th-price-grid .th-featured-price .th-price {
    color: #ffd642;
}

.th-site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    color: #ffffff;
    background: #08213f;
    text-align: center;
}

.th-site-footer img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

@media (max-width: 980px) {
    .th-site-header {
        min-height: 68px;
    }

    .th-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .th-nav {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 18px 36px rgba(8, 33, 63, 0.18);
    }

    .th-nav.is-open {
        display: flex;
    }

    .th-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 34px;
    }

    .th-hero-media {
        order: -1;
    }

    .th-feature-grid,
    .th-price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .th-brand small {
        display: none;
    }

    .th-brand img {
        width: 50px;
        height: 50px;
    }

    .th-brand strong {
        font-size: 16px;
    }

    .th-hero h1 {
        font-size: 40px;
    }

    .th-actions .th-btn,
    .th-hero-stats span {
        width: 100%;
    }
}
