:root {
  --navy: #102c3c;
  --navy-2: #173d4e;
  --green: #4c7768;
  --green-dark: #355f51;
  --sage: #e8f0eb;
  --cream: #f6f6f1;
  --white: #fff;
  --ink: #16313e;
  --muted: #5f7178;
  --line: #dce4e1;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 99; left: 1rem; top: -5rem; padding: .7rem 1rem; background: white; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.site-header { width: min(1180px, calc(100% - 40px)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); }
.brand-mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.site-header nav, footer nav { display: flex; gap: 1.7rem; }
.site-header nav a, footer nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.site-header nav a:hover, footer nav a:hover { color: var(--green-dark); }
main { overflow: hidden; }
.hero { width: min(1180px, calc(100% - 40px)); min-height: 560px; margin: 0 auto; padding: clamp(3rem, 8vw, 7.5rem) clamp(1.5rem, 7vw, 6.5rem); display: grid; grid-template-columns: 1fr; align-items: center; position: relative; overflow: hidden; border-radius: 32px; color: white; background: linear-gradient(120deg, rgba(11,39,53,.98), rgba(23,66,71,.89)), radial-gradient(circle at 80% 20%, #739283, transparent 42%); }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.hero::before { width: 530px; height: 530px; right: -240px; top: -250px; }
.hero::after { width: 270px; height: 270px; right: -60px; top: -90px; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 1rem; color: var(--green-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 5.2rem); font-weight: 500; }
.hero-intro { max-width: 620px; margin: 0 0 2rem; color: #d5e0df; font-size: clamp(1rem, 2vw, 1.17rem); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .75rem 1.15rem; border: 0; border-radius: 8px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: #f4faf6; }
.button-product { color: white; background: var(--green-dark); }
.button-product:hover { background: var(--navy); }
.products-section { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: clamp(6rem, 10vw, 9rem) 0; }
.section-heading { max-width: 720px; margin-bottom: 2.2rem; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 500; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { padding: .55rem .9rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .82rem; cursor: pointer; }
.filter[aria-pressed="true"] { color: white; border-color: var(--green); background: var(--green); }
.product-list { display: grid; gap: 1.25rem; }
.aqara-system { display: grid; grid-template-columns: 30% 70%; overflow: hidden; margin: 1.5rem 0 .25rem; border: 1px solid #b9cec4; border-radius: var(--radius); background: #f5faf7; box-shadow: 0 8px 30px rgba(16,44,60,.05); }
.aqara-system-visual { min-height: 280px; display: grid; place-items: center; padding: 1.5rem; background: var(--sage); }
.aqara-system-visual .image-placeholder { width: min(160px, 85%); }
.aqara-system-visual > img { width: min(180px, 85%); max-height: 210px; object-fit: contain; }
.aqara-system-body { padding: clamp(1.6rem, 4vw, 2.7rem); }
.aqara-system-body h3 { margin-bottom: 1rem; font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }
.aqara-system-body > p { margin: .8rem 0; color: var(--muted); font-size: .9rem; }
.aqara-system-body ul { margin: 0 0 1.2rem; padding-left: 1.15rem; color: var(--muted); font-size: .82rem; }
.aqara-system-body li + li { margin-top: .3rem; }
.aqara-system-name-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.aqara-system-name-row > strong { color: var(--green-dark); font-size: 1.05rem; }
.product-card { display: grid; grid-template-columns: 38% 62%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 5px 25px rgba(16,44,60,.035); }
.product-visual { min-height: 380px; position: relative; display: grid; place-items: center; padding: 2rem; background: var(--sage); }
.product-visual::after { content: ""; width: 250px; height: 250px; position: absolute; border: 1px solid rgba(76,119,104,.18); border-radius: 50%; }
.product-visual > img { position: relative; z-index: 1; width: min(260px, 82%); max-height: 280px; object-fit: contain; }
.image-placeholder { position: relative; z-index: 1; width: min(190px, 70%); aspect-ratio: 1; display: grid; place-items: center; padding: 1rem; border: 1px dashed #93ab9f; border-radius: 28px; color: var(--green-dark); background: rgba(255,255,255,.7); text-align: center; }
.image-placeholder svg { width: 42px; margin-bottom: .6rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.image-placeholder span { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.combination-images { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .55rem; }
.combination-images .image-placeholder { width: 100%; padding: .65rem; border-radius: 18px; }
.combination-images > img { width: 100%; max-height: 190px; object-fit: contain; }
.combination-images .image-placeholder svg { width: 32px; }
.combination-images .image-placeholder span { font-size: .58rem; }
.combination-plus { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.5rem; }
.product-index { position: absolute; left: 1.5rem; top: 1.25rem; z-index: 2; color: var(--green); font-family: Georgia, serif; }
.product-body { padding: clamp(1.8rem, 5vw, 3.4rem); }
.product-category { margin: 0 0 .65rem; color: var(--green-dark); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-title-row { display: flex; justify-content: space-between; gap: 1rem; }
.product-title-row h3 { margin-bottom: .9rem; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.price { width: min(210px, 42%); flex: none; overflow-wrap: anywhere; color: var(--muted); font-size: .76rem; text-align: right; }
.price b { display: block; margin-top: .25rem; color: var(--ink); font-size: .66rem; }
.price small { display: block; margin-top: .25rem; color: #77868b; font-size: .66rem; line-height: 1.35; }
.summary { margin: 0 0 1rem; color: var(--muted); font-size: .96rem; }
.suitable { margin: 0 0 1.4rem; padding: .8rem 1rem; border-left: 3px solid var(--green); background: #f7faf8; font-size: .86rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.pros-cons h4 { margin: 0 0 .55rem; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
.pros-cons ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .82rem; }
.pros-cons li + li { margin-top: .35rem; }
.recommendation { margin: 0 0 1.2rem; padding: 1rem; border-radius: 10px; color: var(--navy); background: var(--sage); font-size: .85rem; }
.recommendation strong { color: var(--green-dark); }
.required-accessory { margin: 0 0 1.3rem; padding: 1rem; border: 1px solid #b9cec4; border-radius: 10px; background: #f5faf7; }
.required-accessory > span { display: block; margin-bottom: .25rem; color: var(--green-dark); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.required-accessory strong { display: block; color: var(--navy); }
.required-accessory p { margin: .2rem 0 .55rem; color: var(--muted); font-size: .8rem; }
.required-accessory a { color: var(--green-dark); font-size: .78rem; font-weight: 750; text-underline-offset: 3px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.link-pending { display: inline-flex; min-height: 42px; align-items: center; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #f7faf8; font-size: .78rem; font-weight: 700; }
footer { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 2rem 0 3rem; display: flex; align-items: center; gap: 2rem; border-top: 1px solid var(--line); }
.brand-footer { margin-right: auto; }
footer p { color: var(--muted); font-size: .8rem; }
.footer-affiliate { max-width: 260px; line-height: 1.4; }
.legal { width: min(760px, calc(100% - 40px)); min-height: calc(100vh - 210px); margin: 0 auto; padding: 5rem 0; }
.legal h1 { color: var(--navy); font-size: clamp(2.3rem, 6vw, 4rem); }
.legal h2 { margin-top: 2.3rem; font-size: 1.2rem; }
.legal p, .legal li { color: var(--muted); }
.placeholder-box { padding: 1.2rem; border: 1px dashed var(--green); border-radius: 10px; background: var(--sage); }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--green-dark); text-underline-offset: 4px; }
.noscript { padding: 1rem; color: #7a331c; background: #fff0e8; }

@media (max-width: 800px) {
  .site-header { height: 72px; }
  .site-header nav { display: none; }
  .hero { min-height: 520px; align-content: center; padding: 3.5rem 1.5rem; border-radius: 22px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .product-card, .aqara-system { grid-template-columns: 1fr; }
  .aqara-system-visual { min-height: 230px; }
  .product-visual { min-height: 260px; }
  .product-visual::after { width: 200px; height: 200px; }
  footer { flex-wrap: wrap; }
  footer p { width: 100%; order: 3; margin: 0; }
}

@media (max-width: 520px) {
  .site-header, .hero, .products-section, footer { width: min(100% - 28px, 1180px); }
  .product-body { padding: 1.5rem; }
  .product-title-row { display: block; }
  .aqara-system-name-row { display: block; }
  .price { display: block; width: 100%; margin: -.3rem 0 .8rem; text-align: left; }
  .pros-cons { grid-template-columns: 1fr; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .button-product { width: 100%; }
  footer nav { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
