:root {
  --gold: #f1b719;
  --gold-dark: #d89f00;
  --dark: #121212;
  --dark2: #1a1a1a;
  --dark3: #232323;
  --header-bg: rgba(30,30,30,0.95);
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --border: #eaeaea;
  --radius-pill: 30px;
  --max-width: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Exo 2", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

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

h1, h2, h3 { font-weight: 700; margin: 0 0 .5em; }

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

.center { text-align: center; margin-top: 36px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--gold);
  color: #161616;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 22px; font-size: 13px; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 22px; height: 2px; background: #fff; display: block; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-bulb {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.main-nav a { color: #e4e4e4; }
.main-nav a:hover { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  line-height: 1.4;
}
.header-phone { color: #fff; font-weight: 700; font-size: 15px; }
.header-email { color: var(--gold); }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--gold);
  color: #161616;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
}
.call-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #161616;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.call-btn:hover { background: var(--gold-dark); }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #3a2c0f 0%, var(--dark) 55%), var(--dark);
  color: #fff;
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(241,183,25,0.18), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(241,183,25,0.10), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 14px;
}
.hero-typed {
  min-height: 1.6em;
  font-size: 18px;
  color: #d7d7d7;
  margin-bottom: 50px;
}
.cursor { color: var(--gold); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 48px;
  text-align: left;
}
.hero-feature { color: #cfcfcf; }
.hero-feature svg { color: var(--gold); margin-bottom: 14px; }
.hero-feature p { font-size: 15px; margin: 0; }

/* Stats / about */
.stats { padding: 90px 0 50px; text-align: center; }
.stats h2 { font-size: clamp(26px, 3.5vw, 34px); }
.section-lead {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--text-light);
  font-size: 16px;
}
.section-lead.left { margin: 0 0 8px; }
.section-lead.small { font-size: 14px; margin-bottom: 24px; }
.top-gap { margin-top: 40px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.stat-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: var(--gold);
}
.stat-label { color: var(--text-light); font-size: 14px; }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  color: #fff;
  text-align: left;
}
.badge strong { display: block; font-size: 15px; }
.badge small { color: rgba(255,255,255,0.85); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.badge-24 {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.badge-gold { background: linear-gradient(135deg, #f1b719, #d89f00); }
.badge-blue { background: linear-gradient(135deg, #2ea3e0, #1d7bb0); }
.badge-purple { background: linear-gradient(135deg, #a668d1, #7d3fae); }
.badge-green { background: linear-gradient(135deg, #9ccc3a, #6fa020); }
.badge-teal { background: linear-gradient(135deg, #4dd0c8, #2a9d97); }
.badges-grid .badge:nth-child(4),
.badges-grid .badge:nth-child(5) { grid-column: span 1; }

/* Services */
.services { padding: 90px 0; text-align: center; background: #fafafa; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  text-align: left;
  margin-top: 50px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px 26px;
}
.service-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #161616;
  font-weight: 800;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 14px; min-height: 44px; }
.service-card .btn { margin-top: 12px; }

/* Reasons */
.reasons { padding: 90px 0; text-align: center; }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
  text-align: left;
  margin: 44px 0 10px;
}
.reason { display: flex; gap: 16px; align-items: flex-start; }
.reason svg { color: var(--gold); flex-shrink: 0; }
.reason p { margin: 0; font-size: 15px; color: #333; }

/* Cases */
.cases { padding: 90px 0; text-align: center; background: #fafafa; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 50px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.case-thumb {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.case-thumb-1 { background: linear-gradient(135deg,#f1b719,#8a5c00); }
.case-thumb-2 { background: linear-gradient(135deg,#2ea3e0,#123a5c); }
.case-thumb-3 { background: linear-gradient(135deg,#d16bb5,#5c1d4a); }
.case-thumb-4 { background: linear-gradient(135deg,#6fa020,#1c3a05); }
.case-card .case-tag {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold-dark);
  font-weight: 700;
  margin: 16px 18px 6px;
}
.case-card h3 { font-size: 15px; margin: 0 18px 10px; line-height: 1.4; }
.case-card time { display: block; margin: 0 18px 18px; font-size: 12px; color: var(--text-light); }

/* News */
.news { padding-bottom: 90px; text-align: center; }
.news-banner {
  background: linear-gradient(120deg, rgba(10,10,10,0.85), rgba(10,10,10,0.55)), radial-gradient(circle at 70% 30%, #3a2c0f, var(--dark));
  color: #fff;
  padding: 90px 0 50px;
  margin-bottom: 10px;
}
.news-banner h2 { font-size: clamp(28px,4vw,40px); text-align: left; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 30px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.news-card h3 { font-size: 15px; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.news-card time { font-size: 12px; color: var(--gold-dark); font-weight: 600; }

/* Partners */
.partners { padding: 90px 0; text-align: center; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.partner-logo {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 12px;
  font-weight: 700;
  color: #444;
  font-size: 15px;
}

/* Contact */
.contact { padding: 90px 0; background: #fafafa; }
.contact-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.contact-illustration { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form button { justify-self: start; }
.form-note { color: #2f8a3d; font-weight: 600; margin: 4px 0 0; }
.form-note-error { color: #c0392b; }

/* Honeypot anti-spam field: present in the DOM for bots, invisible to people */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: -9999px !important;
}

/* Footer */
.site-footer {
  background: radial-gradient(circle at 80% 20%, #2a2109, var(--dark)) ;
  color: #eee;
  padding: 50px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-center { align-items: center; justify-content: center; }
.footer-col-right { align-items: flex-end; }
.footer-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-phone svg { color: var(--gold); }
.footer-call { width: fit-content; margin-top: 6px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-socials a:hover { background: var(--gold); color: #161616; }
.footer-email { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 13px;
  color: #9a9a9a;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark2);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: #161616; }

/* ===== Multi-page components ===== */

/* Dropdown nav */
.main-nav { position: relative; }
.nav-item { position: relative; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-item .caret { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 2px; opacity: .8; }
.nav-dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  min-width: 260px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown { display: flex; }
.nav-dropdown a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-transform: none;
  font-weight: 500;
  color: #ddd;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(241,183,25,0.12); color: var(--gold); }

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs span.sep { margin: 0 6px; opacity: .5; }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero {
  background: radial-gradient(ellipse at 25% 20%, #3a2c0f 0%, var(--dark) 60%), var(--dark);
  color: #fff;
  padding: 60px 0 56px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.page-hero p { color: #cfcfcf; max-width: 680px; margin: 0 auto; font-size: 16px; }
.page-hero .btn { margin-top: 24px; }

/* Generic page section */
.page-section { padding: 70px 0; }
.page-section.alt { background: #fafafa; }
.page-section h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; }
.page-section h3 { font-size: 19px; }
.prose { max-width: 820px; }
.prose p { margin: 0 0 16px; color: #333; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: #333; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #111; }

/* Timeline (history) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.timeline-item { border-left: 3px solid var(--gold); padding-left: 16px; }
.timeline-year { font-weight: 800; font-size: 20px; color: var(--gold-dark); }
.timeline-item p { margin: 6px 0 0; font-size: 14px; color: var(--text-light); }

/* Feature list (icon + text) generic */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 36px 0; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item svg { color: var(--gold); flex-shrink: 0; }
.feature-item h4 { margin: 0 0 6px; font-size: 15px; }
.feature-item p { margin: 0; font-size: 13.5px; color: var(--text-light); }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 36px 0; }
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: left;
}
.pricing-card h4 { margin: 0 0 6px; font-size: 15px; }
.pricing-card .price { font-size: 24px; font-weight: 800; color: var(--gold-dark); margin-bottom: 12px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; color: var(--text-light); }
.pricing-card li { margin-bottom: 6px; padding-left: 16px; position: relative; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

/* Team/contact rep card */
.rep-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 30px 0;
}
.rep-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  flex-shrink: 0;
}
.rep-card strong { display: block; font-size: 15px; }
.rep-card span { display: block; font-size: 13px; color: var(--text-light); }
.rep-card a { color: var(--gold-dark); font-weight: 600; font-size: 13px; }

/* Listing grids (blog / portfolio / catalog) reuse .news-grid/.case-card patterns */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.listing-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.listing-thumb {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--gold), #8a5c00);
}
.listing-card .tag { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); font-weight: 700; margin: 16px 18px 6px; }
.listing-card h3 { font-size: 15px; margin: 0 18px 8px; line-height: 1.4; }
.listing-card p { font-size: 13px; color: var(--text-light); margin: 0 18px 14px; flex: 1; }
.listing-card time { display: block; margin: 0 18px 18px; font-size: 12px; color: var(--text-light); }

/* Category tabs (blog) */
.tab-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.tab-row a {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.tab-row a.active, .tab-row a:hover { background: var(--gold); border-color: var(--gold); }

/* Catalog product cards */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.product-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: left; }
.product-card h4 { font-size: 15px; margin: 0 0 8px; }
.product-card .price { font-weight: 800; color: var(--gold-dark); margin-bottom: 12px; }

/* Article page */
.article-meta { color: var(--text-light); font-size: 13px; margin-bottom: 30px; }
.article-body { max-width: 780px; }
.article-body h2 { font-size: 20px; margin: 30px 0 12px; }
.article-body p { margin: 0 0 16px; color: #333; }
.article-body ul { margin: 0 0 16px; padding-left: 20px; color: #333; }
.article-body li { margin-bottom: 8px; }
.article-nav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
.article-nav a { color: var(--gold-dark); font-weight: 600; }

/* Simple empty state (cart) */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-light); }

/* Cart page */
.cart-items { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 30px 0 16px; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-row-name { font-weight: 600; font-size: 14px; }
.cart-row-qty { color: var(--text-light); font-size: 13px; }
.cart-row-price { font-weight: 700; color: var(--gold-dark); }
.cart-row-remove { background: none; border: none; font-size: 20px; line-height: 1; color: #aaa; cursor: pointer; padding: 0 4px; }
.cart-row-remove:hover { color: #c0392b; }
.cart-total { font-size: 18px; margin-bottom: 18px; }
.payment-options { display: flex; gap: 20px; font-size: 14px; margin: 4px 0; }
.payment-options label { display: flex; align-items: center; gap: 6px; }
#clearCartBtn { margin-bottom: 24px; }

@media (max-width: 980px) {
  .timeline, .feature-list, .listing-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-dropdown { position: static; border: none; padding-left: 14px; box-shadow: none; display: flex; }
}
@media (max-width: 720px) {
  .timeline, .feature-list, .listing-grid, .catalog-grid, .pricing-grid { grid-template-columns: 1fr; }
  .rep-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-features,
  .services-grid,
  .reasons-grid,
  .cases-grid,
  .news-grid,
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .header-contacts { display: none; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .main-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .hero-features,
  .services-grid,
  .reasons-grid,
  .cases-grid,
  .news-grid,
  .stats-grid,
  .badges-grid,
  .partners-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col-center, .footer-col-right { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
