@font-face {
    font-family: 'Inter Local';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: 'Inter Local';
    font-style: italic;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-cyrillic-wght-italic.woff2') format('woff2-variations');
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: 'Inter Local';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: 'Inter Local';
    font-style: italic;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-italic.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: 'Inter Local';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
    --color-primary: #0055FF;
    --color-text: #FFFFFF;
    --color-line: rgba(255, 255, 255, 0.25);
    --font-main: 'Inter Local', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 24px;
    --border-width: 1px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #E5E9F0;
    font-family: var(--font-main);
    color: var(--color-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
}

.presentation-container {
    background-color: var(--color-primary);
    width: 100%;
    max-width: 1400px;
    min-height: 800px;
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(0, 85, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    border-bottom: var(--border-width) solid var(--color-line);
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.logo-link {
    color: inherit;
    text-decoration: none;
}

.logo-mark-img {
    width: 32px;
    height: 32px;
    display: block;
}

.menu-btn {
    width: 32px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.menu-line {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.menu-btn.open .menu-line:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.open .menu-line:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

main {
    display: grid;
    grid-template-columns: 40% 60%;
    flex-grow: 1;
}

.hero-section {
    padding: 60px;
    border-right: var(--border-width) solid var(--color-line);
    display: grid;
    position: relative;
    overflow: hidden;
}

.hero-section > * {
    grid-column: 1;
    grid-row: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    cursor: pointer;
}

.hero-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    gap: 24px;
}

.hero-section.show-form .hero-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.hero-section.show-form .hero-form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

h1 {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 400px;
}

.hero-form h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.close-icon {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.close-icon:hover {
    transform: rotate(90deg);
}

.form-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-form textarea,
.hero-form input {
    background: transparent;
    border: var(--border-width) solid var(--color-line);
    color: var(--color-text);
    padding: 16px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    resize: none;
}

.hero-form textarea::placeholder,
.hero-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-form textarea:focus,
.hero-form input:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-form button {
    background: white;
    color: var(--color-primary);
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.hero-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-form button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.hp-field {
    display: none;
}

.form-status {
    min-height: 20px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
}

.metrics-grid {
    display: grid;
    position: relative;
    overflow: hidden;
}

.metrics-grid > * {
    grid-column: 1;
    grid-row: 1;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    background-color: var(--color-primary);
    z-index: 10;
}

.metrics-grid.show-menu .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: var(--border-width) solid var(--color-line);
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.3s ease;
    gap: 24px;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.nav-item:last-child {
    border-bottom: none;
}


.nav-num {
    font-size: 14px;
    opacity: 0.5;
    font-weight: 300;
}

.nav-text-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nav-main-text {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.nav-sub-text {
    font-size: 14px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.nav-item:hover .nav-sub-text {
    max-height: 24px;
    margin-top: 6px;
    transform: translateY(0);
    opacity: 1;
}

.nav-icon {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.info-cell {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: background-color 0.3s ease, opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}


.info-cell:hover .icon {
    transform: rotate(90deg);
}

.info-cell:hover .icon-arrow {
    transform: rotate(-90deg);
}

.info-cell:hover .icon-clock {
    transform: scale(1.1);
}

.cell-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.icon {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.number {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
}

.cell-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.cell-content p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

.hidden-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.info-cell:hover .hidden-content {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px;
}

.footer-strip {
    padding: 30px 60px;
    border-top: var(--border-width) solid var(--color-line);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.8;
}

/* CONTENT PAGES STYLES */
.content-main {
    display: block;
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.content-header {
    margin-bottom: 60px;
}

.content-header h1 {
    font-size: 56px;
    margin-bottom: 16px;
}

.content-header p {
    font-size: 20px;
    opacity: 0.8;
}

.content-section {
    margin-bottom: 60px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-box {
    background: transparent;
    border: var(--border-width) solid var(--color-line);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
}

.content-box h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pill-badge {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: var(--color-primary);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.content-box p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.content-text {
    font-size: 18px;
    line-height: 1.6;
}

.content-text h3 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-text ul, .content-text ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.content-text li {
    margin-bottom: 12px;
}

.content-text strong {
    font-weight: 600;
    color: white;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

/* DESKTOP METRICS LAYOUT */
@media (min-width: 1025px) {
    body.landing-page {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    body.landing-page .presentation-container {
        height: min(800px, calc(100vh - 80px));
        min-height: 0;
    }

    body.landing-page main,
    body.landing-page .hero-section,
    body.landing-page .metrics-grid {
        min-height: 0;
    }

    .metrics-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .info-cell.card-1, .info-cell.card-2 { border-bottom: var(--border-width) solid var(--color-line); }
    .info-cell.card-1, .info-cell.card-3 { border-right: var(--border-width) solid var(--color-line); }

    .nav-menu {
        justify-self: end;
        width: 50%;
        height: 100%;
    }
    .metrics-grid.show-menu .card-2,
    .metrics-grid.show-menu .card-4 {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }
}

/* TABLET AND MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
    body {
        padding: 20px;
        align-items: flex-start;
        display: block;
    }
    .presentation-container {
        height: auto;
        min-height: auto;
        border-radius: 20px;
    }
    main {
        grid-template-columns: 1fr;
    }
    .hero-section {
        border-right: none;
        border-bottom: var(--border-width) solid var(--color-line);
        padding: 40px;
    }
    .hero-form {
        gap: 16px;
    }
    header {
        padding: 30px 40px;
    }
    .footer-strip {
        padding: 30px 40px;
    }

    .metrics-content {
        display: flex;
        flex-direction: column;
    }
    .info-cell {
        border-bottom: var(--border-width) solid var(--color-line);
    }
    .info-cell.card-4 {
        border-bottom: none;
    }

    .nav-menu {
        align-self: start;
        width: 100%;
        height: 50%; /* Top half of the grid */
        border-bottom: var(--border-width) solid var(--color-line);
    }

    /* Dynamically reorder mobile grid to seamlessly push cards down */
    .metrics-grid.show-menu .card-1 { order: 1; }
    .metrics-grid.show-menu .card-3 { order: 2; }
    .metrics-grid.show-menu .card-2 { order: 3; }
    .metrics-grid.show-menu .card-4 { order: 4; }

    .metrics-grid.show-menu .card-1,
    .metrics-grid.show-menu .card-3 {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }

    .content-main {
        padding: 40px;
    }
    .content-header h1 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    header {
        padding: 24px 20px;
    }
    .logo {
        font-size: 20px;
    }
    .logo-mark-img {
        width: 24px;
        height: 24px;
    }
    .hero-section {
        padding: 30px 20px;
    }
    h1 {
        font-size: 40px;
        margin-bottom: 24px;
    }
    .hero-sub {
        font-size: 16px;
    }
    .hero-form h2 {
        font-size: 24px;
    }
    .hero-form textarea,
    .hero-form input,
    .hero-form button {
        font-size: 15px;
        padding: 14px 16px;
    }
    .nav-item {
        padding: 0 20px;
        min-height: 80px;
    }
    .nav-main-text {
        font-size: 32px;
    }
    .info-cell {
        padding: 30px 20px;
    }
    .number {
        font-size: 36px;
    }
    .footer-strip {
        padding: 24px 20px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .content-main {
        padding: 30px 20px;
    }
    .content-header h1 {
        font-size: 32px;
    }
    .content-box {
        padding: 24px 20px;
    }
    .content-box h2 {
        font-size: 28px;
    }
    .content-text, .content-box p {
        font-size: 16px;
    }
}
