.company-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.company-hero {
    position: relative;
    width: 100%;
    background: #e8f6ff;
}

.company-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.company-hero__button {
    position: absolute;
    left: clamp(118px, 9.5vw, 274px);
    top: 54%;
    display: inline-flex;
    width: clamp(126px, 8vw, 230px);
    border-radius: 999px;
    transform: translateY(-50%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.company-hero__button:hover {
    transform: translateY(calc(-50% - 2px));
    filter: drop-shadow(0 8px 18px rgba(47, 101, 230, 0.18));
}

.company-hero__button:focus-visible,
.company-consult__button:focus-visible,
.company-department-tab:focus-visible {
    outline: 2px solid #2e69ff;
    outline-offset: 4px;
}

.company-hero__button img,
.company-consult__button img {
    display: block;
    width: 100%;
    height: auto;
}

.company-section-head {
    text-align: center;
}

.company-section-head__title {
    color: #1f2329;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0;
}

.company-section-head__subtitle {
    margin-top: 10px;
    color: #b6bcc8;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

.company-intro {
    width: min(1180px, calc(100% - 96px));
    margin: 0 auto;
    padding: 80px 0 0;
}

.company-intro__body {
    margin-top: 48px;
    display: grid;
    grid-template-columns: minmax(0, 470px) minmax(0, 560px);
    align-items: center;
    justify-content: space-between;
    gap: 82px;
}

.company-intro__name {
    color: #22262e;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 600;
}

.company-intro__copy p,
.company-department__copy p {
    margin-top: 18px;
    color: #69707d;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

.company-intro__media {
    overflow: hidden;
    border-radius: 6px;
    background: #f4f8ff;
    box-shadow: 0 18px 42px rgba(105, 126, 163, 0.16);
}

.company-intro__media img {
    display: block;
    width: 100%;
    height: auto;
}

.company-department {
    width: min(1040px, calc(100% - 96px));
    margin: 62px auto 0;
}

.company-department-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.company-department-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 96px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: #58606d;
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(84, 112, 159, 0.08);
    transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.company-department-tab.is-active,
.company-department-tab:hover {
    color: #2269e8;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(84, 112, 159, 0.14);
}

.company-department-tab img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.company-department__body {
    margin-top: 62px;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 560px);
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.company-department__title {
    color: #22262e;
    font-size: 24px;
    line-height: 1.42;
    font-weight: 600;
}

.company-department__media {
    overflow: hidden;
    border-radius: 6px;
    background: #f3f7ff;
    box-shadow: 0 18px 42px rgba(105, 126, 163, 0.16);
}

.company-department__media img {
    display: block;
    width: 100%;
    height: auto;
}

.company-partners {
    width: min(1180px, calc(100% - 96px));
    margin: 96px auto 0;
    padding-bottom: 86px;
}

.company-partners__grid {
    margin-top: 46px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
}

.company-partner-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eef2f8;
    border-radius: 6px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(88, 111, 153, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(88, 111, 153, 0.14);
}

.company-partner-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1.3 / 1;
    object-fit: cover;
    object-position: center;
}

.company-partner-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 16px 14px;
}

.company-partner-card h3 {
    color: #242831;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

.company-partner-card p {
    margin-top: 8px;
    color: #747b87;
    font-size: 13px;
    line-height: 1.7;
}

.company-partner-card__footer {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    color: #7d838f;
    font-size: 12px;
    line-height: 1;
}

.company-partner-card__footer img:not(.company-partner-card__arrow) {
    display: block;
    width: 32px;
    height: 22px;
    object-fit: contain;
    object-position: left center;
}

.company-partner-card__logo-empty {
    display: block;
    width: 32px;
    height: 22px;
}

.company-partner-card__footer > span:not(.company-partner-card__logo-empty) {
    margin-left: auto;
    white-space: nowrap;
}

.company-partner-card__arrow {
    display: block;
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.company-consult {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 56px 20px 62px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 100%, rgba(103, 130, 255, 0.2), transparent 22%),
        linear-gradient(180deg, #d9f8ff 0%, #cdf4ff 100%);
}

.company-consult h2 {
    color: #252b35;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 500;
}

.company-consult__button {
    display: inline-flex;
    width: 164px;
    margin-top: 24px;
    border-radius: 999px;
}

@media (max-width: 1120px) {
    .company-intro__body,
    .company-department__body {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .company-partners__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .company-intro,
    .company-department,
    .company-partners {
        width: calc(100% - 40px);
    }

    .company-department-tabs,
    .company-partners__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
