/* ===== Tokens ===== */
:root {
  --bg: #0f172a;
  --text: #0b1220;
  --muted: #667085;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.10);
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-light: #eff6ff;
  --soft: #f8fafc;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; }

.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* ===== Topbar ===== */
.topbar {
  background: var(--bg);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 8px 0;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__left { display: flex; align-items: center; gap: 10px; }
.topbar__sep { opacity: 0.3; }
.topbar__right { display: flex; gap: 16px; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}
.logo__name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1.1;
}
.logo__tag {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav */
.nav { display: flex; gap: 24px; }
.nav a {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  color: rgba(0,0,0,0.7);
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav a:hover::after { width: 100%; }

/* Header CTA */
.header__cta { display: flex; align-items: center; gap: 14px; }
.phone {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.phone:hover { color: var(--primary); text-decoration: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none !important;
}
.btn--primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn--primary:hover {
  background: var(--primary-2);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.btn--lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn--messenger {
  background: var(--primary-light);
  color: var(--primary);
  border-color: transparent;
  font-size: 13px;
  padding: 8px 16px;
}
.btn--messenger:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 0;
  background: linear-gradient(175deg, #ffffff 0%, #f0f4ff 50%, #f8fafc 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero__text h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero__desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero card */
.hero__card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__img {
  height: 240px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 60%, #0f172a 100%);
}
.hero__note {
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section--muted {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background: var(--bg);
  color: #fff;
}
.section h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}
.section__label--light { color: rgba(255,255,255,0.5); }

/* ===== Cards (Services) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 4px;
}
.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.about__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
}
.about__item:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-sm);
}
.about__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Advantages ===== */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.adv {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}
.adv:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}
.adv__icon {
  font-size: 36px;
  margin-bottom: 14px;
  line-height: 1;
}
.adv__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.adv__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Lead form ===== */
.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.lead__info h2 { color: #fff; }
.lead__info p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.65; margin-top: 8px; }
.lead__trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.form { display: grid; gap: 12px; }
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.35); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
}
.form__hint { margin: 0; min-height: 18px; color: rgba(255,255,255,0.6); font-size: 14px; }

/* ===== Contacts ===== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
a.contact__value:hover { color: var(--primary); text-decoration: none; }
.contact__messengers { display: flex; gap: 10px; margin-top: 4px; }

/* (map styles moved to responsive section below) */

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: white;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand { display: flex; flex-direction: column; gap: 2px; }
.footer__logo { font-weight: 800; font-size: 16px; }
.footer__copy { font-size: 13px; color: var(--muted); }
.footer__links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--primary); text-decoration: none; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 14px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 8px; opacity: 0.4; }

/* ===== Catalog hero ===== */
.catalog-hero {
  padding: 40px 0 0;
  background: linear-gradient(175deg, #ffffff 0%, #f0f4ff 50%, #f8fafc 100%);
}
.catalog-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.catalog-hero__desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.6;
}

/* ===== Catalog grid (categories) ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.catalog-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none !important;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
  color: var(--text);
}
.catalog-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.catalog-card__title {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  line-height: 1.35;
}
.catalog-card__count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  background: var(--soft);
  padding: 3px 8px;
  border-radius: 6px;
}
.catalog-card__arrow {
  color: var(--primary);
  font-size: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition);
}
.catalog-card:hover .catalog-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Catalog detail ===== */
.catalog-detail { padding-top: 32px; }
.catalog-back {
  margin-bottom: 20px;
  font-size: 14px;
}
.catalog-detail h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* Items grid */
.catalog-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.catalog-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.catalog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.catalog-item__img {
  height: 220px;
  overflow: hidden;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.catalog-item__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.catalog-item__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.catalog-item__info {
  padding: 16px;
}
.catalog-item__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* Empty state */
.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 20px;
  background: var(--soft);
  border-radius: var(--radius);
}
.catalog-empty p {
  color: var(--muted);
  font-size: 16px;
  max-width: 400px;
}

/* Nav active */
.nav--active {
  color: var(--primary) !important;
}

/* ===== Animations (scroll reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
/* Map iframe */
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.map iframe { display: block; width: 100%; min-height: 260px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .lead { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header__cta .phone { display: none; }
  .burger { display: flex; }
}

@media (max-width: 600px) {
  .topbar { display: none; }
  .cards { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .hero__text h1 { font-size: 28px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 24px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-items { grid-template-columns: 1fr; }
}
