.company-page {
    background: #f7f8fa;
    direction: rtl;
    padding-bottom: clamp(40px, 7vw, 84px);
}

.company-hero {
    background: linear-gradient(125deg, #12243c, #264964);
    color: #fff;
    padding: clamp(36px, 7vw, 86px) 0;
}

.company-hero h1 {
    color: inherit;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.35;
    margin-bottom: 10px;
}

.company-hero p {
    color: inherit;
    margin-bottom: 0;
}

.company-intro,
.company-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
    align-items: start;
}

.company-panel,
.company-gallery figure {
    background: #fff;
    border: 1px solid #dce4eb;
    border-radius: 16px;
}

.company-contact {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr);
    align-items: stretch;
}

.company-message {
    margin-top: 24px;
    scroll-margin-top: 100px;
}

.company-join {
    max-width: 760px;
    margin-inline: auto;
    box-shadow: 0 12px 32px rgba(18, 36, 60, .07);
}

.company-join-actions {
    border-top: 1px solid #dce4eb;
    margin-top: 6px;
}

.company-join .company-action {
    min-height: 44px;
}

.company-join input:focus-visible {
    outline: 2px solid #1c5275;
    outline-offset: 2px;
}

.company-message-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.company-message-wide {
    grid-column: 1 / -1;
}

.company-message-form label {
    display: block;
    color: #263a50;
    margin-bottom: 6px;
}

.company-message-form input,
.company-message-form textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b6c5d1;
    border-radius: 8px;
    background: #fff;
    color: #12243c;
    font-size: 16px;
}

.company-message-form textarea {
    resize: vertical;
}

.company-captcha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.company-captcha input {
    width: 90px;
}

.company-captcha button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #b6c5d1;
    border-radius: 8px;
    background: #eef3f7;
    color: #12243c;
}

.company-panel {
    padding: clamp(18px, 3vw, 36px);
}

.company-page h2 {
    color: #12243c;
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 16px;
}

.company-panel p {
    color: #39485a;
    line-height: 1.95;
}

.company-photo img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.company-exhibitions {
    margin-top: clamp(36px, 6vw, 72px);
    scroll-margin-top: 105px;
}

.company-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.company-gallery figure {
    overflow: hidden;
}

.company-gallery a {
    display: block;
}

.company-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.company-gallery figcaption {
    padding: 12px 14px;
    color: #263a50;
}

.company-contact-list {
    display: grid;
    gap: 14px;
}

.company-contact-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    overflow-wrap: anywhere;
}

.company-contact-list i {
    color: #1c5275;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.company-action {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 16px;
    border-radius: 8px;
    background: #1c5275;
    color: #fff;
}

.company-action:hover, .company-action:focus {
    background: #286489;
    color: #fff;
}

.company-hero .company-action {
    background: #fff;
    color: #12243c;
}

.company-map-panel #map {
    min-height: clamp(500px, 60vh, 720px);
    background: #e7edf1;
    border-radius: 10px;
    direction: ltr;
    z-index: 0;
}

.home-exhibitions {
    direction: rtl;
    padding: clamp(36px, 6vw, 72px) 0;
    background: #eef3f7;
}

.home-exhibitions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.home-exhibitions-heading h2 {
    color: #12243c;
    font-size: clamp(26px, 4vw, 40px);
}

.home-exhibitions-heading .company-action {
    margin-top: 0;
}

.home-exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-exhibition {
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #12243c;
}

.home-exhibition img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-exhibition span {
    position: relative;
    padding: 32px 16px 14px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(10, 20, 33, .92));
}

.home-exhibition:focus-visible {
    outline: 3px solid #1c5275;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .company-intro, .company-contact, .company-message-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-map-panel #map {
        min-height: 420px;
    }

    .home-exhibitions-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .company-join .company-action {
        width: 100%;
    }
}
