/* Five-column mega menus and complete About/Contact page layouts. */

.nav-mega__grid,
.nav-mega--solutions .nav-mega__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.page-complete-section {
    padding: 92px 0;
    scroll-margin-top: 155px;
}

.page-complete-section--muted {
    background: #f4f6f8;
}

.page-complete-section--dark {
    color: #dce9f4;
    background: #062e54;
}

.section-rule {
    width: 70px;
    height: 3px;
    margin: 0 0 28px;
    background: var(--blue-700);
}

.complete-section-heading {
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

.complete-section-heading h2 {
    margin-bottom: 18px;
    font-size: 44px;
}

.complete-section-heading > span {
    display: block;
    width: 70px;
    height: 3px;
    margin: 0 auto;
    background: var(--blue-700);
}

.complete-section-heading--light h2 {
    color: #fff;
}

.complete-section-heading--light > span {
    background: #82d6ea;
}

.about-page__hero,
.contact-page__hero {
    min-height: 450px;
}

.about-page__hero .page-hero__content,
.contact-page__hero .page-hero__content {
    min-height: 450px;
}

.page-section-nav {
    position: relative;
    top: auto;
    z-index: 80;
    border-bottom: 1px solid #dfe5ea;
    background: #fff;
    box-shadow: 0 7px 20px rgba(14, 43, 70, .07);
}

.page-section-nav__inner {
    display: flex;
    min-height: 64px;
    align-items: stretch;
    justify-content: center;
}

.page-section-nav a {
    position: relative;
    display: flex;
    padding: 0 25px;
    align-items: center;
    justify-content: center;
    color: #42566a;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.page-section-nav a:after {
    position: absolute;
    right: 24px;
    bottom: 0;
    left: 24px;
    height: 3px;
    background: var(--blue-700);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}

.page-section-nav a:hover,
.page-section-nav a:focus {
    color: var(--blue-700);
}

.page-section-nav a:hover:after,
.page-section-nav a:focus:after {
    transform: scaleX(1);
}

.page-section-nav .page-section-nav__contact {
    margin: 10px 0 10px 18px;
    padding-right: 24px;
    padding-left: 24px;
    color: #fff;
    background: var(--blue-700);
}

.page-section-nav .page-section-nav__contact:hover,
.page-section-nav .page-section-nav__contact:focus {
    color: #fff;
    background: var(--blue-900);
}

.page-section-nav .page-section-nav__contact:after {
    display: none;
}

/* About: company introduction. */
.company-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
    align-items: start;
    grid-gap: 64px;
}

.company-intro__copy h2 {
    font-size: 48px;
}

.company-intro__copy .prose {
    max-width: none;
    color: #475a6d;
}

.company-intro__copy .prose p:last-child {
    margin-bottom: 0;
}

.company-intro__media {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    background: #063b73;
    box-shadow: 0 18px 42px rgba(7, 41, 72, .18);
}

.company-intro__media video,
.company-intro__media > img {
    display: block;
    width: 100%;
    height: 490px;
    object-fit: cover;
}

.company-intro__media-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 24px;
    color: #fff;
    background: linear-gradient(90deg, rgba(4, 43, 79, .96), rgba(7, 98, 158, .9));
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    pointer-events: none;
}

.company-intro__media video + .company-intro__media-label {
    padding-right: 170px;
}

.company-stats {
    display: grid;
    margin-top: 60px;
    border-top: 1px solid #dfe5ea;
    border-left: 1px solid #dfe5ea;
    grid-template-columns: repeat(4, 1fr);
}

.company-stats > div {
    min-height: 150px;
    padding: 30px 24px;
    border-right: 1px solid #dfe5ea;
    border-bottom: 1px solid #dfe5ea;
    background: #fff;
    text-align: center;
}

.company-stats strong {
    display: block;
    margin-bottom: 10px;
    color: var(--blue-700);
    font-size: 42px;
    line-height: 1;
}

.company-stats span {
    color: #607286;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

/* About: advantages. */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 28px;
}

.advantage-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #062f58;
}

.advantage-card:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(3, 27, 51, .96) 0%, rgba(3, 34, 63, .62) 48%, rgba(3, 34, 63, .08) 100%);
    content: "";
}

.advantage-card > img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    transition: transform .5s ease;
}

.advantage-card:hover > img {
    transform: scale(1.045);
}

.advantage-card__number {
    position: absolute;
    top: 24px;
    right: 26px;
    z-index: 2;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .15em;
}

.advantage-card__body {
    position: absolute;
    right: 36px;
    bottom: 32px;
    left: 36px;
    z-index: 2;
}

.advantage-card__body h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 28px;
}

.advantage-card__body p {
    margin: 0;
    color: #d9e7f3;
    font-size: 14px;
    line-height: 1.65;
}

/* About: clients, certificates and factory. */
.about-client-grid {
    display: grid;
    overflow: hidden;
    border-top: 1px solid #e1e6ea;
    border-left: 1px solid #e1e6ea;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.about-client-logo {
    display: grid;
    min-height: 154px;
    padding: 22px;
    place-items: center;
    border-right: 1px solid #e1e6ea;
    border-bottom: 1px solid #e1e6ea;
    background: #fff;
}

.about-client-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.about-client-logo:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.06);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-gap: 22px;
}

.certificate-card {
    margin: 0;
    padding: 20px 18px 0;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 17, 34, .2);
}

.certificate-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
}

.certificate-card figcaption {
    margin: 16px -18px 0;
    padding: 14px;
    color: #fff;
    background: #0b5f9e;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.factory-gallery {
    display: grid;
    min-height: 600px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 290px);
    grid-gap: 14px;
}

.factory-gallery__item {
    margin: 0;
    overflow: hidden;
    background: #e8edf1;
}

.factory-gallery__item--1 { grid-column: 1; grid-row: 1; }
.factory-gallery__item--2 { grid-column: 1; grid-row: 2; }
.factory-gallery__item--3 { grid-column: 2 / 4; grid-row: 1 / 3; }
.factory-gallery__item--4 { grid-column: 4; grid-row: 1; }
.factory-gallery__item--5 { grid-column: 4; grid-row: 2; }

.factory-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.factory-gallery__item:hover img {
    transform: scale(1.04);
}

/* Contact page. */
.contact-overview {
    background: #edf2f6;
}

.contact-overview__grid {
    display: grid;
    grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
    align-items: stretch;
    box-shadow: 0 20px 55px rgba(7, 39, 69, .14);
}

.contact-overview__intro {
    padding: 58px 48px;
    color: #dbeaf5;
    background: linear-gradient(145deg, rgba(4, 43, 78, .98), rgba(8, 97, 157, .94)), url("../img/about/about-us-2-1.webp") center/cover;
}

.contact-overview__intro h2 {
    color: #fff;
    font-size: 40px;
}

.contact-overview__intro > p:not(.eyebrow) {
    color: #d7e8f3;
    line-height: 1.7;
}

.contact-overview__intro ul {
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.contact-overview__intro li {
    position: relative;
    margin: 15px 0;
    padding-left: 26px;
}

.contact-overview__intro li:before {
    position: absolute;
    left: 0;
    color: #83deed;
    content: "✓";
    font-weight: 900;
}

.contact-overview__response {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
}

.contact-overview__response strong,
.contact-overview__response span {
    display: block;
}

.contact-overview__response strong {
    margin-bottom: 5px;
    color: #fff;
}

.contact-overview__response span {
    font-size: 13px;
    line-height: 1.5;
}

.contact-overview__form {
    padding: 58px 60px;
    background: #fff;
}

.contact-overview__form > h2 {
    margin-bottom: 10px;
    font-size: 38px;
}

.contact-overview__form > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
}

.contact-page-form {
    margin-top: 28px;
}

.contact-page-form input,
.contact-page-form select,
.contact-page-form textarea {
    background: #f4f7f9;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 24px;
}

.contact-card {
    display: flex;
    min-height: 250px;
    padding: 36px 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6eb;
    color: var(--ink);
    background: #fff;
    text-align: center;
    box-shadow: 0 7px 20px rgba(13, 44, 72, .06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.contact-card:hover,
a.contact-card:focus {
    border-color: #8bc5e4;
    color: var(--blue-700);
    box-shadow: 0 14px 30px rgba(11, 63, 103, .13);
    transform: translateY(-4px);
}

.contact-card img {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    object-fit: contain;
}

.contact-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.contact-card strong {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 18px;
    line-height: 1.45;
    word-break: break-word;
}

.contact-card span {
    display: block;
    margin-top: 9px;
    color: #7a8998;
    font-size: 13px;
}

.contact-card--address strong {
    font-size: 16px;
}

.contact-visit__panel {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    background: #062f58;
}

.contact-visit__panel > img,
.contact-visit__shade {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-visit__panel > img {
    object-fit: cover;
}

.contact-visit__shade {
    background: linear-gradient(90deg, rgba(3, 30, 57, .94), rgba(3, 43, 79, .64) 55%, rgba(3, 43, 79, .08));
}

.contact-visit__copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 490px;
    max-width: 850px;
    padding: 60px 70px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.contact-visit__copy h2 {
    color: #fff;
    font-size: 44px;
}

.contact-visit__copy > p:not(.eyebrow) {
    max-width: 680px;
    color: #dcebf5;
    font-size: 17px;
    line-height: 1.65;
}

@media (max-width: 1240px) {
    .page-section-nav a { padding-right: 15px; padding-left: 15px; font-size: 12px; }
    .company-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(400px, .85fr); grid-gap: 38px; }
    .certificate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
    .page-complete-section { padding: 72px 0; scroll-margin-top: 120px; }
    .page-section-nav { top: auto; overflow-x: auto; }
    .page-section-nav__inner { width: max-content; min-width: 100%; justify-content: flex-start; }
    .page-section-nav a { min-height: 56px; white-space: nowrap; }
    .page-section-nav .page-section-nav__contact { margin: 6px 12px; }
    .company-intro__grid,
    .contact-overview__grid { grid-template-columns: 1fr; }
    .company-intro__media { min-height: 440px; margin-top: 10px; }
    .company-intro__media video,
    .company-intro__media > img { height: 440px; }
    .company-stats { grid-template-columns: repeat(2, 1fr); }
    .advantage-card { min-height: 390px; }
    .advantage-card > img { height: 390px; }
    .about-client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .factory-gallery { grid-template-rows: repeat(2, 230px); min-height: 474px; }
    .contact-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .about-page > .page-section-nav { display: none; }
}

@media (max-width: 680px) {
    .page-complete-section { padding: 58px 0; }
    .complete-section-heading { margin-bottom: 34px; }
    .complete-section-heading h2,
    .company-intro__copy h2 { font-size: 34px; }
    .about-page__hero,
    .contact-page__hero,
    .about-page__hero .page-hero__content,
    .contact-page__hero .page-hero__content { min-height: 360px; }
    .company-intro__media { min-height: 310px; }
    .company-intro__media video,
    .company-intro__media > img { height: 310px; }
    .company-intro__media-label { position: static; display: block; }
    .company-stats { margin-top: 38px; }
    .company-stats > div { min-height: 126px; padding: 24px 12px; }
    .company-stats strong { font-size: 31px; }
    .company-stats span { font-size: 11px; }
    .advantage-grid { grid-template-columns: 1fr; grid-gap: 16px; }
    .advantage-card,
    .advantage-card > img { min-height: 380px; height: 380px; }
    .advantage-card__body { right: 22px; bottom: 24px; left: 22px; }
    .advantage-card__body h3 { font-size: 24px; }
    .about-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-client-logo { min-height: 118px; padding: 16px; }
    .certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; }
    .certificate-card { padding: 12px 10px 0; }
    .certificate-card img { height: 190px; }
    .certificate-card figcaption { margin: 10px -10px 0; }
    .factory-gallery { display: grid; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 190px; grid-gap: 8px; }
    .factory-gallery__item--1,
    .factory-gallery__item--2,
    .factory-gallery__item--3,
    .factory-gallery__item--4,
    .factory-gallery__item--5 { grid-column: auto; grid-row: auto; }
    .factory-gallery__item--3 { grid-column: 1 / -1; grid-row: 1; }
    .contact-overview { padding-right: 15px; padding-left: 15px; }
    .contact-overview__grid { width: 100%; }
    .contact-overview__intro,
    .contact-overview__form { padding: 38px 22px; }
    .contact-overview__intro h2,
    .contact-overview__form > h2 { font-size: 30px; }
    .contact-card-grid { grid-template-columns: 1fr; grid-gap: 14px; }
    .contact-card { min-height: 215px; padding: 28px 20px; }
    .contact-visit__panel,
    .contact-visit__copy { min-height: 440px; }
    .contact-visit__shade { background: rgba(3, 30, 57, .78); }
    .contact-visit__copy { padding: 42px 24px; }
    .contact-visit__copy h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 99999px) {
    .advantage-card > img,
    .about-client-logo img,
    .factory-gallery img,
    .contact-card { transition: none !important; }
}
