:root {
  --red: #7f0403;
  --red-dark: #5a0202;
  --red-light: #aa2a27;
  --gold: #c8960c;
  --bg: #ffffff;
  --bg-light: #f7f5f2;
  --text: #333333;
  --text-muted: #777777;
  --border: #e0e0e0;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --font-main: 'Open Sans', sans-serif;
  --font-head: 'Ubuntu', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-light); }

img { max-width: 100%; }

/* ---- Top info bar ---- */
.topbar {
  background: var(--red-dark);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 6px 0;
  display: none;
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-inner a { color: rgba(255,255,255,0.85); }
.sep { opacity: 0.3; }

/* ---- Site header (white) ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.site-header-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-img { display: flex; align-items: center; flex-shrink: 0; }
.logo-img img { display: block; width: auto; max-height: 80px; }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  flex-shrink: 0;
}
.header-phone-num {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.header-phone-num:hover { color: var(--red); }
.header-phone-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-call {
  display: inline-block;
  padding: 9px 20px;
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-call:hover { background: var(--red); color: #fff; }

/* ---- Main nav bar (dark red strip) ---- */
.main-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.main-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.main-nav li { list-style: none; }
.main-nav a {
  display: inline-block;
  padding: 14px 18px;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav a::after {
  content: '›';
  margin-left: 6px;
  opacity: 0.6;
  font-size: 16px;
}
.main-nav a:last-child::after { display: none; }
.main-nav a:hover, .main-nav a.active {
  background: rgba(0,0,0,0.15);
  color: #fff;
}

/* ---- Mobile nav ---- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block; width: 26px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 400; }
.mob-overlay.open { display: block; }
.mob-nav {
  position: fixed; top: 0; right: -300px; bottom: 0;
  width: 280px; background: var(--red-dark);
  z-index: 500; transition: right 0.3s; overflow-y: auto;
  display: flex; flex-direction: column;
}
.mob-nav.open { right: 0; }
.mob-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mob-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 20px; cursor: pointer; }
.mob-nav-body { padding: 8px 0; }
.mob-link {
  display: block; padding: 13px 20px;
  color: rgba(255,255,255,0.9); font-family: var(--font-head); font-size: 15px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mob-link:hover { background: rgba(0,0,0,0.15); color: #fff; }
.mob-cta {
  display: block; margin: 12px 20px; padding: 12px 20px;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.4);
  color: #fff; border-radius: var(--radius); font-weight: 700;
  text-align: center; font-family: var(--font-head); text-transform: uppercase;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.breadcrumbs a { color: var(--red); }
.breadcrumbs span + span::before { content: ' › '; opacity: 0.5; }

/* ---- Page hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  color: var(--white);
  padding: 48px 20px;
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.page-hero h1 { font-size: 2rem; font-family: var(--font-head); font-weight: 700; }
.page-hero p { font-size: 1rem; opacity: 0.85; margin-top: 8px; }

/* ---- Sections ---- */
.section { padding: 48px 20px; }
.section-light { background: var(--bg-light); }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- News list page ---- */
.news-list-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid #eee; text-decoration: none;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover .news-list-title { color: var(--red); }
.news-list-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.news-list-body { flex: 1; }
.news-list-date { font: 400 11px/1 var(--font-main); color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.news-list-title { font: 700 16px/1.4 var(--font-head); color: #222; margin-bottom: 6px; transition: color 0.15s; }
.news-list-desc { font: 400 13px/1.6 var(--font-main); color: #666; }

.section-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.section-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; margin-top: 4px; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-light); border-color: var(--red-light); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-outline-red { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ---- Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.card-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.card-item h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.card-item p { font-size: 14px; color: var(--text-muted); }

/* ---- Table ---- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; }
.table th { background: var(--bg-light); font-weight: 700; font-family: var(--font-head); font-size: 13px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-main); background: #fff; color: var(--text);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { resize: vertical; }
.form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.form-wrap h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 20px; color: var(--text); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---- News ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 18px; }
.news-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.news-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 8px; }
.news-card p { font-size: 13px; color: var(--text-muted); }
.news-card-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; }

/* ---- Contacts ---- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-block h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 14px; color: var(--text); }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.contact-icon { width: 34px; height: 34px; background: #fff0f0; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---- Footer ---- */
footer {
  background: #2a2a2a;
  color: rgba(255,255,255,0.75);
  padding-top: 40px;
}
.ft-top {
  max-width: 1160px; margin: 0 auto;
  padding: 0 20px 36px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
}
.ft-about { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 12px; line-height: 1.8; }
.ft-col h5 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9); margin-bottom: 14px;
  border-bottom: 2px solid var(--red); padding-bottom: 8px; display: inline-block;
}
.ft-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 7px; }
.ft-col a:hover { color: var(--white); }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1160px; margin: 0 auto;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.ft-bottom a { color: rgba(255,255,255,0.35); }
.ft-bottom a:hover { color: rgba(255,255,255,0.7); }
.ft-social { display: flex; gap: 10px; align-items: center; }
.ft-social a { display: flex; align-items: center; }
.ft-social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); transition: background 0.2s, color 0.2s; }
.ft-social-link:hover { background: var(--red); color: #fff; }

/* ---- Sticky header wrap ---- */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 300;
}
.site-header { transition: padding 0.25s ease; }
.logo-img img { transition: max-height 0.25s ease; }
.header-contacts { transition: opacity 0.2s ease; }
.header-contacts { display: none; }
.header-compact {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
  opacity: 1; pointer-events: auto;
  position: static;
}
.header-compact-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--text);
}
.header-compact-item .hci-icon {
  width: 28px; height: 28px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; flex-shrink: 0;
}
.header-compact-item a { color: var(--text); font-weight: 600; }
.header-compact-item a:hover { color: var(--red); }

body.page-scrolled .header-wrap { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .site-header-inner { flex-wrap: nowrap; gap: 8px; }
  .logo-img img { max-height: 44px; }
  .header-compact .header-compact-item { display: none; }
  .header-compact { gap: 8px; justify-content: flex-end; }
  .header-compact .btn-call { font-size: 12px; padding: 7px 12px; white-space: nowrap; }
  .page-hero h1 { font-size: 1.5rem; }
  .section { padding: 32px 16px; }
  .section-title { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-top { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .logo-img img { max-height: 56px; }
  .btn-call { display: none; }
  .header-compact .btn-call { display: none; }
}
