/* ===================================
   Everyx — Corporate Benefits & Food
   Brand: #4B2082 (primary) / #FF8C00 (accent)
   =================================== */

:root {
  --primary: #4B2082;
  --primary-dark: #3A1668;
  --primary-light: #F0EBFF;
  --accent: #FF8C00;
  --accent-dark: #e07a00;
  --text: #212529;
  --text-muted: #6C757D;
  --bg: #F8F9FA;
  --white: #FFFFFF;
  --border: #DEE2E6;
  --radius: .75rem;
  --shadow: 0 2px 8px rgba(75,32,130,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
p { color: #374151; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}
.logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  padding: .375rem .75rem;
  border-radius: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.header-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: .5rem 1.125rem !important;
  border-radius: 2rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background .15s, transform .15s !important;
}
.header-cta:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.125rem;
  opacity: .9;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); display: block; }
.stat-label { font-size: .8125rem; opacity: .8; display: block; }

/* Lead Form */
.lead-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.lead-form input[type="tel"],
.lead-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 2rem;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
}
.lead-form input::placeholder { color: rgba(255,255,255,.7); }
.lead-form input:focus { border-color: var(--white); }
.btn-primary {
  display: inline-block;
  padding: .75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,0,.35);
  color: var(--white);
  text-decoration: none;
}
.form-notice { font-size: .8125rem; opacity: .7; margin-top: .625rem; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: .75rem 0;
  font-size: .875rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span + span::before { content: ' / '; color: var(--border); padding: 0 .25rem; }

/* ── ADVANTAGES ── */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.advantage-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.advantage-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.adv-icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.adv-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.adv-desc { font-size: .9375rem; color: var(--text-muted); }

/* ── SEO TEXT ── */
.seo-section { padding: 3rem 0; }
.seo-content { max-width: 860px; }
.seo-content p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; }
.seo-content h2, .seo-content h3 { margin: 1.75rem 0 .75rem; }
.seo-content ul, .seo-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.seo-content li { margin-bottom: .375rem; }

/* ── FAQ ── */
.faq-section { padding: 3rem 0; background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.125rem 1.375rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  transition: color .15s;
}
.faq-q:hover { color: var(--primary); }
.faq-q::after { content: '+'; font-size: 1.375rem; line-height: 1; flex-shrink: 0; color: var(--primary); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 1.375rem 1.125rem;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 1.25rem;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.9); margin-bottom: 2rem; font-size: 1.0625rem; }
.btn-accent {
  display: inline-block;
  padding: .875rem 2.25rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,0,.4);
  color: var(--white);
  text-decoration: none;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.25rem 1.5rem;
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.footer-brand .logo { color: var(--white); font-size: 1.25rem; }
.footer-brand p { margin-top: .75rem; opacity: .7; font-size: .875rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); margin-bottom: .875rem; font-size: .9375rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: rgba(255,255,255,.7); transition: color .15s; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8125rem;
  opacity: .6;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── INTERLINKS ── */
.interlinks { padding: 2rem 0; }
.interlinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.interlink-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
  transition: background .15s, border-color .15s, transform .15s;
  text-decoration: none;
}
.interlink-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary-dark);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-cta { font-size: .875rem !important; padding: .4rem .875rem !important; }
  .section { padding: 2.5rem 0; }
  /* CLS fix: убрать non-composited transition: color — только transform/opacity GPU-compositable */
  .nav a { transition: background .15s; }
  .faq-q { transition: none; }
  .footer-col a { transition: opacity .15s; }
}

@media (max-width: 480px) {
  .lead-form { flex-direction: column; align-items: stretch; }
  .lead-form input, .btn-primary { width: 100%; }
}
