/* ============================================
   Альянс Табачных Поставщиков — Static HTML
   ============================================ */

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

/* Variables */
:root {
  --bg-primary: #FAFAFA;
  --bg-secondary: #F5F5F0;
  --bg-card: #FFFFFF;
  --text-primary: #1C1917;
  --text-secondary: #78716C;
  --text-muted: #A8A29E;
  --accent: #92400E;
  --accent-hover: #78350F;
  --border: #E7E5E4;
  --danger: #DC2626;
  --success: #059669;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

a { color: inherit; text-decoration: none; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }

.section { padding: clamp(64px, 8vw, 120px) clamp(24px, 5vw, 80px); }
.section-sm { padding: 56px clamp(24px, 5vw, 80px); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  height: 76px;
  transition: all 0.3s ease;
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { height: 42px; width: auto; }
.logo-text { display: none; }
@media (min-width: 640px) { .logo-text { display: flex; flex-direction: column; } }
.logo-text .name { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--text-primary); line-height: 1.2; }
.logo-text .sub { font-family: "Inter", sans-serif; font-size: 9px; font-weight: 500; letter-spacing: 0.15em; color: var(--text-muted); line-height: 1.2; }

/* Nav */
.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: 32px; } }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: none; font-size: 14px; font-weight: 500; color: var(--accent); align-items: center; gap: 6px;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--accent-hover); }
@media (min-width: 768px) { .header-phone { display: flex; } }

.menu-btn { display: block; padding: 8px; background: none; border: none; cursor: pointer; color: var(--text-primary); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* Mobile Menu */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(28,25,23,0.4); display: none;
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 80%; max-width: 360px;
  background: var(--bg-primary); border-left: 2px solid var(--accent);
  padding: 24px; transform: translateX(100%); transition: transform 0.3s ease; z-index: 61;
}
.mobile-overlay.open .mobile-menu { transform: translateX(0); }
.mobile-close { position: absolute; top: 20px; right: 20px; padding: 8px; background: none; border: none; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 60px; }
.mobile-nav a { padding: 12px 8px; font-size: 16px; font-weight: 500; color: var(--text-primary); border-radius: 8px; transition: all 0.2s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); background: var(--bg-secondary); }
.mobile-contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.mobile-contact a { color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px; font-family: "Inter", sans-serif;
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em;
  transition: all 0.2s ease; cursor: pointer; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(146,64,14,0.25); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--text-primary); color: #fff; }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }

.btn-outline-dark { background: rgba(28,25,23,0.08); color: var(--text-primary); border: 1.5px solid var(--text-primary); }
.btn-outline-dark:hover { background: var(--text-primary); color: #fff; transform: translateY(-2px); }

/* Eyebrow */
.eyebrow { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }

/* Gold line */
.gold-line { width: 40px; height: 2px; background: var(--accent); margin-top: 14px; }
.gold-line.center { margin-left: auto; margin-right: auto; }

/* Section subtitle */
.section-subtitle { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 32px;
  transition: all 0.4s ease;
}
.card:hover { border-color: rgba(146,64,14,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(146,64,14,0.08); display: flex; align-items: center; justify-content: center;
}
.card-icon svg { color: var(--accent); }

/* Grid — Mobile-first */
.grid { display: grid; gap: 24px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* 640px+ */
@media (min-width: 640px) {
  .grid-sm-1 { grid-template-columns: 1fr; }
  .grid-sm-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-sm-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 768px+ */
@media (min-width: 768px) {
  .grid-md-1 { grid-template-columns: 1fr; }
  .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-md-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 1024px+ */
@media (min-width: 1024px) {
  .grid-lg-1 { grid-template-columns: 1fr; }
  .grid-lg-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Stats */
.stat-number {
  font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600; color: var(--accent);
}
.stat-label { color: var(--text-secondary); font-size: 14px; }
.stat-divider { width: 24px; height: 2px; background: var(--border); margin: 10px auto; }

/* Marquee */

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(250,250,250,0.75) 0%, rgba(250,250,250,0.90) 45%, rgba(250,250,250,0.98) 70%, rgba(250,250,250,1) 100%); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 64px 24px; }
.hero-title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 4rem); color: var(--text-primary); line-height: 1.08; max-width: 800px; margin: 0 auto; }
.hero-subtitle { color: var(--text-secondary); font-size: 17px; line-height: 1.7; max-width: 640px; margin: 24px auto 0; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

/* Image */
.img-round { border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* Partners grid */
.partner-item {
  text-align: center; padding: 16px 12px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.2s ease; cursor: pointer; text-decoration: none; display: block;
}
.partner-item:hover { border-color: rgba(146,64,14,0.3); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.partner-item span { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.tab-btn {
  padding: 10px 24px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-btn:not(.active):hover { border-color: var(--accent); color: var(--accent); }

/* Check list */
.check-item { display: flex; align-items: center; gap: 12px; }
.check-item svg { color: var(--success); flex-shrink: 0; }
.check-item span { color: var(--text-secondary); font-size: 15px; }

/* Timeline — moved to end of file to avoid .flex/.grid override */
/* See "Timeline responsive" section after utilities */

/* Legal fields */
.legal-field { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .legal-field { flex-direction: row; justify-content: space-between; } }
.legal-label { font-size: 14px; color: var(--text-muted); }
.legal-value { font-size: 15px; font-weight: 500; color: var(--text-primary); }

/* Age badge */
.age-badge {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--bg-card); border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.age-badge svg { color: var(--danger); flex-shrink: 0; }
.age-badge .num { font-weight: 700; font-size: 14px; color: var(--danger); line-height: 1; }
.age-badge .text { font-size: 11px; color: var(--text-muted); line-height: 1; }
@media (max-width: 767px) { .age-badge .text { display: none; } }

/* Messengers */
.messengers {
  position: fixed; right: 24px; z-index: 40; display: flex; flex-direction: column; gap: 12px;
}
.msg-btn {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: all 0.2s ease; position: relative;
}
.msg-btn:hover { transform: scale(1.1); }
.msg-btn.wa { background: #25D366; color: #fff; }
.msg-btn.tg { background: #0088CC; color: #fff; }
.msg-btn.max { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); color: #fff; }
.msg-btn img { width: 22px; height: 22px; }

.msg-tooltip {
  position: absolute; right: 60px; padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.msg-btn:hover .msg-tooltip { opacity: 1; }
.msg-btn.wa .msg-tooltip { background: #25D366; color: #fff; }
.msg-btn.tg .msg-tooltip { background: #0088CC; color: #fff; }
.msg-btn.max .msg-tooltip { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }

/* Breadcrumbs */
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text-primary); }

/* Dark section */
.dark-section { background: #1C1917; color: #FAFAFA; }
.dark-section h2 { color: #FAFAFA; }
.dark-section p { color: rgba(250,250,250,0.6); }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10; animation: bounceSlow 2s ease-in-out infinite; }
.scroll-hint svg { color: var(--text-muted); }

/* CTA box */
.cta-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 40px 24px; text-align: center; }

/* Partner detail */
.info-card { text-align: center; padding: 20px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.info-card .label { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.info-card .value { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-top: 4px; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 48px; padding: 64px 0 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 15px; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact a, .footer-contact div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg { color: var(--accent); flex-shrink: 0; }

.footer-bottom { padding: 16px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom .age { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--danger); }

/* Schedule */
.schedule-item { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.schedule-item svg { color: var(--accent); flex-shrink: 0; }
.schedule-item span { color: var(--text-secondary); font-size: 15px; }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }
.mb-8 { margin-bottom: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.max-w-520 { max-width: 520px; } .max-w-560 { max-width: 560px; } .max-w-640 { max-width: 640px; }
.max-w-680 { max-width: 680px; } .max-w-800 { max-width: 800px; } .max-w-900 { max-width: 900px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; }
.justify-center { justify-content: center; } .flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.block { display: block; }
.w-full { width: 100%; }

/* Responsive gaps */
@media (max-width: 1023px) {
  .flex-lg-col { flex-direction: column; }
}
@media (min-width: 1024px) {
  .flex-lg-row { flex-direction: row; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  .grid-lg-55-45 { grid-template-columns: 55% 45%; }
  .grid-lg-45-55 { grid-template-columns: 45% 55%; }
}

/* ============================================
   Timeline responsive — must be AFTER utilities
   to prevent .flex / .grid override
   ============================================ */
.timeline-desktop { display: none !important; }
@media (min-width: 1024px) { .timeline-desktop { display: block !important; } }
.timeline-mobile { display: block !important; }
@media (min-width: 1024px) { .timeline-mobile { display: none !important; } }

.timeline-line { position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: var(--border); }
.timeline-step { text-align: center; position: relative; }
.timeline-num {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-family: "Inter", sans-serif; font-weight: 700; font-size: 16px;
  background: var(--bg-card); border: 2px solid var(--accent); color: var(--accent);
}

/* Marquee — continuous scroll via JS */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}
.marquee-track > span {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Partner feature cards */
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(146,64,14,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(146,64,14,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.feature-card svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-card span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
