:root {
    --red: #d0122d;
    --red-dark: #a80e24;
    --ink: #1a1a1a;
    --muted: #666;
    --line: #ececec;
    --bg: #f6f6f6;
    --card: #fff;
    --ok: #0e7a45;
    --bad: #d0122d;
    --info: #8a1020;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font: 16px/1.5 "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0 0 8px; font-size: 2rem; }
h2 { margin: 22px 0 12px; font-size: 1.25rem; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.promo {
    background: var(--red);
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
}
.promo span + span:before { content: "|"; margin: 0 8px; }
.top {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}
.top a { color: var(--ink); text-decoration: none; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 58px; width: auto; max-width: 280px; }
.foot-logo { height: 72px; width: auto; max-width: 320px; margin-bottom: 8px; }
.who { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.who a:hover { color: var(--red); }
.top a.btn, .who a.btn { color: #fff; }
.top a.btn:hover { color: #fff; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 0; border-top: 1px solid var(--line); }
.nav a {
    padding: 12px 14px;
    color: var(--ink);
    border-bottom: 3px solid transparent;
    font-weight: 600;
}
.nav a.on, .nav a:hover { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }
.nav.sub { background: #fff7f8; }
.nav.sub a { font-size: 14px; font-weight: 500; padding: 8px 12px; }

main.wrap { padding: 28px 0 56px; }

.hero {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 6px solid var(--red);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.hero p { margin: 0; color: var(--muted); }
.kicker { color: var(--red); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; margin: 0 0 4px; }

.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 8px; }
.toolbar h2 { margin: 0 0 12px; }
.toolbar .search { flex: 1; margin: 0; }

.site-foot { background: linear-gradient(115deg, #e1062c 0%, #8d0c1e 70%); color: #fff; }
.foot-top {
    display: grid;
    grid-template-columns: 1.5fr .7fr 1fr .9fr;
    gap: 32px;
    align-items: start;
    padding: 40px 0 28px;
}
.site-foot .foot-logo { height: 84px; max-width: 300px; margin: 0 0 14px; }
.foot-brand p { margin: 0; max-width: 280px; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.55; }
.foot-label {
    display: block;
    margin-bottom: 12px;
    color: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: #fff; font-weight: 600; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 32px; }
.office-card {
    background: rgba(0,0,0,.16);
    border-radius: 16px;
    padding: 18px 18px 20px;
}
.office-card strong { display: block; margin-bottom: 8px; font-size: 16px; }
.office-card p { margin: 0; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.5; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.22); }
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; font-size: 13px; color: rgba(255,255,255,.85); }
.foot-bar a { color: #fff; text-decoration: none; }
.foot-bar a:hover { text-decoration: underline; }
.office-list { display: grid; gap: 14px; margin: 14px 0 18px; }
.office-list strong { display: block; }
.office-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); }
.alert.error { background: #fff1f3; color: var(--red-dark); border-color: #f3c2c9; }
.alert.ok { background: #eefaf3; color: var(--ok); border-color: #b7e4c9; }
.alert.info { background: #fff6f7; color: var(--info); border-color: #f0c9d0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 22px; }
.stat, .card, .panel, fieldset, .auth-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.stat { padding: 14px 16px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { font-size: 1.35rem; color: var(--red); }

.search { display: grid; grid-template-columns: 160px 160px 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input, select, textarea {
    width: 100%; font: inherit; color: var(--ink);
    border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #f3c2c9; border-color: var(--red); }
textarea { min-height: 120px; }
.btn, button.btn {
    background: var(--red); color: #fff; border: 0; border-radius: 8px;
    padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.secondary { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn.secondary:hover { background: #fff1f3; color: var(--red-dark); }
.btn.danger { background: var(--red-dark); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(208, 18, 45, .12); transform: translateY(-2px); text-decoration: none; }
.card img, .ph { height: 180px; width: 100%; object-fit: cover; background: #fff1f3; }
.ph { display: grid; place-items: center; font-size: 2rem; color: var(--red); font-weight: 700; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; min-height: 2.6em; }
.price { margin: 0; color: var(--red); font-weight: 800; font-size: 1.05rem; }
.price small { font-weight: 600; color: var(--muted); font-size: 12px; }
.more {
    margin-top: auto;
    text-align: center;
    background: var(--red);
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 700;
}

.detail { display: block; }
.detail-hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.detail-hero img { border-radius: 10px; height: 320px; width: 100%; object-fit: cover; background: #fff1f3; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: #fff1f3; color: var(--red-dark); border-radius: 999px; padding: 2px 8px; font-size: 13px; }
.html p { margin-top: 0; }
fieldset { padding: 14px 16px; margin: 0 0 14px; }
legend { padding: 0 6px; font-weight: 700; }
.meta, .note, .back { color: var(--muted); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 72px; text-align: center; }
.stepper button {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 18px; color: var(--red);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); background: #fff7f8; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; background: #fff1f3; color: var(--red-dark); font-size: 13px; }
.badge.done { background: #eefaf3; color: var(--ok); }
.badge.cancelled, .badge.failed, .badge.void { background: #fff1f3; color: var(--red); }
.badge.pending, .badge.waiting { background: #fff6e8; color: #9a5b00; }

.auth {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}
.auth-copy {
    background: linear-gradient(115deg, #e1062c 0%, #8d0c1e 70%);
    color: #fff;
    border-radius: 22px;
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-logo { height: 74px; width: auto; max-width: 260px; margin: 0 0 22px; }
.auth-copy h1 { font-size: 2.3rem; color: #fff; margin: 0 0 10px; }
.auth-copy p { color: #ffe4e8; margin: 0; font-size: 1.05rem; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.auth-points li { color: #ffe4e8; font-weight: 600; padding-left: 16px; position: relative; }
.auth-points li:before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.auth-points a { color: #fff; text-decoration: none; }
.auth-points a:hover { text-decoration: underline; }
.auth-card { padding: 28px 26px 22px; border-radius: 22px; }
.auth-card h2 { margin: 0 0 16px; }
.auth-card .btn { width: 100%; text-align: center; }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin: 14px 0 0; }
.office-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.office-row article { background: #fff; border: 1px solid var(--line); border-top: 4px solid #e1062c; border-radius: 16px; padding: 16px 16px 18px; }
.office-row strong { display: block; margin-bottom: 6px; }
.office-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.empty { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline { display: flex; gap: 8px; align-items: end; }
.inline label { margin: 0; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 12px 0 20px; }
.pay-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 12px; padding: 16px; min-height: 180px; }
.pay-box h2 { margin: 0 0 8px; font-size: 1.1rem; }
.pay-box p { margin: 4px 0; word-break: break-word; }
.pay-box img { width: 160px; height: 160px; object-fit: contain; margin-top: 8px; background: #fff; }
.fx-live { grid-column: 1 / -1; background: #fff6f7; border: 1px solid #f3c3cb; border-radius: 12px; padding: 12px 14px; }
.fx-live strong { display: block; color: var(--red); font-size: 1.35rem; }
.cart-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.cart-item header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.cart-item header form { margin: 0; width: auto; }
.cart-item h2 { margin: 0; font-size: 1.25rem; }
.cart-item .kicker { margin: 0 0 4px; }
.cart-sub { margin: 10px 0 0; text-align: right; }
.badge.approved { background: #eefaf3; color: var(--ok); }
.badge.rejected { background: #fff1f3; color: var(--red); }
.proof { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.banner {
    background: linear-gradient(115deg, #e1062c 0%, #8d0c1e 70%);
    color: #fff;
    border-radius: 18px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 16px;
}
.banner h1 { color: #fff; font-size: 2.5rem; margin-bottom: 8px; }
.banner p { color: #ffe4e8; margin: 0; }
.kicker.light { color: #ffd5dc; }
.search-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin: 0;
}
.search-card label:nth-child(3),
.search-card .btn { grid-column: 1 / -1; }
.search-card .btn { width: 100%; }
.perks { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.perks li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.perks.tiny { margin: 8px 0 12px; }
.perks.tiny li { background: #fff1f3; border: 0; color: var(--red-dark); font-size: 13px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.cats a { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.cats a.on, .cats a:hover { background: var(--red); color: #fff; border-color: var(--red); text-decoration: none; }
.shelf { margin: 8px 0 12px; }
.loc { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.crumb { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.crumb a { color: var(--muted); }
.product-page { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.gallery img, .ph.big { width: 100%; height: 480px; object-fit: cover; border-radius: 16px; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 92px; }
.buybox h1 { font-size: 1.7rem; }
.btn.block { width: 100%; text-align: center; }
.product-info { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 18px; }

@media (max-width: 980px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .detail-hero, .auth, .office-row, .foot-top, .foot-offices, .toolbar, .banner, .product-page { grid-template-columns: 1fr; display: grid; }
    .toolbar { align-items: stretch; }
    .buybox { position: static; }
    .banner h1 { font-size: 2rem; }
    .gallery img, .ph.big { height: 240px; }
}
@media (max-width: 700px) {
    .stats, .cards, .search, .grid-2, .pay-grid { grid-template-columns: 1fr; }
    .top-row, .who { flex-wrap: wrap; }
}
