html {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #f3eee6;
    background:
        linear-gradient(135deg, rgba(10, 14, 22, 0.92), rgba(24, 29, 39, 0.82)),
        url('../Images/bg.jpg') center center / cover fixed no-repeat;
}

a {
    color: #f0b35f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #ffd28b;
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    background: rgba(16, 21, 31, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.footer__logo {
    display: block;
    width: 121px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 14px;
    overflow: hidden;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-toggle,
.site-nav__close {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: #f8f4ee;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle__bars span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.site-nav__backdrop {
    display: none;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #f8f4ee;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, background 0.18s ease;
}

.site-nav a:hover {
    text-decoration: none;
    background: rgba(240, 179, 95, 0.2);
    transform: translateY(-1px);
}

.site-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 24px;
}

.home-hero {
    display: flex;
    flex: 1 1 auto;
}

.home-hero__card {
    min-height: 0;
    flex: 1 1 auto;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(39, 44, 56, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
}

.home-hero__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.home-hero__intro {
    max-width: 72ch;
}

.home-hero__intro .lead {
    margin-bottom: 0;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.home-hero__cloud {
    position: relative;
    min-height: 560px;
    margin-top: 10px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left, rgba(240, 179, 95, 0.08), transparent 36%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 34%);
    overflow: hidden;
}

.word-cloud__item {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffe2b0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
    user-select: none;
    opacity: 1;
    transform: translate(0px, 0px) rotate(0deg);
    transition: opacity 2.2s ease, transform 2.2s ease;
    will-change: opacity, transform;
}

.word-cloud__item.is-fading-out {
    opacity: 0;
    transform: translate(var(--word-x, 0px), var(--word-y, 0px)) rotate(var(--word-angle, 0deg)) scale(0.84);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.hero__copy,
.hero__card,
.content-card,
.panel {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(39, 44, 56, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hero__copy {
    padding: 42px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #f7d7a8;
    background: rgba(240, 179, 95, 0.16);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.1;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.lead {
    max-width: 58ch;
    font-size: 1.12rem;
    line-height: 1.75;
    color: rgba(245, 239, 230, 0.9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    text-decoration: none;
}

.button--primary {
    color: #10131a;
    background: linear-gradient(135deg, #ffd28b, #f0b35f);
}

.button--secondary {
    color: #f8f4ee;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.hero__card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero__logo {
    padding: 18px;
    border-radius: 20px;
    background: rgba(244, 241, 236, 0.95);
    text-align: center;
}

.hero__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.facts,
.check-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
}

.address-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    line-height: 1.7;
}

.cookie-table {
    table-layout: auto;
}

.address-table th,
.address-table td {
    padding: 8px 0;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.address-table th {
    width: 42%;
    text-align: left;
    color: #f0d2a0;
    font-weight: 700;
}

.address-table td {
    color: rgba(243, 238, 230, 0.96);
}

.cookie-table th,
.cookie-table td {
    width: auto;
    white-space: normal;
}

.cookie-table th {
    min-width: 0;
}

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

.panel {
    padding: 24px;
}

.panel h2,
.content-card h2 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.content-card {
    padding: 36px 40px;
}

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

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(245, 239, 230, 0.82);
}

.cookie-banner {
    position: sticky;
    bottom: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(18, 22, 31, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner__text {
    color: rgba(245, 239, 230, 0.9);
    line-height: 1.6;
}

.cookie-banner__text h2 {
    margin: 0 0 6px;
}

.content-card p,
.content-card li,
.panel p,
.site-footer,
.address-table td {
    color: rgba(243, 238, 230, 0.92);
}

.content-card {
    border-color: rgba(255, 255, 255, 0.09);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero,
    .panel-grid,
    .two-col,
    .site-footer,
    .site-header {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .site-shell {
        width: min(100% - 16px, 1180px);
        margin: 8px auto;
        padding: 16px;
        border-radius: 22px;
    }

    .site-header {
        gap: 14px;
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .hero__copy,
    .home-hero__card,
    .content-card {
        padding: 24px;
    }

    .home-hero__header {
        margin-bottom: 18px;
    }

    .home-hero__cloud {
        min-height: clamp(320px, 48vh, 520px);
    }

    .brand__logo {
        width: 150px;
    }

    .word-cloud__item {
        max-width: 42vw;
        text-wrap: balance;
    }

    .site-footer {
        gap: 14px;
        margin-top: 18px;
        padding-top: 16px;
    }

    .cookie-banner {
        width: min(100% - 16px, 1180px);
        margin-top: 12px;
    }
}

@media (max-width: 720px) {
    body {
        background-attachment: scroll;
    }

    .site-shell {
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        padding: 14px 12px 12px;
        border-radius: 0;
    }

    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 70;
        flex-direction: column;
        justify-content: flex-start;
        gap: 12px;
        padding: 84px 20px 24px;
        background:
            linear-gradient(180deg, rgba(11, 15, 22, 0.98), rgba(18, 22, 31, 0.98));
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .site-nav.is-open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
        padding: 15px 18px;
        font-size: 1.02rem;
    }

    .site-nav__close {
        display: inline-flex;
        align-self: flex-end;
        margin-bottom: 8px;
    }

    .site-nav__backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
        display: block;
        background: rgba(0, 0, 0, 0.52);
    }

    .site-main {
        gap: 16px;
    }

    .home-hero__card {
        padding: 18px;
        border-radius: 20px;
    }

    .home-hero__header {
        gap: 14px;
        margin-bottom: 14px;
    }

    .home-hero__actions {
        margin-top: 18px;
    }

    h1 {
        margin-bottom: 12px;
        font-size: clamp(2rem, 11vw, 2.9rem);
    }

    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .eyebrow {
        margin-bottom: 10px;
        padding: 5px 10px;
        letter-spacing: 0.11em;
        font-size: 0.66rem;
    }

    .home-hero__cloud {
        min-height: clamp(180px, 26dvh, 240px);
        max-height: 240px;
        margin-top: 0;
        border-radius: 18px;
    }

    .word-cloud__item {
        max-width: 48vw;
        font-size: clamp(0.82rem, 4.1vw, 1.15rem);
        text-wrap: balance;
        transition-duration: 1.4s;
    }

    .site-footer {
        gap: 12px;
        margin-top: 16px;
        padding-top: 14px;
        font-size: 0.95rem;
    }

    .cookie-banner {
        position: fixed;
        inset: 0;
        z-index: 80;
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        padding: 22px 18px;
        border-radius: 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cookie-banner__form {
        width: 100%;
    }

    .cookie-banner .button {
        width: min(100%, 320px);
    }

    .content-card,
    .hero__copy,
    .hero__card {
        padding: 20px;
    }
}
