* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Object Sans Regular";
    src: url(fonts/ObjectSans-Regular.woff2) format("woff2"), url(fonts/ObjectSans-Regular.woff) format("woff");
}

@font-face {
    font-family: "Object Sans Bold";
    src: url(fonts/ObjectSans-Bold.woff2) format("woff2"), url(fonts/ObjectSans-Bold.woff) format("woff");
}

body {
    font-family: "Object Sans Regular", Arial, sans-serif;
    line-height: 1.5;
    font-size: 26px;
}
.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0px 20px;
    max-width: 1520px;
    margin: 0 auto;
    padding: 120px 20px 20px 20px;
}
.contacts {
    grid-column: 1;
    position: sticky;
    top: 20px;
    align-self: start;
    z-index: 10;
    margin-top: 8px;
}
.contacts a {
    display: block;
    margin-bottom: 10px;
    color: #747474;
    text-decoration: none;
    font-weight: normal;
    font-size: 16px;
}
.contacts a:hover {
    color: #000;
}

.header-block {
    grid-column: 2 / span 4;
    /*margin-bottom: 64px;*/
}


.text-block {
    grid-column: 2 / span 4;
    margin-bottom: 64px;
}

.text-block a {
    color: #000;
    text-decoration: none;
}

.text-block a span {
    text-decoration: underline;
}

.text-block a:hover, .text-block a:hover span {
    text-decoration: none;
}

a.logo img {
    vertical-align: middle;
    margin-left: 4px;
    width: 36px;
    height: 36px;
}

 a.external img {
    vertical-align: middle;
    margin-left: 4px;
    height: 26px;
    width: 24px;
}

.intro {
    grid-column: 2 / span 5;
}
.intro h1 {
    font-family: "Object Sans Bold", Arial;
    font-weight: initial;

    margin-bottom: 4px;
    font-size: 72px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.image_container {
    position: relative;
    display: inline-block;
}

.image_container video {
    max-width: 83%;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

h2 {
    font-family: "Object Sans Bold", Arial;
    font-weight: initial;
    font-size: 44px;
    margin-bottom: 24px;
}

h3 {
    font-family: "Object Sans Bold", Arial;
    font-weight: initial;

    margin: 24px 0px;
}

.badge {
    font-family: "Object Sans Regular", Arial, sans-serif;
    background-color: #FFF;
    border: 1px solid #000;
    border-radius: 12px;
    font-weight: normal;
    font-size: 18px;
    line-height: 18px;
    padding: 10px 10px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}
.text-block.quote {
    padding: 32px 48px;
    background-color: #F2F7FF;
    border-radius: 12px;
}

.text-block.quote p {
    margin-bottom: 0px;   
}

.content {
    /*margin-top: 80px;*/
    /*margin-bottom: 16px;*/
}
.intro-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
}

.intro-text {
    margin-bottom: 120px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ddd;
    object-fit: cover;
}
.text-block p {
    line-height: 44px;
    margin-bottom: 22px;
}

.intro+.text-block p {}
.text-block ul.text-list {
    list-style: none;
    padding-left: 0;
    /*margin: 16px 0px 0px 0;*/
}
.text-block ul.text-list li {
    position: relative;
    margin-bottom: 16px;
    line-height: 44px;
    padding-left: 28px;
}
.text-block ul.text-list li::before {
    content: '•';
    position: absolute;
    left: 0px;
    top: -3px;
    line-height: 1;
    font-size: 48px;
}
/* 1) Расширяем на 5 колонок (то есть до самой правой линии сетки) */

.text-block.case-cta {
    display: flex;
    align-items: center;
    grid-column: 2 / span 6;
    margin-bottom: 0px;
}
/* 2) Текст по левому краю */

.case-cta__text {
    text-align: left;
}

.case-cta__text h3 {
    margin: 0px;
}

.case-cta__action {
    margin-left: auto;
    bottom: 28px;
    right: 28px;
    overflow: visible;
    position: absolute;
    z-index: 5;
}
/* 4) Стили самой кнопки-ссылки */

.case-cta__button {
    display: inline-flex;
    align-items: center;
    padding: 34px 30px 36px 30px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    font-size: 26px;
    border-radius: 96px;
    font-weight: 500;
    transition: .4s ease;
    cursor: pointer;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(16px);
}

.case-link:hover .case-cta__button {
    opacity: 1;
    transform: translateY(0px);
}

.case-link .image_container {
    transition: .4s ease;
}

.case-link:hover .image_container {
    transform: scale(1.02);
}

.case-cta__button:hover {
   background-color: rgba(255, 255, 255, 0.9);
}

.case-link {
    grid-column: 2 / span 6;
    margin-bottom: 100px;
    text-decoration: none;
    color: #000;
}

.case-link .media {
    margin-bottom: 20px;
}

.case-link.next {
    margin-top: 160px;
}

.media {
    grid-column: 2 / span 6;
    margin-bottom: 48px;
    text-decoration: none;
    color: #000;
}


.fish-block.image {
    position: relative;
    text-align: center;
    aspect-ratio: unset;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: auto;
    line-height: 0;
    background: linear-gradient(-45deg, #ffffff, #e6f5ff, #ffdae1, #ffffff);
    background-size: 500% 500%;
    /*animation: gradient 15s ease infinite;*/
    background: radial-gradient(100% 100% at var(--6-x-position) var(--6-y-position), #c8e6f9 0%, transparent),
                    radial-gradient(100% 100% at var(--7-x-position) var(--7-y-position), #ffffff 0%, transparent),
                    radial-gradient(100% 100% at var(--8-x-position) var(--8-y-position), #f8bec8 0%, transparent),
                    radial-gradient(100% 100% at var(--9-x-position) var(--9-y-position), #ffffff 0%, transparent), #ffffff;
    /*animation-name: main;*/
    animation-iteration-count: infinite;
    animation-duration: 5s;
    transition-timing-function: linear;
}

.fish-block.image img {
    max-width: 100%;
}

.contacts a.back {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 36px;
  margin-left: -28px;
  width: 100%;
}

.final {
    /*margin-bottom: 240px;*/
}

.contacts a.back svg{
    margin-right: 12px;
}

.fish-block.video {
    aspect-ratio: 16 / 10;
    background: #d0f0fd;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.float-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    display: none;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 17px 24px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    border-radius: 96px;
    font-weight: 500;
    transition: background-color .4s ease;
    cursor: pointer;
    gap: 16px;
    backdrop-filter: blur(16px);
}

.float-btn:hover {
  background-color: rgba(255, 255, 255, 1);
}

.float .back-arrow {
  display: block;
  transform: translateY(3px);
}


@property --6-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 20%;
}
@property --6-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}
@property --7-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}
@property --7-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 20%;
}
@property --8-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}
@property --8-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}
@property --9-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}
@property --9-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}
:root {
    --6-x-position: 20%;
    --6-y-position: 80%;
    --7-x-position: 80%;
    --7-y-position: 20%;
    --8-x-position: 80%;
    --8-y-position: 80%;
    --9-x-position: 80%;
    --9-y-position: 80%;
}
@keyframes main {
    25% {
        --6-x-position: 15%;
        --6-y-position: 15%;
        --7-x-position: 85%;
        --7-y-position: 80%;
    }
    50% {
        --6-x-position: 80%;
        --6-y-position: 15%;
        --7-x-position: 15%;
        --7-y-position: 85%;
        --8-x-position: 20%;
        --8-y-position: 20%;
        --9-x-position: 20%;
        --9-y-position: 20%;
    }
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* Мобильная версия */

@media (max-width: 1080px) {
    .text-block h1 {
        font-size: 7.5vw;
    }
    .container {
        display: block;
        padding: 100px 16px 20px 16px;
    }
    .contacts {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(8px);
        padding: 12px 16px;
        display: flex;
        flex-direction: row;
        justify-content: left;
        align-items: center;
        gap: 24px;
        margin-top: 0;
        grid-column: unset;
    }
    .contacts a {
        display: inline-block;
        margin-bottom: 0;
        color: #000;
    }
    .contacts a.back {
        display: none;
    }
    .text-block, .media {
        grid-column: auto;
        margin: 0;
        padding: 0px;
    }

    .text-block.quote {
        padding: 20px 24px;
    }

    .text-block{
        margin-bottom: 24px;
    }

    .media {
        margin-bottom: 24px;
    }

    .intro-text {
        margin-bottom: 60px;
    }

    /* Делаем кейс-CTA блочным и переводим в колонку */
    .text-block.case-cta {
        display: flex;
        /* оставляем flex */
        flex-direction: column;
        /* колонка: сначала текст, потом кнопка */
        align-items: flex-start;
        /* прижать всё к левому краю */
        grid-column: auto;
        /* сбрасываем сетку */
        /*margin-bottom: 40px;*/
        /* отступ под блоком, по вкусу */
    }
    /* Убираем “авто-отталкивание” и поднимаем кнопку под текстом */
    .case-cta__action {
        margin: 16px 0 0 0;
        /* сверху 16px, остальные — 0 */
    }

    .float-btn {
        display: inline-flex;
    }
}
@media (max-width: 880px) {
    body {
        font-size: 20px;
    }

    .case-link {
        margin-bottom: 64px;
        display: block;
    }

    .case-link.next {
        display: block;
        margin-top: 90px;
        margin-bottom: 60px;
    }

    .intro h1 {
        font-size: 32px;
        line-height: 36px;
    }

    .text-block p {
        line-height: 36px;
        margin-bottom: 16px;
    }

    .text-block ul.text-list li {
        line-height: 36px;
        margin-bottom: 8px;
    }

    .text-block ul.text-list li::before {
        top: -3px;
    }

    .avatar {
        display: none;
    }

    .intro-header {
        gap: 16px;
        margin-bottom: 16px;
    }

    .image_container video {
        bottom: 20px;
        /*display: none;*/
    }

    h2 {
        font-size: 36px;
        margin-bottom: 8px;
        line-height: 48px;
    }

    h3 {
        margin: 36px 0 12px 0;
    }

    .badge {
        font-size: 14px;
        line-height: 1;
        padding: 7px 6px 3px 6px;
        border-radius: 10px;
        vertical-align: middle;
    }

    a.logo img {
        width: 32px;
        height: 32px;
    }

    a.external img {
        height: 24px;
        width: 20px;
    }

    .case-link .image_container{
        max-width: 90%;
    }

    .case-cta__action {
        display: none;
    }
}