/* ── DESIGN TOKENS ── */
:root {
  --primary:      #1A56DB;
  --primary-dark: #1342B0;
  --accent:       #F59E0B;
  --dark:         #111827;
  --dark-2:       #1F2937;
  --text:         #111827;
  --text-muted:   #6B7280;
  --bg:           #F9FAFB;
  --bg-white:     #ffffff;
  --border:       #E5E7EB;
  --success:      #10B981;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --max-w:        1100px;
  --max-w-sm:     720px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.container--sm {
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }
.section--alt  { background: var(--bg); }
.section--dark { background: var(--dark); color: #fff; }

/* ── TYPOGRAPHY ── */
.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 40px;
}
.section-title--center { text-align: center; }
.section--dark .section-title { color: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { opacity: .92; }
.btn--outline-blue { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline-blue:hover { background: rgba(26,86,219,.05); }

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  text-decoration: none;
}
.logo span { color: var(--accent); }

/* ── LOGO BUTTON (header) — mirrors CTA geometry exactly ── */
.logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-sm); /* 8px — same as .btn */
  padding: 10px 20px;              /* same as CTA header: font-size:14px;padding:10px 20px */
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.logo-btn:hover { opacity: .88; transform: translateY(-1px); }
.logo-btn__img {
  height: 22px;    /* 22px + 20px padding = 42px total — matches CTA height */
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── HEADER RIGHT (phone + CTA) ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.header-phone:hover { color: #fff; }
@media (max-width: 600px) {
  .header-phone { display: none; }
}

/* ── HERO ── */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 72px 0 80px;
}
.hero__inner { max-width: 700px; }
.hero__tag {
  display: inline-block;
  background: rgba(245,158,11,.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .3px;
}
.hero__h1 {
  font-size: clamp(28px, 5.5vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.6px;
  margin-bottom: 20px;
}
.hero__h1 em { color: var(--accent); font-style: normal; }
.hero__sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-bottom: 10px;
}
.hero__trust {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 36px;
}
.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hero__note {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ── SEGMENTS ── */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.segment-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.segment-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.segment-card__icon { font-size: 34px; margin-bottom: 14px; }
.segment-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.segment-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.category-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.category-card__bar { height: 5px; }
.category-card__bar--blue   { background: linear-gradient(90deg, #1A56DB, #60A5FA); }
.category-card__bar--green  { background: linear-gradient(90deg, #059669, #34D399); }
.category-card__bar--purple { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.category-card__body { padding: 24px; }
.category-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.category-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.link-arrow:hover { color: var(--primary-dark); }

/* ── BENEFITS ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.benefit__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(26,86,219,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.benefit h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.benefit p  { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: steps;
}
.step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px;
  counter-increment: steps;
}
.step::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 14px;
}
.step h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step p  { font-size: 14px; color: rgba(255,255,255,.58); line-height: 1.5; }

/* ── FORM ── */
.form-wrap {
  max-width: 660px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.form-title    { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.form-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 88px; }
.form-submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
}
.form-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}
.form-msg {
  display: none;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 15px;
  color: #92400E;
  text-align: center;
  line-height: 1.5;
}
.form-msg a { color: #1A56DB; font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
  transition: color .2s;
}
.faq-btn:hover { color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform .25s, color .2s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer__inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.is-open .faq-answer { max-height: 300px; }

/* ── FINAL CTA ── */
.final-cta {
  background: linear-gradient(135deg, #1A56DB 0%, #1E3A8A 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.final-cta h2 {
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 14px;
}
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.final-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.45);
  padding: 28px 0;
  font-size: 13px;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-phone { color: rgba(255,255,255,.9) !important; font-weight: 700; }
.footer-phone:hover { color: #fff !important; }

/* ── HERO LAYOUT (text + image) ── */
.hero__layout {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero__layout .hero__inner { flex: 1 1 auto; }
.hero__img {
  flex: 0 0 380px;
  max-width: 380px;
}
.hero__img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
@media (max-width: 900px) {
  .hero__layout { flex-direction: column; gap: 28px; }
  .hero__img { max-width: 100%; flex-basis: auto; }
  .hero__img img { height: 220px; }
}

/* ── HERO LOGO BADGE (main page only) ── */
.hero__logo-badge {
  flex: 0 0 180px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo-badge img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  border: 2px solid var(--border);
  padding: 14px;
}
@media (max-width: 900px) {
  .hero__logo-badge { flex: 0 0 120px; max-width: 120px; }
  .hero__logo-badge img { width: 120px; height: 120px; }
}

/* ── CATEGORY CARD IMAGE ── */
.category-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.spec-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.product-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.product-card .btn {
  font-size: 14px;
  padding: 10px 16px;
  text-align: center;
  width: 100%;
}

/* ── PRODUCT CARD CAROUSEL ── */
.pcard-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  height: 240px;
  background: var(--bg);
  touch-action: pan-y;
  cursor: grab;
}
.pcard-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  height: 240px;
  transition: transform .3s ease;
  will-change: transform;
}
.pcard-carousel__slide {
  /* width set by JS to el.offsetWidth for bulletproof sizing */
  flex: 0 0 auto;
  height: 240px;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.pcard-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.40);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity .18s;
  padding: 0;
}
.pcard-carousel:hover .pcard-carousel__btn { opacity: 1; }
.pcard-carousel__btn--prev { left: 10px; }
.pcard-carousel__btn--next { right: 10px; }
.pcard-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.pcard-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.50);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.pcard-carousel__dot--active {
  background: #fff;
  transform: scale(1.2);
}
@media (max-width: 600px) {
  .pcard-carousel__btn { display: none; }
}

/* ── EXPANDED CARD META ── */
.product-card__tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px;
}
.product-card__desc p { margin: 0 0 8px; }
.product-card__desc p:last-child { margin-bottom: 0; }
.product-card__meta {
  margin: 12px 0 16px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.product-card__params {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.product-card__sku {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.product-card__sku code {
  font-family: monospace;
  font-size: 11px;
  background: var(--border);
  padding: 1px 5px;
  border-radius: 4px;
}
.product-card__wholesale {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* ── TELEGRAM FLOAT ── */
.tg-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #229ED9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(34,158,217,.45);
  text-decoration: none;
  z-index: 300;
  transition: transform .2s, box-shadow .2s;
}
.tg-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(34,158,217,.6); }
.tg-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .hero { padding: 52px 0 60px; }
  .form-wrap { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 56px 0 72px; } /* extra bottom so float btn doesn't cover CTA buttons */
  .site-footer { padding-bottom: 88px; } /* clears fixed float btn (56px + 24px + 8px) */
}
@media (max-width: 480px) {
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { text-align: center; width: 100%; }
  .final-cta__btns { flex-direction: column; align-items: center; }
  .final-cta__btns .btn { width: 100%; max-width: 320px; text-align: center; }
}
