:root {
  --accent: #e63946;
  --dark: #1a1a2e;
  --header-gray: #4f5563;
  --card-bg: #ffffff;
  --bg-light: #f3f5f8;
  --text: #333;
  --muted: #6c757d;
  --soft-card: #ffffff;
  --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  --section-soft: #f3f5f8;
  --card-border: #e4e8ee;
  --card-shadow: 0 8px 26px rgba(20, 30, 50, 0.10);
  --card-shadow-hover: 0 16px 38px rgba(20, 30, 50, 0.16);
}

html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: #fff;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  padding-top: 77px;
}

* {
  box-sizing: border-box;
}

nav,
section,
footer,
.hero {
  border-radius: 0 !important;
  margin: 0;
}

/* ===== HEADER ===== */
.navbar {
  background: var(--header-gray);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.navbar-brand-text {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.navbar-brand-text span,
.footer-brand span,
.section-title span {
  color: var(--accent);
}

.navbar-nav {
  flex-wrap: nowrap;
}

.nav-link {
  color: #f1f1f1 !important;
  transition: color 0.2s;
  white-space: nowrap;
  font-weight: 600;
}

.nav-link:hover {
  color: #fff !important;
}

.header-right {
  flex-shrink: 0;
}

.header-contact {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.header-contact:hover {
  color: #fff;
  opacity: 0.9;
}

.header-contact i {
  color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-light-custom {
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-light-custom:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== HEADER SOCIAL BUTTONS ===== */
.header-social-btn {
  min-width: 105px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s ease;
}

.header-social-btn.vk {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
}

.header-social-btn.vk:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.header-social-btn.avito {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.header-social-btn.avito:hover {
  background: #fff;
  color: var(--header-gray);
  border-color: #fff;
}

/* ===== CUSTOM BURGER ===== */
.navbar-toggler {
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(230,57,70,.2) !important;
}

.navbar-toggler-icon {
  background-image: none !important;
  width: 1.5em;
  height: 1.5em;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.navbar-toggler-icon::before {
  top: 0.25em;
  box-shadow: 0 0.38em 0 0 var(--accent);
}

.navbar-toggler-icon::after {
  top: 1.01em;
}

/* ===== HERO ===== */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: 115px 0 95px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::after {
  display: none;
}

.hero-center {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  color: var(--accent);
  letter-spacing: .08em;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lead-text {
  font-size: 1.22rem;
  opacity: .93;
  max-width: 920px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 54px;
}

.hero-btn {
  width: 270px;
  min-width: 270px;
  min-height: 70px;
  padding: 18px 26px !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

.hero-facts-row {
  margin-top: 0;
}

.hero-fact-card {
  height: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 10px 35px rgba(0,0,0,.16);
  text-align: center;
}

.hero-fact-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
}

.hero-fact-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
}

/* ===== COMMON ===== */
section {
  overflow: hidden;
  width: 100%;
}

.section-pad {
  padding: 85px 0;
}

.section-title {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
  margin: 12px auto 0;
}

.eyebrow-section {
  color: var(--accent);
  letter-spacing: .08em;
  font-size: .85rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ===== SECTION BACKGROUNDS ===== */
#about {
  background: #ffffff;
}

#categories,
#brands,
#contacts {
  background: var(--section-soft);
}

/* ===== MINI BLOCKS ===== */
.info-card,
.category-card,
.contact-card,
.brand-pill,
.why-side-card.dark,
.why-side-card.light,
.why-side-card.soft {
  background: var(--soft-card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.info-card {
  padding: 28px;
}

.category-card,
.brand-pill,
.contact-card {
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.category-card {
  padding: 30px 24px;
}

.brand-pill {
  padding: 24px 20px;
  text-align: center;
}

.contact-card {
  padding: 34px 28px;
  text-align: center;
}

.category-card:hover,
.contact-card:hover,
.brand-pill:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: #d6dce5;
}

.category-icon,
.contact-icon,
.brand-pill .brand-icon,
.why-icon {
  background: rgba(230,57,70,.12);
  color: var(--accent);
}

.category-icon,
.contact-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.brand-pill .brand-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 16px;
}

.why-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.category-card h5,
.contact-card h5,
.why-item h6,
.brand-pill h5 {
  font-weight: 800;
}

.category-card p,
.contact-card p,
.why-item p,
.brand-pill p {
  color: var(--muted);
  margin-bottom: 0;
}

.brand-pill p {
  font-size: .95rem;
}

/* ===== CONTACT PHONE CARD FIX ===== */
.contact-phone-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.contact-phone-link:hover {
  text-decoration: none;
}

.contact-phone-link .contact-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-phone-link:hover .contact-link {
  color: var(--accent);
}

/* ===== STATS ===== */
.stats-section {
  background: var(--hero-gradient);
  color: #fff;
  padding: 60px 0;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  opacity: .78;
  font-size: .97rem;
  line-height: 1.5;
}

/* ===== WHY ===== */
.why-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-side-card {
  border-radius: 20px;
  padding: 28px;
}

.why-side-card i {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: inline-block;
}

.why-side-card .big {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.contact-card a.contact-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-card a.contact-link:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.social-btn {
  min-width: 140px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--hero-gradient);
  color: #aaa;
  font-size: 1rem;
  padding: 58px 0 48px;
  width: 100%;
}

footer a {
  color: #aaa;
  text-decoration: none;
  transition: all .2s ease;
}

footer a:hover {
  color: #fff;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0;
}

.footer-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.footer-dev-title {
  margin-top: 8px;
}

.footer-info {
  line-height: 1.8;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-link {
  text-decoration: none;
}

.footer-contact-link:hover {
  text-decoration: none;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.footer-contact-icon i {
  color: #fff !important;
}

.footer-contact-item a,
.footer-contact-item span {
  color: #aaa;
  text-decoration: none;
  line-height: 1.45;
  margin: 0;
}

.footer-contact-link span:last-child {
  transition: color .2s ease;
}

.footer-contact-link:hover span:last-child {
  color: #fff;
}

.footer-dev-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  text-decoration: none;
  transition: all .2s ease;
}

.footer-dev-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}

.footer-dev-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.footer-dev-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-dev-text strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-dev-text small {
  color: #b9c0cc;
  font-size: 0.84rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 32px;
  padding-top: 22px;
  font-size: .95rem;
  color: #9aa0a6;
}

/* ===== MOBILE CALL ===== */
.mobile-call {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  display: none;
}

/* ===== BREAKPOINTS ===== */
@media (max-width: 1123px) {
  .navbar-expand-lg {
    flex-wrap: wrap;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block;
  }

  .navbar-expand-lg .navbar-collapse {
    flex-basis: 100%;
  }

  .navbar-expand-lg .navbar-collapse:not(.show) {
    display: none !important;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
    margin-top: 16px;
    margin-left: 0 !important;
  }

  .navbar-expand-lg .nav-link {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar-expand-lg .header-right {
    margin-top: 18px;
    align-items: flex-start !important;
  }
}

@media (min-width: 1124px) {
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

@media (max-width: 991.98px) {
  .navbar-logo {
    width: 38px;
    height: 38px;
  }

  .navbar-brand-text {
    font-size: 1.8rem;
  }

  .hero {
    padding: 95px 0 72px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .hero p.lead-text {
    font-size: 1.08rem;
  }

  .hero-btn {
    width: 240px;
    min-width: 240px;
    min-height: 64px;
    padding: 16px 22px !important;
    font-size: 1.04rem !important;
  }

  .hero-fact-title {
    font-size: 1.65rem;
  }

  footer {
    padding: 46px 0 40px;
  }

  body {
    padding-top: 74px;
  }
}

@media (max-width: 767.98px) {
  .navbar-logo {
    width: 34px;
    height: 34px;
  }

  .navbar-brand-text {
    font-size: 1.55rem;
  }

  .hero {
    padding: 80px 0 58px;
  }

  .hero h1 {
    font-size: 2.45rem;
    line-height: 1.1;
  }

  .hero p.lead-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 34px;
  }

  .hero-btn {
    width: 100%;
    min-width: 100%;
    justify-content: center;
    min-height: 60px;
    padding: 15px 22px !important;
    font-size: 1rem !important;
  }

  .hero-fact-card {
    padding: 22px 20px;
  }

  .hero-fact-title {
    font-size: 1.45rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .mobile-call {
    display: block;
  }

  body {
    padding-bottom: 86px;
    padding-top: 72px;
  }

  .footer-logo {
    width: 36px;
    height: 36px;
  }

  .footer-brand {
    font-size: 1.8rem;
  }

  .footer-contact-item {
    align-items: flex-start;
  }

  .footer-contact-icon {
    margin-top: 2px;
  }
}