@import url('/profile/css/product.css');
@import url('/profile/css/news.css');
@import url('/profile/css/message.css');
.home-hero { position: relative; background: #1a72b2; }
.home-hero:not(.is-ready) .home-slide:not(:first-child) { display: none; }
.home-slide { position: relative; height: 770px; overflow: clip; }
.home-hero-image, .home-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-overlay { object-fit: fill; pointer-events: none; }
.home-hero-copy { position: relative; padding-top: 185px; color: white; }
.home-hero-copy h2 { width: min(888px, 65%); min-height: 264px; font-size: 48px; line-height: 1.5; text-shadow: 2px 2px #11629d; }
.home-spotlights { display: flex; gap: 64px; padding-left: 54px; margin-top: 36px; }
.home-spotlights > div { width: 170px; height: 170px; padding: 6px; background: white; border-radius: 50%; }
.home-spotlights img { width: 158px; height: 158px; object-fit: cover; border-radius: 50%; }
.home-hero-empty { min-height: 320px; padding: 70px 32px; color: white; text-align: center; }
.home-hero-video { position: absolute; right: 8%; top: 10%; width: min(650px, 40%); height: 70%; object-fit: contain; }
.home-slider-controls { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.home-slider-controls button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; }
.home-slider-controls button::after { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #ffffffb3; }
.home-slider-controls button.active::after { width: 30px; border-radius: 10px; background: white; }
.home-slider-controls button:hover::after, .home-slider-controls button:focus-visible::after { background: var(--orange); }
.home-slider-pause { position: absolute; bottom: 24px; right: 32px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ffffff80; background: #1a72b280; color: white; border-radius: 50%; z-index: 2; }
.home-slider-pause span { width: 8px; height: 10px; border-inline: 3px solid currentColor; }
.home-slider-pause.is-paused span { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; margin-left: 2px; }
.home-entrances { padding-top: 80px; background: linear-gradient(var(--blue) 184px,var(--pale) 184px); }
.home-sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 39px; }
.home-sector { background: white; border-radius: 8px; box-shadow: 0 0 10px #74889733; min-width: 0; }
.home-sector > a { display: flex; justify-content: space-between; padding: 25px 28px; gap: 10px; min-height: 212px; }
.home-sector h2 { font-size: 24px; font-weight: 600; line-height: 30px; color: var(--blue); overflow-wrap: anywhere; }
.home-sector span { display: block; font-size: 16px; margin-top: 45px; }
.home-sector img { width: 43%; height: 160px; object-fit: contain; flex-shrink: 0; }
.home-about { display: grid; grid-template-columns: minmax(0, 45vw) minmax(0, 1fr); gap: min(8vw, 152px); padding: 144px max(32px, calc((100% - 1600px) / 2)) 156px 0; background: var(--pale); }
.home-about-media { position: relative; align-self: start; }
.home-about-media > img { width: 100%; height: auto; aspect-ratio: 864 / 658; object-fit: cover; border-top-right-radius: 150px; }
.home-message-link { position: absolute; right: 0; bottom: 0; background: var(--blue); color: white; text-align: center; padding: 25px; border-top-left-radius: 40px; }
.home-message-link img { width: 68px; height: 68px; margin: auto auto 18px; }
.home-message-link span { font-size: 20px; }
.home-about-copy h2 { font-size: 30px; line-height: 45px; font-weight: 400; color: var(--blue); }
.home-about-copy h3 { font-size: 34px; line-height: 42px; font-weight: 600; margin-top: 9px; overflow-wrap: anywhere; }
.home-about-copy p { font-size: 20px; line-height: 34px; margin-top: 18px; white-space: pre-line; }
.home-more { display: table; padding: 14px 30px; font-size: 18px; line-height: 22px; border-radius: 6px; background: var(--blue); color: white; }
.home-more:hover { background: var(--orange); }
.home-about .home-more { margin-top: 28px; }
.home-products { padding-block: 71px 0; }
.home-about + .home-products { padding-top: 111px; }
.home-products-icon { width: 62px; height: 62px; object-fit: contain; margin-inline: auto; }
.home-products > h2, .home-news > h2, .home-cases h2 { font-size: 40px; line-height: 50px; text-align: center; margin-bottom: 48px; overflow-wrap: anywhere; }
.home-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-product-carousel { position: relative; }
.home-product-viewport { overflow: hidden; }
.home-product-carousel.is-ready .home-product-grid { display: flex; gap: 0; align-items: stretch; }
.home-product-carousel.is-ready .product-card { flex-shrink: 0; height: auto; }
.home-product-carousel.is-ready .product-card > a { display: flex; flex-direction: column; height: 100%; }
.home-product-carousel.is-ready .product-card h3 { flex-grow: 1; }
.home-product-carousel .product-card h3 { display: flex; align-items: center; justify-content: center; line-height: 20px; padding: 15px 10px; }
.home-product-arrow { position: absolute; top: calc(var(--home-image-height, 390px) / 2); transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); transition: background-color .15s; }
.home-product-arrow img { width: 29px; height: 29px; }
.home-product-previous img { transform: rotate(90deg); }
.home-product-previous { left: -35px; }
.home-product-next { right: -35px; }
.home-product-next img { transform: rotate(-90deg); }
.home-product-arrow:hover, .home-product-arrow:focus-visible { background: #ff5c0a; }
.home-product-arrow:disabled { opacity: .45; cursor: default; }
.home-product-arrow[hidden] { display: none; }
.home-products > .home-more { margin: 70px auto 0; }
.home-cases { margin-top: 70px; background-color: #1d1d1d; background-position: center; background-size: cover; color: white; padding-block: 92px 95px; }
.home-cases h2 { font-size: 44px; line-height: 65px; margin-bottom: 72px; }
.home-case-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; text-align: center; margin-bottom: 34px; }
.home-case-tab { position: relative; display: flex; align-items: flex-start; justify-content: center; width: min(285px, 100%); min-height: 91px; margin: auto; padding: 7px 0 24px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 24px; font-weight: 500; line-height: 30px; overflow-wrap: anywhere; }
.home-case-tab::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(272px, 100%); height: 13px; background: url('/profile/images/figma/home/case-tab-indicator.svg') center / 100% 100% no-repeat; visibility: hidden; }
.home-case-tab.active::after { visibility: visible; }
.home-case-tab:focus-visible, .home-case-panel:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.home-case-panel { aspect-ratio: 1600 / 551; }
.home-case-grid { display: grid; grid-template-columns: minmax(0, 794fr) repeat(2, minmax(0, 378fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 27px 25px; aspect-ratio: 1600 / 551; }
.home-case-grid article { position: relative; min-width: 0; min-height: 0; }
.home-case-grid article:first-child { grid-row: span 2; }
.home-case-grid a { display: block; height: 100%; }
.home-case-grid img { width: 100%; height: 100%; object-fit: cover; }
.home-case-grid h3 { position: absolute; bottom: 0; left: 0; width: 100%; min-height: 60px; max-height: 100%; overflow: auto; background: #1a72b2cc; padding: 20px 26px; font-size: 20px; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; }
.home-cases-empty { padding: 60px 20px; text-align: center; }
.home-news { padding-block: 118px 90px; }
.home-news > h2 { font-size: 44px; line-height: 65px; font-weight: 600; margin-bottom: 56px; }
.home-news .home-more { margin: 54px auto 0; }
.home-news .news-card h3 { font-size: 20px; line-height: 30px; font-weight: 500; overflow-wrap: anywhere; min-height: 90px; }
.home-news .news-card a:hover h3 { color: var(--blue); }
.home-contact { position: relative; isolation: isolate; margin-bottom: 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 702px); gap: 7%; padding: 45px 48px 42px 130px; background-color: #00355c; border-radius: 8px; }
/* Only the background mirrors the Figma image; content remains in normal flow. */
.home-contact::before, .home-contact::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.home-contact::before { background-image: var(--home-contact-image); background-position: center; background-size: cover; transform: scaleX(-1); }
.home-contact::after { background: linear-gradient(90deg, #00355ccc, #0b314c00); }
.home-contact-copy { color: white; padding-top: 40px; }
.home-contact-copy h2 { font-size: 40px; line-height: 44px; white-space: pre-line; }
.home-contact-copy p { font-size: 18px; line-height: 30px; margin-top: 26px; }
.home-contact .message-workspace { width: 100%; padding: 34px 28px 28px; background: #ffffff80; box-shadow: none; }
.message-compact .message-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 7px; }
.message-compact .message-telephone { order: 3; }
.message-compact .message-email { order: 2; }
.message-compact .message-wide { order: 4; }
.message-compact .message-field { position: relative; }
/* Labels stay associated with controls, and clear as soon as the user types. */
.message-compact .message-field > label { position: absolute; top: 12px; left: 14px; max-width: calc(100% - 28px); margin: 0; font-size: 16px; line-height: 20px; color: #000; pointer-events: none; }
.message-compact .message-field > label span { margin-right: 0; }
.message-compact .message-field > input:focus + label,
.message-compact .message-field > textarea:focus + label,
.message-compact .message-field > input:not(:placeholder-shown) + label,
.message-compact .message-field > textarea:not(:placeholder-shown) + label { opacity: 0; }
.message-compact .message-fields input, .message-compact .message-fields textarea { min-height: 45px; background: white; border-color: transparent; border-radius: 4px; padding: 11px 14px; font-size: 16px; line-height: 21px; }
.message-compact .message-fields textarea { height: 130px; min-height: 130px; padding-top: 17px; }
.message-compact .message-wide > label { top: 17px; }
.message-compact .message-submit { width: 162px; max-width: 100%; margin-top: 22px; }
.message-compact #message-error:empty { display: none; }
.message-compact .message-fields input:focus-visible,
.message-compact .message-fields textarea:focus-visible,
.message-compact button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 1250px) {
    .home-slide { height: 620px; }
    .home-hero-copy { padding-top: 120px; }
    .home-hero-copy h2 { font-size: 40px; }
    .home-spotlights { padding-left: 0; gap: 30px; }
    .home-spotlights > div { width: 130px; height: 130px; }
    .home-spotlights img { width: 118px; height: 118px; }
    .home-sector-grid { gap: 20px; }
    .home-sector > a { padding: 22px 18px; }
    .home-sector h2 { font-size: 18px; line-height: 26px; }
    .home-sector img { width: 35%; height: 130px; }
    .home-about { gap: 6%; padding-block: 80px; }
    .home-about-copy h3 { font-size: 26px; line-height: 36px; }
    .home-about-copy p { font-size: 17px; line-height: 28px; }
    .home-message-link { padding: 18px; }
    .home-products, .home-about + .home-products { padding-top: 18px; }
    .home-case-tab { min-height: 121px; font-size: 18px; }
    .home-contact { padding: 40px; gap: 35px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .home-contact-copy h2 { font-size: 30px; line-height: 38px; }
}
@media (max-width: 1700px) {
    .home-product-arrow { width: 56px; height: 56px; }
    .home-product-previous { left: -20px; }
    .home-product-next { right: -20px; }
}
@media (max-width: 1000px) {
    .home-contact { grid-template-columns: minmax(0, 1fr); }
    .home-contact-copy { padding-top: 0; }
}
@media (max-width: 760px) {
    .home-slide { height: 580px; }
    .home-hero-copy { padding-top: 95px; }
    .home-hero-copy h2 { width: 90%; min-height: 210px; font-size: 30px; line-height: 42px; }
    .home-spotlights { gap: 18px; margin-top: 40px; }
    .home-spotlights > div { width: 92px; height: 92px; padding: 4px; }
    .home-spotlights img { width: 84px; height: 84px; }
    .home-sector-grid { grid-template-columns: minmax(0, 1fr); }
    .home-sector > a { min-height: 165px; }
    .home-sector h2 { font-size: 20px; }
    .home-sector span { margin-top: 20px; }
    .home-sector img { height: 120px; width: 35%; }
    .home-entrances { padding-top: 36px; }
    .home-about { grid-template-columns: minmax(0, 1fr); padding: 55px 16px; gap: 32px; }
    .home-about-media > img { border-top-right-radius: 80px; }
    .home-about-copy h2 { font-size: 24px; }
    .home-about-copy h3 { font-size: 26px; }
    .home-about-copy p { font-size: 16px; }
    .home-message-link span { font-size: 16px; }
    .home-message-link img { width: 44px; height: 44px; margin-bottom: 10px; }
    .home-products, .home-about + .home-products { padding-block: 48px 20px; }
    .home-products-icon { width: 40px; height: 40px; margin-bottom: 8px; }
    .home-products > h2, .home-news > h2, .home-cases h2 { font-size: 26px; line-height: 36px; margin-bottom: 32px; }
    .home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-product-arrow { width: 44px; height: 44px; }
    .home-product-arrow img { width: 22px; height: 22px; }
    .home-product-previous { left: -12px; }
    .home-product-next { right: -12px; }
    .home-products > .home-more { margin-top: 30px; }
    .home-cases { padding-block: 45px; margin-top: 25px; }
    .home-case-types { gap: 8px; margin-bottom: 32px; }
    .home-case-tab { min-height: 128px; padding: 8px 3px 22px; font-size: 14px; line-height: 22px; }
    .home-case-panel { aspect-ratio: auto; }
    .home-case-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; aspect-ratio: auto; gap: 24px; }
    .home-case-grid img { height: auto; aspect-ratio: 794 / 551; }
    .home-case-grid h3 { font-size: 16px; line-height: 24px; padding: 15px 20px; min-height: 54px; }
    .home-case-grid article:first-child { grid-row: auto; }
    .home-news { padding-block: 55px; }
    .home-news .news-card h3 { min-height: 0; }
    .home-contact { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; gap: 30px; margin-bottom: 40px; }
    .home-contact-copy { padding-top: 0; }
    .home-contact .message-workspace { padding: 22px 16px; }
    .message-compact .message-fields { grid-template-columns: minmax(0, 1fr); }
    .message-compact .message-fields input { font-size: 16px; }
}
@media (max-width: 360px) {
    .home-case-tab { font-size: 12px; line-height: 20px; }
    .home-spotlights { gap: 12px; }
    .home-spotlights > div { width: 82px; height: 82px; }
    .home-spotlights img { width: 74px; height: 74px; }
}
