:root {
    --navy: #142a36;
    --navy-deep: #102c43;
    --crimson: #8e2436;
    --crimson-dark: #7a1c2c;
    --teal: #5ebcd0;
    --teal-hover: #4aa9bd;
    --white: #ffffff;
    --off-white: #f4f4f4;
    --text: #5a5a5a;
    --heading: #1b1b1b;
    --header-h: 92px;
    --container: 1140px;
    --font: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hero,
.section-features,
.section-app,
.section-contact {
    scroll-margin-top: var(--header-h);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 999;
}

.skip-link:focus {
    left: 12px;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--header-h);
    background: var(--navy);
    transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-logo img,
.site-logo .custom-logo {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 46px;
}

.site-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.site-nav svg {
    width: 24px;
    height: 24px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
}

/* Hero */
.hero {
    padding-top: var(--header-h);
    background: #142a36;
    line-height: 0;
}

.hero-art {
    width: 100%;
    height: auto;
    display: block;
}

/* Features / red */
.section-features {
    position: relative;
    background-color: var(--crimson);
    background-image:
        linear-gradient(180deg, rgba(90, 18, 28, 0.28), rgba(90, 18, 28, 0.45)),
        url("../images/devices-bg.png");
    background-size: cover;
    background-position: center;
    padding: 108px 0 96px;
    min-height: 720px;
    overflow: hidden;
}

.section-features::before,
.section-features::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
}

.section-features::before {
    background: radial-gradient(ellipse at center, rgba(142, 36, 54, 0.15) 0%, rgba(80, 12, 24, 0.55) 100%);
}

.features-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 0.88fr 1fr;
    gap: 28px 20px;
    align-items: center;
    min-height: 640px;
}

.features-col {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.feature-item,
.app-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    margin-top: 2px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h3,
.app-point h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.feature-item p,
.app-point p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12.5px;
    line-height: 1.7;
    font-weight: 400;
}

.features-coins {
    display: flex;
    justify-content: center;
}

.features-coins img {
    width: min(100%, 460px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

/* Charts */
.section-charts {
    background: var(--white);
    padding: 72px 0 64px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.chart-card img {
    height: 168px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 22px;
    object-fit: contain;
}

.chart-card p {
    margin: 0 auto;
    max-width: 280px;
    color: #7a7a7a;
    font-size: 13px;
    line-height: 1.7;
}

/* App */
.section-app {
    position: relative;
    background: #ececec url("../images/woman-phone.jpg") right center / cover no-repeat;
    padding: 78px 0 70px;
    overflow: hidden;
}

.section-app::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(236, 236, 236, 0.96) 0%,
        rgba(236, 236, 236, 0.86) 40%,
        rgba(236, 236, 236, 0.42) 70%,
        rgba(236, 236, 236, 0.16) 100%
    );
}

.app-inner {
    position: relative;
    z-index: 1;
}

.app-heading {
    max-width: 560px;
    margin-bottom: 48px;
}

.app-heading h2,
.contact-inner h2 {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--heading);
}

.app-heading h2 strong,
.contact-inner h2 strong {
    font-weight: 800;
}

.app-heading p {
    margin: 0;
    max-width: 430px;
    color: #7c7c7c;
    font-size: 13px;
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 24px;
    align-items: center;
}

.app-points {
    display: flex;
    flex-direction: column;
    gap: 34px;
    max-width: 420px;
}

.app-point .feature-icon {
    color: #2a2a2a;
}

.app-point h3 {
    color: #1e1e1e;
    font-size: 13px;
}

.app-point p {
    color: #7a7a7a;
}

.app-phones {
    position: relative;
    min-height: 520px;
    display: flex;
    justify-content: center;
}

.phone {
    position: absolute;
    width: 248px;
    height: 508px;
    background: #f7f7f8;
    border-radius: 40px;
    padding: 12px 11px 14px;
    box-shadow:
        0 30px 50px rgba(20, 20, 20, 0.18),
        inset 0 0 0 2px #ececee;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 92px;
    height: 18px;
    transform: translateX(-50%);
    background: #111;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    background: #fff;
}

.phone-left {
    left: 8%;
    top: 28px;
    transform: rotate(-7deg);
    z-index: 1;
}

.phone-right {
    right: 6%;
    top: 0;
    transform: rotate(6deg);
    z-index: 2;
}

/* Contact */
.section-contact {
    position: relative;
    background: #0f2c40 url("../images/contact-bg.jpg") center / cover no-repeat;
    padding: 100px 0 88px;
    min-height: 680px;
    color: #fff;
}

.section-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 38, 56, 0.78);
}

.contact-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-inner h2 {
    color: #fff;
    letter-spacing: 5px;
}

.contact-meta {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin: 28px 0 42px;
    flex-wrap: wrap;
}

.contact-meta a,
.contact-meta div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.6px;
    font-weight: 500;
}

.contact-meta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.contact-form {
    max-width: 820px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    text-align: left;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    padding: 13px 14px;
    font-size: 11px;
    letter-spacing: 1.8px;
    font-weight: 600;
    outline: none;
    border-radius: 0;
}

.contact-form textarea {
    min-height: 156px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.92);
}

.contact-form button {
    display: block;
    margin: 28px auto 0;
    min-width: 210px;
    border: 0;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus {
    background: var(--teal-hover);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.form-status {
    min-height: 22px;
    margin: 14px 0 0;
    font-size: 13px;
}

.form-status.is-ok {
    color: #b7f3c4;
}

.form-status.is-error {
    color: #ffb4b4;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.site-footer {
    background: #000;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    padding: 15px 20px;
    font-size: 11px;
    letter-spacing: 0.6px;
}

.site-footer p {
    margin: 0;
}

.admin-bar .site-header {
    top: 32px;
}

.page-plain {
    background: #fff;
    min-height: 70vh;
}

.page-plain .container {
    padding: 140px 0 80px;
    color: #333;
}

.page-plain h1 {
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading);
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .app-layout {
        grid-template-columns: 1fr;
    }

    .features-coins img {
        width: min(100%, 340px);
        margin: 10px auto;
    }

    .app-phones {
        min-height: 480px;
        margin-top: 20px;
    }

    .phone {
        width: 210px;
        height: 430px;
    }

    .charts-grid {
        gap: 28px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--navy-deep);
        padding: 18px 24px 28px;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        flex-direction: row;
        gap: 12px;
        font-size: 13px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .app-heading h2,
    .contact-inner h2 {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .phone-left {
        left: 6%;
    }

    .phone-right {
        right: 6%;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 72px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .site-logo img,
    .site-logo .custom-logo {
        height: 34px;
        max-width: 170px;
    }

    .hero {
        min-height: 86vh;
    }

    .section-features,
    .section-app,
    .section-contact {
        padding: 56px 0;
    }

    .app-phones {
        min-height: 390px;
    }

    .phone {
        width: 160px;
        height: 330px;
        border-radius: 28px;
        padding: 8px;
    }

    .phone img {
        border-radius: 22px;
    }

    .contact-meta {
        gap: 16px 24px;
        flex-direction: column;
        align-items: center;
    }
}
