/* =========================
   Base
========================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #eee;

  /* Тёмный фон + лёгкая текстура */
  background-color: #0c0e0c;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 4px 4px;
}

/* =========================
   Header (Top: logos + title) + Nav
========================= */
.header {
  background: #111;
  border-bottom: 1px solid #222;
}

/* Верхняя полоса шапки */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 40px;
}

/* Контейнеры логотипов (делаем одинаковую "рамку") */
.header-logo {
  width: 200px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Центральный текст */
.header-title {
  text-align: center;
  color: #eee;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 700px;
}

/* Навигация */
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 12px;
  background: #0c0c0c;
  border-top: 1px solid #181818;
}

.nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: #6b8e23;
}

.nav a.active {
  font-weight: bold;
  color: #6b8e23;
  border-bottom: 2px solid #6b8e23;
}

/* =========================
   Hero (главная)
========================= */
.hero {
    position: relative;
    min-height: 78vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 120px 20px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.62)
        ),
        url("../assets/images/garage-main-bg.jpg")
        center center / cover no-repeat;

    z-index: 0;
}

.hero h1 {
    max-width: 1000px;

    margin-bottom: 25px;

    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;

    color: #ffffff;

    text-shadow:
        0 0 18px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.7);
}

.hero h1 {
  font-size: 42px;
  margin: 0 0 20px;
}

.subtitle {
    margin-bottom: 20px;

    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;

    color: #a6c74a;

    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.description {
    max-width: 850px;

    margin: 0 auto 35px;

    font-size: 20px;
    line-height: 1.7;

    color: #e3e3e3;

    text-shadow: 0 0 12px rgba(0,0,0,0.85);
}

/* Buttons */
.buttons {
  text-align: center;
}

.buttons .btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #6b8e23;
  color: #000;
  text-decoration: none;
  margin: 6px 10px;
  border-radius: 10px;
  border: 1px solid #6b8e23;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.55);
  background: #7aa12a;
}

.btn-secondary {
  background-color: #111;
  color: #ddd;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: #0f0f0f;
}

/* =========================
   Footer
========================= */
.footer {
  padding: 20px 40px;
  background-color: #1a1a1a;
  font-size: 14px;
  color: #777;
  text-align: center;
}

/* =========================
   Content pages
========================= */
.content {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.content h1 {
  font-size: 36px;
  margin: 0 0 30px;
}

.content h2 {
  font-size: 26px;
  margin: 50px 0 20px;
  color: #6b8e23;
}

.content p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: #ddd;
}

/* =========================
   Country / Vehicles list
========================= */
.country-block {
  width: 100%;
  margin: 0 auto 60px;
}

.country-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  text-align: center;
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: bold;

  border-bottom: 1px solid rgba(107,142,35,0.3);
  padding-bottom: 10px;
}

.country-title img {
  width: 40px;
  height: auto;
  border-radius: 3px;
}

/* Адаптивная сетка карточек */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, 260px); /* ВСЕГДА 4 карточки */
  gap: 30px;

  justify-content: center;   /* центрируем сетку */
  justify-items: center;

  width: 100%;
  margin: 30px auto 0;
}


/* Унифицированная карточка (как ссылка <a class="vehicle-card">...) */
.vehicle-card {
  display: block;
  text-decoration: none;
  color: #fff;

  border: 1px solid #2a2e2a;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;

  background: linear-gradient(180deg, #131613 0%, #0f110f 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vehicle-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #6b8e23;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(107,142,35,0.15);
}

.vehicle-card img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.vehicle-card:hover img {
  transform: scale(1.06);
}

.vehicle-card h3 {
  margin: 12px 14px 6px;
}

.vehicle-card p {
  margin: 0 14px 12px;
  font-size: 14px;
  opacity: 0.85;
}

/* Статусы */
.status {
  display: inline-block;
  margin: 0 14px 14px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #333;
}

.status.active {
  background: rgba(107,142,35,0.15);
  border: 1px solid rgba(107,142,35,0.4);
  color: #b8d36b;
}

.status.restoration {
  background: rgba(196,138,44,0.15);
  border: 1px solid rgba(196,138,44,0.45);
  color: #e6c27a;
}

.status.inactive {
  background: rgba(85,85,85,0.15);
  border: 1px solid rgba(85,85,85,0.45);
  color: #bbb;
}

/* =========================
   Vehicle page (галерея + таблица)
========================= */
.vehicle-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.vehicle-gallery img {
  width: 30%;
  min-width: 220px;
  border-radius: 8px;
}

.vehicle-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 25px auto;
}

.vehicle-specs th,
.vehicle-specs td {
  border: 1px solid #444;
  padding: 8px 12px;
}

.vehicle-specs th {
  background-color: #2a2a2a;
}

/* Back button */
.back-to-vehicles {
  margin: 30px 0;
  text-align: left;
}

.back-to-vehicles a {
  display: inline-block;
  padding: 8px 14px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  color: #6b8e23;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.back-to-vehicles a:hover {
  background: #6b8e23;
  color: #000;
  transform: translateY(-2px);
}

/* =========================
   Contacts
========================= */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.contact-card h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.contact-card a {
  color: #6b8e23;
  text-decoration: none;
  font-weight: bold;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* =========================
   Team
========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.team-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #fff;
}

.team-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
}

/* =========================
   Calendar (Events page)
========================= */
.calendar-wrap {
  margin-top: 35px;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.calendar-embed {
  filter: invert(1) hue-rotate(180deg);
}

/* =========================
   Services page
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border-color: #6b8e23;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}

.service-card h2 {
  font-size: 18px;
  margin: 0 0 10px;
  text-align: center;
}

.service-card p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* CTA */
.cta-row {
  margin: 35px 0 10px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #6b8e23;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #6b8e23;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.55);
  background: #7aa12a;
}

.cta-note {
  margin-top: 12px;
  color: #aaa;
  font-size: 14px;
}

/* Price tables */
.price-table-wrap {
  margin: 18px auto 30px;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #222;
  text-align: left;
}

.price-table th {
  background: #0f0f0f;
  color: #fff;
  font-weight: bold;
}

.price-table td {
  color: #ccc;
}

.price-table tr:hover td {
  background: #0f0f0f;
}

.muted {
  color: #aaa;
  font-size: 14px;
  margin-top: -6px;
}

/* =========================
   Gallery / Events list
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.event-card {
  display: block;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
  border-color: #6b8e23;
}

.event-cover{
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-cover img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  backface-visibility: hidden;
  transform: translateZ(0);
}


.event-meta {
  padding: 14px 16px;
}

.event-meta h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
}

.event-date {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

/* Media inside event */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

/* === Gallery media thumbs (no crop, no grain) === */
.media-item{
  background:#111;
  border:1px solid #333;
  border-radius:12px;
  overflow:hidden;
  margin:0;
}

.media-item img{
  width:100%;
  height: 240px;          /* можешь 220/260/280 */
  object-fit: contain;    /* ВАЖНО: не режем ни портрет, ни пейзаж */
  background: #0b0b0b;    /* поля вокруг картинки */
  display:block;
  cursor: zoom-in;

  /* улучшает качество ресайза в большинстве браузеров */
  image-rendering: auto;
  -ms-interpolation-mode: bicubic; /* старый IE, можно оставить */
  transform: translateZ(0); /* иногда убирает “шум” из-за GPU */
}

/* для портретных будем добавлять класс через JS */
.media-item img.is-portrait{
  object-fit: contain;     /* показываем фото целиком */
  background: #0b0b0b;     /* чтобы были “поля” красиво, а не прозрачность */
}


.media-item figcaption {
  padding: 10px 12px;
  color: #ccc;
  font-size: 14px;
}

/* Video */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.video-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  padding: 12px;
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.video-caption {
  margin: 10px 2px 0;
  color: #ccc;
  font-size: 14px;
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* === Lightbox (fixed portrait overflow) === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ */
.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;      /* портретные фото теперь ВСЕГДА влезают */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  cursor: zoom-out;
}

#lightboxCaption {
  margin: 12px 6px 0;
  color: #ddd;
  font-size: 14px;
  max-height: 12vh;      /* подпись не выдавливает фото */
  overflow-y: auto;
  text-align: center;
}

/* Кнопка закрытия */
.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* Стрелки навигации */
.lightbox-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #333;
  background: rgba(17,17,17,.85);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 26px;
  line-height: 1;
}

.lightbox-nav.prev{ left: -10px; }
.lightbox-nav.next{ right: -10px; }

.lightbox-nav:hover{
  border-color: #6b8e23;
}

/* Счетчик */
.lightbox-counter{
  margin: 6px 6px 0;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

/* =========================
   Vehicles filter bar
========================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 10px;
}

.filter-btn {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.55);
  border-color: #6b8e23;
}

.filter-btn.active {
  border-color: #6b8e23;
  box-shadow: 0 10px 22px rgba(0,0,0,.55);
  font-weight: bold;
}

.filter-note {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  margin-bottom: 25px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    padding: 18px 16px;
  }

  .header-logo {
    width: 140px;
    height: 120px;
  }

  .header-title {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .vehicle-gallery img {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .vehicles-grid {
    grid-template-columns: repeat(3, 260px);
  }
}

@media (max-width: 900px) {
  .vehicles-grid {
    grid-template-columns: repeat(2, 260px);
  }
}

@media (max-width: 560px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
  }
}

/* === Header title image (logonew.png) === */
.header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;                 /* чтобы элементы не липли */
}

.header-logo{
  width: 200px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;       /* одинаковая “вписанность” логотипов */
}

/* центр */
.header-title{
  flex: 1;                   /* центр занимает всё между логотипами */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* сама картинка названия */
.header-title-img{
  display: block;
  max-width: 740px;          /* примерно твой исходный размер, но адаптивно */
  width: 100%;
  height: auto;
}

/* адаптация под мобилку */
@media (max-width: 768px){
  .header-top{
    padding: 18px 16px;
    gap: 12px;
  }

  .header-logo{
    width: 120px;
    height: 100px;
  }

  .header-title-img{
    max-width: 420px;
  }
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(80%);
    position: relative;
}

.btn-disabled::after {
    content: "скоро";
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 10px;
    background: #666;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
}

/* News section */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.news {
  padding: 48px 0 64px;
}

.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.news-head h2 {
  font-size: 28px;
  margin: 0;
}

.news-all {
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
}
.news-all:hover { opacity: 1; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
  transition: transform .15s ease, border-color .15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.22);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 10px;
}

.news-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  opacity: .95;
}

.news-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.news-text {
  margin: 0 0 12px;
  opacity: .9;
  line-height: 1.45;
}

.news-link {
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-head { align-items: center; }
}

/* Page layout */
.page { padding: 40px 0 64px; }

.page-head h1 {
  margin: 0 0 10px;
  font-size: 34px;
}
.page-subtitle {
  margin: 0 0 18px;
  opacity: .9;
  line-height: 1.5;
}

/* Filters */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.chip {
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: inherit;
  transition: transform .12s ease, border-color .12s ease, opacity .12s ease;
  opacity: .9;
}
.chip:hover { opacity: 1; }
.chip.active {
  border-color: rgba(255,255,255,0.30);
  opacity: 1;
  transform: translateY(-1px);
}

/* Archive list */
.news-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.news-item {
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

.news-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 10px;
}

.news-item-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}
.news-item-title a {
  color: inherit;
  text-decoration: none;
}
.news-item-title a:hover { text-decoration: underline; }

.news-item-excerpt {
  margin: 0 0 10px;
  opacity: .9;
  line-height: 1.5;
}

.news-back {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
}
.news-back:hover { opacity: 1; }

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 10px;
}

.post-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
}

.post-lead {
  font-size: 18px;
  opacity: .95;
  line-height: 1.6;
  margin: 0 0 18px;
}

.post h2 { margin-top: 18px; }
.post-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* ===== Полоска "Техніка наших партнерів" ===== */

.vehicle-card.partner {
    position: relative;
    overflow: hidden;
}

/* чтобы контент внутри карточки не раздувал ее (важно для flex/grid) */
.vehicle-card { 
  min-width: 0; 
  overflow: hidden;
}

/* Полоса под фото */
.partner-strip{
  position: relative;
  width: 100%;
  height: 28px;
  background: #ffcc00;
  overflow: hidden;
  flex: 0 0 auto; /* если карточка flex-column */
}

/* ВАЖНО: absolute => не влияет на ширину карточки */
.partner-marquee{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  white-space: nowrap;
  gap: 28px;
  will-change: transform;
  animation: partner-move 12s linear infinite;
}

.partner-marquee span{
  font-weight: 700;
  font-size: 13px;
  color: #000;
}

/* движение влево */
@keyframes partner-move{
  0%   { transform: translate(0, -50%); }
  100% { transform: translate(-50%, -50%); }
}



/* FIX для CSS Grid: чтобы карточки не раздувались из-за nowrap */
.vehicles-grid .vehicle-card {
  flex: 1 1 280px; /* или твой размер */
  min-width: 0;
  max-width: 100%;
}

.social-inline{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.social-icon{
  width:18px;
  height:18px;
  fill:#1877F2;
}

.instagram-icon{
  fill: url(#instaGradient);
}

.club-section {
    padding: 60px 20px;
}

.club-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
}

.club-card h2 {
    margin-bottom: 15px;
    font-size: 32px;
}

.club-card p {
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.login-page {
    min-height: 100vh;
    background: #080908;
}

.login-hero {
    position: relative;

    min-height: calc(100vh - 330px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;

    overflow: visible;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.60)
        ),
        url("../assets/images/hero-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.login-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(111, 151, 37, 0.08), transparent 45%);
    z-index: 1;
}

.login-modal {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 34px 42px 36px;
    background: rgba(10, 11, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.8);
    color: #f2f2f2;
}

.login-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 30px;
    line-height: 1;
    color: #aaa;
    text-decoration: none;
}

.login-close:hover {
    color: #8db339;
}

.login-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #7fa52d;
}

.login-decor span {
    width: 90px;
    height: 1px;
    background: #7fa52d;
    opacity: 0.7;
}

.login-decor b {
    font-size: 22px;
}

.login-modal h1 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 30px;
    color: #fff;
}

.login-intro {
    max-width: 380px;
    margin: 0 auto 24px;
    text-align: center;
    color: #cfcfcf;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.login-form label {
    font-weight: 700;
    color: #f0f0f0;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    overflow: hidden;
}

.login-icon {
    width: 46px;
    text-align: center;
    opacity: 0.8;
}

.login-input-wrap input {
    width: 100%;
    padding: 15px 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
}

.login-input-wrap input::placeholder {
    color: #8f8f8f;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 8px 0 10px;
    font-size: 14px;
}

.login-options a,
.login-bottom a {
    color: #8db339;
    text-decoration: underline;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: normal !important;
}

.login-submit {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #8fb83d, #638a24);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.login-submit:hover {
    background: linear-gradient(180deg, #a3cc4d, #719b2c);
}

.login-bottom {
    margin: 22px 0 0;
    text-align: center;
    color: #cfcfcf;
}

.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(120, 0, 0, 0.45);
    border: 1px solid rgba(255, 80, 80, 0.65);
    border-radius: 6px;
    color: #fff;
    text-align: center;
}

@media (max-width: 600px) {
    .login-modal {
        padding: 30px 22px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-modal h1 {
        font-size: 24px;
    }
}

.member-area {
    min-height: 70vh;
    padding: 60px 20px;
}

.member-hero {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 35px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.member-hero h1 {
    margin-bottom: 15px;
    font-size: 34px;
}

.member-hero p {
    max-width: 720px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.member-card {
    padding: 28px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.member-card h2 {
    margin-bottom: 12px;
    color: #9fca3b;
}

.member-card p {
    line-height: 1.6;
}

@media (max-width: 900px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

.member-page {
    min-height: 100vh;
    background: #080908;
}

.member-bg {
    position: relative;
    min-height: calc(100vh - 330px);
    padding: 70px 20px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.72)
        ),
        url("../assets/images/hero-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

    overflow: visible;
}

.member-bg::before {
    display: none;
}

.member-bg-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top, rgba(111, 151, 37, 0.08), transparent 45%);

    z-index: 1;
}

.member-content {
    position: relative;
    z-index: 2;
}

.member-hero {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 35px;
    text-align: center;
    background: rgba(10, 11, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.65);
}

.member-hero h1 {
    margin-bottom: 15px;
    font-size: 34px;
}

.member-hero p {
    max-width: 720px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.member-card {
    display: block;
    padding: 28px;
    min-height: 210px;
    background: rgba(10, 11, 10, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    color: #f2f2f2;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: rgba(143, 184, 61, 0.65);
    background: rgba(12, 14, 11, 0.92);
}

.member-card h2 {
    margin-bottom: 12px;
    color: #9fca3b;
}

.member-card p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-card span {
    color: #9fca3b;
    font-weight: bold;
}

@media (max-width: 900px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

.materials-panel {
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 30px;
    background: rgba(10, 11, 10, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.55);
}

.materials-panel h2 {
    margin-bottom: 20px;
    color: #9fca3b;
}

.upload-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.upload-form input[type="file"] {
    flex: 1;
    min-width: 260px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: #fff;
}

.upload-form .login-submit {
    width: auto;
    min-width: 180px;
}

.upload-note {
    margin-top: 15px;
    color: #cfcfcf;
    font-size: 14px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.file-item h3 {
    margin-bottom: 8px;
    color: #fff;
}

.file-item p {
    margin-bottom: 5px;
    color: #cfcfcf;
}

.file-item small {
    color: #8d8d8d;
}

.login-success {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(80, 130, 20, 0.45);
    border: 1px solid rgba(143, 184, 61, 0.75);
    border-radius: 6px;
    color: #fff;
    text-align: center;
}

@media (max-width: 700px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-item .btn {
        width: 100%;
        text-align: center;
    }
}

.file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-actions .btn {
    white-space: nowrap;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form label {
    font-weight: bold;
}

.admin-form input,
.admin-form select {
    padding: 13px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-form option {
    background: #111;
    color: #fff;
}

.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.admin-user-item strong {
    color: #9fca3b;
    font-size: 18px;
}

.admin-user-item p {
    margin: 6px 0;
    color: #cfcfcf;
}

.admin-user-item small {
    color: #8d8d8d;
}

/* =========================
   FIX MAIN HERO BACKGROUND
========================= */

.hero {
    position: relative;
    min-height: 78vh;
    padding: 120px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    overflow: hidden;

    background: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.38),
            rgba(0, 0, 0, 0.62)
        ),
        url("../assets/images/garage-main-bg.jpg") center center / cover no-repeat;

    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(107, 142, 35, 0.08),
            transparent 45%
        );

    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 1050px;
    margin: 0 0 25px;

    font-size: 58px;
    line-height: 1.1;
    font-weight: 800;

    color: #fff;

    text-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(0, 0, 0, 0.9);
}

.hero .subtitle {
    margin: 0 0 20px;

    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #a6c74a;

    text-shadow: 0 0 18px rgba(0, 0, 0, 0.95);
}

.hero .description {
    max-width: 850px;
    margin: 0 auto 35px;

    font-size: 20px;
    line-height: 1.7;

    color: #e6e6e6;

    text-shadow: 0 0 16px rgba(0, 0, 0, 0.95);
}

.hero .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero .btn {
    display: inline-block;
    padding: 15px 30px;

    border-radius: 8px;
    border: 1px solid #6b8e23;

    background: linear-gradient(180deg, #8fb83d, #6f9329);
    color: #fff;

    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);

    transition: transform 0.2s ease, background 0.2s ease;
}

.hero .btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #a3cc4d, #7ca532);
}

.hero .btn-secondary {
    background: rgba(0, 0, 0, 0.65);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero .btn-secondary:hover {
    background: rgba(20, 20, 20, 0.8);
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 80px 18px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .hero .description {
        font-size: 16px;
    }
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-form label {
    font-weight: bold;
}

.post-form input[type="text"],
.post-form textarea,
.post-form input[type="file"] {
    padding: 13px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.post-form textarea {
    resize: vertical;
    min-height: 160px;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
}

.editor-toolbar button {
    width: 38px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.editor-toolbar button:hover {
    border-color: #9fca3b;
    color: #9fca3b;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
}

.post-card h3 {
    margin: 0 0 8px;
    color: #9fca3b;
    font-size: 22px;
}

.post-card-head p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.post-body {
    margin-top: 18px;
    line-height: 1.7;
    color: #e6e6e6;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.post-images a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}

.post-images img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.post-images a:hover img {
    transform: scale(1.05);
}


.member-bg-fixed::before {
    display: none;
}

.member-bg-fixed .member-bg-overlay {
    display: none;
}

.btn-delete {
    background: #6d1d1d;
    border: 1px solid #a33;
    color: #fff;
}

.btn-delete:hover {
    background: #8a2525;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.album-card {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    border-color: rgba(143, 184, 61, 0.65);
}

.album-cover {
    height: 180px;
    background: #111;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.album-info {
    padding: 18px;
}

.album-info h3 {
    margin: 0 0 10px;
    color: #9fca3b;
}

.album-info p {
    margin: 0 0 12px;
    line-height: 1.5;
    color: #ddd;
}

.album-info small {
    color: #aaa;
    font-size: 13px;
}

.album-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.album-form label {
    font-weight: bold;
}

.album-form input[type="text"],
.album-form textarea,
.album-form input[type="file"] {
    padding: 13px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.album-form textarea {
    resize: vertical;
}

.photo-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.photo-input-row input[type="file"] {
    flex: 1;
}

@media (max-width: 700px) {
    .photo-input-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.album-photo-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
}

.album-photo-item a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.album-photo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.inline-form {
    display: inline-block;
    margin-left: 8px;
}

@media (max-width: 700px) {
    .inline-form {
        display: block;
        margin: 10px 0 0;
    }
}

.about-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.62)
        ),
        url("../assets/images/about-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about-page .content {
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 140, 60, 0.18);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    margin-top: 60px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .about-page {
        background-attachment: scroll;
    }

    .about-page .content {
        margin-top: 30px;
        margin-bottom: 30px;
        border-radius: 0;
    }
}

/* =========================
   Home page fixed background
========================= */

.home-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.78)
        ),
        url("../assets/images/garage-main-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.home-page .hero {
    background: transparent;
}

.home-page .hero::before {
    display: none;
}

.home-page .hero::after {
    background:
        radial-gradient(
            circle at center,
            rgba(107, 142, 35, 0.10),
            transparent 45%
        );
}

.home-page .club-section,
.home-page .news {
    background: transparent;
    backdrop-filter: none;
}

.home-page .club-card,
.home-page .news-card {
    background: rgba(8, 8, 8, 0.68);
    border: 1px solid rgba(180, 140, 60, 0.18);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .home-page {
        background-attachment: scroll;
    }
}

/* =========================
   Member page fixed background
========================= */

.member-page-fixed {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.72)
        ),
        url("../assets/images/hero-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* отключаем старый локальный фон */
.member-page-fixed .member-bg::before {
    display: none;
}

.member-page-fixed .member-bg-overlay {
    display: none;
}

.member-page-fixed .member-bg {
    background: transparent;
}

/* стеклянные панели */
.member-page-fixed .member-hero,
.member-page-fixed .member-card,
.member-page-fixed .materials-panel,
.member-page-fixed .post-card,
.member-page-fixed .album-card {
    background: rgba(10, 11, 10, 0.70);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.16);

    box-shadow: 0 0 28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .member-page-fixed {
        background-attachment: scroll;
    }
}

body.member-page.member-page-fixed {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.72)
        ),
        url("../assets/images/hero-bg.jpg") center top / cover no-repeat fixed !important;
}

body.member-page.member-page-fixed .member-bg {
    background: transparent !important;
    overflow: visible !important;
}

body.member-page.member-page-fixed .member-bg::before,
body.member-page.member-page-fixed .member-bg-overlay {
    display: none !important;
}

@media (max-width: 768px) {
    .member-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .login-hero {
        background-attachment: scroll;
    }
}

/* =========================
   Contacts page fixed background
========================= */

.contacts-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.65)
        ),
        url("../assets/images/contacts-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contacts-page .content {
    background: rgba(8, 8, 8, 0.62);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 140, 60, 0.18);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    padding: 40px 24px;
}

.contacts-page .contact-card {
    background: rgba(10, 11, 10, 0.72);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 140, 60, 0.18);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .contacts-page {
        background-attachment: scroll;
    }

    .contacts-page .content {
        border-radius: 0;
    }
}

/* Убираем чёрный фон нижней части главной */
body.home-page .club-section,
body.home-page .news {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* На всякий случай убираем фон у внутренних контейнеров */
body.home-page .club-section .container,
body.home-page .news .container {
    background: transparent !important;
}

/* Если чёрная полоса — это footer */
body.home-page .footer {
    background: rgba(8, 8, 8, 0.45) !important;
}

/* =========================
   Vehicles page fixed background
========================= */

.vehicles-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.70)
        ),
        url("../assets/images/vehicles-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* центральный контейнер */
.vehicles-page .content {
    background: rgba(8, 8, 8, 0.58);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.16);

    border-radius: 14px;

    box-shadow: 0 0 35px rgba(0,0,0,0.5);

    padding: 35px 24px;
}

/* блоки стран */
.vehicles-page .country-block {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* карточки техники */
.vehicles-page .vehicle-card {
    background: rgba(10, 11, 10, 0.82);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.14);

    box-shadow: 0 0 25px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
    .vehicles-page {
        background-attachment: scroll;
    }

    .vehicles-page .content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 35px 24px;
    }
}

/* FIX vehicles page: убрать большие плашки под странами */
body.vehicles-page .content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.vehicles-page .country-block {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* =========================
   Services page fixed background
========================= */

.services-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.68)
        ),
        url("../assets/images/services-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* убираем общую серую коробку */
.services-page .content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* стеклянные карточки */
.services-page .service-card,
.services-page .price-table-wrap {
    background: rgba(10, 11, 10, 0.74);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.16);

    box-shadow: 0 0 26px rgba(0, 0, 0, 0.45);
}

/* CTA блок */
.services-page .cta-button {
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
    .services-page {
        background-attachment: scroll;
    }
}

/* =========================
   Events page fixed background
========================= */

.events-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.42),
            rgba(0, 0, 0, 0.68)
        ),
        url("../assets/images/events-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* убираем большую серую коробку */
.events-page .content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* календарь */
.events-page .calendar-wrap {
    background: rgba(10, 11, 10, 0.76);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.16);

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

/* если есть карточки мероприятий */
.events-page .event-card {
    background: rgba(10, 11, 10, 0.74);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.14);

    box-shadow: 0 0 25px rgba(0,0,0,0.45);
}

@media (max-width: 768px) {
    .events-page {
        background-attachment: scroll;
    }
}

/* =========================
   Gallery page fixed background
========================= */

.gallery-page {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.72)
        ),
        url("../assets/images/gallery-bg.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* убираем общую коробку */
.gallery-page .content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* карточки галереи */
.gallery-page .event-card {
    background: rgba(10, 11, 10, 0.74);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.16);

    box-shadow: 0 0 26px rgba(0,0,0,0.45);
}

/* карточки фото внутри альбомов */
.gallery-page .media-item,
.gallery-page .video-card {
    background: rgba(10, 11, 10, 0.76);

    backdrop-filter: blur(4px);

    border: 1px solid rgba(180, 140, 60, 0.14);

    box-shadow: 0 0 24px rgba(0,0,0,0.42);
}

@media (max-width: 768px) {
    .gallery-page {
        background-attachment: scroll;
    }
}

.member-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.member-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 24px;

    background: linear-gradient(135deg, #c29b40, #f0c35a);
    color: #111;

    text-decoration: none;
    font-weight: 700;
    font-size: 16px;

    border-radius: 10px;

    transition: all 0.25s ease;

    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.member-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.45);

    background: linear-gradient(135deg, #d4ab49, #ffd36a);
}

.logout-btn {
    background: linear-gradient(135deg, #7a1f1f, #b33434);
    color: #fff;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #912525, #d64141);
}

.news-archive .news-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}

.news-archive-image {
    grid-row: 1 / span 4;
    width: 100%;
    height: 170px;
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.news-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

@media (max-width: 800px) {
    .news-archive .news-card {
        grid-template-columns: 1fr;
    }

    .news-archive-image {
        grid-row: auto;
        height: 220px;
    }
}

.news-archive .news-card.no-image {
    display: block;
}

.news-archive .news-card.no-image .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-archive .news-card.no-image .news-title {
    margin-bottom: 20px;
}

.news-archive .news-card.no-image .news-text {
    max-width: 760px;
    margin-bottom: 22px;
}

.header-top-metal {
    position: relative;
    height: 245px;
    padding: 30px 40px;
    background-image: url("../assets/images/header-metal-bg.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 245px;
    overflow: hidden;
}

.header-top-metal .header-logo {
    width: 200px;
    height: 180px;
    position: relative;
    z-index: 3;
}

.header-top-metal .header-logo img {
    max-height: 150px;
    width: auto;
}

.header-top-metal .header-title {
    position: relative;
    z-index: 3;

    padding: 0;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.header-top-metal .header-title-img {
    width: auto;
    height: 120px;

    max-width: none;
}

.header-lamp {
    display: block !important;
    position: absolute;
    top: -8px;
    width: 210px !important;
    height: auto;
    z-index: 10;
    pointer-events: none;
    filter:
        drop-shadow(0 0 22px rgba(255, 180, 70, .95))
        drop-shadow(0 0 60px rgba(255, 120, 30, .6));
    animation: headerLampFlicker 7s infinite;
}

.header-lamp-left {
    left: 20.5%;
}

.header-lamp-right {
    right: 20.5%;
}

@keyframes headerLampFlicker {
    0%, 100% { opacity: 1; }
    44% { opacity: .68; }
    46% { opacity: 1; }
    72% { opacity: .86; }
    74% { opacity: 1; }
}

@media (max-width: 900px) {
    .header-top-metal {
        height: 220px;
        padding: 22px 18px;
    }

    .header-top-metal .header-logo {
        width: 120px;
        height: 105px;
    }

    .header-top-metal .header-title {
        padding: 0;
    }

    .header-lamp {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-top {
        height: auto;
        min-height: 150px;
        padding: 18px 10px;
        display: grid;
        grid-template-columns: 70px 1fr 70px;
        align-items: center;
        gap: 10px;
    }

    .header-logo img {
        max-width: 64px;
        height: auto;
    }

    .header-title {
        text-align: center;
    }

    .header-title-img {
        max-width: 100%;
        height: auto;
    }

    .header-lamp {
        display: none;
    }

    .nav {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 10px;
        scrollbar-width: thin;
    }

    .nav a {
        flex: 0 0 auto;
        font-size: 13px;
        padding: 14px 10px;
    }
}

@media (max-width: 480px) {
    .header-top {
        grid-template-columns: 55px 1fr 55px;
        min-height: 120px;
    }

    .header-logo img {
        max-width: 52px;
    }

    .header-title-img {
        max-width: 210px;
    }

    .nav a {
        font-size: 12px;
        padding: 12px 9px;
    }
}

/* =========================
   FINAL MOBILE HEADER FIX
========================= */

@media (max-width: 768px) {
    .header-top-metal {
        height: auto !important;
        min-height: 125px !important;
        padding: 14px 10px !important;

        display: grid !important;
        grid-template-columns: 58px 1fr 58px !important;
        gap: 8px !important;
        align-items: center !important;

        background-size: cover !important;
        background-position: center center !important;
    }

    .header-top-metal .header-logo {
        width: 58px !important;
        height: 58px !important;
    }

    .header-top-metal .header-logo img {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        object-fit: contain !important;
    }

    .header-top-metal .header-title {
        width: 100% !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    .header-top-metal .header-title-img {
        width: 100% !important;
        max-width: 230px !important;
        height: auto !important;
        max-height: 72px !important;
        object-fit: contain !important;
    }

    .header-lamp {
        display: none !important;
    }

    .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap !important;
        padding: 8px 8px !important;
    }

    .nav a {
        flex: 0 0 auto !important;
        font-size: 13px !important;
        padding: 10px 9px !important;
    }
}

@media (max-width: 430px) {
    .header-top-metal {
        grid-template-columns: 48px 1fr 48px !important;
        min-height: 105px !important;
        padding: 12px 8px !important;
    }

    .header-top-metal .header-logo,
    .header-top-metal .header-logo img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .header-top-metal .header-title-img {
        max-width: 200px !important;
        max-height: 62px !important;
    }

    .nav a {
        font-size: 12px !important;
        padding: 9px 8px !important;
    }
}