/* ============================================================
   Durak USA — durakusa.com
   Palette drawn from durak.com brand identity:
   Durak Red #C8102E · Ink #141824 · Slate #4A5164 · Cloud #F4F5F7 · White
   Type: Archivo (display, condensed weights) + Inter (body)
   Signature: a running-stitch line in Durak red, threading the pages.
   ============================================================ */
:root {
  --red: #C8102E;
  --red-dark: #A00D25;
  --ink: #141824;
  --ink-soft: #202638;
  --slate: #4A5164;
  --line: #E2E4EA;
  --cloud: #F4F5F7;
  --white: #FFFFFF;
  --radius: 6px;
  --wrap: 1200px;
  --shadow: 0 12px 32px rgba(20, 24, 36, 0.10);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- The stitch: Durak's signature running thread ---------- */
.stitch {
  width: 96px; height: 3px; margin-bottom: 20px;
  background-image: linear-gradient(90deg, var(--red) 0 62%, transparent 62% 100%);
  background-size: 16px 3px; background-repeat: repeat-x;
}

/* ============================ Header ============================ */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-usa {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.08em; color: var(--white); background: var(--red);
  padding: 2px 8px 3px; border-radius: 3px; transform: translateY(2px);
}
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: var(--radius); color: var(--ink);
  position: relative;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background-image: linear-gradient(90deg, var(--red) 0 62%, transparent 62% 100%);
  background-size: 10px 2px;
}
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; color: var(--slate);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px;
}
.lang-btn:hover { border-color: var(--slate); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 95;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 14px; }
.lang-menu a:hover { background: var(--cloud); }
.lang-menu a[aria-selected="true"] { color: var(--red); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* ============================ Hero ============================ */
.hero { position: relative; min-height: 78vh; overflow: hidden; background: var(--ink); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease; display: flex; align-items: center;
}
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,24,36,0.88) 0%, rgba(20,24,36,0.62) 46%, rgba(20,24,36,0.18) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.hero h1, .industry-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08;
  color: var(--white); max-width: 15ch; letter-spacing: -0.01em;
}
.hero p { color: rgba(255,255,255,0.88); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 52ch; margin: 20px 0 30px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; background: rgba(255,255,255,0.35); border-radius: 2px; transition: background .2s; }
.hero-dots button.is-on { background: var(--red); }

/* ============================ Buttons & links ============================ */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius); transition: background .18s, color .18s, border-color .18s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.link-more { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--red); }
.link-more:hover { color: var(--red-dark); }

/* ============================ Bands / sections ============================ */
.band { padding: 84px 0; }
.band-grey { background: var(--cloud); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.sect-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em;
}
.sect-title.light { color: var(--white); }
.lede { font-size: 1.08rem; color: var(--slate); margin-top: 16px; max-width: 62ch; }
.lede.light { color: rgba(255,255,255,0.85); }
.body-text { color: var(--slate); margin-top: 16px; max-width: 68ch; }
.measure { max-width: 76ch; }

.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.band-intro .link-more { display: inline-block; margin-top: 20px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: 26px 24px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--red); line-height: 1; }
.stat span { display: block; margin-top: 6px; color: var(--slate); font-size: 0.92rem; }
.stats-col { grid-template-columns: 1fr 1fr; margin-top: 20px; }

/* ============================ Video band ============================ */
.band-video { background: var(--ink); }
.video-head { max-width: 62ch; margin-bottom: 36px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================ Sector grid ============================ */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--ink);
}
.sector-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .3s; opacity: 0.92; }
.sector-card:hover img { transform: scale(1.045); opacity: 1; }
.sector-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,24,36,0.85) 100%);
}
.sector-name {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white);
}
.sector-name::before {
  content: ""; display: block; width: 44px; height: 3px; margin-bottom: 8px;
  background-image: linear-gradient(90deg, var(--red) 0 62%, transparent 62% 100%);
  background-size: 12px 3px;
}

/* ============================ Product cards ============================ */
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.product-rail .product-card { scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-thumb { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--cloud); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; }
.product-card p { font-size: 0.88rem; color: var(--slate); margin-top: 6px; }
.product-card.is-hidden { display: none; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--slate);
  transition: all .15s;
}
.chip:hover { border-color: var(--slate); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ============================ Sustainability strip ============================ */
.band-sust { position: relative; background-size: cover; background-position: center; }
.band-sust-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,24,36,0.92) 0%, rgba(20,24,36,0.55) 70%, rgba(20,24,36,0.3) 100%); }
.band-sust-inner { position: relative; z-index: 2; }
.band-sust .btn { margin-top: 24px; }

/* ============================ Page head ============================ */
.page-head { background: var(--ink); padding: 64px 0 56px; }
.page-head h1, .grid-contact h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--white); letter-spacing: -0.01em;
}
.crumb { display: inline-block; font-size: 0.9rem; color: var(--slate); margin-bottom: 18px; }
.page-head .crumb, .crumb.light { color: rgba(255,255,255,0.7); }
.crumb:hover { color: var(--red); }

/* ============================ About ============================ */
.grid-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.us-quote {
  border-left: 3px solid var(--red); padding: 6px 0 6px 20px; margin: 22px 0 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.5;
}
.about-side img { border-radius: var(--radius); }

/* ============================ Product detail ============================ */
.grid-product { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.product-hero { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cloud); }
.spec-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 30px 0 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); }
.spec-table th { width: 40%; background: var(--cloud); font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--slate); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tag { font-size: 0.86rem; font-weight: 600; padding: 7px 14px; background: var(--cloud); border-radius: 100px; color: var(--slate); }
.tag:hover { background: var(--red); color: var(--white); }
.grid-product .btn { margin-top: 8px; }

/* ============================ Industries ============================ */
.industries-list { display: grid; gap: 28px; }
.industry-row {
  display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  transition: border-color .18s, box-shadow .18s;
}
.industry-row:hover { border-color: var(--red); box-shadow: var(--shadow); }
.industry-row.flip .industry-img { order: 2; }
.industry-img { min-height: 260px; }
.industry-img img { width: 100%; height: 100%; object-fit: cover; }
.industry-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.industry-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.industry-body p { color: var(--slate); margin: 12px 0 18px; }
.industry-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-color: var(--ink); padding: 60px 0; }

/* ============================ Documents / certificates ============================ */
.doc-list { display: grid; gap: 12px; max-width: 780px; }
.doc-row {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.doc-row:hover { border-color: var(--red); box-shadow: var(--shadow); }
.doc-icon {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 12px;
  color: var(--white); background: var(--red); border-radius: 4px; padding: 8px 9px;
}
.doc-name { font-weight: 600; }
.doc-dl { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; color: var(--red); white-space: nowrap; }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cert-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 8px; background: var(--white);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cert-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.cert-mark { width: 40px; height: 3px; background-image: linear-gradient(90deg, var(--red) 0 62%, transparent 62% 100%); background-size: 12px 3px; margin-bottom: 6px; }
.cert-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.cert-card p { font-size: 0.88rem; color: var(--slate); flex: 1; }
.cert-card .doc-dl { margin-left: 0; margin-top: 8px; }

/* ============================ Contact ============================ */
.grid-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin-top: 20px; }
.contact-list dt { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--red); letter-spacing: 0.03em; }
.contact-list dd { color: var(--slate); margin-top: 2px; }
.contact-list a:hover { color: var(--red); }
.contact-form { display: grid; gap: 16px; margin-top: 18px; max-width: 480px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.form-note { padding: 12px 16px; border-radius: var(--radius); font-size: 0.93rem; margin-top: 14px; }
.form-note.ok { background: #EAF6EE; color: #1D6B36; }
.form-note.err { background: #FBECEE; color: var(--red-dark); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 480px; position: sticky; top: 100px; }
.map-box iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }

.round-img { border-radius: var(--radius); }

/* ============================ Footer ============================ */
.site-foot { background: var(--ink); color: rgba(255,255,255,0.78); margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 50px; padding: 64px 24px 48px; }
.foot-brand img { height: 48px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 4px; }
.foot-brand p { margin-top: 18px; max-width: 40ch; font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--white);
  transition: background .15s, border-color .15s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.site-foot h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.foot-nav { display: grid; gap: 8px; }
.foot-nav a, .site-foot address a { font-size: 0.95rem; }
.foot-nav a:hover, .site-foot address a:hover { color: var(--red); }
.site-foot address { font-style: normal; font-size: 0.95rem; line-height: 1.8; }
.since { margin-top: 14px; font-size: 0.85rem; color: var(--red); font-weight: 600; }
.foot-bar { border-top: 1px solid rgba(255,255,255,0.12); }
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 0.85rem; }
.foot-bar a:hover { color: var(--red); }

/* ============================ Responsive ============================ */
@media (max-width: 1020px) {
  .product-grid, .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-about, .grid-product, .grid-contact { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .map-box { position: static; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 78px;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 24px 20px; gap: 2px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--cloud); }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .sector-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .industry-row { grid-template-columns: 1fr; }
  .industry-row.flip .industry-img { order: 0; }
  .industry-body { padding: 26px; }
  .hero { min-height: 64vh; }
  .band { padding: 60px 0; }
}
@media (max-width: 540px) {
  .sector-grid, .product-grid, .cert-grid, .stats, .foot-grid { grid-template-columns: 1fr; }
  .stats-col { grid-template-columns: 1fr 1fr; }
  .head-row { height: 68px; }
  .brand img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
