.page {
    overflow: hidden;
}

.container {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
}

/* HEADER */

.header {
    padding: 24px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo,
.hero-title {
    font-family: "ForestSmooth", "Oswald", Arial, sans-serif;
}

.logo {
    font-size: 22px;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.82);
}

.nav {
    display: flex;
    gap: 36px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.top-button,
.button {
    min-height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.top-button,
.button-outline {
    border: 1px solid rgba(37, 154, 220, 0.8);
    color: rgba(255, 255, 255, 0.82);
}

.button-primary {
    background: #2D8DCD;
    color: #ffffff;
}

.top-button img,
.button img {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.language-link {
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
    transition: color 0.25s ease;
}

.language-link.active {
    color: rgba(255, 255, 255, 0.95);
}

.language-link:hover {
    color: #34cfff;
}

.language-divider {
    color: rgba(255, 255, 255, 0.25);
}

/* HERO */

.hero {
    padding: 34px 0 90px;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.coords-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 320px;
    z-index: 20;
}

.hero-content {
    flex: 0 0 45%;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 6;
    padding-top: 260px;
}

.hero-title {
    position: absolute;
    left: 0;
    top: 170px;
    z-index: 5;
    margin: 0;
    font-size: clamp(140px, 13vw, 220px);
    line-height: 0.18;
    letter-spacing: 0.18em;
    font-weight: 400;
    white-space: nowrap;
}

.hero-subtitle {
    margin: 0 0 44px;
    color: #11D7FF;
    font-size: 24px;
    line-height: 1.45;
    letter-spacing: 0.44em;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 0 0 55%;
    min-height: 620px;
    position: relative;
    z-index: 1;
    background-image: url("/assets/img/hero.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 0;
}

.dot-grid {
    position: absolute;
    right: 5px;
    top: 250px;
    z-index: 20;
    width: 180px;
    height: 440px;
    pointer-events: none;
    display: block;
}

/* STORY */

.story {
    padding: 0 0 120px;
}

.story-inner {
    display: flex;
    align-items: center;
    gap: 76px;
}

.story-image {
    flex: 1 1 62%;
    min-height: 500px;
    background: linear-gradient(90deg, rgba(3, 10, 16, 0) 70%, #030A10 100%),
    url("/assets/img/richter.png") center / cover no-repeat;
}

.story-content {
    flex: 1 1 38%;
    padding-left: 72px;
    border-left: 1px solid rgba(70, 130, 160, 0.35);
}

.story-content h2 {
    margin: 0 0 28px;
    font-size: 48px;
    line-height: 1.18;
    font-weight: 400;
}

.line {
    width: 90px;
    height: 3px;
    margin-bottom: 26px;
    background: #11D7FF;
}

.story-content p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 1.55;
}

.text-link {
    display: inline-flex;
    margin-top: 26px;
    color: #11D7FF;
    font-size: 14px;
}

/* VIDEO */

.video-section {
    padding: 0 0 80px;
}

.section-head h2 {
    margin: 0 0 42px;
    font-size: 42px;
    font-weight: 300;
}

.video-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.video-card {
    flex: 1;
    min-height: 260px;
    padding: 0;
    border: 1px solid rgba(33, 151, 218, 0.75);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05));
}

.video-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.play-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.play-button img {
    width: 100%;
    height: 100%;
    display: block;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.88);
}

.video-modal.is-open {
    display: flex;
}

.video-modal-player {
    width: min(100%, 1200px);
    max-height: 80vh;
    background: #000;
}

.video-modal-close {
    position: absolute;
    right: 32px;
    top: 24px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 42px;
    cursor: pointer;
}


.all-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.all-link img {
    width: 22px;
    height: 22px;
}

/* WORLD */

.world {
    padding: 0 0 95px;
}

.world-card {
    min-height: 760px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 90px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.68) 100%),
    url("/assets/img/worlds.png") center / cover no-repeat;
}

.world-content {
    width: 360px;
}

.world-content h2 {
    margin: 0 0 46px;
    font-size: 46px;
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
}

.world-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.55;
}

/* BOOK */

.book {
    padding: 0 0 110px;
}

.book-inner {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.book-text {
    position: absolute;
    left: 0;
    top: 90px;
    width: 470px;
    z-index: 5;
}

.book-text h2 {
    margin: 0 0 30px;
    font-size: 44px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.book-text h2 span {
    color: #11D7FF;
}

.book-text p {
    max-width: 360px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 16px;
    line-height: 1.6;
}

.book-bg {
    position: absolute;
    left: 220px;
    bottom: 0;
    width: 936px;
    height: 672px;
    background: url("/assets/img/book-main.png") center / contain no-repeat;
    z-index: 2;
}

.chapters {
    position: absolute;
    right: 0;
    top: 135px;
    display: flex;
    gap: 38px;
    z-index: 1;
}

.chapter {
    width: 176px;
    height: 276px;
    display: flex;
    justify-content: center;
    padding-top: 44px;
    border: 1px solid rgba(33, 151, 218, 0.65);
    background: url("/assets/img/chapter.png") center / cover no-repeat;
    color: rgba(255, 255, 255, 0.86);
}

/* FOOTER */

/* FOOTER */

.footer {
    padding: 42px 0 48px;
    border-top: 1px solid rgba(33, 151, 218, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    flex: 1;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;

    font-family: "ForestSmooth", "Oswald", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 0.18em;

    color: rgba(255, 255, 255, 0.82);
}

.footer-brand p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
}

.footer-socials {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-socials a {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0.82;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-socials img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.footer-contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);

    transition: color 0.2s ease;
}

.footer-contact:hover {
    color: #11D7FF;
}

.footer-contact img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.72;
}



/* TABLET */

@media (max-width: 1024px) {
    .container {
        width: min(100% - 36px, 920px);
    }

    .header-inner {
        gap: 24px;
    }

    .nav {
        gap: 22px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content {
        min-height: auto;
        padding-top: 120px;
    }

    .hero-image {
        flex: none;
        min-height: 560px;
    }

    .story-inner {
        flex-direction: column;
        gap: 42px;
    }

    .story-image,
    .story-content {
        width: 100%;
    }

    .story-content {
        padding-left: 0;
        border-left: none;
    }

    .video-row {
        flex-wrap: wrap;
    }

    .video-card {
        flex: 1 1 calc(50% - 22px);
    }

    .slider-arrow {
        display: none;
    }
}

@media (max-width: 1024px) {
    .footer-inner {
        gap: 26px;
    }

    .footer-socials {
        gap: 18px;
    }
}

/* MOBILE */

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 560px);
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
    }

    .top-button {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .coords-panel {
        width: 260px;
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 82px;
        letter-spacing: 0.2em;
    }

    .hero-subtitle {
        font-size: 18px;
        letter-spacing: 0.2em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image {
        flex: none;
        min-height: 390px;
    }

    .dot-grid {
        display: none;
    }

    .story-inner,
    .video-row,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-card {
        width: 100%;
    }

    .book-inner {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        overflow: visible;
    }

    .book-text,
    .book-bg,
    .chapters {
        position: static;
        width: 100%;
    }

    .book-bg {
        height: 360px;
    }

    .chapters {
        flex-direction: column;
    }

    .chapter {
        width: 100%;
    }
}

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .footer-brand,
    .footer-socials,
    .footer-contacts {
        width: 100%;
    }

    .footer-socials {
        justify-content: flex-start;
        gap: 18px;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
        opacity: 0.9;
    }

    .footer-socials img {
        width: 30px;
        height: 30px;
    }

    .footer-contacts {
        align-items: flex-start;
    }
}

.footer-contact {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal-content {
    position: relative;
    width: min(100%, 560px);
    padding: 40px;
    border: 1px solid rgba(33, 151, 218, 0.7);
    background: #061018;
}

.contact-modal-content h2 {
    margin: 0 0 28px;
    font-weight: 400;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(33, 151, 218, 0.45);
    background: #030A10;
    color: #fff;
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #11D7FF;
}

.contact-form textarea {
    resize: vertical;
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

.contact-form-status {
    min-height: 22px;
    margin: 0;
    color: #11D7FF;
    font-size: 13px;
    line-height: 1.5;
}

.contact-form-status.is-error {
    color: #ff7c7c;
}

/* ИСПРАВЛЕНИЕ HERO ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */

@media (max-width: 640px) {
    .hero {
        padding: 28px 0 70px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* Координаты больше не абсолютные */
    .coords-panel {
        position: static;
        width: min(100%, 360px);
        height: auto;
        margin: 18px 0 54px;
    }

    .hero-content {
        flex: none;
        width: 100%;
        min-height: auto;
        padding-top: 0;
        position: relative;
        z-index: 5;
    }

    /* REIDOS возвращаем в обычный поток */
    .hero-title {
        position: static;
        margin: 0 0 34px;

        font-size: clamp(62px, 18vw, 78px);
        line-height: 0.95;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .hero-subtitle {
        margin: 0 0 38px;

        font-size: 17px;
        line-height: 1.65;
        letter-spacing: 0.14em;
    }

    .hero-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .hero-buttons .button {
        width: 100%;
        min-height: 58px;
    }

    .hero-image {
        flex: none;
        width: 100%;
        min-height: 420px;
        margin-top: 42px;

        background-size: cover;
        background-position: center top;
    }

    .dot-grid {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-image {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-bottom: 30px;
    }
}