/* Homepage of the shared CMS. Site-specific content comes from the active profile. */
.hy-home {
    --hm-ink: #14313d;
    --hm-mid: #2b5666;
    --hm-gold: #c79a3b;
    --hm-soft: #e7c67a;
    --hm-muted: #546770;
    --hm-paper: #f7f5f0;
    --hm-line: #e6e1d6;
    color: var(--hm-ink);
    overflow-wrap: anywhere;
}
.hy-home .wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.hy-home :is(h1,h2,h3,p,ol,ul) { margin: 0; }
.hy-home :is(h1,h2,h3) { letter-spacing: -.015em; line-height: 1.28; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #866324; }
.hm-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }
.hm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
    padding: 12px 26px; border: 1.5px solid transparent; border-radius: 100px;
    font: inherit; font-size: 15px; line-height: 1.45; font-weight: 700; text-align: center;
}
.hm-btn-gold { color: #241f14; background: var(--hm-gold); box-shadow: 0 12px 28px -16px #c79a3ba8; }
.hm-btn-gold:hover { background: #d3a847; color: #241f14; }
.hm-btn-ghost { border-color: #ffffff86; color: #fff; background: #ffffff0d; }
.hm-btn-ghost:hover { color: #fff; background: #ffffff2a; }
.hm-text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding-bottom: 4px; border-bottom: 2px solid var(--hm-gold); font-size: 14px; font-weight: 700; color: var(--hm-ink); }
.hm-text-link:hover { color: #826123; }
.hm-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; min-height: 100vh; min-height: 100svh; background: var(--hm-ink); color: #fff; }
.hm-hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hm-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(95deg,rgba(11,32,42,.94) 0%,rgba(16,45,57,.80) 43%,rgba(20,49,61,.28) 80%,rgba(20,49,61,.13)), linear-gradient(0deg,rgba(11,32,42,.85),transparent 36%);
}
.hm-hero-inner { flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 132px 0 68px; }
.hm-hero .hm-eyebrow, .hm-ink .hm-eyebrow,.hm-cta-box .hm-eyebrow { color: var(--hm-soft); }
.hm-hero h1 { font-size: clamp(33px,5.8vw,74px); margin-top: 22px; line-height: 1.16; color: white; }
.hm-hero h1 em { color: var(--hm-soft); font-style: normal; }
.hm-hero .hm-lead { margin-top: 24px; max-width: 56ch; font-size: clamp(16px,1.4vw,19px); line-height: 1.85; color: #e0e8eb; }
.hm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; }
.hm-hero .hm-toggle:not([hidden]) { position: static; inset: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; margin: 0; border: 1px solid #ffffff55; border-radius: 100px; font-size: 13px; color: white; background: #132e3999; }
.hm-hero .hm-toggle[hidden] { display: none; }
.hm-hero-stats { background: rgba(9,28,37,.76); backdrop-filter: blur(8px); border-top: 1px solid #ffffff26; }
.hm-hero-stats .wrap { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.hm-hero-stats a { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 22px clamp(10px,1.6vw,24px); border-left: 1px solid #ffffff26; }
.hm-hero-stats a:first-child { border-left: 0; }
.hm-hero-stats a:hover { background: #ffffff0d; }
.hm-hero-stats strong { display: block; font-size: clamp(24px,2.8vw,40px); font-weight: 800; line-height: 1.24; color: var(--hm-soft); font-variant-numeric: tabular-nums; }
.hm-hero-stats strong small { margin-left: 4px; color: #eff3f5; font-size: .48em; }
.hm-hero-stats span { font-size: 13.5px; color: #d1dbe0; }
.hm-section { padding-block: clamp(60px,7.5vw,104px); }
.hm-paper { background: var(--hm-paper); }
.hm-white { background: #fff; }
.hm-ink { background: var(--hm-ink); color: #fff; }
.hm-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px,4.5vw,52px); }
.hm-section-head > a { flex: none; }
.hm-section h2 { margin-top: 14px; font-size: clamp(26px,3.35vw,42px); }
.hm-section-head p { margin-top: 12px; color: var(--hm-muted); }
.hm-sol-grid,.hm-case-grid,.hm-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.hm-sol-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid #eeeae1; border-radius: 16px; background: #fff; box-shadow: 0 2px 0 #14313d08; }
.hm-sol-card:hover,.hm-sol-card:focus-within { border-color: #c79a3b88; }
.hm-sol-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: #f4efe3; }
.hm-sol-icon svg { width: 28px; height: 28px; stroke: #a57b2e; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-sol-card h3 { font-size: 21px; font-weight: 800; }
.hm-sol-card p { flex: 1; margin-top: 10px; color: var(--hm-muted); font-size: 14px; line-height: 1.8; }
.hm-sol-links { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hm-line); }
.hm-sol-links a { padding: 5px 0; font-size: 13.5px; font-weight: 700; color: var(--hm-mid); }
.hm-sol-links a:hover,.hm-categories a:hover { color: #805c17; }
.hm-prod-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.hm-prod-card { display: flex; flex-direction: column; background: var(--hm-paper); border-radius: 12px; overflow: hidden; }
.hm-prod-card:hover { box-shadow: 0 18px 50px -22px #14313d47; }
.hm-prod-media { position: relative; aspect-ratio: 4/3; background: #f2f1eb; }
.hm-prod-media img { width: 100%; height: 100%; object-fit: contain; }
.hm-prod-tag { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); color: #ffdf98; background: #14313de8; border-radius: 100px; padding: 5px 11px; font-size: 11px; font-weight: 700; }
.hm-prod-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; }
.hm-prod-body h3 { font-size: 17px; line-height: 1.5; }
.hm-prod-more { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--hm-mid); }
.hm-categories { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: 10px 20px; margin-top: 24px; }
.hm-categories small { display: block; margin-top: 3px; color: var(--hm-muted); font-weight: 400; font-size: 13px; }
.hm-categories a { color: var(--hm-mid); padding-block: 4px; font-size: 14px; font-weight: 600; }
.hm-about-grid,.hm-cta-box { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(32px,6vw,82px); }
.hm-about-grid > :only-child { grid-column: 1 / -1; }
.hm-about-photo { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.hm-about-photo > img { width: 100%; height: clamp(330px,40vw,520px); object-fit: cover; }
.hm-about-badge { position: absolute; bottom: 22px; left: 22px; max-width: calc(100% - 44px); background: var(--hm-gold); color: #241f14; padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.hy-home .hm-desc { margin-top: 18px; color: #c6d3d8; font-size: 15px; line-height: 1.9; }
.hy-home .hm-steps { list-style: none; counter-reset: hm-step; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 28px; margin: 30px 0 26px; padding: 0; }
.hm-steps li { position: relative; counter-increment: hm-step; padding: 16px 0 16px 33px; border-top: 1px solid #ffffff2b; }
.hm-steps li::before { content: counter(hm-step,decimal-leading-zero); position: absolute; left: 0; top: 16px; color: var(--hm-soft); font-size: 13px; font-weight: 700; }
.hm-steps h3 { font-size: 16px; color: #fff; }
.hm-steps p { margin-top: 5px; color: #bbccd4; font-size: 13px; }
.hm-about-grid .hm-desc + .hm-btn { margin-top: 24px; }
.hm-cta-box { padding: clamp(24px,5vw,64px); border-radius: 24px; background: linear-gradient(115deg,#14313d,#2b5666); color: #fff; }
.hm-cta-box h2 { max-width: 12em; }
.hy-home .hm-cta-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; padding: 0; list-style: none; }
.hm-cta-points li { padding: 7px 13px; color: #dae4e9; border: 1px solid #ffffff42; border-radius: 99px; font-size: 12.5px; }
.hm-contacts { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 21px; font-size: 14px; color: var(--hm-soft); }
.hm-contacts a:hover { text-decoration: underline; }
.hm-cta-form { min-width: 0; background: white; color: var(--hm-ink); border-radius: 16px; padding: clamp(20px,3vw,32px); scroll-margin-top: 95px; }
.hm-cta-form h3 { margin-bottom: 16px; font-size: 20px; }
.hm-cta-form .form-field { display: block; margin-bottom: 13px; color: var(--hm-mid); font-size: 13px; font-weight: 700; }
.hm-cta-form .form-field :is(input,textarea) { width: 100%; min-width: 0; padding: 10px 13px; margin-top: 5px; border: 1px solid #d8d2c4; border-radius: 9px; background: #faf9f6; color: var(--hm-ink); font-size: 16px; line-height: 1.45; }
.hm-cta-form textarea { min-height: 80px; resize: vertical; }
.hm-cta-form .consent-label { margin: 8px 0 16px; }
.hm-cta-form .consent-label a { color: var(--hm-mid); text-decoration: underline; }
.hm-cta-form .hm-btn { width: 100%; }
.hm-case-card { width: 100%; min-width: 0; position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 270px; aspect-ratio: 4/4.5; background: var(--hm-ink); color: white; border-radius: 16px; overflow: hidden; }
.hm-case-card img,.hm-case-card::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-case-card img { object-fit: cover; z-index: -2; }
.hm-case-card::before { content: ""; z-index: -1; background: linear-gradient(0deg,rgba(11,32,42,.96) 0%,rgba(11,32,42,.74) 25%,rgba(11,32,42,.07) 72%); }
.hm-case-body { width: 100%; padding: 24px; }
.hm-case-body h3 { color: #fff; font-size: 20px; }
.hm-case-body p { margin-top: 8px; color: #e3e9eb; font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-news-grid { gap: 32px; }
.hm-news-card { display: flex; flex-direction: column; padding-top: 20px; border-top: 2px solid var(--hm-ink); }
.hm-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 700; color: #826224; }
.hm-news-meta span { background: #f0eadb; padding: 4px 9px; border-radius: 50px; }
.hm-news-card h3 { margin-top: 12px; font-size: 18px; line-height: 1.5; }
.hm-news-card p { flex: 1; margin-top: 10px; color: var(--hm-muted); line-height: 1.75; font-size: 14px; }
.hm-news-card .hm-text-link { margin-top: 18px; font-size: 13px; }
@media (max-width:1024px) {
    .hm-sol-grid,.hm-prod-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hm-hero-stats .wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hm-hero-stats a { padding: 15px; }
    .hm-hero-stats a:nth-child(odd) { border-left: 0; }
    .hm-hero-stats a:nth-child(n+3) { border-top: 1px solid #ffffff26; }
}
@media (max-width:850px) {
    .hm-about-grid,.hm-cta-box { grid-template-columns: 1fr; }
    .hm-case-grid,.hm-news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hm-about-photo > img { height: auto; max-height: 400px; }
    .hm-hero { min-height: min(850px,100svh); }
}
@media (max-width:640px) {
    .hy-home .wrap { width: calc(100% - 36px); }
    .hm-hero { min-height: min(690px,100svh); }
    .hm-hero-inner { padding-block: 116px 38px; }
    .hm-hero h1 { font-size: clamp(26px,7.4vw,36px); margin-top: 18px; }
    .hm-hero .hm-lead { margin-top: 16px; font-size: 15px; }
    .hm-hero-actions { gap: 8px; margin-top: 22px; }
    .hm-hero-actions .hm-btn { min-height: 44px; padding: 10px 17px; font-size: 14px; }
    .hm-hero-stats strong { font-size: 23px; }
    .hm-hero-stats a { padding: 13px 10px; gap: 4px; }
    .hm-hero-stats span { font-size: 12px; line-height: 1.5; }
    .hm-section { padding-block: 54px; }
    .hm-section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hm-sol-grid,.hm-prod-grid,.hm-case-grid,.hm-news-grid { grid-template-columns: 1fr; }
    .hm-sol-card { padding: 24px; }
    .hm-cta-box { gap: 24px; padding: 20px; }
    .hm-case-card { min-height: 0; aspect-ratio: 5/4; }
}
@media (max-width:400px) {
    .hy-home .hm-steps { grid-template-columns: 1fr; }
    .hm-cta-box { padding: 16px; }
    .hm-cta-form { padding: 16px; }
}
@media (prefers-reduced-motion:no-preference) {
    .hm-prod-card,.hm-case-card img { transition: transform .25s,box-shadow .25s; }
    .hm-prod-card:hover { transform: translateY(-4px); }
    .hm-case-card:hover img { transform: scale(1.035); }
}
