:root {
    --bg: #f7f7f5;
    --surface: #fff;
    --text: #111;
    --muted: #747474;
    --line: #e8e8e5;
    --orange: #f26a1b;
    --orange-dark: #d95208;
    --green: #178a50;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(17, 17, 17, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell { min-height: 100vh; padding-bottom: 112px; }
.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    justify-content: center;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(232, 232, 229, .88);
    background: rgba(247, 247, 245, .88);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}
.brand img, .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
.brand img { object-fit: cover; }
.brand-mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.05em;
    transform: rotate(-4deg);
}
.feed-column { width: min(100% - 28px, 680px); margin: 28px auto 0; }
.company-card, .post-card, .empty-feed {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.company-card { padding: clamp(22px, 4vw, 34px); }
.company-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(31px, 6vw, 48px); line-height: 1; letter-spacing: -.055em; }
.company-description-block { max-width: 560px; margin-top: 23px; }
.company-description { margin: 0; color: #323232; font-size: 17px; }
.company-description-block.is-collapsible:not(.is-expanded) .company-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.description-toggle {
    margin-top: 7px;
    padding: 0;
    border: 0;
    color: var(--orange-dark);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}
.description-toggle:hover { text-decoration: underline; }
.company-address { display: flex; gap: 9px; margin: 18px 0 0; color: var(--muted); }
.company-address span { color: var(--orange); font-weight: 900; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #f7f7f5; font-size: 13px; font-weight: 750; text-decoration: none; }
.social-links a:hover { border-color: var(--orange); color: var(--orange-dark); background: #fff; }
.social-links span { font-size: 12px; }
.status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; margin-top: 4px; padding: 7px 10px; border-radius: 999px; background: #f1f1ef; color: #666; font-size: 12px; font-weight: 700; }
.status span { width: 7px; height: 7px; border-radius: 50%; background: #969696; }
.status--open { color: var(--green); background: #eaf7f0; }
.status--open span { background: var(--green); box-shadow: 0 0 0 4px rgba(23, 138, 80, .12); }
.schedule { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.schedule summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 750; }
.schedule summary::-webkit-details-marker { display: none; }
.schedule[open] summary span { transform: rotate(45deg); }
.schedule summary span { transition: transform .2s ease; }
.schedule-list { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.schedule-list div { display: flex; justify-content: space-between; }
.schedule-list strong { color: var(--text); font-weight: 650; }

.filters {
    position: sticky;
    z-index: 15;
    top: 69px;
    display: flex;
    gap: 7px;
    margin: 18px 0;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    scrollbar-width: none;
    backdrop-filter: blur(18px);
}
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 1 0 auto; padding: 9px 15px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: 14px; font-weight: 700; }
.filter:hover { color: var(--text); }
.filter.is-active { color: #fff; background: #111; }
.feed { display: grid; gap: 14px; }
.post-card { padding: 20px; }
.post-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.post-header time { color: var(--muted); font-size: 13px; }
.platform { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; }
.platform::before { width: 9px; height: 9px; border-radius: 50%; background: #222; content: ""; }
.platform--youtube::before { background: #ff0033; }
.platform--instagram::before { background: linear-gradient(135deg, #7738c8, #f0682f); }
.platform--tiktok::before { background: #00b8b0; box-shadow: 3px 0 #f14a66; }
.post-text { margin: 16px 0; color: #2a2a2a; white-space: normal; }
.media { position: relative; display: block; margin: 18px -6px 0; overflow: hidden; border-radius: 17px; background: #111; aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.media:hover img { transform: scale(1.015); }
.media--video { aspect-ratio: 16 / 9; }
.media--tiktok { width: min(100%, 390px); margin-right: auto; margin-left: auto; aspect-ratio: 9 / 16; }
.media iframe { width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 50% auto auto 50%; display: grid; width: 52px; height: 52px; place-items: center; padding-left: 4px; border-radius: 50%; color: #fff; background: rgba(17, 17, 17, .82); transform: translate(-50%, -50%); }
.original-link { display: inline-flex; gap: 7px; margin-top: 17px; color: var(--orange-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.original-link:hover { text-decoration: underline; }
.empty-feed { padding: 54px 28px; text-align: center; }
.empty-feed > span { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 18px; color: #fff; background: var(--orange); font-size: 15px; font-weight: 900; transform: rotate(-4deg); }
.empty-feed h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.empty-feed p, .filter-empty { margin: 8px auto 0; color: var(--muted); }
.filter-empty { padding: 32px; text-align: center; }

.action-bar {
    position: fixed;
    z-index: 30;
    right: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(calc(100% - 28px), 650px);
    gap: 9px;
    padding: 9px;
    border: 1px solid rgba(232, 232, 229, .9);
    border-radius: 21px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    transform: translateX(50%);
    backdrop-filter: blur(18px);
}
.action { display: grid; min-height: 51px; place-items: center; padding: 11px 16px; border: 0; border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.action--primary { color: #fff; background: var(--orange); }
.action--primary:hover { background: var(--orange-dark); }
.action--secondary { color: #fff; background: #111; }
.action.is-disabled { cursor: default; opacity: .38; }
.contact-dialog { width: min(calc(100% - 28px), 500px); padding: 0; border: 0; border-radius: 24px; color: var(--text); background: #fff; box-shadow: 0 35px 90px rgba(0,0,0,.24); }
.contact-dialog::backdrop { background: rgba(17,17,17,.42); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f1f1ef; cursor: pointer; font-size: 25px; line-height: 1; }
.contact-list { display: grid; gap: 8px; padding: 14px; }
.contact-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 15px; border-radius: 13px; text-decoration: none; }
.contact-list a:hover { background: #f7f7f5; }
.contact-list span { color: var(--muted); font-size: 13px; }
.contact-list strong { text-align: right; }
.empty-contacts { color: var(--muted); text-align: center; }
.content-section { margin: 18px 0; padding: clamp(20px, 4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-title { margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.product-grid, .media-grid, .portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card, .gallery-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.product-card img, .gallery-card img, .gallery-card video { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; background: #111; }
.product-card > div, .gallery-card > div { padding: 15px; }
.product-card h3, .gallery-card h3 { margin: 0 0 7px; letter-spacing: -.025em; }
.product-card p, .gallery-card p, .muted-copy { color: var(--muted); }
.product-card strong { color: var(--orange-dark); }
.media-external { display: grid; min-height: 160px; place-items: center; color: #fff; background: #111; font-weight: 800; text-decoration: none; }
.contact-message-form { display: grid; gap: 11px; padding: 18px 24px 24px; border-top: 1px solid var(--line); }
.contact-message-form label { display: grid; gap: 6px; color: #555; font-size: 13px; font-weight: 750; }
.contact-message-form input, .contact-message-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #dadad6; border-radius: 11px; outline: none; }
.contact-message-form textarea { min-height: 105px; resize: vertical; }
.public-form-message { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.public-form-message.is-success { color: var(--green); }
.public-form-message.is-error { color: #a12e25; }
.portal-home { width: min(100% - 28px, 920px); }
.portal-hero { padding-block: clamp(35px, 8vw, 78px); }
.portal-hero .company-description { max-width: 670px; margin-top: 25px; font-size: clamp(17px, 2.2vw, 21px); }
.portal-actions { display: flex; gap: 10px; margin-top: 28px; }
.portal-actions .action { min-width: 160px; }
.portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.portal-grid h2 { margin: 0; font-size: 23px; }
.platform-footer { width: min(100% - 28px, 920px); margin: 32px auto 0; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; }

:focus-visible { outline: 3px solid rgba(242,106,27,.34); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
    .feed-column { width: min(100% - 20px, 680px); margin-top: 10px; }
    .company-card { border-radius: 20px; }
    .company-card__top { display: block; }
    .status { margin-top: 18px; }
    .filters { top: 67px; margin: 10px 0; border-radius: 16px; }
    .filter { padding-inline: 13px; }
    .post-card { padding: 17px; border-radius: 20px; }
    .action-bar { width: calc(100% - 20px); }
    .action { padding-inline: 8px; font-size: 13px; }
    .product-grid, .media-grid, .portal-grid { grid-template-columns: 1fr; }
    .portal-actions { display: grid; }
}

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