:root {
    --bg: #fffaf0;
    --bg-soft: #f4fbff;
    --surface: #ffffff;
    --surface-warm: #fff4df;
    --text: #1e293b;
    --heading: #102033;
    --muted: #5b6b7d;
    --line: #dde8ee;
    --line-strong: #c6d9e3;
    --accent: #cf1f26;
    --accent-strong: #aa161b;
    --accent-soft: #fff0ee;
    --sun: #f7b733;
    --sky: #3aa7d6;
    --success: #16805d;
    --shadow: 0 18px 42px rgba(28, 62, 84, 0.12);
    --shadow-soft: 0 8px 24px rgba(28, 62, 84, 0.08);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(244, 251, 255, 0.9) 58%, #ffffff),
        var(--bg);
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(58, 167, 214, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(247, 183, 51, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
}

.glow {
    display: none;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 210px;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.nav-link {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 650;
}

.nav-link:hover {
    background: var(--accent-soft);
    color: var(--accent-strong);
    text-decoration: none;
}

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

main.wrap {
    padding: 20px 0 8px;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin: 16px 0;
}

.card.inner {
    background: #ffffff;
    border-color: var(--line-strong);
    box-shadow: none;
}

h1,
h2,
h3 {
    margin: 0 0 10px;
    color: var(--heading);
    line-height: 1.16;
}

h1 {
    max-width: 760px;
    font-size: 4rem;
    font-weight: 850;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

h3 {
    font-size: 1.08rem;
    font-weight: 800;
}

p {
    line-height: 1.66;
}

.lead {
    max-width: 820px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.66;
    margin: 8px 0 0;
}

.hero {
    min-height: 430px;
    display: grid;
    align-items: center;
    padding: clamp(28px, 6vw, 64px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 58%, rgba(255, 244, 223, 0.9) 100%),
        linear-gradient(135deg, rgba(207, 31, 38, 0.1), rgba(58, 167, 214, 0.14));
    border-color: rgba(198, 217, 227, 0.9);
    box-shadow: var(--shadow);
}

.hero::before {
    content: "TEP";
    position: absolute;
    right: clamp(18px, 5vw, 58px);
    top: 28px;
    color: rgba(207, 31, 38, 0.08);
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(48%, 420px);
    height: 10px;
    background: linear-gradient(90deg, var(--sun), var(--accent), var(--sky));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-contact {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.pill {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.pill a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.92rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--heading);
    text-decoration: none;
    font-weight: 750;
    box-shadow: var(--shadow-soft);
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent-strong);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.grid-3 > .card {
    border-top: 4px solid var(--sky);
}

.grid-3 > .card:nth-child(2) {
    border-top-color: var(--sun);
}

.grid-3 > .card:nth-child(3) {
    border-top-color: var(--success);
}

.split {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 22px;
    margin-top: 18px;
}

.clean {
    margin: 12px 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.75;
}

.clean li::marker {
    color: var(--accent);
}

.contact-box {
    margin-top: 10px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.footer {
    margin: 24px 0 30px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    color: var(--heading);
    font-weight: 850;
}

.footer-muted {
    color: var(--muted);
    margin-top: 6px;
}

.footer-contact {
    color: var(--muted);
    line-height: 1.8;
}

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

@media (max-width: 900px) {
    .grid-3,
    .grid-2,
    .split {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-wrap: wrap;
    }

    .brand {
        min-width: 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .nav-cta {
        width: 100%;
        margin-left: 0;
    }

    .btn {
        flex: 1 1 140px;
        min-width: 0;
        padding-inline: 12px;
        white-space: nowrap;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero::before {
        display: none;
    }

    .pill {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 24px, 1120px);
    }

    .nav {
        align-items: flex-start;
    }

    .brand-logo {
        max-width: 220px;
        height: auto;
    }

    .nav-cta,
    .hero-actions,
    .cta-row {
        width: 100%;
        margin-left: 0;
    }

    h1 {
        font-size: 2.15rem;
    }

    .nav-links {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .hero {
        min-height: 0;
        padding: 26px 20px 34px;
    }

    h2 {
        font-size: 1.55rem;
    }
}
