/* Homepage inspired by the approved GemOtvet reference. */
.home-main { padding: 0 0 0; }
.home-main > .site-messages { padding-top: 18px; }
.home-page { overflow: clip; background: var(--ivory); }
.home-hero { position: relative; isolation: isolate; background: linear-gradient(105deg, #f8faf6 0%, #edf5f1 54%, #dcece6 100%); }
.home-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; width: min(100% - 80px, 1320px); min-height: 520px; margin-inline: auto; padding: 46px 0 112px; }
.home-hero-copy { position: relative; z-index: 2; max-width: 590px; padding: 10px 0 0; }
.eyebrow { margin: 0 0 14px; color: var(--gold-700); font-size: .68rem; font-weight: 700; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.home-hero h1 { max-width: 590px; margin: 0; color: var(--gem-950); font-size: clamp(2.4rem, 4.2vw, 4.2rem); letter-spacing: -.045em; line-height: 1.06; }
.gem-divider { display: block; position: relative; width: 108px; height: 1px; margin: 23px 0 18px; background: var(--gold-500); }
.gem-divider::after { position: absolute; top: -3px; left: 42%; width: 7px; height: 7px; border: 1px solid var(--gold-700); background: var(--ivory); content: ''; transform: rotate(45deg); }
.home-hero-description { max-width: 450px; margin: 0; color: #455b53; font-size: .96rem; line-height: 1.8; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.gem-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; padding: 11px 20px; border: 1px solid transparent; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.gem-button:hover { transform: translateY(-2px); }
.gem-button-primary { background: var(--gem-800); color: white; }
.gem-button-primary:hover { background: var(--gem-950); color: white; }
.gem-button-outline { border-color: var(--gem-700); background: transparent; color: var(--gem-800); }
.gem-button-outline:hover { background: var(--gem-800); color: white; }
.home-hero-art { position: absolute; z-index: 1; top: 0; right: -4%; bottom: 78px; display: flex; width: 58%; align-items: center; justify-content: center; overflow: hidden; }
.home-hero-art::before { position: absolute; inset: 0; background: linear-gradient(90deg, #f3f7f2 0%, rgba(243,247,242,.45) 20%, transparent 55%); content: ''; z-index: 1; pointer-events: none; }
.home-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.home-benefits { position: absolute; right: 0; bottom: 25px; left: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.home-benefit { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 8px 18px; border-right: 1px solid rgba(13,81,71,.13); }
.home-benefit:first-child { padding-left: 0; }
.home-benefit:last-child { border-right: 0; }
.home-benefit > i { flex: 0 0 auto; color: var(--gold-700); font-size: 1.65rem; }
.home-benefit span { display: flex; flex-direction: column; gap: 3px; }
.home-benefit strong { color: var(--gem-950); font-size: .75rem; font-weight: 700; line-height: 1.3; }
.home-benefit small { color: var(--muted); font-size: .69rem; line-height: 1.4; }
.home-categories { padding: 36px max(40px, calc((100% - 1320px) / 2)) 42px; background: var(--gem-950); color: white; }
.home-section-heading { margin: 0 auto 28px; text-align: center; }
.home-section-heading .eyebrow { margin-bottom: 7px; }
.home-section-heading h2 { margin: 0; color: var(--gem-950); font-size: clamp(1.65rem, 2.5vw, 2.25rem); letter-spacing: .045em; }
.home-section-heading .gem-divider { margin: 16px auto 0; }
.home-section-heading-light h2 { color: #fff; }
.home-section-heading-light .eyebrow { color: #cbb98f; }
.home-section-heading-light .gem-divider::after { background: var(--gem-950); }
.home-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.home-category-card { display: flex; min-height: 210px; flex-direction: column; align-items: center; padding: 22px 14px 17px; border: 1px solid rgba(225,239,232,.24); border-radius: 5px; color: #fff; text-align: center; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.home-category-card:hover { transform: translateY(-4px); border-color: rgba(198,173,124,.8); background: rgba(255,255,255,.055); color: #fff; }
.category-gem-art { display: grid; width: 82px; height: 82px; place-items: center; margin-bottom: 15px; overflow: hidden; border: 1px solid rgba(213,234,228,.22); border-radius: 50%; background: radial-gradient(circle at 35% 25%, rgba(213,234,228,.2), rgba(213,234,228,.025) 68%); color: #c8dfd7; font-size: 2.4rem; }
.category-gem-art img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.16)); }
.home-category-name { margin-bottom: 7px; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-category-description { flex: 1; color: rgba(255,255,255,.68); font-size: .72rem; line-height: 1.5; }
.home-category-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; color: #d4c39d; font-size: .67rem; }
.home-empty-state { grid-column: 1 / -1; color: rgba(255,255,255,.8); text-align: center; }
.home-empty-state a { color: #e0cfaa; }
.home-shapes { padding: 43px max(30px, calc((100% - 1320px) / 2)) 46px; background: var(--ivory); text-align: center; }
.home-shapes .home-section-heading { margin-bottom: 22px; }
.home-shape-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.home-shape { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 11px; padding: 8px 4px 12px; border-radius: 8px; color: var(--gem-900); text-decoration: none; transition: background .18s ease, transform .18s ease; }
.home-shape:hover { transform: translateY(-3px); background: white; color: var(--gem-800); }
.home-shape img { width: 100%; max-width: 94px; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.home-shape span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-all-shapes { margin-top: 20px; }
.home-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; min-height: 280px; padding: 35px max(40px, calc((100% - 1320px) / 2)); background: linear-gradient(110deg, #e7f2ed 0%, #f4f7f1 52%, #d9ebe4 100%); }
.home-story-copy { position: relative; z-index: 1; }
.home-story-copy h2 { max-width: 470px; margin: 0 0 18px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.home-story-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; color: #4b6259; font-size: .85rem; list-style: none; }
.home-story-list li::before { margin-right: 9px; color: var(--gem-700); content: '✓'; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--gem-800); font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--gold-700); }
.home-story-art { display: flex; height: 220px; align-items: center; justify-content: center; overflow: hidden; }
.home-story-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.home-contact-strip { display: flex; align-items: center; gap: 22px; padding: 24px max(40px, calc((100% - 1320px) / 2)); background: var(--gem-950); color: #fff; }
.home-contact-mark { display: grid; flex: 0 0 62px; width: 62px; height: 62px; place-items: center; color: var(--gold-500); font-size: 2.2rem; }
.home-contact-copy { flex: 1; }
.home-contact-copy h2 { margin: 0 0 5px; color: #fff; font-size: 1.3rem; }
.home-contact-copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.7); font-size: .82rem; }
.gem-button-light { flex: 0 0 auto; border-color: rgba(255,255,255,.45); color: #fff; }
.gem-button-light:hover { border-color: var(--gold-500); background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 1100px) {
    .home-hero-inner { width: min(100% - 48px, 1000px); min-height: 490px; }
    .home-hero-art { right: -7%; width: 60%; }
    .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-category-card { min-height: 190px; }
    .home-shape-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .home-hero-inner { display: flex; min-height: auto; width: 100%; flex-direction: column; align-items: stretch; padding: 40px 24px 0; }
    .home-hero-copy { padding: 0; }
    .home-hero h1 { max-width: 520px; font-size: clamp(2.25rem, 8vw, 3.4rem); }
    .home-hero-description { max-width: 560px; font-size: .9rem; }
    .home-hero-art { position: relative; top: auto; right: auto; bottom: auto; width: calc(100% + 48px); height: 245px; margin: 20px -24px 0; }
    .home-hero-art::before { background: linear-gradient(180deg, #edf5f1 0%, rgba(237,245,241,0) 30%); }
    .home-benefits { position: relative; right: auto; bottom: auto; left: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px -24px 0; padding: 14px 16px; background: rgba(255,255,255,.72); }
    .home-benefit { padding: 12px 8px; border-right: 0; }
    .home-benefit:first-child { padding-left: 8px; }
    .home-benefit > i { font-size: 1.35rem; }
    .home-benefit strong { font-size: .7rem; }
    .home-benefit small { font-size: .65rem; }
    .home-categories { padding: 32px 20px 35px; }
    .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-category-card { min-height: 180px; padding: 18px 10px 14px; }
    .category-gem-art { width: 64px; height: 64px; font-size: 1.9rem; }
    .home-category-name { font-size: .7rem; }
    .home-category-description { font-size: .68rem; }
    .home-shapes { padding: 34px 16px; }
    .home-shape-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .home-shape img { height: 62px; }
    .home-shape span { font-size: .59rem; }
    .home-story { grid-template-columns: 1fr; gap: 10px; padding: 32px 24px 24px; }
    .home-story-art { height: 180px; }
    .home-contact-strip { flex-wrap: wrap; gap: 12px; padding: 22px 24px; }
    .home-contact-mark { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.8rem; }
    .home-contact-copy { flex-basis: calc(100% - 60px); }
    .home-contact-copy h2 { font-size: 1.1rem; }
    .home-contact-copy p { font-size: .76rem; }
    .home-contact-strip .gem-button { margin-left: 54px; }
}
@media (max-width: 420px) {
    .home-hero-actions { align-items: stretch; flex-direction: column; }
    .home-hero-actions .gem-button { width: 100%; }
    .home-benefits { grid-template-columns: 1fr 1fr; }
    .home-category-card { min-height: 175px; }
    .home-shape-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Accessibility and interaction polish */
.home-category-card:focus-visible,
.home-shape:focus-visible,
.gem-button:focus-visible,
.text-link:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 4px;
}
.home-category-card:focus-visible {
    border-color: var(--gold-500);
}
.home-shape img {
    transition: transform .22s ease;
}
.home-shape:hover img {
    transform: scale(1.045);
}
.home-story-art img {
    transition: transform .35s ease;
}
.home-story:hover .home-story-art img {
    transform: scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media (max-width: 767.98px) {
    .home-hero-inner { overflow: hidden; }
    .home-hero-art img { object-position: center; }
    .home-benefit { align-items: flex-start; }
    .home-category-card { overflow-wrap: anywhere; }
    .home-shape { min-height: 94px; justify-content: center; }
}
