/* =====================================================
   Meihua Clothing — clothing.cnguoke.cn
   Высококачественный адаптивный стиль сайта
   ===================================================== */
:root {
  --navy: #0e1b2c;
  --navy-2: #16283f;
  --navy-3: #1e3350;
  --gold: #c8a45f;
  --gold-dark: #b08d43;
  --text: #33383f;
  --text-light: #6b7280;
  --bg-light: #f6f7f9;
  --white: #ffffff;
  --border: #e5e8ec;
  --shadow: 0 10px 30px rgba(14, 27, 44, 0.08);
  --radius: 6px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PT Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 17px;
}

.title-accent {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }

/* ---------- Кнопки / CTA ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.4px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-accent {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 164, 95, 0.35);
}
.btn-accent:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(14, 27, 44, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo img { height: 48px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Баннер ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: var(--navy) url("/img/banner.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14, 27, 44, 0.88) 0%, rgba(14, 27, 44, 0.55) 55%, rgba(14, 27, 44, 0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding: 90px 0;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 20px;
}
.hero-content p {
  font-size: clamp(16px, 2vw, 19px);
  opacity: 0.92;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 0;
  font-size: 14px;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 8px; color: rgba(255,255,255,0.4); }

.page-head {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 0 48px;
}
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.page-head p { max-width: 760px; margin: 12px auto 0; opacity: 0.85; }

/* ---------- Сетка карточек ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Карточка товара ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.product-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-light);
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body {
  padding: 22px 22px 26px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 { font-size: 18px; margin-bottom: 8px; }
.product-card p { color: var(--text-light); font-size: 14.5px; flex: 1; }
.product-card .more {
  margin-top: 16px;
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 15px;
}
.product-card .more:hover { color: var(--navy); }

/* ---------- О компании ---------- */
.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; color: var(--text); }
.about-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 16px;
}
.stat .num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--gold-dark);
  display: block;
}
.stat .label { color: var(--text-light); font-size: 15px; }

/* ---------- Преимущества ---------- */
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: all 0.3s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature .icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(200, 164, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold-dark);
}
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: var(--text-light); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.faq-item h2 {
  font-size: 18px;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item h2 .arrow { color: var(--gold-dark); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open h2 .arrow { transform: rotate(180deg); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-body { max-height: 3000px; }
.faq-body .inner {
  padding: 0 24px 24px;
  color: var(--text-light);
}
.faq-body h3 { font-size: 16px; margin: 14px 0 6px; color: var(--navy); }
.faq-body ol, .faq-body ul { padding-left: 20px; list-style: decimal; margin: 8px 0 12px; }
.faq-body ul { list-style: disc; }
.faq-body li { margin-bottom: 6px; }

/* ---------- Страница товара ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.product-detail .photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-light);
  position: sticky;
  top: 110px;
}
.product-detail h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.product-detail .lead {
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 22px;
}
.product-detail h2 { font-size: 21px; margin: 30px 0 12px; }
.product-detail p { margin-bottom: 12px; }
.product-detail ul.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
.product-detail ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 8px;
  font-size: 15px;
}
.spec-table th, .spec-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.spec-table th {
  background: var(--bg-light);
  color: var(--navy);
  width: 38%;
  font-weight: 600;
}

.product-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.product-nav a { font-weight: 600; }

/* ---------- CTA блок ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 12px; }
.cta-band p { opacity: 0.85; max-width: 680px; margin: 0 auto 30px; }

/* ---------- Форма ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 46px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 18px; }
.contact-item { margin-bottom: 20px; }
.contact-item strong { display: block; color: var(--navy); margin-bottom: 3px; }
.contact-item span { color: var(--text-light); }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 22px; margin-bottom: 22px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group label .req { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 95, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.6;
}
.form-status.success {
  display: block;
  background: #e8f6ec;
  border: 1px solid #b7e0c3;
  color: #1e6b38;
}
.form-status.error {
  display: block;
  background: #fdeceb;
  border: 1px solid #f5c6c2;
  color: #96281b;
}
.form-status strong { display: block; margin-bottom: 4px; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 0 44px;
}
.footer-top h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-top h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.footer-top ul li { margin-bottom: 9px; }
.footer-top a { color: rgba(255, 255, 255, 0.72); }
.footer-top a:hover { color: var(--gold); }
.footer-about .flogo { height: 42px; width: auto; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* ---------- Адаптивность ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .main-nav { gap: 20px; }
  .main-nav ul { gap: 20px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 26px rgba(14, 27, 44, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
  }
  .main-nav ul li { border-bottom: 1px solid var(--border); }
  .main-nav ul li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 4px; }
  .main-nav a::after { display: none; }

  .grid-2, .contact-wrap, .product-detail { grid-template-columns: 1fr; }
  .product-detail .photo { position: static; }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .form-card { padding: 26px 20px; }
}
