:root {
  --navy: #10294f;
  --navy-deep: #0b1d3a;
  --blue: #1565c9;
  --link: #1d4f91;
  --orange: #f5a11a;
  --orange-dark: #d98805;
  --ink: #18212e;
  --muted: #5a6573;
  --line: #e3e7ec;
  --bg: #f5f6f8;
  --white: #fff;
  --display: "Archivo", "Arial Black", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* headings */
.display, .section-title, .page-title { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-title::after, .page-title::after { content: ""; display: block; width: 52px; height: 4px; background: var(--orange); margin-top: 14px; border-radius: 2px; }
.section { padding: 72px 0; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head a { font-weight: 600; white-space: nowrap; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo strong { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: .06em; font-size: 1.02rem; line-height: 1.1; }
.logo em { font-style: normal; font-weight: 600; font-stretch: 100%; }
.logo small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; border-top: 2px solid var(--orange); margin-top: 3px; padding-top: 2px; width: max-content; }
.logo-light { color: #fff; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.cart-btn) { color: var(--ink); font-weight: 500; padding: 10px 14px; border-bottom: 3px solid transparent; }
.nav > a:not(.cart-btn):hover { text-decoration: none; color: var(--link); }
.nav > a.active { border-bottom-color: var(--orange); font-weight: 600; }
.lang { display: inline-flex; align-items: center; margin: 0 10px; }
.lang i { width: 1px; height: 16px; background: #c5ccd5; }
.lang button { background: none; border: 0; padding: 6px 10px; cursor: pointer; font-weight: 500; color: var(--muted); border-radius: 4px; }
.lang button.on { color: var(--ink); font-weight: 700; background: #eef1f5; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; background: #fff; }
.cart-btn:hover { text-decoration: none; border-color: var(--orange); }
.cart-btn.has-items { border-color: var(--orange); }
#cart-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--navy-deep); font-size: .72rem; line-height: 20px; text-align: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--navy-deep); box-shadow: 0 2px 0 var(--orange-dark); }
.btn-primary:hover { background: #ffb02e; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link:hover { color: #b3261e; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 70% 0%, #1d4a8c 0%, transparent 60%), linear-gradient(135deg, var(--navy-deep), #14356a 60%, #1a4688); }
.hero::before { content: "DFY TRADING"; position: absolute; left: 6%; top: 38%; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 13vw, 11rem); white-space: nowrap; color: rgba(255, 255, 255, .06); filter: blur(3px); pointer-events: none; }
.hero-in { position: relative; padding: 110px 0 120px; max-width: 640px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero h1::after { content: ""; display: block; width: 84px; height: 5px; background: var(--orange); margin: 22px 0; border-radius: 2px; }
.hero-tag { font-size: 1.6rem; font-weight: 700; }
.hero-lead { font-style: italic; font-weight: 500; margin: 18px 0 28px; font-size: 1.05rem; max-width: 480px; color: #e6edf7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { background: var(--navy); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.stat { border-left: 3px solid var(--orange); padding-left: 14px; }
.stat b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.5rem; line-height: 1.2; }
.stat span { font-size: .9rem; color: #d5deeb; }

/* cards & grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.grid { display: grid; gap: 22px; margin-top: 36px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.group { display: flex; flex-direction: column; padding: 18px; color: var(--ink); border-bottom: 3px solid transparent; transition: border-color .15s, box-shadow .15s, transform .15s; }
.group:hover { text-decoration: none; border-bottom-color: var(--orange); box-shadow: 0 10px 24px rgba(16, 41, 79, .08); transform: translateY(-2px); }
.group-img, .product-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fafbfc; border-radius: 4px; overflow: hidden; }
.group-img svg, .product-img svg { width: 86%; }
.product-img img, .detail-img img, .cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.group h3 { font-size: 1.05rem; line-height: 1.3; margin: 16px 0 8px; }
.group p { color: var(--muted); font-size: .92rem; flex: 1; }
.count { margin-top: 18px; font-weight: 700; font-size: .9rem; color: var(--link); }

.product { display: flex; flex-direction: column; border-bottom: 3px solid transparent; transition: border-color .15s, box-shadow .15s; }
.product:hover { border-bottom-color: var(--orange); box-shadow: 0 10px 24px rgba(16, 41, 79, .08); }
.product-img { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.chip { align-self: flex-start; display: inline-block; background: #eef1f5; color: var(--ink); font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.product h3 { font-size: 1rem; line-height: 1.3; margin-top: 10px; }
.product h3 a { color: var(--ink); }
.code { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: 2px; }
.product p { color: var(--muted); font-size: .9rem; margin: 10px 0; flex: 1; }
.details { font-weight: 600; text-decoration: underline; font-size: .9rem; margin-bottom: 14px; align-self: flex-start; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); width: max-content; margin-bottom: 12px; background: #fff; }
.qty button { width: 36px; height: 36px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.qty button:hover { color: var(--ink); background: #f1f3f6; }
.qty input { width: 48px; height: 36px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.why { padding: 24px; }
.why-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-deep); color: var(--orange); }
.why h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.why p, .ref p { color: var(--muted); font-size: .94rem; }
.ref { padding: 22px; border-top: 3px solid var(--link); }
.ref strong { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.25rem; color: var(--link); }
.ref h3 { font-size: 1.1rem; font-weight: 600; margin-top: 6px; }

/* cta + footer */
.cta { background: var(--blue); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 54px 0; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta p { margin-top: 10px; max-width: 560px; font-weight: 500; }
.footer { background: var(--navy); color: #dfe6f1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.1fr; gap: 36px; padding: 56px 0 40px; }
.footer p { margin-top: 16px; font-size: .94rem; max-width: 330px; }
.footer h4 { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--orange); margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; color: #fff; font-weight: 500; font-size: .94rem; padding: 5px 0; }
.footer a.ico { display: flex; align-items: center; gap: 10px; }
.footer a.ico svg { color: var(--orange); flex: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.accent { color: var(--orange); font-weight: 700; }

/* inner pages */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 48px 0 32px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 220px; }
.toolbar label { font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.filter.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-weight: 700; margin-top: 18px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 16px; line-height: 3; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea { width: 100%; padding: 11px 14px; border: 1px solid #c3cad3; border-radius: var(--radius); background: #fff; }
select { width: auto; }
form select { width: 100%; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--link); box-shadow: 0 0 0 3px rgba(29, 79, 145, .18); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.req::after { content: " *"; color: #c0392b; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin-bottom: 12px; }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.hint { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; }
.form-card { padding: 28px; }
.form-card h2, .sub-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; margin-bottom: 14px; }
.form-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: #1c7a43; }
.form-status.err { color: #b3261e; }
.form-status.info { color: var(--link); }

.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-item .why-ico { width: 40px; height: 40px; }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; }
.contact-item a { font-weight: 600; text-decoration: underline; }
.callout { border-left: 4px solid var(--orange); background: #fff; padding: 20px 22px; margin-top: 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { font-size: 1.05rem; }
.callout p { color: var(--muted); font-size: .92rem; margin: 8px 0 16px; }

.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about p { margin-bottom: 20px; font-size: 1.02rem; }
.about-art { position: sticky; top: 100px; padding: 24px; }

.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cart-row:first-child { border-top: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 60px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.cart-name { flex: 1; min-width: 150px; }
.cart-name a { color: var(--ink); font-weight: 600; display: block; }
.cart-name small { color: var(--muted); font-weight: 600; }
.cart-row .qty { margin: 0; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; }

.back { display: inline-block; font-weight: 600; margin-bottom: 24px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; }
.detail-img svg { width: 80%; }
.detail h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 14px 0; }
.detail .lead { color: var(--muted); font-size: 1.05rem; }
.detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 24px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.detail dt { color: var(--muted); font-size: .9rem; }
.detail dd { margin: 0; font-weight: 600; }
.detail-buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.detail-buy .qty { margin: 0; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy-deep); color: #fff; padding: 12px 20px; border-radius: var(--radius); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; border-left: 4px solid var(--orange); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; }
  .header.open .nav { display: flex; }
  .lang { margin: 8px 0; }
  .cart-btn { justify-content: center; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .two-col, .about, .detail { grid-template-columns: 1fr; gap: 32px; }
  .about-art { position: static; max-width: 420px; }
  .hero-in { padding: 72px 0 80px; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 20px; }
}
@media (max-width: 420px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
