/* ==========================================================================
   Duxtop USA — стили сайта
   ========================================================================== */

:root {
  --color-bg: #fffaf3;
  --color-bg-alt: #fff1de;
  --color-surface: #ffffff;
  --color-text: #2b1b12;
  --color-text-soft: #6b5647;
  --color-border: #f0ddc4;

  --color-primary: #d9480f;
  --color-primary-dark: #a8320a;
  --color-primary-light: #ff9a4d;
  --color-amber: #f2a93b;

  --color-amazon: #ff9900;
  --color-amazon-dark: #e07d00;
  --color-amazon-ink: #131921;

  --color-success: #3a7d44;

  --shadow-sm: 0 2px 8px rgba(43, 27, 18, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 27, 18, 0.12);
  --shadow-lg: 0 16px 40px rgba(43, 27, 18, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --header-h: 72px;

  --font-base: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
section.alt { background: var(--color-bg-alt); }

.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(217, 72, 15, .08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--color-text-soft); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-amazon {
  background: linear-gradient(135deg, #ffb84d, var(--color-amazon));
  color: var(--color-amazon-ink);
  box-shadow: 0 6px 16px rgba(255, 153, 0, .35);
}
.btn-amazon:hover { box-shadow: 0 10px 24px rgba(255, 153, 0, .5); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 250, 243, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 800; font-size: 20px; color: var(--color-primary-dark); }
.brand small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--color-text-soft); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--color-text); border-radius: 2px;
}
.nav-toggle { flex-direction: column; gap: 5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 88px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 154, 77, .25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(242, 169, 59, .25), transparent 45%),
    var(--color-bg);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-logo {
  width: 96px; height: 96px; border-radius: 22px; background: var(--color-surface);
  box-shadow: var(--shadow-md); padding: 12px; margin-bottom: 28px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero p.lead { font-size: 19px; color: var(--color-text-soft); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; }
.hero-badges .badge-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--color-text-soft); }
.hero-badges .badge-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex: none; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.hero-visual img { width: 70%; max-width: 260px; }
.hero-visual::before {
  content: "";
  position: absolute; inset: 18px;
  border: 2px dashed rgba(217, 72, 15, .25);
  border-radius: calc(var(--radius-lg) - 6px);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.about-card {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-md); border: 1px solid var(--color-border);
}
.about-card .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.stat { text-align: left; }
.stat b { display: block; font-size: 30px; color: var(--color-primary-dark); }
.stat span { font-size: 13px; color: var(--color-text-soft); }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article h3 { font-size: 24px; margin-top: 1.6em; color: var(--color-primary-dark); }
.article p { color: var(--color-text-soft); font-size: 16.5px; }
.article .drop { font-size: 19px; color: var(--color-text); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .thumb { aspect-ratio: 4/3; background: var(--color-bg-alt); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-card .tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-primary-dark); background: rgba(217,72,15,.08);
  padding: 4px 10px; border-radius: 999px;
}
.product-card h3 { font-size: 17px; margin: 4px 0 2px; }
.product-card p { font-size: 14px; color: var(--color-text-soft); flex: 1; margin-bottom: 14px; }
.product-card .specs { list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--color-text-soft); display: grid; gap: 4px; }
.product-card .specs li::before { content: "• "; color: var(--color-primary); font-weight: 700; }

/* ---------- Production gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--color-surface); }
.gallery img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 14px; font-size: 13px; color: var(--color-text-soft); font-weight: 600; }
.gallery .note { grid-column: 1 / -1; font-size: 13px; color: var(--color-text-soft); text-align: center; margin-top: 4px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--color-surface); }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 15px; }
table.compare thead th { background: var(--color-bg-alt); font-weight: 800; }
table.compare th:first-child, table.compare td:first-child { font-weight: 700; color: var(--color-text-soft); width: 30%; }
table.compare td.yes { color: var(--color-success); font-weight: 700; }
table.compare td.no { color: #a8321f; font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .col-duxtop { background: rgba(217,72,15,.05); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--color-amber); font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p.quote { font-size: 15px; color: var(--color-text); }
.review-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review-who img { width: 40px; height: 40px; border-radius: 50%; }
.review-who b { display: block; font-size: 14px; }
.review-who span { font-size: 12px; color: var(--color-text-soft); }
.review-product { font-size: 12px; color: var(--color-primary-dark); font-weight: 700; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--color-primary); flex: none; transition: transform .2s ease; font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--color-text-soft); font-size: 15px; }

/* ---------- Quality/safety ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quality-card {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 26px;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.quality-card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(217,72,15,.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px;
}
.quality-card h3 { font-size: 17px; }
.quality-card p { font-size: 14.5px; color: var(--color-text-soft); margin: 0; }
.quality-disclaimer {
  margin-top: 28px; font-size: 13px; color: var(--color-text-soft); text-align: center;
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 26px;
  box-shadow: var(--shadow-sm);
}
.team-card h3 { font-size: 16px; margin-bottom: 2px; }
.team-card span { font-size: 13px; color: var(--color-primary-dark); font-weight: 700; }
.team-card p { font-size: 13.5px; color: var(--color-text-soft); margin-top: 8px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.blog-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; text-decoration: none; color: var(--color-text); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-primary-dark); }
.blog-card h3 { font-size: 16px; margin: 8px 0; }
.blog-card p { font-size: 13.5px; color: var(--color-text-soft); flex: 1; }
.blog-card .read-more { font-size: 13px; font-weight: 700; color: var(--color-primary); margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info { background: var(--color-surface); border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.contact-info a.email { display: inline-block; margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--color-primary-dark); text-decoration: none; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 13px; font-weight: 700; color: var(--color-text-soft); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  font-family: inherit; font-size: 15px; background: var(--color-surface); color: var(--color-text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-primary-light); border-color: var(--color-primary); }
.form-note { font-size: 13px; color: var(--color-text-soft); }
.form-success { display: none; background: rgba(58,125,68,.1); color: var(--color-success); padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-amazon-ink); color: #cfd4dc; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand span { font-weight: 800; font-size: 18px; color: #fff; }
.site-footer p { color: #9aa2b1; font-size: 14px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfd4dc; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--color-amazon); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: 13px; color: #7c8494; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Blog article page ---------- */
.post-hero { padding: 48px 0 20px; }
.post-hero .container { max-width: 780px; }
.breadcrumb { font-size: 13px; color: var(--color-text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-primary-dark); text-decoration: none; font-weight: 700; }
.post-body { max-width: 780px; margin: 0 auto; padding-bottom: 60px; }
.post-body h2 { font-size: 24px; margin-top: 1.7em; color: var(--color-primary-dark); }
.post-body p { color: var(--color-text-soft); font-size: 17px; }
.post-body ul li { color: var(--color-text-soft); font-size: 16.5px; margin-bottom: 6px; }
.post-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0 8px; box-shadow: var(--shadow-md); }
.post-meta { font-size: 13px; color: var(--color-text-soft); font-weight: 600; }
.post-cta { margin-top: 40px; padding: 30px; background: var(--color-bg-alt); border-radius: var(--radius-lg); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .nav-links, .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--color-surface); flex-direction: column; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 14px; }
}

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Lazy fade ---------- */
img[loading="lazy"] { background: var(--color-bg-alt); }
