﻿/*
 * КРОМ — modern redesign (2026).
 * Built on top of Bootstrap 5.3 (bootstrap.min.css, loaded before this file).
 * Brand palette: deep corporate blue + orange accent inherited from the old site.
 */

:root {
  --brand-900: #0e2144;
  --brand-800: #142c56;
  --brand-700: #1d3a6b;
  --brand-600: #27508f;
  --brand-500: #3563ab;
  --brand-100: #e4ecf8;
  --brand-050: #f2f6fc;
  --accent-600: #d67a00;
  --accent-500: #f58b00;
  --accent-400: #ffa62b;
  --accent-100: #fff0d8;
  --ink: #1b2434;
  --muted: #5d6a81;
  --line: #e3e8f1;
  --surface: #f4f7fc;
  --radius-lg: 1rem;
  --radius-md: .625rem;
  --shadow-card: 0 1px 2px rgba(14, 33, 68, .05), 0 4px 16px rgba(14, 33, 68, .07);
  --shadow-card-hover: 0 4px 10px rgba(14, 33, 68, .08), 0 14px 34px rgba(14, 33, 68, .13);

  /* Retune Bootstrap defaults */
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-link-color: var(--brand-700);
  --bs-link-hover-color: var(--accent-600);
  --bs-primary: var(--brand-700);
  --bs-primary-rgb: 29, 58, 107;
  --bs-secondary-color: var(--muted);
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--brand-800);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
}

b, strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Header / navigation
 * -------------------------------------------------------------------------- */

.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.site-header .nav-item {
  white-space: nowrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand-600) 0%, var(--brand-800) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(20, 44, 86, .28);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: none;
}

.brand-mark-sm svg {
  width: 18px;
  height: 18px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.footer-ico {
  width: 17px;
  height: 17px;
  color: var(--accent-400);
}

.header-search .input-group {
  flex-wrap: nowrap;
  width: 100%;
}

@media (min-width: 1200px) {
  .header-search .input-group {
    width: 200px;
  }
}

.btn svg,
.btn-sm svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.hero .btn svg {
  width: 1.25em;
  height: 1.25em;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--brand-800);
  line-height: 1;
  display: block;
  padding-top: 8px;
}

.brand-name .dot {
  color: var(--accent-500);
}

.brand-tagline {
  display: none;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  
}

@media (min-width: 1400px) {
  .brand-tagline {
    display: block;
  }
}

.site-header .nav-link {
  color: #33415c;
  font-weight: 600;
  font-size: .88rem;
  padding: .5rem .6rem !important;
  border-radius: var(--radius-md);
  transition: color .15s ease, background-color .15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--brand-700);
  background: var(--brand-050);
}

.site-header .nav-link.active {
  color: var(--brand-700);
  background: var(--brand-100);
}

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(29, 58, 107, .18);
}

/* Buttons outside Bootstrap defaults */
.btn-accent {
  --bs-btn-bg: var(--accent-500);
  --bs-btn-border-color: var(--accent-500);
  --bs-btn-hover-bg: var(--accent-600);
  --bs-btn-hover-border-color: var(--accent-600);
  --bs-btn-active-bg: var(--accent-600);
  --bs-btn-active-border-color: var(--accent-600);
  --bs-btn-disabled-bg: var(--accent-500);
  --bs-btn-disabled-border-color: var(--accent-500);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
  --bs-btn-font-weight: 600;
  box-shadow: 0 4px 14px rgba(245, 139, 0, .32);
}

.btn-accent:hover {
  box-shadow: 0 6px 18px rgba(214, 122, 0, .4);
}

.btn-outline-brand {
  --bs-btn-color: var(--brand-700);
  --bs-btn-border-color: rgba(29, 58, 107, .45);
  --bs-btn-hover-bg: var(--brand-700);
  --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-800);
  --bs-btn-active-border-color: var(--brand-800);
  --bs-btn-active-color: #fff;
  --bs-btn-font-weight: 600;
}

.btn-brand {
  --bs-btn-bg: var(--brand-700);
  --bs-btn-border-color: var(--brand-700);
  --bs-btn-hover-bg: var(--brand-800);
  --bs-btn-hover-border-color: var(--brand-800);
  --bs-btn-active-bg: var(--brand-800);
  --bs-btn-active-border-color: var(--brand-800);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Hero (home page)
 * -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(58rem 30rem at 110% -10%, rgba(245, 139, 0, .18), transparent 55%),
    radial-gradient(46rem 26rem at -12% 118%, rgba(53, 99, 171, .35), transparent 55%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 62%, var(--brand-600) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: 100rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #ffd9a3;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero .lead {
  color: rgba(255, 255, 255, .82);
  max-width: 40rem;
}

.hero .btn {
  border-radius: var(--radius-md);
}

.hero-stats {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.hero-stat .value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.hero-stat .label {
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
}

/* --------------------------------------------------------------------------
 * Page headers for inner pages
 * -------------------------------------------------------------------------- */

.page-header {
  background: linear-gradient(180deg, var(--brand-050) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0 2.2rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin: 0;
}

.page-header .subtitle {
  color: var(--muted);
  margin: .6rem 0 0;
  max-width: 52rem;
}

.breadcrumb {
  font-size: .86rem;
  margin-bottom: .9rem;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--brand-700);
}

.breadcrumb-item.active {
  color: var(--brand-700);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Sections & cards
 * -------------------------------------------------------------------------- */

.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent-600);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .6rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-500);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.card-lift {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(53, 99, 171, .35);
}

.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--brand-100);
  color: var(--brand-700);
}

.icon-chip.accent {
  background: var(--accent-100);
  color: var(--accent-600);
}

.icon-chip svg {
  width: 26px;
  height: 26px;
}

.cat-card {
  height: 100%;
  text-decoration: none;
}

.cat-card .card-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.cat-card h3 {
  font-size: 1.02rem;
  margin: 0;
  color: var(--brand-800);
}

.cat-card .cat-more {
  margin-top: auto;
  font-size: .87rem;
  font-weight: 600;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.cat-card:hover .cat-more {
  color: var(--accent-600);
}

.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-row h3 {
  font-size: 1.02rem;
  margin: 0 0 .25rem;
}

.feature-row p {
  color: var(--muted);
  font-size: .93rem;
  margin: 0;
}

/* Steps */
.step-card {
  position: relative;
  height: 100%;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
  box-shadow: 0 4px 12px rgba(29, 58, 107, .3);
}

/* --------------------------------------------------------------------------
 * Content (legacy HTML fragments: product pages, price sections, link groups)
 * -------------------------------------------------------------------------- */

.content {
  font-size: 1rem;
  color: var(--ink);
}

.content p {
  margin-bottom: 1rem;
}

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

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content th,
.content td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.content tr:last-child td {
  border-bottom: 0;
}

.content thead th,
.content tr[colspan] td,
.content td[colspan] {
  background: var(--brand-050);
  color: var(--brand-800);
  font-weight: 600;
}

.content table table {
  border: 0;
  margin: 0;
}

.content table table td {
  border: 0;
  padding: .15rem .3rem;
  background: transparent;
}

.content td b,
.content td strong {
  color: var(--brand-800);
}

.content ul {
  padding-left: 1.3rem;
  margin-bottom: 1.1rem;
}

.content li {
  margin: .3rem 0;
}

.content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.content center {
  text-align: center;
}

/* Product image plate */
.product-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

/* Group blocks (link groups on catalog-models page) */
.group-card h3 {
  font-size: 1rem;
  margin: 0;
}

.group-card h3 a {
  color: var(--brand-800);
  text-decoration: none;
}

.group-card h3 a:hover {
  color: var(--accent-600);
}

.group-card ul {
  margin: .65rem 0 0;
  padding-left: 1.15rem;
}

.group-card li {
  margin: .3rem 0;
}

.group-card a {
  text-decoration: none;
  color: var(--brand-700);
  font-size: .93rem;
}

.group-card a:hover {
  text-decoration: underline;
  color: var(--accent-600);
}

/* "Продукция по моделям" — masonry-like directory of link groups */
.link-groups {
  columns: 3 300px;
  column-gap: 1rem;
}

.link-groups .group-card {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.link-groups > h3 {
  break-inside: avoid;
  font-size: 1.05rem;
  margin: .5rem 0 1rem;
}

.link-groups > h3 a {
  color: var(--brand-800);
  text-decoration: none;
}

.link-groups > h3 a:hover {
  color: var(--accent-600);
}

/* --------------------------------------------------------------------------
 * Article pages (history, firma, ...)
 * -------------------------------------------------------------------------- */

.article h2 {
  font-size: 1.3rem;
  margin: 2rem 0 .8rem;
}

.article h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 .6rem;
}

.article p {
  color: #2c3648;
  margin-bottom: 1rem;
}

/* Contact cards */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-card);
}

/* News */
.news-date {
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100rem;
  letter-spacing: .02em;
}

/* City badges (dealers page) */
.city-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: #33415c;
  font-size: .84rem;
  font-weight: 500;
  padding: .28rem .75rem;
  border-radius: 100rem;
}

/* Tables (ink page, search results) */
.table-brand {
  --bs-table-border-color: var(--line);
}

.table-brand thead th {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
  font-weight: 600;
  font-size: .9rem;
}

.table-brand td {
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */

.site-footer {
  background:
    radial-gradient(40rem 20rem at 120% 0%, rgba(245, 139, 0, .12), transparent 55%),
    linear-gradient(180deg, var(--brand-900) 0%, #0a1a37 100%);
  color: rgba(255, 255, 255, .78);
  margin-top: auto;
}

.site-footer h6 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: .93rem;
  display: inline-block;
  padding: .18rem 0;
  transition: color .15s ease;
}

.site-footer a:hover {
  color: var(--accent-400);
}

.site-footer p {
  font-size: .93rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
}

.footer-brand-name .dot {
  color: var(--accent-500);
}

/* --------------------------------------------------------------------------
 * Small helpers
 * -------------------------------------------------------------------------- */

.text-muted-2 {
  color: var(--muted) !important;
}

.fw-800 {
  font-weight: 800;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.text-brand {
  color: var(--brand-700) !important;
}

.rotate-180 {
  transform: rotate(180deg);
}

.mini-note {
  font-size: .85rem;
  color: var(--muted);
}

/* 404 */
.error-code {
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-700), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 991.98px) {
  .hero-stat + .hero-stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
}
