/* OCK — Отраслевой центр компетенций */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

.ock-page {
    --ock-burgundy: #7e2a36;
    --ock-mint: #1bacaf;
    --ock-graphite: #333333;
    --ock-gray: #797979;
    --ock-road: #f6f6f6;
    --ock-light: #f1f1f1;
    --ock-gradient: linear-gradient(90deg, #3eaadf 0%, #1dacb2 100%);
    color: var(--ock-graphite);
    font-family: 'Montserrat', sans-serif;
}

.ock-page h1,
.ock-page h2,
.ock-page .ock-section-title {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 500;
}

.ock-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.ock-section {
    padding: 60px 0;
}

.ock-section-title {
    font-size: 32px;
    line-height: 1.45;
    margin: 0 0 40px;
}

/* Badge */
.ock-badge {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--ock-gradient);
    border-radius: 30px;
    padding: 13px 30px;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
    text-decoration: none;
    margin-bottom: 32px;
}

.ock-badge:hover,
.ock-badge:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
}

.ock-badge__icon {
    width: 28px;
    height: 33px;
    flex-shrink: 0;
}

.ock-badge__icon img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

/* Buttons */
.ock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 20px;
    font-size: 16px;
    line-height: 1.45;
    border-radius: 0;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ock-btn:hover,
.ock-btn:focus {
    text-decoration: none;
    opacity: 0.9;
    color: inherit;
}

.ock-btn--primary {
    background: var(--ock-gradient);
    color: #fff;
    min-width: 252px;
}

.ock-btn--outline {
    background: #fff;
    color: var(--ock-graphite);
    border: 1px solid #d5d5d5;
    min-width: 252px;
}

.ock-btn--white {
    background: #fff;
    color: var(--ock-graphite);
    border: 1px solid #d5d5d5;
}

.ock-btn__arrow {
    width: 24px;
    height: 24px;
}

/* Hero */
.ock-hero {
    position: relative;
    padding: 50px 0 60px;
    background: linear-gradient(to left, #f7f7f7 0%, #fff 100%);
    overflow: hidden;
}

.ock-hero--compact {
    padding-bottom: 30px;
}

.ock-hero--compact .ock-hero__subtitle a {
    color: var(--ock-mint);
}

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

.ock-hero__title {
    font-size: 36px;
    line-height: 1.45;
    margin: 0 0 24px;
    max-width: 666px;
}

.ock-hero__subtitle {
    font-size: 16px;
    line-height: 1.45;
    color: var(--ock-graphite);
    max-width: 528px;
    margin: 0 0 32px;
}

.ock-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Competencies */
.ock-competencies__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ock-competence-card {
    display: flex;
    gap: 24px;
    padding: 36px 24px;
    background: #fff;
    box-shadow: 4px 4px 7.5px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    min-height: 204px;
}

.ock-competence-card--wide {
    grid-column: 1 / -1;
}

.ock-competence-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.ock-competence-card__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.ock-competence-card__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 16px;
}

.ock-competence-card__text {
    font-size: 16px;
    line-height: 1.45;
    color: var(--ock-graphite);
    margin: 0;
}

/* Experts — Figma Content 2 (32:652) */
.ock-experts__title {
    margin-bottom: 24px;
    max-width: 390px;
}

.ock-experts__slider {
    position: relative;
    padding-bottom: 4px;
    overflow: visible;
}

.ock-experts-carousel.owl-carousel {
    min-height: 343px;
}

.ock-experts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ock-experts__link {
    font-size: 16px;
    color: var(--ock-mint);
}

.ock-expert-card-wrap {
    container-type: inline-size;
    container-name: ock-expert-card;
    width: 100%;
    height: 100%;
    display: flex;
}

.ock-expert-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 528px;
    min-height: 327px;
    padding: 36px 24px;
    background: #fff;
    box-shadow: 4px 4px 7.5px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
}

@container ock-expert-card (max-width: 459px) {
    .ock-expert-card {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        max-width: none;
    }

    .ock-expert-card__photo-wrap {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 171 / 255;
    }

    .ock-expert-card__body {
        min-height: 0;
        width: 100%;
    }

    .ock-expert-card__name {
        max-width: none;
    }

    .ock-expert-card__quote {
        margin-top: 12px;
    }
}

.ock-expert-card:hover,
.ock-expert-card:focus {
    color: inherit;
    text-decoration: none;
    box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.28);
}

.ock-expert-card__photo-wrap {
    flex-shrink: 0;
    width: 171px;
    height: 255px;
    border-radius: 20px;
    overflow: hidden;
}

.ock-expert-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ock-expert-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 255px;
}

.ock-expert-card__top {
    flex-shrink: 0;
}

.ock-expert-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

.ock-expert-card__name {
    flex: 1;
    min-width: 0;
    max-width: 227px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.457;
    margin: 0;
    color: var(--ock-graphite);
}

.ock-expert-card__arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ock-expert-card__arrow img {
    width: 29px;
    height: 29px;
    display: block;
}

.ock-expert-card__role {
    margin: 4px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.457;
    color: var(--ock-gray);
}

.ock-expert-card__quote {
    margin: 16px 0 0;
    padding: 0;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.457;
    color: var(--ock-graphite);
}

/* Карусель: две карточки 528px + отступ 24px; padding — место под box-shadow */
.ock-experts-carousel.owl-carousel .owl-stage-outer {
    overflow: hidden;
    min-height: 343px;
    padding-top: 4px;
    padding-left: 4px;
    padding-right: 12px;
    margin-left: -4px;
    margin-right: -12px;
    box-sizing: content-box;
}

.ock-experts-carousel.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.ock-experts-carousel.owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

.ock-experts-carousel.owl-carousel .owl-item .item {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 4px 12px 12px 4px;
}

.ock-experts-carousel.owl-carousel .owl-item .item > .ock-expert-card-wrap {
    flex: 1;
    min-width: 0;
    margin: 0 -12px -12px -4px;
    width: calc(100% + 16px);
    max-width: calc(100% + 16px);
}

.ock-experts-carousel .owl-nav {
    display: none;
}

.ock-experts-carousel .owl-dots {
    display: none !important;
}

/* Полоса прокрутки под карточками */
.ock-experts-scroll {
    margin-top: 24px;
}

.ock-experts-scroll__track {
    position: relative;
    height: 18px;
    background: #f1f1f1;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
}

.ock-experts-scroll__track:focus {
    outline: 2px solid var(--ock-mint);
    outline-offset: 2px;
}

.ock-experts-scroll__track--disabled {
    cursor: default;
    pointer-events: none;
}

.ock-experts-scroll__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 394px;
    max-width: calc(100% - 20px);
    height: 100%;
    border-radius: 20px;
    background: var(--ock-gradient);
    transition: left 0.2s ease;
    cursor: grab;
    touch-action: none;
}

.ock-experts-scroll__track--disabled .ock-experts-scroll__thumb {
    width: 100% !important;
    max-width: none;
    left: 0 !important;
}

.ock-experts-scroll__thumb--dragging {
    transition: none;
    cursor: grabbing;
}

.ock-experts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ock-experts-grid .ock-expert-card-wrap,
.ock-experts-grid .ock-expert-card {
    max-width: none;
}

@media (min-width: 992px) {
    .ock-experts-carousel.owl-carousel .owl-item .ock-expert-card-wrap .ock-expert-card {
        max-width: 528px;
    }
}

@media (max-width: 991px) {
    .ock-experts-carousel.owl-carousel {
        min-height: 0;
    }

    .ock-experts-carousel.owl-carousel .owl-stage-outer {
        min-height: 0;
    }

    .ock-experts-carousel.owl-carousel .owl-item .item > .ock-expert-card-wrap .ock-expert-card {
        width: 100%;
        max-width: none;
    }

    .ock-expert-card {
        max-width: none;
        min-height: 0;
    }

    /* Thumb width is controlled by JS to stay proportional on any screen width */
}

/* Portfolio */
.ock-portfolio {
    position: relative;
}

.ock-portfolio .ock-container {
    position: relative;
    overflow: visible;
}

.ock-portfolio__carousel-wrap {
    position: relative;
    overflow: visible;
}

.ock-portfolio__nav {
    position: absolute;
    right: -64px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ock-portfolio__nav-btn {
    width: 64px;
    height: 64px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.ock-portfolio__nav-btn img {
    width: 64px;
    height: 64px;
}

.ock-portfolio-card {
    background: #fff;
    box-shadow: 4px 4px 7.5px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 36px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ock-portfolio-card__logo {
    height: 147px;
    display: flex;
    align-items: center;
}

.ock-portfolio-card__logo img {
    max-height: 147px;
    max-width: 100%;
    object-fit: contain;
}

.ock-portfolio-card__company {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.ock-portfolio-card__label {
    font-size: 16px;
    color: var(--ock-gray);
    margin: 0 0 4px;
}

.ock-portfolio-card__effect {
    font-size: 24px;
    font-weight: 700;
    color: var(--ock-burgundy);
    margin: 0;
}

.ock-portfolio-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.ock-portfolio-card__year {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: var(--ock-gray);
}

.ock-portfolio-card__year-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.ock-portfolio-carousel .owl-item {
    padding: 0 12px;
}

.ock-portfolio-carousel .owl-stage-outer {
    padding-top: 4px;
    padding-bottom: 10px;
    padding-left: 4px;
    margin-left: -4px;
    box-sizing: content-box;
}

/* Tasks */
.ock-tasks {
    background: var(--ock-road);
    position: relative;
    overflow: hidden;
}

.ock-tasks__inner {
    position: relative;
    z-index: 1;
}

.ock-tasks__decor {
    position: absolute;
    right: 39px;
    top: 50%;
    transform: translateY(-50%);
    width: 204px;
    opacity: 0.35;
    z-index: 0;
}

.ock-tasks__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
    max-width: 1100px;
}

.ock-task-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.ock-task-item__num {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ock-mint);
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.ock-task-item__text {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    padding-top: 8px;
}

/* Feedback */
.ock-feedback__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CTA */
.ock-cta {
    background: var(--ock-burgundy);
    color: #fff;
    padding: 60px 0;
}

.ock-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.ock-cta__title {
    font-size: 36px;
    font-weight: 500;
    color: #fff;
    line-height: 1.45;
    margin: 0 0 24px;
    max-width: 666px;
    font-family: 'Inter', sans-serif;
}

.ock-cta__text {
    font-size: 24px;
    color: var(--ock-light);
    line-height: 1.45;
    max-width: 666px;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.ock-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 252px;
}

.ock-cta .ock-btn--primary {
    justify-content: space-between;
}

/* Expert detail */
.ock-expert-hero {
    position: relative;
    padding: 50px 0 40px;
    background: linear-gradient(to left, #f7f7f7 0%, #fff 100%);
    overflow: hidden;
}

.ock-expert-hero__title {
    font-size: 36px;
    margin: 0 0 16px;
}

.ock-expert-hero__role {
    font-size: 16px;
    color: var(--ock-gray);
    margin: 0 0 12px;
}

.ock-expert-hero__quote {
    font-size: 16px;
    font-style: italic;
    margin: 0;
    max-width: 508px;
}

.ock-expert-content {
    padding: 40px 0 60px;
}

.ock-expert-content__layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.ock-expert-content__photo {
    flex-shrink: 0;
    width: 390px;
    max-width: 100%;
}

.ock-expert-content__photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ock-expert-content__bio {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 36px 24px;
    background: #fff;
    box-shadow: 4px 4px 7.5px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.457;
    color: var(--ock-graphite);
    text-align: justify;
    margin-top: 10px;
}

.ock-expert-content__bio p {
    margin: 0 0 1em;
}

.ock-expert-content__bio p:last-child {
    margin-bottom: 0;
}

/* Application form */
.ock-application {
    padding: 50px 0 80px;
    background: #fff;
}

.ock-application__title {
    font-size: 36px;
    margin: 0 0 16px;
}

.ock-application__subtitle {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 48px;
    max-width: 804px;
}

.ock-form .form-group {
    margin-bottom: 24px;
}

.ock-form label {
    font-size: 16px;
    font-weight: 400;
    color: var(--ock-graphite);
    margin-bottom: 4px;
}

.ock-form label .required {
    color: var(--ock-burgundy);
}

.ock-form .form-control {
    height: 42px;
    border: 1px solid #d5d5d5;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
}

.ock-form textarea.form-control {
    height: auto;
    min-height: 117px;
    resize: vertical;
}

.ock-form .help-block {
    font-size: 14px;
}

.ock-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ock-form__submit {
    margin-top: 32px;
}

.ock-form__submit .ock-btn {
    width: 100%;
    max-width: 804px;
    min-height: 72px;
    font-size: 24px;
}

.ock-form__consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.4;
}

.ock-form__consent input {
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .ock-competencies__grid,
    .ock-tasks__grid,
    .ock-experts-grid {
        grid-template-columns: 1fr;
    }

    .ock-competence-card--wide {
        grid-column: auto;
    }

    .ock-expert-content__layout {
        flex-direction: column;
    }

    .ock-expert-content__photo {
        width: 100%;
        max-width: 390px;
    }

    .ock-tasks__decor {
        display: none;
    }

    .ock-portfolio__nav {
        position: absolute;
        right: -64px;
        top: 50%;
        transform: translateY(-50%);
        margin-bottom: 0;
    }

    .ock-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ock-section {
        padding: 40px 0;
    }

    .ock-section-title,
    .ock-hero__title,
    .ock-cta__title,
    .ock-application__title,
    .ock-expert-hero__title {
        font-size: 28px;
    }

    .ock-hero__actions,
    .ock-cta__actions {
        width: 100%;
    }

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

    .ock-competence-card {
        flex-direction: column;
    }

    .ock-task-item__text {
        font-size: 18px;
    }

    .ock-cta__inner {
        flex-direction: column;
    }
}

@media (max-width: 1200px) {
    .ock-portfolio__nav {
        display: none;
    }
}

/* Accessibility */
body.vision-version .ock-cta {
    background: #000 !important;
}

body.vision-version .ock-cta__title,
body.vision-version .ock-cta__text {
    color: #fff !important;
}

body.vision-version .ock-btn--primary {
    border: 2px solid #fff;
}
