@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --red: #e30613;
    --black: #0b0b0b;
    --dark: #151515;
    --gray: #f4f4f2;
    --gray-dark: #e4e4e0;
    --text: #111111;
    --muted: #666666;
    --white: #ffffff;
    --border: #ddddda;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
    font-family: "Manrope", Arial, sans-serif;
}

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

a {
    color: inherit;
}

.container {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;

    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid #eeeeeb;
}

.header-inner {
    height: 100%;

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

    gap: 35px;
}

.logo {
    flex-shrink: 0;

    font-size: 28px;
    line-height: 1;
    font-weight: 800;

    color: var(--red);

    letter-spacing: -1.5px;
    text-decoration: none;
}

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

.menu a {
    position: relative;

    color: #111;
    text-decoration: none;

    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

.menu a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: width .2s ease;
}

.menu a:hover::after {
    width: 100%;
}

.header-btn {
    flex-shrink: 0;

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

    min-height: 48px;
    padding: 0 26px;

    background: var(--red);
    color: #fff;

    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s ease,
        transform .2s ease;
}

.header-btn:hover {
    background: #c8000b;
    transform: translateY(-2px);
}


/* =========================
   HERO
========================= */

.hero {
    padding: 78px 0 88px;

    background: var(--gray);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);

    gap: clamp(50px, 6vw, 100px);

    align-items: center;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    max-width: 690px;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .11em;

    color: #656562;
}

.hero h1 {
    margin: 32px 0 38px;

    font-size: clamp(76px, 8.3vw, 132px);
    line-height: .84;

    font-weight: 800;

    letter-spacing: -.07em;
}

.hero h1 span {
    color: var(--red);
}

.hero-description {
    max-width: 780px;

    margin: 0 0 18px;

    font-size: clamp(19px, 1.65vw, 25px);
    line-height: 1.48;

    letter-spacing: -.025em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 38px;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;

    padding: 0 30px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.btn-primary {
    background: var(--red);
    color: #fff;

    border: 1px solid var(--red);
}

.btn-primary:hover {
    background: #c8000b;
    border-color: #c8000b;

    transform: translateY(-2px);
}

.btn-outline {
    color: #111;

    border: 1px solid #111;
}

.btn-outline:hover {
    background: #111;
    color: #fff;

    transform: translateY(-2px);
}

.hero-photo {
    position: relative;

    min-width: 0;
}

.hero-photo img {
    width: 100%;
    height: 630px;

    object-fit: cover;
    object-position: center;

    border-radius: 36px;
}

.hero-badge {
    position: absolute;

    left: -42px;
    bottom: 30px;

    min-width: 185px;

    padding: 22px 27px;

    background: #fff;

    border-radius: 24px;

    box-shadow: 0 18px 55px rgba(0,0,0,.13);
}

.hero-badge strong {
    display: block;

    margin-bottom: 7px;

    color: var(--red);

    font-size: 52px;
    line-height: .9;
    font-weight: 800;

    letter-spacing: -.05em;
}

.hero-badge span {
    display: block;

    max-width: 125px;

    font-size: 13px;
    line-height: 1.35;
}


/* =========================
   NUMBERS
========================= */

.numbers {
    padding: 50px 0 70px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.number-card {
    min-width: 0;

    padding: 34px 32px;

    background: var(--gray);

    border-radius: 27px;
}

.number-card strong {
    display: block;

    margin-bottom: 9px;

    font-size: clamp(39px, 3.4vw, 56px);
    line-height: .95;

    font-weight: 800;

    letter-spacing: -.055em;
}

.number-card span {
    display: block;

    color: #62625e;

    font-size: 14px;
    line-height: 1.4;
}


/* =========================
   COMMON SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.section-label {
    margin-bottom: 23px;

    color: var(--red);

    font-size: 12px;
    line-height: 1.4;

    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .15em;
}

.section h2,
.contact h2 {
    max-width: 1200px;

    margin: 0 0 55px;

    font-size: clamp(48px, 5.5vw, 82px);
    line-height: .98;

    font-weight: 800;

    letter-spacing: -.055em;
}

.large-text {
    margin-top: 0;

    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.36;

    letter-spacing: -.035em;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: clamp(45px, 7vw, 100px);
}

.two-columns > * {
    min-width: 0;
}

.two-columns p {
    margin-top: 0;

    font-size: 19px;
    line-height: 1.7;
}


/* =========================
   ABOUT
========================= */

.about {
    background: #fff;
}


/* =========================
   HISTORY
   ИСПРАВЛЕННЫЙ БЛОК
========================= */

.history {
    background: var(--gray);
}

.history .container {
    min-width: 0;
}

.timeline {
    width: 100%;

    margin-top: 55px;

    border-top: 1px solid var(--border);
}

.timeline-item {
    width: 100%;

    display: grid;

    /*
       Было 220px 1fr.
       Из-за этого "Федеральный масштаб"
       не помещался в левой колонке.
    */
    grid-template-columns: minmax(280px, 31%) minmax(0, 1fr);

    column-gap: clamp(40px, 5vw, 75px);

    align-items: start;

    padding: 52px 0;

    border-bottom: 1px solid var(--border);
}

.timeline-year {
    min-width: 0;

    color: var(--red);

    font-size: clamp(30px, 2.65vw, 47px);
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -.045em;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.timeline-content {
    min-width: 0;
}

.timeline-content h3 {
    max-width: 900px;

    margin: 0 0 20px;

    font-size: clamp(29px, 2.5vw, 43px);
    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -.04em;
}

.timeline-content p {
    max-width: 1000px;

    margin: 0;

    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.6;
}


/* =========================
   ECOSYSTEM
========================= */

.ecosystem {
    background: #fff;
}

.section-intro {
    max-width: 850px;

    margin: -22px 0 50px;

    color: #53534f;

    font-size: 21px;
    line-height: 1.6;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.ecosystem-card {
    min-width: 0;
    min-height: 520px;

    display: flex;
    flex-direction: column;

    padding: 48px;

    border-radius: 34px;
}

.ecosystem-main {
    background: var(--red);
    color: #fff;
}

.dark-card {
    background: var(--black);
    color: #fff;
}

.card-number {
    color: rgba(255,255,255,.6);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .13em;
}

.ecosystem-card h3 {
    margin: auto 0 26px;

    font-size: clamp(38px, 3.5vw, 56px);
    line-height: 1;

    letter-spacing: -.05em;
}

.ecosystem-card p {
    max-width: 590px;

    margin: 0;

    font-size: 19px;
    line-height: 1.6;

    color: rgba(255,255,255,.86);
}

.ecosystem-card ul {
    list-style: none;

    padding: 0;
    margin: 35px 0 0;
}

.ecosystem-card li {
    padding: 14px 0;

    border-bottom: 1px solid rgba(255,255,255,.2);

    font-size: 14px;
    line-height: 1.4;
}


/* =========================
   TECHNOLOGY
========================= */

.technology {
    background: var(--gray);
}

.technology-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);

    gap: clamp(50px, 7vw, 100px);

    align-items: start;
}

.technology-grid > * {
    min-width: 0;
}

.technology-text p:not(.large-text) {
    color: #565652;

    font-size: 18px;
    line-height: 1.7;
}

.technology-list {
    border-top: 1px solid #d5d5d1;
}

.technology-item {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);

    gap: 22px;

    padding: 29px 0;

    border-bottom: 1px solid #d5d5d1;
}

.technology-item > span {
    padding-top: 5px;

    color: var(--red);

    font-size: 12px;
    font-weight: 700;
}

.technology-item h3 {
    margin: 0 0 9px;

    font-size: 28px;
    line-height: 1.15;

    letter-spacing: -.03em;
}

.technology-item p {
    margin: 0;

    color: #5f5f5a;

    font-size: 16px;
    line-height: 1.6;
}


/* =========================
   CASES
========================= */

.cases {
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.case-card {
    min-width: 0;

    overflow: hidden;

    background: var(--gray);

    border-radius: 30px;
}

.case-image {
    width: 100%;
    height: 290px;

    overflow: hidden;

    background: #dfdfdc;
}

.case-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.035);
}

.case-image.placeholder {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #0d0d0d 0%,
            #0d0d0d 48%,
            #cf0713 49%,
            #ef1722 58%,
            #0d0d0d 59%,
            #151515 100%
        );
}

.case-content {
    padding: 32px;
}

.case-content > span {
    display: block;

    margin-bottom: 24px;

    color: var(--red);

    font-size: 12px;
    font-weight: 700;
}

.case-content h3 {
    margin: 0 0 17px;

    font-size: 29px;
    line-height: 1.12;

    letter-spacing: -.035em;
}

.case-content p {
    margin: 0;

    color: #565652;

    font-size: 16px;
    line-height: 1.62;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 27px;
}

.case-tags span {
    padding: 8px 13px;

    color: #111;

    border: 1px solid #cacac5;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;
}


/* =========================
   LEADERSHIP
========================= */

.leadership {
    background: var(--black);
    color: #fff;
}

.leadership .section-label {
    color: #ff343d;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.principle {
    min-width: 0;
    min-height: 280px;

    padding: 34px;

    background: #181818;

    border: 1px solid #262626;
    border-radius: 27px;
}

.principle:nth-child(2) {
    background: var(--red);

    border-color: var(--red);
}

.principle h3 {
    margin: 0 0 24px;

    font-size: 34px;
    line-height: 1.1;

    letter-spacing: -.04em;
}

.principle p {
    margin: 0;

    color: #bcbcb7;

    font-size: 17px;
    line-height: 1.62;
}

.principle:nth-child(2) p {
    color: #fff;
}


/* =========================
   MEDIA
========================= */

.media {
    background: #fff;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.media-card {
    min-width: 0;

    overflow: hidden;

    background: var(--gray);

    border-radius: 30px;
}

.media-image {
    height: 275px;

    overflow: hidden;

    background: #ddddda;
}

.media-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.media-card:hover img {
    transform: scale(1.035);
}

.media-image.placeholder {
    position: relative;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(227,6,19,.95) 0,
            rgba(227,6,19,.95) 12%,
            transparent 12.5%
        ),
        linear-gradient(145deg,#141414,#272727);
}

.media-content {
    padding: 31px;
}

.media-content > span {
    display: block;

    color: var(--red);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.media-content h3 {
    margin: 17px 0 14px;

    font-size: 28px;
    line-height: 1.12;

    letter-spacing: -.035em;
}

.media-content p {
    margin: 0;

    color: #565652;

    font-size: 16px;
    line-height: 1.6;
}


/* =========================
   QUOTE
========================= */

.quote-section {
    background: var(--red);
    color: #fff;
}

.quote-section .section-label {
    color: rgba(255,255,255,.7);
}

.quote-box {
    max-width: 1140px;
}

.quote-box h2 {
    max-width: 1100px;

    margin-bottom: 35px;

    font-size: clamp(46px, 5.5vw, 83px);
    line-height: 1.01;

    letter-spacing: -.055em;
}

.quote-box p {
    max-width: 760px;

    margin: 0;

    color: rgba(255,255,255,.85);

    font-size: 21px;
    line-height: 1.6;
}


/* =========================
   FINAL
========================= */

.final {
    background: var(--gray);
}

.final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);

    gap: clamp(50px, 7vw, 100px);

    align-items: center;
}

.final-grid > * {
    min-width: 0;
}

.final p {
    max-width: 800px;

    color: #555551;

    font-size: 20px;
    line-height: 1.7;
}

.final-card {
    padding: 42px;

    background: #111;
    color: #fff;

    border-radius: 34px;
}

.final-number {
    color: var(--red);

    font-size: clamp(57px, 6vw, 86px);
    line-height: .9;

    font-weight: 800;

    letter-spacing: -.06em;
}

.final-card > span {
    display: block;

    margin: 8px 0 41px;

    color: #aaa;

    font-size: 13px;
}

.final-card > span:last-child {
    margin-bottom: 0;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 95px 0;

    background: #111;
    color: #fff;
}

.contact .section-label {
    color: #ff353e;
}

.contact-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;
}

.contact h2 {
    margin-bottom: 18px;

    font-size: clamp(47px, 5.5vw, 80px);
}

.contact p {
    margin: 0;

    color: #b9b9b4;

    font-size: 19px;
}

.contact-links {
    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    gap: 10px;

    min-width: 220px;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 25px;

    color: #fff;

    border: 1px solid #3a3a3a;
    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.contact-links a:hover {
    background: var(--red);

    border-color: var(--red);
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 31px 0;

    background: #050505;
    color: #6e6e6a;
}

.footer .container {
    display: flex;
    justify-content: space-between;

    gap: 30px;

    font-size: 12px;
}


/* =========================
   ANIMATION
========================= */

@media (prefers-reduced-motion: no-preference) {

    .number-card,
    .ecosystem-card,
    .case-card,
    .principle,
    .media-card {
        transition:
            transform .25s ease,
            box-shadow .25s ease;
    }

    .number-card:hover,
    .case-card:hover,
    .media-card:hover {
        transform: translateY(-4px);

        box-shadow: 0 20px 45px rgba(0,0,0,.07);
    }

}


/* =========================
   DESKTOP SMALL / TABLET
========================= */

@media (max-width: 1150px) {

    .container {
        width: min(100% - 50px, 1400px);
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);

        gap: 50px;
    }

    .hero-photo img {
        height: 570px;
    }

    .hero-badge {
        left: -20px;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-item {
        grid-template-columns: minmax(235px, 29%) minmax(0, 1fr);

        column-gap: 40px;
    }

    .ecosystem-card {
        padding: 38px;
    }

    .cases-grid,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cases-grid .case-card:last-child,
    .media-grid .media-card:last-child {
        grid-column: span 2;
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .header {
        height: 76px;
    }

    .menu {
        display: none;
    }

    .hero {
        padding-top: 55px;
    }

    .hero-grid,
    .two-columns,
    .technology-grid,
    .final-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-width: 650px;
    }

    .hero-photo img {
        height: auto;
        max-height: 700px;

        aspect-ratio: 1 / 1.08;
    }

    .hero-badge {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: minmax(210px, 28%) minmax(0, 1fr);

        column-gap: 30px;
    }

    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .ecosystem-card {
        min-height: 430px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principle {
        min-height: 220px;
    }

    .final-card {
        max-width: 520px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 32px);
    }

    .header {
        height: 68px;
    }

    .logo {
        font-size: 23px;
    }

    .header-btn {
        min-height: 42px;

        padding: 0 18px;

        font-size: 12px;
    }

    .hero {
        padding: 48px 0 55px;
    }

    .hero-grid {
        gap: 40px;
    }

    .eyebrow {
        font-size: 11px;
    }

    .hero h1 {
        margin: 25px 0 30px;

        font-size: clamp(58px, 18vw, 80px);
        line-height: .86;

        letter-spacing: -.06em;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .hero-photo img {
        border-radius: 24px;
    }

    .hero-badge {
        left: 12px;
        bottom: 12px;

        min-width: 145px;

        padding: 16px 19px;

        border-radius: 18px;
    }

    .hero-badge strong {
        font-size: 39px;
    }

    .numbers {
        padding: 32px 0 50px;
    }

    .numbers-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .number-card {
        padding: 27px;

        border-radius: 22px;
    }

    .section {
        padding: 75px 0;
    }

    .section h2,
    .contact h2 {
        margin-bottom: 38px;

        font-size: clamp(39px, 12vw, 53px);
        line-height: 1;

        letter-spacing: -.05em;
    }

    .large-text {
        font-size: 23px;
    }

    .two-columns {
        gap: 20px;
    }

    .two-columns p {
        font-size: 17px;
    }


    /* HISTORY MOBILE */

    .timeline {
        margin-top: 35px;
    }

    .timeline-item {
        display: block;

        padding: 34px 0;
    }

    .timeline-year {
        margin-bottom: 18px;

        font-size: 29px;
    }

    .timeline-content h3 {
        margin-bottom: 13px;

        font-size: 27px;
    }

    .timeline-content p {
        font-size: 16px;
    }


    /* ECOSYSTEM */

    .section-intro {
        margin-top: -15px;

        font-size: 17px;
    }

    .ecosystem-card {
        min-height: 390px;

        padding: 28px;

        border-radius: 25px;
    }

    .ecosystem-card h3 {
        font-size: 39px;
    }

    .ecosystem-card p {
        font-size: 17px;
    }


    /* TECH */

    .technology-grid {
        gap: 30px;
    }

    .technology-item {
        grid-template-columns: 32px minmax(0, 1fr);

        gap: 13px;
    }

    .technology-item h3 {
        font-size: 24px;
    }


    /* CASES */

    .cases-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid .case-card:last-child,
    .media-grid .media-card:last-child {
        grid-column: auto;
    }

    .case-image,
    .media-image {
        height: 230px;
    }

    .case-content,
    .media-content {
        padding: 25px;
    }

    .case-content h3,
    .media-content h3 {
        font-size: 25px;
    }


    /* LEADERSHIP */

    .principle {
        padding: 27px;
    }

    .principle h3 {
        font-size: 29px;
    }


    /* QUOTE */

    .quote-box h2 {
        font-size: 40px;
    }

    .quote-box p {
        font-size: 17px;
    }


    /* FINAL */

    .final p {
        font-size: 17px;
    }

    .final-card {
        padding: 30px;

        border-radius: 26px;
    }


    /* CONTACT */

    .contact {
        padding: 70px 0;
    }

    .contact-inner {
        display: block;
    }

    .contact-links {
        margin-top: 37px;

        width: 100%;
    }


    /* FOOTER */

    .footer .container {
        flex-direction: column;

        gap: 9px;
    }

}


/* =========================
   VERY SMALL
========================= */

@media (max-width: 430px) {

    .header-btn {
        display: none;
    }

    .hero h1 {
        font-size: 56px;
    }

    .number-card strong {
        font-size: 40px;
    }

    .ecosystem-card h3 {
        font-size: 34px;
    }

}