/*
Theme Name: NESLON
Theme URI: https://neslon.ru
Author: NESLON
Description: Custom NESLON WordPress theme.
Version: 1.0.0
*/

/* ========================================
   NESLON — BASE RESET
   ======================================== */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body.neslon-site {
    display: block;
    position: relative;
    min-height: 100vh;
    background: #f4f5f7;
    color: #17202c;
}

.neslon-site-wrapper {
    display: block;
    width: 100%;
    min-height: 100vh;
}

.neslon-site-wrapper,
.neslon-site-wrapper * {
    box-sizing: border-box;
}

.neslon-site-wrapper header,
.neslon-site-wrapper main,
.neslon-site-wrapper footer,
.neslon-site-wrapper section {
    display: block;
    width: 100%;
}

.neslon-site-wrapper a {
    color: inherit;
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #17202c;
}



.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* Header */
.neslon-header {
    width: 100%;
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.neslon-header__inner {
    width: min(1200px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

.neslon-logo {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

header a {
    font-size: 24px;
    font-weight: 800;
}


/* Hero */

.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    background: #17202c;
    color: #ffffff;
}

.hero__eyebrow {
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
}

.hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(56px, 8vw, 110px);
    line-height: .92;
    letter-spacing: -.05em;
}

.hero__text {
    max-width: 520px;
    margin: 32px 0;
    font-size: 22px;
    line-height: 1.5;
}

.neslon-button {
    display: inline-flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 12px;
    background: #1688ff;
    color: #ffffff;
    font-weight: 700;
}


/* Test section */

.test-section {
    padding: 120px 0;
    background: #ffffff;
}

.test-section h2 {
    margin: 0 0 20px;
    font-size: 48px;
}

.test-section p {
    font-size: 20px;
}


/* Mobile */

@media (max-width: 700px) {

    header {
        height: 64px;
        padding: 0 20px;
    }

    .hero {
        min-height: 650px;
    }

    .container {
        width: min(100% - 32px, 1200px);
    }

    .hero__text {
        font-size: 18px;
    }

    .test-section {
        padding: 80px 0;
    }

    .test-section h2 {
        font-size: 36px;
    }
}

.neslon-footer {
    width: 100%;
    background: #17202c;
    color: #ffffff;
}

.neslon-footer__inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #16202d 0%,
            #24384b 55%,
            #dce7ef 100%
        );

    color: #ffffff;
}

.hero__container {
    position: relative;
    z-index: 2;

    min-height: calc(100vh - 72px);

    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
}


/* ----------------------------------------
   Hero content
   ---------------------------------------- */

.hero__content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
}

.hero__eyebrow {
    margin: 0 0 24px;

    font-size: 16px;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero__title {
    max-width: 650px;

    margin: 0;

    font-size: clamp(52px, 6vw, 88px);
    line-height: .94;
    letter-spacing: -.055em;
    font-weight: 800;
}

.hero__description {
    max-width: 480px;

    margin: 30px 0;

    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
}


/* ----------------------------------------
   Button
   ---------------------------------------- */

.neslon-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    padding: 16px 22px;

    border-radius: 12px;

    background: #1688ff;
    color: #ffffff;

    font-size: 17px;
    font-weight: 700;

    transition:
        transform .2s ease,
        background .2s ease;
}

.neslon-button:hover {
    transform: translateY(-2px);
    background: #0d79e8;
}

.neslon-button__arrow {
    font-size: 22px;
    line-height: 1;
}


/* ----------------------------------------
   Small feature points
   ---------------------------------------- */

.hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;

    margin-top: 26px;
}

.hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 14px;
    font-weight: 600;

    color: rgba(255, 255, 255, .8);
}


/* ----------------------------------------
   Hero visual
   ---------------------------------------- */

.hero__visual {
    position: relative;

    height: 100%;
    min-height: 650px;
}

.hero__visual-placeholder {
    position: absolute;

    inset: 0;

    overflow: hidden;
}


/* Decorative sky elements */

.hero__visual-placeholder::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: 5%;
    top: 5%;

    border-radius: 50%;

    background: #8fb7d0;

    opacity: .65;
}

.hero__visual-placeholder::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: 42%;
    top: 18%;

    border-radius: 50%;

    background: #ffffff;

    opacity: .18;
}


/* Floating islands */

.hero__island {
    position: absolute;

    border-radius: 50% 50% 35% 35%;

    background: #6c8a5b;

    box-shadow:
        0 30px 50px rgba(0, 0, 0, .25);
}

.hero__island::after {
    content: "";

    position: absolute;

    left: 15%;
    right: 15%;
    bottom: -30px;

    height: 45px;

    background: #536b49;

    clip-path: polygon(
        0 0,
        100% 0,
        72% 100%,
        28% 100%
    );
}

.hero__island--one {
    width: 230px;
    height: 90px;

    right: 3%;
    top: 18%;

    transform: rotate(-4deg);
}

.hero__island--two {
    width: 180px;
    height: 75px;

    right: 40%;
    top: 45%;

    transform: rotate(5deg);
}

.hero__island--three {
    width: 320px;
    height: 120px;

    right: 5%;
    bottom: 10%;

    transform: rotate(3deg);
}


/* Temporary character */

.hero__character {
    position: absolute;

    z-index: 3;

    right: 20%;
    bottom: 18%;

    width: 230px;
    height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 100px 100px 45px 45px;

    background: #202b38;

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .35);

    font-size: 24px;
    font-weight: 800;
    letter-spacing: .08em;
}


/* ----------------------------------------
   Scroll hint
   ---------------------------------------- */

.hero__scroll {
    position: absolute;

    z-index: 5;

    bottom: 22px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;

    color: rgba(255, 255, 255, .75);
}

.hero__scroll span {
    font-size: 18px;
}


/* ========================================
   SECTION 2 — temporary
   ======================================== */

.test-section {
    padding: 120px 0;

    background: #ffffff;
}

.section-label {
    margin: 0 0 14px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;

    color: #1688ff;
}

.test-section h2 {
    margin: 0 0 20px;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.04em;
}

.test-section p {
    max-width: 600px;

    margin: 0;

    font-size: 19px;
    line-height: 1.6;

    color: #647184;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 900px) {

    .hero {
        min-height: auto;
    }

    .hero__container {
        min-height: auto;

        grid-template-columns: 1fr;
    }

    .hero__content {
        padding: 90px 0 40px;
    }

    .hero__visual {
        min-height: 420px;
    }

    .hero__character {
        right: 50%;
        bottom: 10%;

        transform: translateX(50%);

        width: 170px;
        height: 250px;
    }

    .hero__island--one {
        right: 5%;
    }

    .hero__island--two {
        left: 5%;
        right: auto;
    }

    .hero__island--three {
        right: 5%;
    }

    .hero__scroll {
        display: none;
    }
}


@media (max-width: 600px) {

    .hero__title {
        font-size: 52px;
    }

    .hero__description {
        font-size: 18px;
    }

    .hero__features {
        gap: 12px 18px;
    }

    .hero__feature {
        font-size: 13px;
    }

    .hero__visual {
        min-height: 330px;
    }

    .hero__character {
        width: 130px;
        height: 190px;

        font-size: 17px;
    }

    .test-section {
        padding: 80px 0;
    }
}