@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap");

:root {
    --bg: #f5f0e6;
    --surface: #ede5d8;
    --ink: #2a3a3f;
    --body: #4e5f63;
    --tide: #6e9ba0;
    --deep: #2f5d63;
    --shell: #e8b678;
    --stone: #8a8578;
    --dusk-1: #3d4a52;
    --dusk-2: #c98a63;

    --font-head: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --radius: 20px;
    --radius-lg: 24px;
    --radius-sm: 16px;
    --shadow: 0 8px 32px rgba(42, 58, 63, 0.06);
    --shadow-soft: 0 4px 18px rgba(42, 58, 63, 0.05);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur: 600ms;
    --header-h: 84px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--body);
    background-color: var(--bg);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/grain.svg");
    background-repeat: repeat;
    opacity: 0.045;
    pointer-events: none;
    z-index: 9;
}

body.fixed {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
}

h2 {
    font-size: 42px;
}

h3 {
    font-size: 21px;
    line-height: 1.3;
}

p {
    max-width: 62ch;
}

a {
    color: var(--deep);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--tide);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    position: relative;
    padding: 130px 0;
}

.section--tint {
    background-color: #efe8dc;
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 18px;
}

.lead {
    font-size: 18px;
    color: var(--body);
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader img {
    width: 72px;
    height: 72px;
}

html.hide .preloader {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 22px 0;
    transition:
        background-color var(--dur) var(--ease),
        padding var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.header.scrolled {
    background-color: rgba(245, 240, 230, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    padding: 4px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--shell);
    transition: width var(--dur) var(--ease);
}

.nav-link:hover::after {
    width: 100%;
}

.btn::after,
.btn:hover::after {
    content: none;
}

.btn:focus-visible,
.nav-link:focus-visible,
.burger-btn:focus-visible {
    outline: 2px solid var(--tide);
    outline-offset: 3px;
}

.burger-btn {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 32px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.burger-btn span {
    position: absolute;
    left: 6px;
    width: 28px;
    height: 1.5px;
    background-color: var(--ink);
    border-radius: 2px;
    transition:
        transform var(--dur) var(--ease),
        opacity var(--dur) var(--ease),
        top var(--dur) var(--ease);
}

.burger-btn span:nth-child(1) {
    top: 9px;
}
.burger-btn span:nth-child(2) {
    top: 16px;
}
.burger-btn span:nth-child(3) {
    top: 23px;
}

.burger-btn.act span:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
    opacity: 0;
}

.burger-btn.act span:nth-child(3) {
    top: 16px;
    transform: rotate(-45deg);
}

#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}

#mobile-menu.opened {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-nav .nav-link {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 16px 34px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition:
        background-color var(--dur) var(--ease),
        color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.btn-primary {
    background-color: var(--deep);
    color: var(--bg);
}

.btn-primary:hover {
    background-color: var(--shell);
    color: var(--ink);
}

.btn-ghost {
    background-color: transparent;
    color: var(--deep);
    border-color: var(--tide);
}

.btn-ghost:hover {
    background-color: rgba(110, 155, 160, 0.12);
    color: var(--deep);
}

.hero__actions .btn-primary {
    animation: levitate 6s ease-in-out infinite;
}

.hero__actions .btn-primary:hover {
    animation-play-state: paused;
}

@keyframes levitate {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 70px) 0 110px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-bg.webp");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            100deg,
            rgba(245, 240, 230, 0.96) 0%,
            rgba(245, 240, 230, 0.86) 38%,
            rgba(245, 240, 230, 0.42) 66%,
            rgba(245, 240, 230, 0.3) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(245, 240, 230, 0.55) 0%,
            rgba(245, 240, 230, 0) 32%,
            rgba(245, 240, 230, 0.9) 100%
        );
}

.hero__drift {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 150px;
    z-index: 2;
    opacity: 0.34;
    animation: drift 34s linear infinite;
    pointer-events: none;
}

.hero__drift svg {
    width: 100%;
    height: 100%;
}

@keyframes drift {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
}

.hero__title {
    margin-bottom: 22px;
}

.hero__subtitle {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--deep);
    margin-bottom: 26px;
    max-width: 34ch;
}

.hero__text p + p {
    margin-top: 16px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.hero__art {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__art::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 78%;
    padding-bottom: 78%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 182, 120, 0.34) 0%, rgba(232, 182, 120, 0) 68%);
}

.hero__art img {
    position: relative;
    width: 100%;
    max-width: 440px;
    filter: drop-shadow(0 24px 48px rgba(42, 58, 63, 0.14));
    animation: float-art 22s ease-in-out infinite;
}

@keyframes float-art {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

.wave-divider {
    display: block;
    width: 100%;
    height: 70px;
    color: var(--tide);
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.split--reverse .split__media {
    order: -1;
}

.split__title {
    margin-bottom: 24px;
}

.split__text p + p {
    margin-top: 16px;
}

.split__media {
    position: relative;
}

.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(110, 155, 160, 0.22);
    pointer-events: none;
}

.list-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 40px 0 20px;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--surface);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

.feature-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-list .icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    color: var(--deep);
    margin-top: 2px;
}

.feature-list .icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-list span:last-child {
    font-size: 16px;
    line-height: 1.6;
}

.section__cta {
    margin-top: 40px;
}

.features-final {
    position: relative;
    padding: 150px 0 140px;
    overflow: hidden;
    color: var(--bg);
}

.features-final__bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/cta-bg.webp");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.features-final__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(61, 74, 82, 0.92) 0%,
        rgba(61, 74, 82, 0.8) 45%,
        rgba(201, 138, 99, 0.62) 100%
    );
}

.features-final .container {
    position: relative;
    z-index: 2;
}

.features-final h2,
.features-final h3 {
    color: var(--bg);
}

.features-final p {
    color: rgba(245, 240, 230, 0.86);
}

.features-final .eyebrow,
.features-final .list-label {
    color: rgba(245, 240, 230, 0.62);
}

.features-final__head {
    max-width: 760px;
    margin-bottom: 12px;
}

.features-final__head p + p {
    margin-top: 16px;
}

.features-final .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.features-final .feature-list li {
    background-color: rgba(245, 240, 230, 0.09);
    border: 1px solid rgba(245, 240, 230, 0.16);
    box-shadow: none;
}

.features-final .feature-list li:hover {
    background-color: rgba(245, 240, 230, 0.14);
}

.features-final .feature-list .icon {
    color: var(--shell);
}

.features-final .feature-list span:last-child {
    color: rgba(245, 240, 230, 0.9);
}

.features-final__actions {
    margin-top: 52px;
    display: flex;
    justify-content: center;
}

.features-final .btn-primary {
    background-color: var(--shell);
    color: var(--ink);
    padding: 18px 44px;
    font-size: 16px;
}

.features-final .btn-primary:hover {
    background-color: var(--bg);
    color: var(--deep);
}

.footer {
    background-color: var(--deep);
    color: rgba(245, 240, 230, 0.78);
    padding: 72px 0 34px;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) 1fr 1fr;
    gap: 40px 56px;
    align-items: start;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(245, 240, 230, 0.16);
}

.footer .logo img {
    height: 44px;
}

.footer__contact {
    margin-top: 22px;
    font-size: 15px;
}

.footer__contact a {
    color: var(--shell);
}

.footer__contact a:hover {
    color: var(--bg);
}

.footer__domain {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: rgba(245, 240, 230, 0.6);
}

.footer__nav,
.footer__legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

.footer__nav a,
.footer__legal a {
    font-size: 15px;
    color: rgba(245, 240, 230, 0.78);
    width: fit-content;
    padding: 0;
}

.footer__nav a:hover,
.footer__legal a:hover {
    color: var(--shell);
}

.footer__bottom {
    padding-top: 26px;
    font-size: 14px;
    color: rgba(245, 240, 230, 0.55);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 700ms var(--ease),
        transform 700ms var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-page {
    padding: calc(var(--header-h) + 90px) 0 110px;
}

.legal-page h1 {
    font-size: 46px;
    margin-bottom: 34px;
}

.legal-content {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: 54px 58px;
    box-shadow: var(--shadow);
    max-width: 900px;
}

.legal-content h2 {
    font-size: 25px;
    margin: 42px 0 16px;
}

.legal-content h3 {
    font-size: 19px;
    margin: 30px 0 12px;
}

.legal-content p {
    margin-bottom: 16px;
    max-width: none;
}

.legal-content ul {
    margin: 0 0 22px 0;
    display: grid;
    gap: 12px;
}

.legal-content li {
    position: relative;
    padding-left: 26px;
}

.legal-content li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--shell);
}

.legal-content a {
    color: var(--deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

.legal-content .updated {
    margin-top: 34px;
    font-size: 14px;
    color: var(--stone);
}

@media (max-width: 1024px) {
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 36px;
    }

    .section {
        padding: 100px 0;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero__art img {
        max-width: 340px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .split--reverse .split__media {
        order: 0;
    }

    .features-final .feature-list {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 44px 40px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 31px;
    }
    h3 {
        font-size: 19px;
    }

    .nav {
        display: none;
    }
    .burger-btn {
        display: block;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 46px) 0 80px;
    }

    .hero__subtitle {
        font-size: 19px;
    }

    .features-final {
        padding: 100px 0 96px;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .legal-page {
        padding: calc(var(--header-h) + 60px) 0 80px;
    }
    .legal-page h1 {
        font-size: 36px;
    }
    .legal-content {
        padding: 34px 26px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 34px;
    }
    h2 {
        font-size: 27px;
    }

    .hero__actions {
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 15px 26px;
    }

    .hero__art img {
        max-width: 260px;
    }

    .feature-list li {
        padding: 16px 18px;
    }

    .wave-divider {
        height: 44px;
    }

    .mobile-nav .nav-link {
        font-size: 25px;
    }
}
