/* =========================================
   DEINHEIMTEXTIL — STYLE.CSS
   ========================================= */


/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #18324a;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}


/* =========================================
   COLORS
   ========================================= */

:root {
    --blue: #183b56;
    --blue-dark: #102c42;
    --blue-light: #315a73;

    --beige: #e8ddcc;
    --beige-light: #f3eee6;

    --cream: #f8f6f1;

    --white: #ffffff;

    --text: #18324a;
    --text-light: #65727c;

    --border: rgba(24, 59, 86, 0.12);

    --shadow: 0 20px 50px rgba(24, 59, 86, 0.08);

    --radius: 22px;
}


/* =========================================
   CONTAINER
   ========================================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   HEADER
   ========================================= */

.header {
    width: 100%;
    padding: 24px 0;

    background: rgba(248, 246, 241, 0.96);

    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--blue);

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -1px;
}

.status {
    padding: 8px 16px;

    border-radius: 50px;

    background: var(--beige);
    color: var(--blue);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 680px;

    padding: 80px 0;
}


/* =========================================
   HERO CONTENT
   ========================================= */

.hero-content {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 70px;

    align-items: stretch;
}


/* =========================================
   HERO TEXT
   ========================================= */

.hero-text {
    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    max-width: 650px;
}

.hero h1 {
    margin-bottom: 28px;

    color: var(--blue);

    font-size: clamp(52px, 6vw, 78px);

    line-height: 1.02;

    letter-spacing: -4px;
}

.hero p {
    max-width: 650px;

    margin-bottom: 18px;

    color: var(--text-light);

    font-size: 18px;

    line-height: 1.75;
}


/* =========================================
   HERO BUTTON
   ========================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 8px;

    padding: 15px 26px;

    border: none;
    border-radius: 50px;

    background: var(--blue);
    color: var(--white);

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    background: var(--blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(24, 59, 86, 0.18);
}


/* =========================================
   HERO CARD
   ========================================= */

.hero-card {
    position: relative;

    width: 100%;

    /*
       Карточка растягивается по высоте
       основной колонки Hero.
    */
    min-height: 425px;

    align-self: stretch;

    overflow: hidden;

    border-radius: 35px;

    background:
        linear-gradient(
            145deg,
            #d8c9b5 0%,
            #eee7dc 100%
        );

    box-shadow: var(--shadow);
}


/* =========================================
   HERO CARD DECORATION
   ========================================= */

.card-decoration {
    position: absolute;

    width: 330px;
    height: 330px;

    top: -100px;
    right: -80px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.38);
}

.card-decoration::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    left: -230px;
    bottom: -310px;

    border-radius: 50%;

    background: rgba(24, 59, 86, 0.08);
}

.card-decoration::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    left: 30px;
    bottom: -240px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.22);
}


/* =========================================
   CARD CONTENT
   ========================================= */

.card-content {
    position: absolute;

    left: 45px;
    right: 45px;

    bottom: 45px;

    color: var(--blue);
}

.card-content h2 {
    margin-bottom: 24px;

    color: var(--blue);

    font-size: clamp(42px, 4vw, 58px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.card-content p {
    max-width: 570px;

    color: var(--blue-light);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================
   NEWSLETTER
   ========================================= */

.newsletter {
    padding: 120px 0;

    background: var(--blue);

    color: var(--white);

    text-align: center;
}

.newsletter-content {
    max-width: 850px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--blue-light);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
}

.newsletter .eyebrow {
    color: var(--beige);
}

.newsletter h2 {
    max-width: 760px;

    margin: 0 auto 24px;

    color: var(--white);

    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.08;

    letter-spacing: -3px;
}

.newsletter-content > p {
    max-width: 620px;

    margin: 0 auto 36px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================
   NEWSLETTER FORM
   ========================================= */

.newsletter-form {
    display: flex;

    width: min(620px, 100%);

    margin: 0 auto;

    padding: 6px;

    border-radius: 60px;

    background: var(--white);

    overflow: hidden;
}

.newsletter-form input {
    flex: 1;

    min-width: 0;

    padding: 14px 20px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--blue);

    font-size: 15px;
}

.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus,
.newsletter-form input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--blue);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    box-shadow: 0 0 0 1000px #ffffff inset;

    border-radius: 50px 0 0 50px;

    transition: background-color 9999s ease-out 0s;
}

.newsletter-form .button {
    margin: 0;

    white-space: nowrap;
}


/* =========================================
   DISCOUNT
   ========================================= */

.discount {
    display: flex;

    flex-direction: column;

    width: fit-content;

    margin: 35px auto 20px;

    padding: 18px 28px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.07);
}

.discount strong {
    margin-bottom: 3px;

    color: var(--beige);

    font-size: 26px;
}

.discount span {
    color: rgba(255, 255, 255, 0.76);

    font-size: 14px;
}

.privacy-note {
    max-width: 600px !important;

    margin: 0 auto !important;

    color: rgba(255, 255, 255, 0.5) !important;

    font-size: 12px !important;

    line-height: 1.5 !important;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    margin-top: 70px;

    background: #ffffff;

    color: var(--blue);
}

.footer-content {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    padding-bottom: 40px;
}

/*pomeniyat poloshenie datenscutz i impressum*/

.footer-links {
    display: flex;
    gap: 30px;
    transform: translateX(-500px);
}

.footer-links a {
    color: var(--text-light);

    font-size: 14px;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--blue);
}


/* =========================================
   LEGAL SECTIONS
   ========================================= */

.legal {
    padding: 45px 0;

    border-top: 1px solid var(--border);
}

.legal h2 {
    margin-bottom: 20px;

    color: var(--blue);

    font-size: 30px;

    letter-spacing: -1px;
}

.legal h3 {
    margin-top: 28px;

    margin-bottom: 8px;

    color: var(--blue);

    font-size: 18px;
}

.legal p {
    max-width: 850px;

    margin-bottom: 12px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}

.legal a {
    color: var(--blue);

    font-weight: 600;
}


/* =========================================
   FOOTER BOTTOM
   ========================================= */

.footer-bottom {
    padding: 25px 0;

    border-top: 1px solid var(--border);

    color: #7b858c;

    font-size: 13px;
}


/* =========================================
   FORM MESSAGE
   ========================================= */

.form-message {
    width: min(620px, 100%);

    margin: 15px auto 0;

    padding: 13px 18px;

    border-radius: 12px;

    font-size: 14px;

    text-align: center;
}

.form-message.success {
    background: rgba(232, 221, 204, 0.18);

    color: var(--beige);
}

.form-message.error {
    background: rgba(255, 255, 255, 0.1);

    color: var(--white);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .hero {
        padding: 70px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-text {
        max-width: 750px;
    }

    .hero-card {
        min-height: 400px;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }


    /* HEADER */

    .header {
        padding: 18px 0;
    }

    .logo {
        font-size: 24px;
    }

    .status {
        padding: 6px 11px;

        font-size: 11px;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding: 60px 0;
    }

    .hero-content {
        gap: 40px;
    }

    .hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 16px;

        line-height: 1.65;
    }

    .hero-card {
        min-height: 390px;

        border-radius: 26px;
    }

    .card-content {
        left: 28px;
        right: 28px;
        bottom: 30px;
    }

    .card-content h2 {
        font-size: 43px;

        letter-spacing: -2px;
    }

    .card-content p {
        font-size: 15px;
    }


    /* NEWSLETTER */

    .newsletter {
        padding: 80px 0;
    }

    .newsletter h2 {
        font-size: 39px;

        letter-spacing: -2px;
    }

    .newsletter-content > p {
        font-size: 16px;
    }


    /* FORM */

    .newsletter-form {
        flex-direction: column;

        padding: 8px;

        border-radius: 20px;
    }

    .newsletter-form input {
        width: 100%;

        padding: 16px;
    }

    .newsletter-form .button {
        width: 100%;
    }


    /* FOOTER */

    .footer {
        padding-top: 45px;
    }

    .footer-content {
        justify-content: flex-start;
    }

    .footer-links {
        flex-direction: column;

        gap: 12px;
    }

    .legal {
        padding: 35px 0;
    }

    .legal h2 {
        font-size: 27px;
    }

    /* =========================================
    LEGAL PAGES
    ========================================= */

    .legal-page {
        min-height: calc(100vh - 180px);
        padding: 100px 0 120px;

        background: linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fafc 55%,
            #eef4f7 100%
        );
    }

    .legal-content {
        max-width: 850px;
    }

    .legal-content .eyebrow {
        display: inline-block;
        margin-bottom: 20px;

        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;

        color: #315b78;
    }

    .legal-content h1 {
        margin: 0 0 45px;

        font-size: clamp(48px, 6vw, 76px);
        line-height: 1;

        letter-spacing: -2px;

        color: #1e3445;
    }

    .legal-content h2 {
        margin: 45px 0 15px;

        font-size: 25px;
        line-height: 1.2;

        color: #1e3445;
    }

    .legal-content p {
        max-width: 760px;

        margin: 0 0 20px;

        font-size: 16px;
        line-height: 1.8;

        color: #68737b;
    }

    .legal-back {
        display: inline-flex;
        margin-top: 30px;
        text-decoration: none;
    }


    /* =========================================
    LEGAL PAGES — MOBILE
    ========================================= */

    @media (max-width: 600px) {

        .legal-page {
            padding: 70px 0 90px;
        }

        .legal-content h1 {
            margin-bottom: 35px;
            font-size: 48px;
        }

        .legal-content h2 {
            margin-top: 35px;
            font-size: 22px;
        }

        .legal-content p {
            font-size: 15px;
            line-height: 1.7;
        }
    }

    /* =====================================================
    NEWSLETTER CONSENT MODAL
    ===================================================== */

    .consent-modal[hidden] {
        display: none;
    }

    .consent-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 20px;
    }

    .consent-modal__backdrop {
        position: absolute;
        inset: 0;

        background: rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(2px);
    }

    .consent-modal__dialog {
        position: relative;
        z-index: 1;

        width: 100%;
        max-width: 480px;

        background: #ffffff;

        padding: 36px 36px 30px;

        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.18);

        animation: consentModalOpen 0.22s ease;
    }


    /* Close button */

    .consent-modal__close {
        position: absolute;

        top: 14px;
        right: 16px;

        width: 34px;
        height: 34px;

        padding: 0;

        border: 0;
        background: transparent;

        color: #555;
        font-size: 28px;
        line-height: 1;

        cursor: pointer;
    }

    .consent-modal__close:hover {
        color: #000;
    }


    /* Small heading */

    .consent-modal .eyebrow {
        display: block;

        margin-bottom: 12px;

        font-size: 11px;
        font-weight: 600;

        letter-spacing: 0.14em;
    }


    /* Title */

    .consent-modal h2 {
        margin: 0 0 18px;

        font-size: 25px;
        line-height: 1.25;
    }


    /* Text */

    .consent-modal__dialog > p {
        margin: 0 0 24px;

        font-size: 14px;
        line-height: 1.6;

        color: #555;
    }


    /* Checkbox area */

    .consent-checkbox {
        display: flex;
        align-items: flex-start;
        gap: 12px;

        padding: 16px;

        background: #f7f7f5;

        cursor: pointer;
    }

    .consent-checkbox input {
        flex: 0 0 auto;

        width: 18px;
        height: 18px;

        margin: 2px 0 0;

        cursor: pointer;
    }

    .consent-checkbox span {
        font-size: 13px;
        line-height: 1.55;

        color: #444;
    }

    .consent-checkbox a {
        color: inherit;
        text-decoration: underline;
    }


    /* Error */

    .consent-modal__error {
        margin: 10px 0 0 !important;

        font-size: 12px !important;
        color: #a12b2b !important;
    }


    /* Buttons */

    .consent-modal__actions {
        display: flex;
        align-items: center;
        gap: 20px;

        margin-top: 24px;
    }

    .consent-modal__actions .button {
        flex: 1;
    }

    .consent-cancel {
        padding: 8px 0;

        border: 0;
        background: transparent;

        font: inherit;
        font-size: 13px;

        color: #666;

        text-decoration: underline;

        cursor: pointer;
    }

    .consent-cancel:hover {
        color: #000;
    }


    /* Prevent background scrolling */

    body.modal-open {
        overflow: hidden;
    }


    /* Opening animation */

    @keyframes consentModalOpen {

        from {
            opacity: 0;
            transform: translateY(8px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

}

/* =====================================================
   NEWSLETTER CONSENT MODAL — DESKTOP FIX
===================================================== */

@media (min-width: 601px) {

    .consent-modal[hidden] {
        display: none !important;
    }

    .consent-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 20px;
    }

    .consent-modal__backdrop {
        position: absolute;
        inset: 0;

        background: rgba(10, 25, 38, 0.55);
        backdrop-filter: blur(3px);
    }

    .consent-modal__dialog {
        position: relative;
        z-index: 1;

        width: calc(100% - 40px);
        max-width: 480px;

        padding: 36px;

        background: #ffffff;
        color: #18324a;

        border-radius: 22px;

        text-align: left;

        box-shadow:
            0 25px 70px rgba(0, 0, 0, 0.25);
    }

    .consent-modal__close {
        position: absolute;

        top: 14px;
        right: 16px;

        width: 34px;
        height: 34px;

        padding: 0;
        border: 0;

        background: transparent;
        color: #65727c;

        font-size: 28px;
        line-height: 1;

        cursor: pointer;
    }

    .consent-modal .eyebrow {
        display: block;

        margin-bottom: 12px;

        color: #315a73;

        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .consent-modal h2 {
        margin: 0 0 18px;

        color: #18324a;

        font-size: 28px;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .consent-modal__dialog > p {
        margin: 0 0 22px;

        color: #65727c;

        font-size: 14px;
        line-height: 1.6;
    }

    .consent-checkbox {
        display: flex;
        align-items: flex-start;
        gap: 12px;

        padding: 16px;

        background: #f3eee6;
        border-radius: 12px;

        cursor: pointer;
    }

    .consent-checkbox input {
        flex: 0 0 auto;

        width: 18px;
        height: 18px;

        margin-top: 2px;

        cursor: pointer;
    }

    .consent-checkbox span {
        color: #18324a;

        font-size: 13px;
        line-height: 1.55;
    }

    .consent-checkbox a {
        color: #183b56;
        text-decoration: underline;
        font-weight: 600;
    }

    .consent-modal__error {
        margin: 10px 0 0 !important;

        color: #a12b2b !important;

        font-size: 12px !important;
    }

    .consent-modal__actions {
        display: flex;
        align-items: center;
        gap: 18px;

        margin-top: 24px;
    }

    .consent-modal__actions .button {
        flex: 1;

        margin: 0;
    }

    .consent-cancel {
        padding: 8px 0;

        border: 0;
        background: transparent;

        color: #65727c;

        font: inherit;
        font-size: 13px;

        text-decoration: underline;

        cursor: pointer;
    }

    body.modal-open {
        overflow: hidden;
    }

}

@media (max-width: 600px) {

    .card-content p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

}

@media (max-width: 600px) {

    .footer-links {
        transform: none !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

}

@media (max-width: 600px) {

    .hero-card {
        min-height: 560px !important;
        height: auto !important;
    }

    .card-content {
        top: 30px !important;
        bottom: auto !important;
    }

}

@media (min-width: 901px) {

    .hero-card {
        min-height: 500px;
    }

    .card-content {
        top: 45px;
        bottom: auto;
    }

}

.hero-text > .button {
    margin-top: 80px;
}

@media (max-width: 600px) {

    .newsletter-turnstile {
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: visible;
    }

    .newsletter-turnstile > div {
        margin-left: auto !important;
        margin-right: auto !important;
    }

}