:root {
    --ink: #122033;
    --muted: #5b6675;
    --line: #d9e1ea;
    --paper: #f7f9fb;
    --white: #ffffff;
    --blue: #0c68b7;
    --blue-deep: #063a70;
    --cyan: #1ab0d8;
    --green: #57b26d;
    --amber: #f1b84b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 8px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: min(180px, 42vw);
    object-fit: contain;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 20px;
    color: var(--muted);
    font-size: 14px;
}

.main-nav a {
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.25fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 56px);
    background:
        linear-gradient(115deg, rgba(7, 28, 52, .92) 0%, rgba(7, 28, 52, .86) 38%, rgba(12, 104, 183, .2) 100%),
        url("../img/aluplan-splash.png") center right / cover;
    color: var(--white);
}

.subhero,
.login-page {
    padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 56px);
}

.subhero {
    background: var(--paper);
}

.subhero h1,
.login-page h1,
.page-contact h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: 0;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 160px);
    background: var(--paper);
}

.login-box {
    display: grid;
    gap: 16px;
    width: min(100%, 440px);
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.login-box label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.login-box input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd6e2;
    border-radius: 7px;
    font: inherit;
}

.login-box button {
    min-height: 44px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: 800;
}

.public-form {
    display: grid;
    gap: 14px;
    width: min(100%, 760px);
}

.public-form.compact-form {
    margin-top: 30px;
}

.public-form h2 {
    margin: 0 0 8px;
}

.public-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.public-form input,
.public-form textarea,
.public-form select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd6e2;
    border-radius: 7px;
    font: inherit;
}

.public-form button {
    width: fit-content;
    min-height: 44px;
    padding: 10px 16px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-weight: 800;
}

.form-ok {
    padding: 11px 12px;
    color: #1f6b35;
    background: #e6f6eb;
    border-radius: 7px;
    font-weight: 700;
}

.lead-dark {
    max-width: 720px;
    color: var(--muted);
    font-size: 20px;
}

.ticket-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    padding: 0 clamp(18px, 4vw, 56px) clamp(58px, 8vw, 96px);
}

.ticket-list,
.ticket-detail {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ticket-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.ticket-row span,
.ticket-row small {
    color: var(--muted);
}

.comment {
    margin: 14px 0;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.comment small {
    display: block;
    color: var(--muted);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toolbar button {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--ink);
    background: #edf4f9;
    border: 1px solid #cadce9;
    border-radius: 7px;
}

.wysiwyg {
    min-height: 130px;
    padding: 14px;
    border: 1px solid #cbd6e2;
    border-radius: 7px;
    background: #ffffff;
}

.form-error {
    padding: 11px 12px;
    color: #8a1f16;
    background: #ffe9e6;
    border-radius: 7px;
    font-weight: 700;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hero h1,
.section h2,
.product-band h2,
.product-band h3,
.image-band h2,
.contact h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.08;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 76px);
}

.lead {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 20px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
}

.button.primary {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #062033;
}

.button.ghost {
    color: var(--white);
}

.hero-visual {
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.hero-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 5px;
}

.section,
.product-band,
.image-band,
.contact {
    padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.intro-section,
.split,
.contact {
    display: grid;
    grid-template-columns: minmax(240px, .74fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 80px);
}

.section-heading h2,
.product-band h2,
.product-band h3,
.image-band h2,
.contact h2 {
    max-width: 520px;
    font-size: clamp(30px, 4vw, 48px);
}

.rich-text {
    color: var(--muted);
    font-size: 18px;
}

.rich-text > :first-child {
    margin-top: 0;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text ul {
    margin: 0;
    padding-left: 20px;
}

.rich-text li + li {
    margin-top: 10px;
}

.product-band {
    background: #eef4f8;
}

.product-copy {
    max-width: 850px;
    margin-bottom: 36px;
}

.product-copy.compact {
    margin-top: -10px;
}

.product-copy h3 {
    font-size: clamp(26px, 3vw, 38px);
}

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

.feature-grid article {
    min-height: 180px;
    padding: 22px;
    background: var(--white);
    border: 1px solid #d7e4ed;
    border-radius: 8px;
}

.feature-grid span {
    display: block;
    margin-bottom: 28px;
    color: var(--blue);
    font-weight: 800;
}

.feature-grid strong {
    display: block;
    font-size: 18px;
}

.feature-grid p {
    margin: 10px 0 0;
    color: var(--muted);
}

.image-band {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
}

.image-band img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.image-band p {
    color: var(--muted);
    font-size: 18px;
}

.muted {
    background: var(--paper);
}

.contact {
    color: var(--white);
    background: #0a223a;
}

.contact p {
    max-width: 560px;
    color: rgba(255, 255, 255, .75);
}

.contact-box {
    display: grid;
    gap: 10px;
    align-self: start;
    padding: 26px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    font-style: normal;
}

.contact-box a {
    color: var(--cyan);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 4vw, 56px);
    color: #6c7784;
    background: #071726;
    font-size: 14px;
}

.site-footer a {
    color: #9ed9ef;
    text-decoration: none;
}

@media (max-width: 920px) {
    .hero,
    .intro-section,
    .split,
    .image-band,
    .contact {
        grid-template-columns: 1fr;
    }

    .ticket-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

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

    .main-nav {
        justify-content: flex-start;
    }

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

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

    .site-footer {
        flex-direction: column;
    }
}
