/* =========================================
   ЯРМАРКА ДОМАШНЕГО ТЕКСТИЛЯ — LANDING PAGE
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #E8431C;
  --brand-dark:  #C8341A;
  --brand-light: #FF6B35;
  --brand-pale:  #FFE8E0;
  --brand-ultra: #FFF4F0;
  --text-dark:   #1A1A1A;
  --text-mid:    #444;
  --text-light:  #777;
  --white:       #ffffff;
  --bg-section:  #FFF8F5;
  --border:      #F0E0D8;
  --shadow-sm:   0 2px 12px rgba(232,67,28,0.08);
  --shadow-md:   0 6px 32px rgba(232,67,28,0.13);
  --shadow-lg:   0 16px 60px rgba(232,67,28,0.18);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --transition:  0.28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-large {
  padding: 17px 36px;
  font-size: 16px;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,67,28,0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 28px rgba(232,67,28,0.45);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 22px;
  font-size: 14px;
}
.btn-white-outline:hover {
  background: var(--white);
  color: var(--brand);
}

.btn-map-select {
  background: var(--brand-pale);
  color: var(--brand);
  border: 1.5px solid var(--brand-pale);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
}
.btn-map-select:hover, .store-card.active .btn-map-select {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn-navigator {
  background: var(--brand);
  color: var(--white);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(232,67,28,0.3);
}
.btn-navigator:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,67,28,0.4);
}

/* --- Section headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}
.text-accent { color: var(--brand); }

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img--footer {
  height: 40px;
  /* на тёмном фоне футера усиливаем видимость */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.logo-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--brand);
  line-height: 1.1;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  gap: 28px;
}
.header-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-mid);
  transition: var(--transition);
}
.header-nav a:hover { color: var(--brand); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(135deg, #1A1A1A 0%, #2d1209 40%, #3d1a08 70%, #1A1A1A 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-textile {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 550px;
  opacity: 0.7;
}

/* Animated gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(232,67,28,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 80% 30%, rgba(255,107,53,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: #FFD700;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeInDown 0.7s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-title-accent {
  color: var(--brand);
  display: block;
}

.hero-discount {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.discount-number {
  font-family: var(--font-head);
  font-size: clamp(90px, 14vw, 140px);
  font-weight: 900;
  line-height: 0.85;
  color: var(--brand);
  text-shadow: 0 0 60px rgba(232,67,28,0.5);
}
.discount-details {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}
.discount-percent {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 70px);
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
}
.discount-label {
  font-family: var(--font-head);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 700;
  color: var(--white);
  opacity: 0.85;
  margin-top: 4px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.65;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-sub strong { color: var(--white); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  animation: fadeInUp 0.7s 0.5s ease both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-family: var(--font-head);
  animation: bounceDown 2s 1s infinite;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   URGENCY BANNER
   ======================================== */
.urgency-banner {
  background: linear-gradient(90deg, var(--brand) 0%, #FF5500 100%);
  padding: 18px 0;
}
.urgency-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.urgency-icon {
  flex-shrink: 0;
}
.urgency-text {
  flex: 1;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-head);
  font-weight: 600;
  min-width: 200px;
}
.urgency-text strong { font-weight: 800; }

/* ========================================
   CATEGORIES
   ======================================== */
.categories {
  padding: 100px 0;
  background: var(--bg-section);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-pale);
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}
.cat-icon svg { width: 100%; height: 100%; }

.cat-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-dark);
}
.cat-card p {
  font-size: 14px;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 18px;
}
.cat-badge {
  display: inline-flex;
  margin: 0 auto;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
}

.categories-cta {
  text-align: center;
  margin-top: 56px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--brand);
}
.categories-cta p {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* ========================================
   WHY NOW
   ======================================== */
.why-now {
  padding: 100px 0;
  background: var(--white);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.reason-card {
  padding: 36px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}
.reason-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-pale);
  transform: translateY(-4px);
}

.reason-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 36px;
  color: var(--brand);
  opacity: 0.12;
  line-height: 1;
}
.reason-icon { margin-bottom: 16px; }
.reason-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.reason-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ========================================
   STORES
   ======================================== */
.stores-section {
  padding: 100px 0 60px;
  background: var(--bg-section);
}

.stores-layout {
  width: 100%;
}

.stores-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.store-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 22px;
  transition: var(--transition);
  cursor: pointer;
}
.store-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.store-card.active {
  border-color: var(--brand);
  background: var(--brand-ultra);
  box-shadow: 0 0 0 3px rgba(232,67,28,0.12);
}

.store-card-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.store-icon { flex-shrink: 0; }

.store-info { flex: 1; min-width: 0; }
.store-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.store-address, .store-phone {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.45;
  margin-bottom: 5px;
}
.store-address svg, .store-phone svg { flex-shrink: 0; margin-top: 1px; }
.store-phone a {
  color: var(--brand);
  font-weight: 600;
  font-family: var(--font-head);
}
.store-phone a:hover { text-decoration: underline; }

.store-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
  padding: 60px 0 100px;
  background: var(--bg-section);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  background: #eee;
}

.map-stores-quick {
  margin-top: 24px;
}
.map-hint {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
}
.map-store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.map-store-btn {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text-mid);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.map-store-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-pale);
}
.map-store-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
  padding: 100px 0;
  background: var(--white);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--brand); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { background: var(--bg-section); }
.faq-question[aria-expanded="true"] { background: var(--brand-pale); color: var(--brand); }

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--brand);
}
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  padding: 0 24px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #2d1209 50%, #1A1A1A 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 15% 50%, rgba(232,67,28,0.3) 0%, transparent 65%);
}

.final-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.final-cta-discount {
  flex-shrink: 0;
}
.final-cta-discount span {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(80px, 12vw, 130px);
  color: var(--brand);
  text-shadow: 0 0 80px rgba(232,67,28,0.6);
  line-height: 1;
  display: block;
}

.final-cta-text { flex: 1; min-width: 280px; }
.final-cta-text h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.final-cta-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.65;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #111;
  padding: 60px 0 0;
  color: rgba(255,255,255,0.65);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}
.footer-brand .logo-title { color: var(--brand); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }

.footer-stores h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-stores ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-stores li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-stores li a:hover { color: var(--brand); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .hero-textile {
    width: 480px;
    height: 380px;
    right: -60px;
    opacity: 0.45;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Header */
  .header-nav { display: none; }
  .logo-sub { display: none; }
  .logo-img { height: 36px; }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 60px 0 50px;
  }
  .hero-textile { display: none; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(32px, 9vw, 48px); }
  .discount-number { font-size: clamp(80px, 22vw, 110px); }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { flex: 1; min-width: 140px; justify-content: center; }
  .hero-trust { justify-content: center; gap: 14px; }
  .hero-scroll-hint { display: none; }

  /* Urgency */
  .urgency-inner { justify-content: center; text-align: center; }
  .urgency-text { text-align: center; }
  .btn-white-outline { width: 100%; justify-content: center; }

  /* Categories */
  .categories { padding: 60px 0; }
  .categories-grid { grid-template-columns: 1fr; gap: 16px; }
  .section-header { margin-bottom: 36px; }

  /* Why now */
  .why-now { padding: 60px 0; }
  .reasons-grid { grid-template-columns: 1fr; gap: 16px; }
  .reason-card { padding: 24px; }

  /* Stores */
  .stores-section { padding: 60px 0 40px; }
  .stores-list { grid-template-columns: 1fr; gap: 14px; }
  .store-actions { gap: 8px; }
  .store-actions .btn { flex: 1; justify-content: center; font-size: 13px; padding: 10px 14px; }

  /* Map */
  .map-section { padding: 40px 0 60px; }
  .map-wrapper iframe { height: 320px; }
  .map-store-btns { gap: 8px; }
  .map-store-btn { font-size: 12px; padding: 8px 14px; }

  /* FAQ */
  .faq-section { padding: 60px 0; }
  .faq-question { font-size: 14px; padding: 16px 18px; }
  .faq-answer p { padding: 0 18px; font-size: 14px; }

  /* Final CTA */
  .final-cta { padding: 60px 0; }
  .final-cta-inner { flex-direction: column; gap: 20px; text-align: center; }
  .final-cta-discount { text-align: center; }
  .final-cta-text p { margin-left: auto; margin-right: auto; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ======================================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .hero-discount { justify-content: center; }
  .discount-number { font-size: 100px; }
  .closing-badge { font-size: 11px; }
  .section-title { font-size: 24px; }
  .categories-cta { padding: 24px 20px; }
  .categories-cta p { font-size: 15px; }
  .btn-large { padding: 14px 24px; font-size: 15px; }
  .store-card { padding: 18px; }
  .store-card-inner { flex-direction: column; gap: 10px; }
}
