/* Альта-Пак — основной стиль. Без внешних шрифтов и библиотек. */

html { font-size: 18px; }
body {
  margin: 0;
  padding: 0 0 20px;
  background: #d9dde3;
  color: #1a1a1a;
  font-family: Verdana, Tahoma, "DejaVu Sans", Arial, sans-serif;
  line-height: 1.55;
}

a { color: #1d3f73; }
a:visited { color: #4b2f73; }
a:hover { color: #b22222; }

img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #ffff99; padding: 6px 10px;
}
.skip:focus { left: 10px; z-index: 10; }

/* ---------- Каркас ---------- */
.page {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #8a94a3;
  border-top: 0;
  box-shadow: 0 0 6px #a9b0bb;
}

/* ---------- Шапка ---------- */
.site-header {
  background: #1d3f73;
  background: linear-gradient(#2b5797, #1d3f73);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 4px solid #e0b33a;
}
.logo { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.logo:visited, .logo:hover { color: #fff; }
.logo img { width: 64px; height: 64px; background: #fff; border: 2px solid #e0b33a; }
.logo-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 1px 1px 0 #0d2246;
}
.logo-slogan { display: block; font-size: .85rem; font-style: italic; color: #dfe7f5; }
.header-contacts { text-align: right; font-size: .95rem; }
.header-contacts a { color: #fff; font-weight: bold; }
.header-contacts span { color: #cfd9ea; font-size: .8rem; }

/* ---------- Меню ---------- */
.menu-toggle {
  display: none;
  width: 100%;
  font: bold 1rem Verdana, Tahoma, sans-serif;
  padding: 10px;
  background: #e9edf3;
  border: 0;
  border-bottom: 1px solid #8a94a3;
  text-align: left;
  cursor: pointer;
}
.nav {
  background: #dfe5ee;
  background: linear-gradient(#f4f6f9, #cfd7e3);
  border-bottom: 1px solid #8a94a3;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav li { border-right: 1px solid #a3adbb; }
.nav a {
  display: block;
  padding: 10px 18px;
  font-weight: bold;
  font-size: .95rem;
  color: #1d3f73;
  text-decoration: none;
}
.nav a:hover { background: #fff; text-decoration: underline; }
.nav a[aria-current="page"] { background: #fff; color: #000; }

/* ---------- Контент ---------- */
.content { padding: 20px 28px 30px; }
.layout { display: block; }
.sidebar {
  border: 1px solid #8a94a3;
  background: #f1f3f6;
  font-size: .95rem;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sidebar h2 {
  margin: 0;
  padding: 6px 12px;
  font-size: 1rem;
  background: #1d3f73;
  color: #fff;
  border: 0;
  width: 100%;
  box-sizing: border-box;
}
.sidebar ul { margin: 0; padding: 10px 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1; }
.sidebar li::before { content: "» "; color: #b22222; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: #12305e; line-height: 1.25; }
h1 { font-size: 2rem; margin: .3em 0 .6em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; padding-bottom: 4px; border-bottom: 2px solid #1d3f73; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; }

.crumbs { font-size: .85rem; color: #555; margin-bottom: 4px; }

hr { border: 0; border-top: 2px groove #c2c8d1; margin: 24px 0; }

.note {
  border: 1px solid #c9b66b;
  background: #fffbe6;
  padding: 10px 14px;
  font-size: .95rem;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 10px 26px;
  font: bold 1.05rem Verdana, Tahoma, sans-serif;
  color: #fff !important;
  text-decoration: none;
  background: #2b5797;
  background: linear-gradient(#3c6cb3, #1d3f73);
  border: 2px outset #5d86c4;
}
.btn:hover { background: #1d3f73; }
.btn:active { border-style: inset; }
.btn-light {
  color: #1d3f73 !important;
  background: linear-gradient(#ffffff, #dfe5ee);
  border-color: #c2c8d1;
}

/* ---------- Главная: hero ---------- */
.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  border: 3px double #1d3f73;
  background: #eef2f8;
  padding: 22px 26px;
  margin-top: 6px;
}
.hero h1 { margin-top: 0; font-size: 2.2rem; }
.hero p { font-size: 1.1rem; margin: 0 0 18px; }
.hero-pic { width: 200px; flex-shrink: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Преимущества ---------- */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.features li {
  border: 1px solid #a3adbb;
  border-left: 6px solid #1d3f73;
  padding: 12px 14px;
  background: #fafbfc;
}
.features b { display: block; font-size: 1.05rem; color: #12305e; margin-bottom: 4px; }

/* ---------- Превью каталога ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cat {
  border: 1px solid #8a94a3;
  padding: 12px;
  background: #fff;
  display: flex;
  gap: 12px;
}
.cat img { width: 72px; height: 72px; flex-shrink: 0; border: 1px solid #c2c8d1; background: #f1f3f6; }
.cat h3 { margin: 0 0 4px; font-size: 1.15rem; }
.cat ul { margin: 0; padding-left: 18px; font-size: .9rem; }

/* ---------- Как мы работаем ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #8a94a3;
}
.steps li {
  padding: 14px;
  border-right: 1px solid #8a94a3;
  background: #f7f8fa;
  font-size: .92rem;
}
.steps li:last-child { border-right: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  width: 36px; height: 36px;
  line-height: 36px;
  text-align: center;
  font: bold 1.2rem Georgia, serif;
  color: #fff;
  background: #1d3f73;
  margin-bottom: 6px;
}
.steps b { display: block; font-size: 1.05rem; color: #12305e; }

/* ---------- Контакты (блок) ---------- */
.contact-table { border-collapse: collapse; font-size: 1rem; }
.contact-table th, .contact-table td { border: 1px solid #a3adbb; padding: 8px 14px; text-align: left; vertical-align: top; }
.contact-table th { background: #e9edf3; width: 180px; }
.big-contact { font-size: 1.35rem; font-weight: bold; }

/* ---------- Каталог ---------- */
.cat-head { display: flex; align-items: center; gap: 14px; }
.cat-head img { width: 56px; height: 56px; border: 1px solid #c2c8d1; background: #f1f3f6; }
.cat-head h2 { flex: 1; margin: .6em 0; }
.cat-head { margin-top: 1.4em; }
.sidebar .btn { padding: 6px 16px; font-size: .95rem; }
.goods {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin-bottom: 8px;
  table-layout: fixed;
  hyphens: auto;
  overflow-wrap: break-word;
}
.items th:nth-child(1) { width: 23%; }
.items th:nth-child(2) { width: 28%; }
.items th:nth-child(3) { width: 21%; }
.items th:nth-child(4) { width: 15%; }
.items th:nth-child(5) { width: 13%; }
.goods th, .goods td { box-sizing: border-box; }
.terms th:nth-child(1) { width: 26%; }
.terms th:nth-child(2) { width: 48%; }
.goods caption { text-align: left; font-size: .85rem; color: #555; padding-bottom: 4px; }
.goods th {
  background: #1d3f73;
  color: #fff;
  text-align: left;
  padding: 7px 10px;
  border: 1px solid #12305e;
}
.goods td { border: 1px solid #a3adbb; padding: 8px 10px; vertical-align: top; }
.goods tbody tr:nth-child(even) td { background: #f1f4f8; }
.goods td:first-child { font-weight: bold; color: #12305e; font-size: .9rem; }
.goods .price { color: #555; font-style: italic; }
.to-top { font-size: .85rem; text-align: right; }

/* ---------- Подвал ---------- */
.site-footer {
  background: #3a3f47;
  color: #d6d9de;
  padding: 16px 28px;
  font-size: .85rem;
  border-top: 4px solid #1d3f73;
}
.site-footer a { color: #fff; }
.footer-cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { display: inline; }
.footer-nav li + li::before { content: " | "; color: #888; }
.updated { color: #9aa0a8; font-size: .8rem; margin-top: 8px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 30px 10px 40px; }
.notfound .code { font: bold 6rem Georgia, serif; color: #c2c8d1; margin: 0; line-height: 1; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid #8a94a3; }
  .hero-pic { width: 140px; }
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  .content { padding: 14px 14px 24px; }
  .site-header { padding: 14px; }
  .logo img { width: 48px; height: 48px; }
  .logo-name { font-size: 1.6rem; }
  .header-contacts { text-align: left; }
  .menu-toggle { display: block; }
  .js .nav ul { display: none; }
  .js .nav.open ul { display: block; }
  .nav li { border-right: 0; border-bottom: 1px solid #a3adbb; }
  .hero { flex-direction: column; align-items: flex-start; padding: 16px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-pic { display: none; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0 !important; border-bottom: 1px solid #8a94a3; }
  .steps li:last-child { border-bottom: 0; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }

  /* таблицы каталога — карточками */
  .goods thead { display: none; }
  .goods, .goods tbody, .goods tr, .goods td { display: block; width: auto !important; }
  .goods tr { border: 1px solid #8a94a3; margin-bottom: 10px; }
  .goods td { border: 0; border-bottom: 1px dotted #a3adbb; background: none !important; }
  .goods td:last-child { border-bottom: 0; }
  .goods td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #555;
  }
  .goods td:first-child { background: #e9edf3 !important; }
  .contact-table th { width: auto; }
  .contact-table, .contact-table tbody, .contact-table tr, .contact-table th, .contact-table td { display: block; }
  .contact-table th { border-bottom: 0; }
}

@media print {
  body { background: #fff; }
  .nav, .menu-toggle, .sidebar, .hero-actions { display: none; }
  .page { border: 0; box-shadow: none; }
}
