:root {
    --thfw-orange: #ff5b2e;
    --thfw-orange-dark: #d9421b;
    --thfw-bg: #101216;
    --thfw-panel: #1a1d22;
    --thfw-panel-2: #242830;
    --thfw-text: #f7f7f8;
    --thfw-muted: #a8acb6;
    --thfw-line: #393e48;
    --thfw-green: #4bd38a;
}

.thfw-store, .thfw-page {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 24px));
    margin: 30px auto;
    padding: clamp(18px, 4vw, 48px);
    color: var(--thfw-text);
    background: radial-gradient(circle at 90% 0, #2d211f 0, var(--thfw-bg) 32%);
    border: 1px solid var(--thfw-line);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.thfw-store *, .thfw-page * { box-sizing: border-box; }
.thfw-store h1, .thfw-store h2, .thfw-store h3, .thfw-page h1 { color: var(--thfw-text); line-height: 1.15; }
.thfw-store p, .thfw-page p { color: var(--thfw-muted); line-height: 1.65; }
.thfw-store-head { position: relative; padding-right: 90px; margin-bottom: 42px; }
.thfw-store-head h1 { max-width: 760px; margin: 24px 0 12px; font-size: clamp(32px, 6vw, 62px); }
.thfw-store-head > p { max-width: 780px; font-size: 18px; }
.thfw-brand { display: flex; align-items: center; gap: 13px; }
.thfw-logo { display: block; width: 74px; height: 74px; object-fit: contain; object-position: left center; border-radius: 50%; }
.thfw-wordmark { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -.05em; }
.thfw-wordmark span { color: var(--thfw-orange); }
.thfw-lang { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--thfw-line); border-radius: 999px; }
.thfw-store-head .thfw-lang { position: absolute; top: 0; right: 0; }
.thfw-lang a { min-width: 40px; padding: 7px 10px; color: var(--thfw-muted); text-align: center; text-decoration: none; border-radius: 999px; font-weight: 800; }
.thfw-lang a.active { color: #fff; background: var(--thfw-orange); }
.thfw-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.thfw-catalog > h2, .thfw-catalog > .thfw-empty { grid-column: 1 / -1; }
.thfw-offer-card { overflow: hidden; min-height: 100%; background: var(--thfw-panel); border: 1px solid var(--thfw-line); border-radius: 18px; }
.thfw-offer-card > img, .thfw-offer-placeholder { display: grid; width: 100%; height: 170px; object-fit: cover; place-items: center; background: linear-gradient(135deg, #2b3038, #17191d); color: var(--thfw-orange); font-size: 54px; font-weight: 950; }
.thfw-offer-card > div:last-child { padding: 20px; }
.thfw-offer-card small { color: var(--thfw-orange); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.thfw-offer-card h3 { margin: 8px 0; font-size: 24px; }
.thfw-offer-card details { margin: 14px 0; color: var(--thfw-muted); }
.thfw-offer-card summary { color: var(--thfw-text); cursor: pointer; font-weight: 700; }
.thfw-price { display: block; margin-top: 16px; color: #fff; font-size: 25px; }
.thfw-order-box { margin-top: 42px; padding: clamp(18px, 4vw, 34px); background: var(--thfw-panel); border: 1px solid var(--thfw-line); border-radius: 20px; }
.thfw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.thfw-fields label > span { display: block; margin-bottom: 7px; color: var(--thfw-muted); font-weight: 700; }
.thfw-fields input, .thfw-fields select { width: 100%; min-height: 50px; padding: 10px 13px; color: var(--thfw-text); background: var(--thfw-panel-2); border: 1px solid var(--thfw-line); border-radius: 10px; }
.thfw-fields input[type="file"] { padding: 11px; }
.thfw-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: var(--thfw-muted); }
.thfw-consent input { margin-top: 5px; }
.thfw-consent a, .thfw-legal-links a, .thfw-page a { color: #ff8b6b; }
.thfw-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; color: #fff !important; background: var(--thfw-orange); border: 0; border-radius: 11px; cursor: pointer; font-size: 16px; font-weight: 850; text-decoration: none !important; }
.thfw-primary:hover { background: var(--thfw-orange-dark); }
.thfw-primary:disabled { opacity: .55; cursor: wait; }
.thfw-result { margin-top: 24px; }
.thfw-message, .thfw-order-state, .thfw-identity { padding: 18px; background: var(--thfw-panel-2); border: 1px solid var(--thfw-line); border-radius: 14px; }
.thfw-result.is-error .thfw-message, .thfw-message.is-error { border-color: #b74a4a; color: #ffb2b2; }
.thfw-message.is-warning { border-color: #b78532; color: #ffd79a; }
.thfw-success { color: var(--thfw-green) !important; font-weight: 750; }
.thfw-identity dl, .thfw-details { margin: 0; }
.thfw-identity dl > div, .thfw-details > div { display: grid; grid-template-columns: minmax(120px, .65fr) 1.35fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--thfw-line); }
.thfw-identity dt, .thfw-details dt { color: var(--thfw-muted); }
.thfw-identity dd, .thfw-details dd { margin: 0; overflow-wrap: anywhere; color: var(--thfw-text); font-weight: 650; }
.thfw-solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thfw-solution { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: var(--thfw-text); text-align: left; background: var(--thfw-panel-2); border: 1px solid var(--thfw-line); border-radius: 13px; cursor: pointer; }
.thfw-solution:hover { border-color: var(--thfw-orange); transform: translateY(-2px); }
.thfw-solution span { color: var(--thfw-muted); }
.thfw-solution b { color: var(--thfw-orange); font-size: 20px; }
.thfw-order-state > h3 { overflow-wrap: anywhere; }
.thfw-order-line { font-weight: 700; }
.thfw-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.thfw-contacts a { display: flex; flex-direction: column; gap: 5px; padding: 18px; background: var(--thfw-panel); border: 1px solid var(--thfw-line); border-radius: 14px; text-decoration: none; }
.thfw-contacts span { color: var(--thfw-text); }
.thfw-legal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--thfw-line); }
.thfw-document { white-space: normal; }
.thfw-empty { padding: 24px; color: var(--thfw-muted); background: var(--thfw-panel); border-radius: 14px; }

@media (max-width: 860px) {
    .thfw-catalog, .thfw-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .thfw-contacts { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .thfw-store, .thfw-page { width: calc(100% - 12px); margin: 8px auto; border-radius: 16px; }
    .thfw-store-head { padding-right: 0; padding-top: 55px; }
    .thfw-store-head .thfw-lang { left: 0; right: auto; }
    .thfw-catalog, .thfw-solutions, .thfw-fields { grid-template-columns: 1fr; }
    .thfw-identity dl > div, .thfw-details > div { grid-template-columns: 1fr; gap: 4px; }
}
