/* =========================================================================
   Hoàng Hà — public design system (hand-written, no Flatsome, no UI kit).
   Flat, modern, restrained B2B industrial look. Light + dark aware.
   ========================================================================= */

/* ---- tokens ---- */
:root {
    --ink-900: #14181c;
    --ink-700: #2b333b;
    --ink-500: #55606b;
    --ink-300: #8b96a1;

    --paper:   #ffffff;
    --paper-2: #f6f7f8;
    --paper-3: #eceef0;
    --line:    #e3e6e9;

    /* brand: primary green + amber highlight (matches the previous site) */
    --accent:     #007125;
    --accent-700: #005c1e;
    --accent-050: #e8f3ec;

    --amber:     #ffb900;
    --amber-700: #d99a00;

    --steel:   #007125;
    --steel-2: #005c1e;

    --r-sm: 4px;
    --r:    8px;
    --r-lg: 16px;
    --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 4px 16px rgba(20, 24, 28, .05);
    --shadow-sm: 0 1px 2px rgba(20, 24, 28, .08);

    --container: 1440px;
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --bg: var(--paper);
    --fg: #333333;
    --fg-soft: var(--ink-500);
    --surface: var(--paper);
    --surface-2: var(--paper-2);
    --border: var(--line);
}

/* Light-only, like the previous site — no dark mode. */

/* ---- reset / base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* discourage copying on public pages (forms + admin stay selectable) */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea, select, [contenteditable], .admin, .admin * { -webkit-user-select: text; -moz-user-select: text; user-select: text; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--fg); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* ---- layout ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--surface-2); }
.lead { font-size: 1.15rem; color: var(--fg-soft); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.center { text-align: center; margin-inline: auto; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.25rem; border-radius: var(--r);
    background: var(--accent); color: #fff; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; line-height: 1;
    transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--accent-700); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: .5rem .9rem; font-size: .9rem; }
.btn--light { background: #fff; color: var(--steel); }
.btn--light:hover { background: #eef1f3; }

/* ---- top bar (contact strip, like the previous site) ---- */
.topbar { background: var(--accent-700); color: #d7ecdd; font-size: .85rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar__addr, .topbar__email { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__addr { color: #e6f3ea; }
.topbar__email { color: #fff; }
.topbar__email:hover { text-decoration: underline; }
@media (max-width: 820px) { .topbar { display: none; } }

/* ---- header ---- */
.hdr {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--border);
}
.hdr.is-scrolled { box-shadow: var(--shadow-sm); }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }

.brand { display: inline-flex; align-items: center; flex-direction: column; line-height: 1.05; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand__logo { height: 60px; width: auto; display: block; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand__sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); }

.nav__toggle { display: none; }
.nav__burger { display: none; }

.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item > a { display: block; padding: .6rem .8rem; color: var(--fg); font-weight: 500; border-radius: var(--r-sm); }
.nav__item > a:hover { background: var(--surface-2); text-decoration: none; }
.nav__item.has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .6; }

.nav__sub {
    position: absolute; min-width: 240px; margin-top: .35rem; padding: .4rem;
    list-style: none; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.nav__item { position: relative; }
.nav__item.has-children:hover > .nav__sub,
.nav__item.has-children:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--fg); }
.nav__sub a:hover { background: var(--accent-050); color: var(--accent-700); text-decoration: none; }
.nav__cta { margin-left: .5rem; }

/* ---- mobile nav (CSS checkbox hack, JS-free) ---- */
@media (max-width: 900px) {
    .nav__burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 42px; height: 42px; padding: 9px; cursor: pointer; border-radius: var(--r-sm);
    }
    .nav__burger span { height: 2px; background: var(--fg); border-radius: 2px; transition: .2s; }
    .nav {
        position: fixed; inset: 80px 0 auto 0; background: var(--surface);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .nav__toggle:checked ~ .nav { max-height: 80vh; overflow: auto; }
    .nav__toggle:checked ~ .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
    .nav__toggle:checked ~ .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; }
    .nav__item > a { padding: .8rem .5rem; border-bottom: 1px solid var(--border); }
    .nav__item.has-children > a::after { float: right; }
    .nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; min-width: 0; margin-top: 0;
    }
    .nav__cta { margin: .75rem 0 0; }
    .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---- hero ---- */
.hero { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__art {
    aspect-ratio: 4 / 3; border-radius: var(--r-lg); border: 1px solid var(--border);
    background:
        radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--steel) 22%, transparent), transparent 60%),
        var(--surface);
    display: grid; place-items: center; color: var(--ink-300);
}
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; gap: 2rem; } .hero__art { order: -1; } }

/* ---- grid of cards ---- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 1.5rem; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent-050); color: var(--accent); margin-bottom: 1rem; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--fg-soft); margin: 0 0 .75rem; }
.card__link { font-weight: 600; font-size: .95rem; }

/* ---- feature strip ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: .85rem; align-items: flex-start; }
.feature svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.feature h4 { margin: 0 0 .15rem; font-size: 1.02rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--fg-soft); }

/* ---- CTA band ---- */
.cta {
    background: linear-gradient(180deg, var(--steel), var(--steel-2));
    color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 .35rem; }
.cta p { color: #d7e0e9; margin: 0; }

/* ---- footer: gray strip (logo + CTA) → green columns → white bar ---- */
.ft { margin-top: 2rem; }
.ft__top { background: #f2f2f2; }
.ft__top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.ft__logo { height: 56px; width: auto; display: block; }
.ft__cta { background: #e3000f; color: #fff; font-weight: 700; padding: .85rem 1.7rem; border-radius: 6px; white-space: nowrap; }
.ft__cta:hover { background: #c40010; color: #fff; text-decoration: none; }

.ft__main { background: #007125; color: #e5f2ea; }
.ft__main .ft__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 2rem; padding-block: 3rem; }
@media (max-width: 1040px) { .ft__main .ft__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (max-width: 560px) { .ft__main .ft__grid { grid-template-columns: 1fr; } }
.ft__main h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; color: #fff; }
.ft__main a { color: #dcefe3; }
.ft__main a:hover { color: #fff; text-decoration: underline; }
.ft__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ft__contact { display: grid; gap: .9rem; align-content: start; }
.ft__ci { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.55; }
.ft__ci svg { flex: none; margin-top: 2px; color: #bfe0c9; }
.ft__ci b { color: #fff; font-weight: 600; }

.ft__bar { background: #fff; border-top: 1px solid #e3e6e9; }
.ft__bar .container { padding-block: 1.15rem; font-size: .86rem; color: #737373; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ft__bar a { color: var(--accent); }
.ft__social { display: flex; gap: .5rem; }
.ft__social a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #16324f; color: #fff; }
.ft__social a:hover { background: var(--accent); text-decoration: none; }

/* ---- floating contact widget (fixed, bottom-left) — ripple + shake like the old plugin ---- */
.floatbtns { position: fixed; left: 14px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: .8rem; }
.floatbtn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); transition: transform .12s ease; }
.floatbtn:hover { transform: scale(1.08); text-decoration: none; color: #fff; }
/* expanding ring (zoom): grows and fades outward */
.floatbtn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 0 var(--ripple); animation: fb-ripple 1.3s ease-out infinite; }
/* icon/text shake, like a ringing phone */
.floatbtn > * { display: inline-flex; animation: fb-shake 1s ease-in-out infinite; transform-origin: center; }
.floatbtn--fb { background: #1877f2; --ripple: rgba(24, 119, 242, .55); }
.floatbtn--zalo { background: #0068ff; --ripple: rgba(0, 104, 255, .55); }
.floatbtn--phone { background: #e3000f; --ripple: rgba(227, 0, 15, .6); }
@keyframes fb-ripple {
    0% { transform: scale(.9); }
    70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(0, 0, 0, 0); }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@keyframes fb-shake {
    0%, 50%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-22deg); }
    20%, 40% { transform: rotate(22deg); }
}
@media (max-width: 600px) { .floatbtn { width: 46px; height: 46px; } .floatbtns { left: 10px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .floatbtn::before, .floatbtn > * { animation: none; } }

/* ---- chat widget (bottom-right, Gemini-backed) ---- */
.chatw { position: fixed; right: 18px; bottom: 20px; z-index: 70; }
.chatw__bubble { position: relative; display: inline-flex; align-items: center; gap: .5rem; height: 56px; padding: 0 20px 0 16px; border: none; border-radius: 30px; background: #007125; color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 113, 37, .38); animation: chatw-pulse 2.6s infinite; }
.chatw__bubble:hover { transform: translateY(-2px); }
.chatw__bubble-label { white-space: nowrap; }
.chatw__bubble::after { content: ""; position: absolute; top: 9px; right: 13px; width: 10px; height: 10px; border-radius: 50%; background: #ffb900; box-shadow: 0 0 0 3px #007125; }
@keyframes chatw-pulse {
    0% { box-shadow: 0 8px 22px rgba(0, 113, 37, .38), 0 0 0 0 rgba(0, 113, 37, .45); }
    70% { box-shadow: 0 8px 22px rgba(0, 113, 37, .38), 0 0 0 16px rgba(0, 113, 37, 0); }
    100% { box-shadow: 0 8px 22px rgba(0, 113, 37, .38), 0 0 0 0 rgba(0, 113, 37, 0); }
}

.chatw__panel { position: absolute; right: 0; bottom: 70px; width: 372px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); animation: chatw-in .18s ease; }
.chatw__panel[hidden] { display: none; }
@keyframes chatw-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.chatw__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem 1rem; background: #007125; color: #fff; }
.chatw__head-info { display: flex; align-items: center; gap: .6rem; }
.chatw__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #ffb900; color: #5a3d00; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.chatw__head strong { display: block; font-size: .98rem; line-height: 1.2; }
.chatw__head small { opacity: .85; font-size: .76rem; }
.chatw__close { background: transparent; border: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .85; padding: 0 .2rem; }
.chatw__close:hover { opacity: 1; }

.chatw__msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; background: #f5f7f8; user-select: text; -webkit-user-select: text; }
.chatw__msg { max-width: 84%; padding: .58rem .8rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.chatw__msg--bot { align-self: flex-start; background: #fff; color: #1a2b22; border: 1px solid #e4e9e6; border-bottom-left-radius: 4px; }
.chatw__msg--me { align-self: flex-end; background: #007125; color: #fff; border-bottom-right-radius: 4px; }
.chatw__msg a { color: inherit; text-decoration: underline; }
.chatw__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .7rem .85rem; background: #fff; border: 1px solid #e4e9e6; border-radius: 14px; }
.chatw__typing span { width: 7px; height: 7px; border-radius: 50%; background: #9bb0a6; animation: chatw-dot 1.2s infinite; }
.chatw__typing span:nth-child(2) { animation-delay: .2s; }
.chatw__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatw-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chatw__input { display: flex; align-items: flex-end; gap: .5rem; padding: .6rem; border-top: 1px solid #e4e9e6; background: #fff; }
.chatw__input textarea { flex: 1; resize: none; border: 1px solid #d5ddd8; border-radius: 20px; padding: .55rem .9rem; font: inherit; font-size: .9rem; line-height: 1.4; max-height: 120px; outline: none; }
.chatw__input textarea:focus { border-color: #007125; }
.chatw__send { flex: none; width: 40px; height: 40px; border: none; border-radius: 50%; background: #007125; color: #fff; cursor: pointer; display: grid; place-items: center; }
.chatw__send:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
    .chatw { right: 12px; bottom: 14px; }
    .chatw__bubble { padding: 0; width: 56px; justify-content: center; }
    .chatw__bubble-label { display: none; }
    .chatw__panel { width: calc(100vw - 24px); height: calc(100vh - 96px); }
}
@media (prefers-reduced-motion: reduce) { .chatw__bubble { animation: none; } }

/* ---- home sections (mirrors the previous site's layout) ---- */
.banner { background: var(--surface-2); }
.banner img { display: block; width: 100%; height: auto; margin: 0 auto; }

.home-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 820px) { .home-about__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* about image collage (about-1 + about-3 stacked, about-2 spanning) */
.home-about__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 185px; gap: .75rem; }
.home-about__gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); }
.home-about__gallery img:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 520px) { .home-about__gallery { grid-auto-rows: 130px; } }

.home-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.home-head h2 { text-transform: uppercase; }
.home-head p { color: var(--fg-soft); margin: 0; }

.home-more { text-align: center; margin-top: 2.25rem; }

/* ---- carousel (banner + card + logo sliders) ---- */
.carousel { position: relative; }
.carousel__track {
    display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 auto; scroll-snap-align: start; }

.carousel__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; z-index: 3; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--fg);
    font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}
.carousel__arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel__arrow--prev { left: -6px; }
.carousel__arrow--next { right: -6px; }
@media (max-width: 600px) { .carousel__arrow { display: none; } }

/* banner spans full width — keep its arrows inside the viewport */
.banner-slider .carousel__arrow--prev { left: 14px; }
.banner-slider .carousel__arrow--next { right: 14px; }

.carousel__dots { display: flex; gap: .5rem; justify-content: center; margin-top: .9rem; }
.carousel__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; transition: width .2s, background .2s; }
.carousel__dot.is-active { background: var(--accent); width: 22px; border-radius: 5px; }

/* card slider: 3 per view (desktop) */
.carousel--cards .carousel__track > * { width: calc((100% - 2 * 1.25rem) / 3); }
@media (max-width: 860px) { .carousel--cards .carousel__track > * { width: calc((100% - 1.25rem) / 2); } }
@media (max-width: 600px) { .carousel--cards .carousel__track > * { width: 85%; } }

/* banner slider: full-width slides */
.banner-slider .carousel__track { gap: 0; padding-bottom: 0; }
.banner-slider .carousel__track > * { width: 100%; }
/* full-width banner at the images' natural ratio (2.34:1) — shows the whole
   image undistorted and fits the screen, so baked-in text is never cut. */
.banner-slider img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 656; object-fit: cover; }

/* logo slider: ~5 per view */
.carousel--logos .carousel__track > * { width: calc((100% - 4 * 1.5rem) / 5); }
@media (max-width: 860px) { .carousel--logos .carousel__track > * { width: calc((100% - 2 * 1.5rem) / 3); } }
@media (max-width: 560px) { .carousel--logos .carousel__track > * { width: 45%; } }
.logo-slide { display: flex; align-items: center; justify-content: center; height: 96px; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.logo-slide img { max-height: 62px; width: auto; object-fit: contain; }

/* ---- content article + prose (migrated body HTML) ---- */
.article { max-width: 900px; margin-inline: auto; }
.article__title { margin-bottom: .5rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; color: var(--fg-soft); font-size: .9rem; margin-bottom: 1.5rem; }
.article__views { display: inline-flex; align-items: center; gap: .35rem; }
.article__views svg { opacity: .7; }
.prose { max-width: none; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin: 0 0 1rem; }
.prose img { border-radius: var(--r); margin: 1rem 0; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin: .3rem 0; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--fg-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 1rem 0; }
.prose--intro { max-width: none; margin-bottom: 2rem; }

/* ---- product / post card grid ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); color: var(--fg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.pcard__img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.pcard__body h3 { font-size: 1.05rem; margin: 0; }
.pcard__body p { margin: 0; color: var(--fg-soft); font-size: .92rem; }
.pcard__date { color: var(--accent); font-size: .8rem; font-weight: 600; }
.pcard__link { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: .25rem; }

/* ---- breadcrumb / pager / empty ---- */
.crumbs { font-size: .88rem; color: var(--fg-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--fg-soft); }
.crumbs span { margin: 0 .4rem; opacity: .6; }
.backlink { margin-top: 2rem; }
.pager { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.pager__info { color: var(--fg-soft); font-size: .9rem; }
.empty { text-align: center; padding: 3rem 0; }

/* ---- contact page (info + form side by side) ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.contact-info { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; }
.contact-info h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.contact-info__company { font-weight: 600; margin-bottom: 1.1rem; color: var(--fg); }
.contact-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-info__list li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.55; }
.contact-info__list svg { color: var(--accent); flex: none; margin-top: 2px; }

/* ---- contact form ---- */
.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: .4rem; }
.contact-form label > span { font-weight: 600; font-size: .92rem; color: var(--fg); }
.contact-form em { color: var(--accent); font-style: normal; }
.contact-form input, .contact-form textarea { padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--r); font-family: inherit; font-size: 1rem; background: var(--surface); color: var(--fg); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 37, .12); }
.contact-form textarea { resize: vertical; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: .85rem 1.1rem; border-radius: var(--r); margin-top: 1rem; }
.form-note--ok { background: #e7f5ec; color: #005c1e; border: 1px solid #bfe3cc; }
.form-note--err { background: #fef3f2; color: #b42318; border: 1px solid #f4c4bf; }

/* ---- misc / status (diagnostics) ---- */
.main { min-height: 40vh; }
.status { max-width: 640px; margin: 4rem auto; padding: 0 1.25rem; }
.checks { list-style: none; margin: 2rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.checks li { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-top: 1px solid var(--border); }
.checks li:first-child { border-top: 0; }
.checks b.ok { color: #157347; }
.checks b.err { color: var(--accent); }
.muted { color: var(--fg-soft); }
