* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111;
}

/* HEADER */
.header {
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-logo {
    width: 1em;
    height: 1em;
    display: inline-block;
    object-fit: contain;

    transform: scale(1.6);
    transform-origin: center;
}


.brand-badoo {
    color: #078090;
}

.brand-connexion {
    color: #6d05c8;
}

.login-button {
    text-decoration: none;
    padding: 10px 22px;
    border: 2px solid #111;
    color: #111;
    font-weight: 600;
    border-radius: 6px;
}

.login-button:hover {
    background: #111;
    color: #ffffff;
}

/* MAIN */
.main {
    width: 100%;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 24px;
    padding: 14px 34px;

    background: #6d05c8;      /* фиолетовый под бренд */
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;

    border-radius: 10px;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.cta-button:hover {
    background: #4f0393;      /* темнее при наведении */
    box-shadow: 0 8px 20px rgba(109, 5, 200, 0.35);
    transform: translateY(-2px);
}



.content-row {
    display: flex;
    align-items: center;
    gap: 40px;
}



.content-text {
    width: 40%;
    padding: 0 32px;
}


.content-text h2 {
    font-size: 36px;
    margin-right: 50px;

}

.content-text p {
    font-size: 20px;
    line-height: 1.45;
    color: #333;
    max-width: 460px;
}
.section {
    width: 100%;
    padding: 80px 0;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-0 {
    background: linear-gradient(
        to bottom,
        #bd99f6 0%,
        #80b5eb 100%
    );
}

.section-1 {
    background: linear-gradient(
        to bottom,
        #bd99f6 0%,
        #80b5eb 100%
    );
}

.section-2 {
    background: linear-gradient(
        to bottom,
        #80b5eb 0%,
        #f497f7 100%
    );
}

.section-0 .content-text h2 {
    font-size: 50px;
    color: #c00e0e;
    line-height: 1.05;

   white-space: normal;
    overflow: hidden;          /* защита от переполнения */
    text-overflow: ellipsis;   /* безопасно, если экран узкий */

    margin: 0 0 22px 0;
}

.section-0 .content-text p:first-of-type {
    font-size: 26px;
    font-weight: 500;
    color: #222;

    line-height: 1.6;
    max-width: 720px;          /* растянутый, hero-формат */
    margin: 0 0 16px 0;
}

.story-card.is-disabled {
    pointer-events: none;
    cursor: default;
}


.section-0 .content-text p:last-of-type {
    font-size: 24px;           /* чуть меньше — иерархия */
    color: #444;

    line-height: 1.55;
    max-width: 720px;
    margin: 0;
}



.section-0 .content-text {
    width: 55%;          /* было 40% */
    padding-left: 0;     /* текст ближе к краю */
    padding-right: 40px; /* отступ от картинки */
}

.register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 28px;

    width: 360px;
    height: 40px;

    background: #000;
    color: #fff;

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 20px;

    transition: background-color 0.25s ease, transform 0.2s ease;
}

.register-button:hover {
    background: #222;
    transform: translateY(-1px);
}


/* FOOTER */
.footer {
    background: #f6f6f8;
    border-top: 1px solid #e3e3e8;
    padding: 40px 0 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 80px;

    margin-bottom: 28px;
}

.footer-column a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.footer-column a:hover {
    color: #000;
}

.footer-disclaimer {
    font-size: 8px;
    color: #777;
    text-align: center;
}


.content-image {
    width: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    

}

.content-image img {
    width: 100%;
    max-width: 460px;   /* ОДИНАКОВЫЙ размер для всех */
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

.section:nth-of-type(even) .content-row {
    flex-direction: row-reverse;
}

.section-stories {
    background: #ffffff;
}

.stories-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #111;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    text-decoration: none;
    color: inherit;

    border-radius: 18px;
    overflow: hidden;
    background: #f7f7f7;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 20px 22px 26px;
}

.story-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.story-description {
    font-size: 16px;
    line-height: 1.45;
    color: #444;
    margin: 0;
}

.stories-footer {
    text-align: center;
    margin-top: 50px;
}

.stories-more {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #6d05c8;
}

.stories-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    /* HEADER */
    .header-inner {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .brand {
        font-size: 28px;
    }

    .login-button {
        padding: 8px 18px;
        font-size: 14px;
    }

    /* SECTIONS */
    .section {
        padding: 48px 0;
    }

    /* CONTENT ROW */
    .content-row {
        flex-direction: column;
        gap: 28px;
    }

    .section:nth-of-type(even) .content-row {
        flex-direction: column;
    }

    /* TEXT */
    .content-text {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .content-text h2 {
        font-size: 28px;
        margin-right: 0;
    }

    .content-text p {
        font-size: 16px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* HERO (section-0) */
    .section-0 .content-text {
        width: 100%;
        padding-right: 0;
    }

    .section-0 .content-text h2 {
        font-size: 34px;
    }

    .section-0 .content-text p:first-of-type {
        font-size: 18px;
    }

    .section-0 .content-text p:last-of-type {
        font-size: 16px;
    }

    /* BUTTONS */
    .cta-button {
        width: 100%;
        max-width: 320px;
        margin: 24px auto 0;
    }

    .register-button {
        width: 100%;
        max-width: 320px;
    }

    /* IMAGES */
    .content-image {
        width: 100%;
    }

    .content-image img {
        max-width: 320px;
    }

    /* STORIES */
    .stories-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .story-content h3 {
        font-size: 18px;
    }

    .story-description {
        font-size: 15px;
    }

    /* FOOTER */
    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-disclaimer {
        font-size: 8px;
    }
}

.section-3 {
    padding: 10px 0;
}

.section-3 h2 {
    margin-bottom: 18px;
}

.section-3 p {
    margin-bottom: 12px;
    line-height: 1.45;
}
/* SECTION 3 — text closer to edges */
.section-3 .section-inner {
    padding-left: 8px;
    padding-right: 8px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: #869af3;
    max-width: 420px;
    width: calc(100% - 40px);
    padding: 28px 26px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.modal-window h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
}

.modal-window p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.modal-window a {
    color: #6d05c8;
    font-weight: 600;
    text-decoration: none;
}

.modal-window a:hover {
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #f00505;
}




