/* ===== AVLogix — базовые стили ===== */
:root {
  --ink: #101418;
  --text: #2b3138;
  --muted: #8a919a;
  --line: #e6e9ec;
  --bg-soft: #f3f5f7;
  --accent: #0e7dab;          /* синий (ссылки, кнопки) */
  --teal: #12a3a0;
  --grad: linear-gradient(100deg, #0a6c8c 0%, #12a3a0 100%);
  --card-grad: linear-gradient(115deg, #eef5f8 0%, #dcefef 100%);
  --dark: #0b0c10;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(16, 40, 60, .08);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }

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

/* ===== Топбар ===== */
.topbar { background: var(--dark); color: #cfd3d8; font-size: 13px; }
.topbar__in { display: flex; justify-content: flex-end; gap: 40px; padding: 8px 0; }
.topbar b { color: #fff; font-size: 14px; margin-left: 8px; }

/* ===== Шапка ===== */
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header__in { display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { height: 36px; }
.logo__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); text-transform: uppercase; line-height: 1.35;
}
.search { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
.search input {
  width: 100%; padding: 10px 40px 10px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--text); background: #fff; outline: none;
}
.search input:focus { border-color: var(--accent); }
.search__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: filter .15s;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn--primary { background: #0e7dab; color: #fff; }
.btn--grey { background: #e7e9ec; color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }

/* ===== Навигация ===== */
.nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav__in { display: flex; gap: 36px; }
.nav a {
  padding: 13px 0; color: var(--ink); font-weight: 600; font-size: 14.5px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }

/* ===== Хлебные крошки ===== */
.crumbs { background: var(--bg-soft); }
.crumbs__in { padding: 16px 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ===== Кнопки-плитки (быстрые действия) ===== */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0; }
.quick__card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 22px; border-radius: var(--radius);
  font-size: 17px; font-weight: 600; color: var(--ink);
  background: #e7e9ec; min-height: 92px; transition: transform .15s, box-shadow .15s;
}
.quick__card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.quick__card--accent { background: var(--grad); color: #fff; }
.quick__card .arr { font-size: 20px; opacity: .7; }

/* ===== Карточки-фичи ===== */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 60px; }
.feature {
  position: relative; padding: 34px 36px; border-radius: 20px;
  background: var(--card-grad);
}
.feature h3 { font-size: 22px; margin-bottom: 14px; max-width: 75%; }
.feature p { color: #3d444c; max-width: 88%; }
.feature__ico { position: absolute; top: 28px; right: 30px; color: #0e7dab; }

/* ===== Главная: hero ===== */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; margin: 32px 0; }
.hero__main { padding: 38px 40px; border-radius: 20px; background: var(--card-grad); }
.hero__main h1 { font-size: 30px; margin-bottom: 16px; }
.hero__main p { margin-bottom: 14px; max-width: 92%; }
.hero__right { display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.hero__years { padding: 28px 32px; border-radius: 20px; background: var(--card-grad); display: flex; gap: 22px; align-items: flex-start; }
.hero__years .num { font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; white-space: nowrap; }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero__partners { background: #f7ece7; border-radius: 20px; padding: 22px 24px; }
.hero__partners b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 12px; }
.hero__partners a { display: block; padding: 6px 0; color: var(--ink); font-weight: 500; font-size: 14px; }
.hero__ctas { display: grid; gap: 20px; }
.cta-tile {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--grad); color: #fff; border-radius: 16px;
  padding: 20px 24px; font-size: 17px; font-weight: 600;
}
.cta-tile:hover { text-decoration: none; filter: brightness(1.08); }

/* ===== Секции ===== */
.section { margin: 64px 0; }
.section > h2 { margin-bottom: 28px; }

/* ===== Бренды: карусель на главной ===== */
.brandgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brandgrid__card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 14px;
  color: var(--text); transition: box-shadow .15s;
}
.brandgrid__card:hover { box-shadow: var(--shadow); text-decoration: none; }
.brandgrid__card .arr { margin-left: auto; color: var(--muted); }
.brandmark { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }

/* словомарки брендов (пока нет графики) */
.wm { font-weight: 800; letter-spacing: -.02em; }
.wm--televic  { color: #a4c614; font-weight: 600; font-family: Georgia, serif; font-style: normal; }
.wm--philips  { color: #0b5ed7; text-transform: uppercase; }
.wm--hisense  { color: #00a651; }
.wm--rms      { color: #e5322d; }
.wm--vinteo   { color: #1a1a1a; }
.wm--insta360 { color: #111; }
.wm--epiphan  { color: #6cb33f; font-weight: 600; }
.wm--tvone    { color: #e07020; }
.wm--symetrix { color: #222; }
.wm--arthur   { color: #c8102e; font-family: Georgia, serif; }
.wm--aktru    { color: #1849c6; }
.wm--amc      { color: #0e7dab; }
.wm--fohhn    { color: #111; background:#111; color:#fff; padding:2px 8px; border-radius:3px; }
.wm--cubic    { color: #2f52a0; }

/* ===== Почему выбирают ===== */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 26px 24px; position: relative;
}
.why__card h3 { font-size: 17px; margin-bottom: 10px; max-width: 70%; }
.why__card p { font-size: 13.5px; color: #4a515a; }
.why__card .feature__ico { top: 22px; right: 22px; }
.why__banner {
  grid-column: span 1; border-radius: 16px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #0a6c8c, #0d3b56); display: flex; align-items: center; justify-content: center;
}
.why__banner a {
  background: #fff; color: var(--ink); font-weight: 700; font-size: 16px;
  padding: 12px 26px; border-radius: 10px;
}

/* ===== Каталог: категории ===== */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cats a {
  padding: 28px 16px; text-align: center; color: var(--ink); font-size: 13.5px; font-weight: 500;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cats a:hover { background: var(--bg-soft); text-decoration: none; }
.cats a:nth-child(5n) { border-right: none; }
.cats svg { color: var(--accent); }

/* ===== Лента логотипов ===== */
.logostrip {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--bg-soft); border-radius: 14px; padding: 22px 32px; flex-wrap: wrap;
}
.logostrip .wm, .logostrip .brandmark { font-size: 22px; opacity: .85; }

/* ===== Новинки / проекты ===== */
.chips { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.chips a {
  padding: 8px 16px; border-radius: 8px; background: #eef0f2; color: var(--ink);
  font-size: 13px; font-weight: 600;
}
.chips a.is-active { background: var(--accent); color: #fff; }
.chips a:hover { text-decoration: none; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news__card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--text); display: block; }
.news__card:hover { box-shadow: var(--shadow); text-decoration: none; }
.news__img { height: 170px; background: var(--card-grad); display: flex; align-items: center; justify-content: center; color: #7fb3c4; }
.news__body { padding: 16px 18px 18px; }
.news__body b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 8px; line-height: 1.35; }
.news__date { font-size: 12.5px; color: var(--muted); }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project { display: flex; gap: 18px; align-items: flex-start; }
.project__img { width: 150px; height: 100px; flex-shrink: 0; border-radius: 10px; background: var(--card-grad); display:flex; align-items:center; justify-content:center; color:#7fb3c4; }
.project b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 15px; line-height: 1.4; }
.project span { font-size: 12.5px; color: var(--muted); }

/* ===== Страница бренда ===== */
.brandhero { background: linear-gradient(115deg, #eaf3f8 0%, #f6fafb 60%, #fff 100%); }
.brandhero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 28px 0 44px; }
.brandhero h1 { font-size: 38px; margin: 10px 0 14px; }
.brandhero__logo {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; min-height: 150px; font-size: 44px;
}
.two-col { display: grid; grid-template-columns: 190px 1fr; gap: 40px; margin: 44px 0; }
.two-col > aside { font-weight: 700; color: var(--ink); font-size: 17px; }
.two-col p + p { margin-top: 16px; }
.sitebtn {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 600;
  padding: 14px 28px; border-radius: 10px;
}
.sitebtn:hover { text-decoration: none; filter: brightness(1.08); }
.bigtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 44px 0; }
.bigtiles a {
  background: var(--card-grad); border-radius: 16px; min-height: 120px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 20px; font-weight: 700; color: var(--ink); padding: 24px;
}
.bigtiles a:hover { text-decoration: none; box-shadow: var(--shadow); }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { text-align: center; padding: 10px; }
.product__img { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #9fb8c2; }
.product b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.product p { font-size: 12.5px; color: #5a626b; }
.product .cmp { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; }

/* ===== Страница брендов (каталог) ===== */
.subhero { background: var(--grad); color: #fff; }
.subhero__in { display: flex; align-items: center; gap: 32px; padding: 20px 0; font-size: 14px; }
.subhero__in .btn { margin-left: auto; flex-shrink: 0; }
.brandlist { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.brandcard {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; color: var(--text);
}
.brandcard:hover { box-shadow: var(--shadow); text-decoration: none; }
.brandcard .wm, .brandcard .brandmark { font-size: 24px; }
.brandcard__tags { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); }

/* ===== Формы (партнерам) ===== */
.formcard {
  max-width: 520px; margin: 40px auto 60px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px;
  box-shadow: var(--shadow);
}
.formcard h1 { font-size: 26px; margin-bottom: 8px; }
.formcard .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--text); outline: none; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.formcard .btn { width: 100%; padding: 13px; font-size: 15px; margin-top: 6px; }
.formcard .hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-ok {
  display: none; background: #e6f6ef; color: #14735c; border-radius: 10px;
  padding: 14px 16px; font-size: 14px; margin-top: 16px;
}

/* ===== Футер ===== */
.footer { background: var(--dark); color: #b9bec5; margin-top: 80px; font-size: 13.5px; }
.footer a { color: #b9bec5; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 220px 1fr 1.4fr 1.2fr; gap: 40px; padding: 48px 0 36px; }
.footer__grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__grid ul { list-style: none; }
.footer__grid li { padding: 3.5px 0; }
.footer__cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__contacts {
  border-top: 1px solid #23252b; padding: 22px 0; display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.footer__contacts b { color: #fff; font-size: 17px; display: block; }
.footer__contacts span { font-size: 12px; color: #8a919a; }
.footer__social { margin-left: auto; display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.footer__social a:hover { background: var(--teal); color: #fff; }
.footer__bottom { border-top: 1px solid #23252b; padding: 18px 0; display: flex; gap: 36px; font-size: 12.5px; color: #8a919a; }
.footer__bottom .spacer { margin-left: auto; }

/* ===== Адаптив ===== */
@media (max-width: 1000px) {
  .quick, .cats { grid-template-columns: repeat(2, 1fr); }
  .cats a:nth-child(5n) { border-right: 1px solid var(--line); }
  .features, .hero, .projects, .brandlist, .bigtiles, .brandhero__in { grid-template-columns: 1fr; }
  .why, .news, .brandgrid { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 12px; }
  .nav__in { gap: 20px; overflow-x: auto; }
  .search { display: none; }
}
@media (max-width: 600px) {
  .quick, .why, .news, .brandgrid, .products, .footer__grid, .hero__actions { grid-template-columns: 1fr; }
  .header__in { flex-wrap: wrap; gap: 12px; }
  h1 { font-size: 26px; }
}
