/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Montserrat:wght@400;500&display=swap");

/* CSS Variables */
:root {
  --bg: #121212;
  --card: #191919;
  --stroke: #242424;
  --text: #fff;
  --muted: #757575;
  --accent: #9DC21B;
  --ink: #000;
  --header-h: 60px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --container: 1840px;
  --pad-x: 40px;
}

/* Overrides to ensure Services dropdown is visible on mobile */
@media (max-width: 768px) {
  .topbar-row .nav-pills { display: flex !important; gap: 8px; flex-wrap: nowrap; }
  .topbar-row .nav-pills .dropdown { display: inline-flex !important; }
  .topbar-row .nav-pills .dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--accent) !important; /* вернуть рамку */
    background: transparent !important;
    color: #fff !important;
    padding: 10px 16px 11px !important; /* стандартные отступы как у pill */
    height: 38px;
    white-space: nowrap;
  }
  .topbar-row .nav-pills .dropdown-toggle .chev { display: none !important; }
  /* скрыть иконку списка на мобильных, чтобы освободить место */
  .topbar-row img[src$="icons/spisok.svg"] { display: none !important; }
  #registerLink { display: none !important; }
  /* Hide "Обмен криптовалюты" link on mobile (points to index.html) */
  .topbar-row .nav-pills a.pill[href$="index.html"] { display: none !important; }
}

/* Base Resets & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0 0 .5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Layout */
.container {
  max-width: var(--container);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 24px;
}

/* Header */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  height: 60px;
  background: #121212;
  border-bottom: 1px solid var(--accent);
}

/* For pages with sticky header, add top padding to body to account for fixed header */
.has-sticky-header {
  padding-top: 60px;
}

/* Additional top padding for main content */
.has-sticky-header main {
  padding-top: 24px;
}
.topbar-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  height: 32px;
  width: auto;
}
.nav-pills {
  display: flex;
  gap: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 10px 16px 11px;
  border-radius: 12px;
  text-decoration: none;
  font: 500 14px/17px 'Montserrat', sans-serif;
}
.pill .i {
  width: 14px;
  height: 14px;
}

/* Exchange icon should match pill text color */
.pill--ghost img[src="icons/exchange.svg"] {
  filter: brightness(0) saturate(100%) invert(76%) sepia(36%) saturate(389%) hue-rotate(36deg) brightness(91%) contrast(88%);
}

/* When pill is primary (active), exchange icon should be dark */
.pill--primary img[src="icons/exchange.svg"] {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}
.pill--primary {
  background: var(--accent);
  color: var(--ink);
}
.pill--ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.pill--ghost.auth {
  margin-left: auto;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font: 400 14px/17px 'Montserrat', sans-serif;
  transition: all 0.2s ease-in-out;
}
.dropdown-item:hover {
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  display: block;
  width: 100%;
}
.custom-select-button {
  height: 52px;
  padding: 12px 40px 12px 16px;
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--stroke);
  color: var(--text);
  font: 400 14px/17px 'Montserrat', sans-serif;
  outline: none;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.custom-select-button:after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}
.custom-select-button:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(157, 194, 27, 0.2);
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font: 400 14px/17px 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-height: 48px;
}
.custom-select-option:hover,
.custom-select-option.selected {
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}
.bank-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}
.custom-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 32px !important;
}
.custom-select-button .bank-logo {
  width: 28px;
  height: 28px;
}

/* Page Content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-title {
  font: 500 24px/29px 'Inter', sans-serif;
  margin: 24px 0 16px;
}

/* Form Card */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 16px;
}
.tab {
  flex: 1;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--card);
  color: #a9b1bc;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.2s ease-in-out;
}
.tab img {
  width: 20px;
  height: 20px;
  filter: invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transition: filter 0.2s ease-in-out;
}
.tab.is-active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.tab.is-active img {
  filter: brightness(0) saturate(100%);
}

/* Form Fields */
.input,
.select {
  height: 42px;
  padding: 12px 16px;
  width: 100%;
  border-radius: var(--radius-md);
  background: #000; /* dark fields globally */
  border: 1px solid var(--stroke);
  color: #fff;
  font: 400 14px/17px 'Montserrat', sans-serif;
  outline: none;
}
.input::placeholder {
  color: var(--muted);
}
.input:focus {
  background: #000;
}
/* Prevent autofill from turning fields white/yellow */
input.input:-webkit-autofill,
input.input:-webkit-autofill:hover,
input.input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px #000 inset;
}
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(157, 194, 27, 0.2);
  outline: none;
}
/* spacing between auth pills */
.auth + .auth { margin-left: 8px; }
.select option {
  background: var(--card) !important;
  color: var(--text) !important;
  padding: 8px 12px;
}
.select option:hover,
.select option:focus,
.select option:checked,
.select option[selected] {
  background: var(--accent) !important;
  background-color: var(--accent) !important;
  color: var(--ink) !important;
}
.select option:active {
  background: var(--accent) !important;
  color: var(--ink) !important;
}

/* Additional select customization for better browser support */
.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
}

/* Firefox specific option styling */
@-moz-document url-prefix() {
  .select option {
    background: var(--card);
    color: var(--text);
  }
  .select option:hover {
    background: var(--accent) !important;
    color: var(--ink) !important;
  }
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.row.two .input,
.row.two .select,
.row.two .custom-select {
  flex: 1;
}
.field-title {
  font: 500 14px/17px 'Montserrat', sans-serif;
  margin-bottom: 10px;
}
.field-box {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 12px;
  font: 500 14px/17px 'Montserrat', sans-serif;
}
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.rate .value {
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.rate-timer {
  font: 400 11px/13px 'Montserrat', sans-serif;
  color: var(--accent);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rate-timer .timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.rate-display {
  font: 500 14px/17px 'Montserrat', sans-serif;
  color: var(--accent);
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}


.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 12px/15px 'Montserrat', sans-serif;
  cursor: pointer;
}
.checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox.checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: 10px;
  font-weight: bold;
}
.checkbox:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(157, 194, 27, 0.2);
}

/* Wrapper for agree checkbox and link */
.agree-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}

.agree-wrapper .agree {
  margin: 0;
  gap: 8px;
}

/* Links for agreements */
.agree-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
  font: 400 12px/15px 'Montserrat', sans-serif;
  transition: color 0.2s ease;
  cursor: pointer;
}

.agree-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Legacy support for old structure */
.agree a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.agree a:hover {
  color: #fff;
  text-decoration: none;
}
.cta {
  width: 100%;
  height: 50px;
  padding: 16px;
  background: var(--accent);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-sm);
  font: 500 14px/17px 'Montserrat', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}
.cta:hover {
  background: #8AAA18;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(157, 194, 27, 0.3);
}
.cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(157, 194, 27, 0.2);
}
.cta-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%);
  transition: filter 0.2s ease-in-out;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 445px 1fr;
  gap: 16px;
  align-items: start;
}
.faq-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-btn {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  font: 400 14px/17px 'Montserrat', sans-serif;
  transition: all 0.2s ease-in-out;
}
.faq-btn.primary {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
  background: linear-gradient(90deg, #191919 0%, rgba(25, 25, 25, 0) 100%);
}

/* Mobile: keep FAQ 'how' question in a single line and make FAQ buttons narrower */
@media (max-width: 768px) {
  .faq-left { align-items: center; }
  .faq-btn, .faq-btn.primary, .faq-btn.is-primary { 
    width: 100%; 
    max-width: 360px; 
    height: 48px;
    padding-left: 12px; 
    padding-right: 12px; 
    padding-top: 8px;
    padding-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
  }
  .faq-btn[data-key="how"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Make tabs and key field boxes shorter by height on mobile */
  .tabs { gap: 12px; }
  .tab { height: 40px; padding: 6px 12px; }
  .tab img { width: 18px; height: 18px; }

  .field-box.give-section,
  .field-box.receive-section { padding: 12px; gap: 12px; }

  /* Reduce spacing below field titles on mobile */
  .field-title { margin-bottom: 6px; }
}

#faqText {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--accent);
  font-size: 14px;
  background: linear-gradient(90deg, #191919 0%, rgba(25, 25, 25, 0) 100%);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  min-height: 208px; /* Matches height of two buttons + gap */
}

/* Footer */
.footer {
  border-top: 1px solid var(--accent);
  margin-top: auto;
  padding: 24px 0 28px;
  background: var(--bg);
}
.footer .container {
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sep {
  height: 1px;
  background: #fff;
  border-radius: 5px;
  margin: 16px 0;
}
.title {
  font: 500 16px/20px 'Montserrat', sans-serif;
  margin-bottom: 8px;
}
.footer-grid a {
  display: block;
  margin-bottom: 4px;
}
.copy {
  margin-top: 16px;
}
/* Нижняя строка футера: слева копирайт, по центру соглашение, справа AML */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom .copy { flex: 1 1 200px; text-align: left; }
.footer-bottom .agreement.center { flex: 1 1 200px; text-align: center; }
.footer-bottom .agreement.right { flex: 1 1 200px; text-align: right; }
.footer-bottom a { color: #fff; text-decoration: underline; }
.footer-bottom a:hover { text-decoration: none; }
@media (max-width: 768px) {
  .footer-bottom .copy,
  .footer-bottom .agreement.center,
  .footer-bottom .agreement.right { flex: 1 1 100%; text-align: center; }
}

/* Mobile footer tweaks: hide section titles and tighten link spacing */
@media (max-width: 768px) {
  .footer .title { display: none !important; }
  .footer-grid { gap: 4px !important; text-align: center; }
  .footer-grid a.link { display: inline-block !important; margin: 0 10px 6px 0 !important; }

  /* Footer bottom: agreements on one row (smaller font), copy at the bottom */
  .footer-bottom { justify-content: center; }
  .footer-bottom .agreement { 
    flex: 0 0 auto; 
    font-size: 12px; 
    line-height: 1.2; 
    margin: 0 8px; 
    white-space: nowrap; 
  }
  .footer-bottom .copy { 
    order: 2; 
    flex: 1 1 100%; 
    text-align: center; 
    font-size: 12px; 
    margin-top: 6px; 
  }
}

/* Accessibility Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;

/* Concierge Page Styles */
.concierge-page .page-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--muted, #999);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 20px;
  margin: 0 auto 64px auto;
  padding: 0 20px;
  width: 100%;
  max-width: 1000px;
}

.category-card {
  background: var(--bg-primary, #111);
  border: 1px solid var(--stroke, #333);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(157, 194, 27, 0.2);
  border-color: var(--accent);
}

.category-card .car-info {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 12px;
  line-height: 1.3;
}

.category-desc {
  color: var(--muted, #999);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.category-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(157, 194, 27, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(157, 194, 27, 0.2);
  display: inline-block;
}

.services-table {
  margin-bottom: 48px;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-primary, #111);
  border: 1px solid var(--stroke, #333);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.price-table thead {
  background: linear-gradient(135deg, var(--accent), #8fbc34, #7c3aed);
  position: relative;
}

.price-table thead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #8fbc34 50%, #7c3aed 100%);
  opacity: 0.9;
}

.price-table thead th {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.price-table thead th:first-child {
  text-align: left;
}

.price-table tbody tr {
  border-bottom: 1px solid var(--stroke, #333);
  transition: all 0.3s ease;
  position: relative;
}

.price-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(157, 194, 27, 0.08), rgba(157, 194, 27, 0.03));
  transform: scale(1.01);
  box-shadow: 0 4px 16px rgba(157, 194, 27, 0.1);
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

.price-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.price-table td {
  padding: 16px 24px;
  color: var(--text-primary, #fff);
  border-right: 1px solid var(--stroke, #333);
  position: relative;
}

.price-table td:last-child {
  border-right: none;
}

.price-table td:first-child {
  font-weight: 500;
  max-width: 400px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-table td:first-child::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(157, 194, 27, 0.6);
}

.price-table td:not(:first-child) {
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-size: 1.05rem;
}

.price-table td:not(:first-child):hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent);
}

.price-table thead th:first-child {
  border-top-left-radius: 16px;
}

.price-table thead th:last-child {
  border-top-right-radius: 16px;
}

/* Special pricing styles */
.price-table td[colspan] {
  background: linear-gradient(90deg, rgba(157, 194, 27, 0.1), rgba(124, 58, 237, 0.1));
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

/* Category separators */
.price-table tbody tr.category-separator {
  background: linear-gradient(90deg, rgba(157, 194, 27, 0.2), rgba(124, 58, 237, 0.1));
  font-weight: 700;
}

.price-table tbody tr.category-separator td {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
}

/* Desktop strict grid */
@media (min-width: 1025px) {
  .categories-grid {
    grid-template-columns: repeat(4, 220px);
    grid-auto-rows: 180px;
    justify-content: center;
    max-width: none;
    width: auto;
  }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
    max-width: 700px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 16px;
    padding: 0 10px;
    margin-bottom: 48px;
    max-width: 100%;
  }
  
  .category-card .car-info {
    padding: 20px;
  }
  
  .category-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .category-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .category-desc {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .category-count {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 120px;
    gap: 12px;
  }
  
  .category-card .car-info {
    padding: 16px;
  }
  
  .category-icon {
    font-size: 2rem;
  }
  
  .category-title {
    font-size: 0.9rem;
  }
  
  .services-table {
    margin: 0 -20px;
  }
  
  .price-table {
    font-size: 0.85rem;
  }
  
  .price-table thead th {
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  .price-table td {
    padding: 10px 16px;
  }
  
  .price-table td:first-child {
    max-width: 250px;
    font-size: 0.8rem;
    gap: 8px;
  }
  
  .price-table td:first-child::before {
    width: 6px;
    height: 6px;
  }
  
  .price-table tbody tr.category-separator td {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
  
  .price-table tbody tr:hover {
    transform: none;
  }
}

/* Unified header and title styles across all pages */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.page-title {
  margin: 0 0 16px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}
@media (max-width: 768px) {
  .page-header { margin: 16px 0 16px; justify-content: center; text-align: center; gap: 8px; }
  .page-header > * { margin-left: auto; margin-right: auto; }
  .page-title { font-size: 22px; line-height: 26px; margin-bottom: 6px; text-align: center; }
}

/* Force concierge page to use unified title/header sizing */
.concierge-page .page-title { 
  font-size: 24px !important; 
  line-height: 29px !important; 
  background: none !important; 
  -webkit-text-fill-color: initial !important;
}
.concierge-page .page-header { 
  margin: 24px 0 !important; 
  padding: 0 !important; 
  text-align: left !important; 
}
@media (max-width: 768px) {
  .concierge-page .page-title { font-size: 22px !important; line-height: 26px !important; text-align: center !important; }
  .concierge-page .page-header { margin: 16px 0 20px !important; text-align: center !important; justify-content: center !important; }
}
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Services Page Styles */
.service-description {
  color: var(--text);
  line-height: 1.5;
}

.service-description p {
  margin: 0 0 12px;
  color: var(--accent);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.service-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid var(--stroke);
}

.service-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feature-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.message-input {
  min-height: 100px;
  resize: vertical;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 16px;
}

/* FAQ Content Updates for Services Page */
#faqText h3 {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
}

#faqText ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#faqText ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
  line-height: 1.5;
}

#faqText ul li:last-child {
  border-bottom: none;
}

#faqText strong {
  color: var(--accent);
}

/* Agreement Page Styles */
.agreement-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* Mobile header tweaks: hide registration button and ensure services dropdown is visible */
@media (max-width: 768px) {
  #registerLink { display: none !important; }
  .nav-pills .dropdown { display: inline-block !important; }
}

.agreement-content h1 {
  font: 700 32px/38px 'Montserrat', sans-serif;
  color: var(--accent);
  margin-bottom: 32px;
  text-align: center;
}

.agreement-content h2 {
  font: 600 24px/30px 'Montserrat', sans-serif;
  color: var(--accent);
  margin: 32px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.agreement-content h3 {
  font: 600 20px/26px 'Montserrat', sans-serif;
  color: var(--accent);
  margin: 24px 0 12px;
}

.agreement-content p {
  margin: 16px 0;
  color: var(--text);
  text-align: justify;
}

.agreement-content strong {
  color: var(--accent);
  font-weight: 600;
}

.agreement-content a {
  color: var(--accent);
  text-decoration: underline;
}

.agreement-content a:hover {
  text-decoration: none;
}

.agreement-date {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
  text-align: center;
}

.agreement-date p {
  margin: 0;
  font-size: 16px;
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 1280px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .agreement-content {
      padding: 24px 16px;
      margin: 16px;
    }
    
    .agreement-content h1 {
      font-size: 28px;
      line-height: 34px;
    }
    
    .agreement-content h2 {
      font-size: 22px;
      line-height: 28px;
    }
}

@media (max-width: 768px) {
  .agreement-content {
    margin: 8px;
    padding: 16px 12px;
  }
  
  .agreement-content h1 {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 24px;
  }
  
  .agreement-content h2 {
    font-size: 20px;
    line-height: 26px;
    margin: 24px 0 12px;
  }
  
  .agreement-content p {
    text-align: left;
  }
}

/* Debit Cards Page Styles */
.cards-page-content {
  position: relative;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}


.cards-banner {
  position: relative;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto 64px auto;
  text-align: center;
}

.banner-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
}

.cards-showcase {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0 auto;
  text-align: center;
}

.cards-showcase-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px;
  margin-bottom: 48px;
  padding: 0 24px;
}

.card-item {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.2s ease;
}

.card-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(157, 194, 27, 0.15);
}

.card-visual {
  margin-bottom: 24px;
  text-align: center;
}

.card-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.card-title {
  font: 600 20px/24px 'Montserrat', sans-serif;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-description {
  margin-bottom: 24px;
}

.card-description p {
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-term {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}

.card-cta {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  font: 500 14px/17px 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-cta:hover {
  background: #8AAA18;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(157, 194, 27, 0.3);
}


/* Responsive Design for Cards Page */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .cards-banner {
    max-width: 100%;
    margin: 0 auto 48px auto;
  }
  
  .cards-showcase {
    max-width: 100%;
    margin: 0 auto 0 auto;
  }
}

@media (max-width: 768px) {
  .cards-page-content {
    padding: 0 16px;
  }
  
  .card-item {
    padding: 20px;
  }
  
  .cards-banner {
    max-width: 100%;
    margin: 0 auto 32px auto;
  }
  
  .cards-showcase {
    max-width: 100%;
    margin: 0 auto 0 auto;
  }
  
  .cards-showcase-image {
    max-width: 100%;
  }
  
  .cards-grid {
    margin-bottom: 32px;
  }
}


@media (max-width: 768px) {
  :root {
    --pad-x: 8px;
  }
  .left {
    gap: 12px;
  }
  .logo {
    height: 28px;
  }
  .nav-pills, .pill .chev {
    display: none;
  }
   .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .agreement {
    position: static;
    display: block;
    text-align: center;
    margin-top: 16px;
  }
}

/* Cards Offers Styles */
.cards-offers {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.card-offer {
  flex: 1;
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.card-offer:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(157, 194, 27, 0.15);
}

.offer-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.offer-title-special {
  font-family: 'Inter' !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: 24px !important;
  line-height: 29px !important;
  display: flex;
  align-items: center;
  color: #FFFFFF !important;
  margin-bottom: 24px;
}

.offer-description-special {
  font-family: 'Inter' !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 22px !important;
  color: #757575 !important;
  margin-bottom: 32px;
}

.offer-description-special p {
  font-family: 'Inter' !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 22px !important;
  color: #757575 !important;
  margin-bottom: 0;
}

.card-offer-special {
  flex: none;
  width: auto;
  max-width: 500px;
  padding: 24px;
  align-self: flex-start;
}

.offer-description {
  margin-bottom: 32px;
}

.offer-description p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.offer-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
}

.offer-button {
  width: 100%;
  background: var(--accent);
  color: var(--ink);
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.offer-button:hover {
  background: #8AAA18;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(157, 194, 27, 0.4);
}

/* Responsive styles for cards offers */
@media (max-width: 1024px) {
  .cards-offers {
    flex-direction: column;
    gap: 32px;
    margin: 0 auto 60px auto;
  }
  
  .card-offer {
    padding: 28px;
  }
  
  .offer-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .cards-offers {
    padding: 0 16px;
    margin: 0 auto 48px auto;
    gap: 24px;
  }
  
  .card-offer {
    padding: 24px;
  }
  
  .offer-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .offer-description p {
    font-size: 15px;
  }
  
  .offer-price {
    font-size: 20px;
  }
  
  .offer-button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Car Rental Page Styles */
.rental-subtitle {
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}
@media (max-width: 768px) {
  .rental-subtitle {
    font-size: 14px;
    text-align: center;
    margin-bottom: 14px;
  }
}

/* Concierge subtitle */
.concierge-subtitle {
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}
@media (max-width: 768px) {
  .concierge-subtitle { font-size: 14px; text-align: center; margin-bottom: 14px; }
}

@media (max-width: 768px) {
  .car-rental-page.has-sticky-header main { padding-top: 8px !important; }
  .car-rental-page .page-header { margin: 4px 0 !important; padding: 0 !important; gap: 4px !important; }
  .car-rental-page .page-title { margin: 0 !important; }
  .car-rental-page .currency-switcher { margin: 0 !important; }
  .car-rental-page .currency-toggle { margin: 0 !important; }
}

.rental-banner {
  position: relative;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto 64px auto;
  text-align: center;
}

.cars-showcase {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0 auto;
  text-align: center;
}

.cars-showcase-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.cars-offers {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.car-offer {
  flex: 1;
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.car-offer:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(157, 194, 27, 0.15);
}

/* Rental Info Section */
.rental-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.info-block {
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.info-block:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(157, 194, 27, 0.1);
}

.info-block h3 {
  font-family: 'Inter' !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  margin-bottom: 20px !important;
  line-height: 1.3;
}

.info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-block li {
  font-family: 'Inter' !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.info-block li:before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive styles for car rental */
@media (max-width: 1024px) {
  .cars-offers {
    flex-direction: column;
    gap: 32px;
    margin: 0 auto 60px auto;
  }
  
  .rental-info {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 auto 40px auto;
  }
  
  .cars-showcase {
    margin: 0 auto 24px auto;
  }
}

@media (max-width: 768px) {
  .cars-offers {
    padding: 0 16px;
    margin: 0 auto 48px auto;
    gap: 24px;
  }
  
  .car-offer {
    padding: 24px;
  }
  
  .rental-info {
    padding: 0 16px;
    gap: 20px;
  }
  
  .info-block {
    padding: 24px;
  }
  
  .info-block h3 {
    font-size: 18px !important;
  }
  
  .info-block li {
    font-size: 15px !important;
  }
  
  .cars-showcase {
    margin: 0 auto 16px auto;
  }
}

/* SVG Blocks Container Styles */
.svg-blocks-container {
  max-width: 1400px;
  margin: 60px auto 80px auto;
  padding: 0 20px;
  text-align: center;
}

.svg-blocks-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.svg-blocks-row:last-child {
  margin-bottom: 0;
}

.svg-block {
  flex: 1;
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.svg-block:hover {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(157, 194, 27, 0.3));
}

/* Интерактивные элементы внутри SVG */
.svg-block text {
  transition: fill 0.3s ease, font-size 0.3s ease;
}

/* Анимация для цены при наведении */
.svg-block:hover .price {
  fill: #FFE135 !important;
  font-size: 28px !important;
}

/* Анимация фона блока при наведении */
.svg-block rect {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.svg-block:hover rect {
  fill: #8AB018 !important;
  stroke: #FFE135;
  stroke-width: 2;
}

/* Responsive styles for SVG blocks */
@media (max-width: 1200px) {
  .svg-blocks-row {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .svg-block {
    flex: 0 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .svg-blocks-container {
    margin: 32px auto 48px auto;
    padding: 0 16px;
  }
  
  .svg-blocks-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .svg-block {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* Page Header with Currency Switcher */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.currency-switcher {
  display: flex;
  align-items: center;
  gap: 15px;
}

.currency-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}

.currency-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  overflow: hidden;
}

.currency-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn:hover {
  color: var(--text);
  background: rgba(157, 194, 27, 0.1);
}

.currency-btn.active {
  background: var(--accent);
  color: var(--ink);
}

.currency-btn.active:hover {
  background: var(--accent);
  color: var(--ink);
}

/* Car Rental Cards Styles */
.car-cards-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.car-cards-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.car-cards-row:last-child {
  margin-bottom: 0;
}

/* Car Card Styles */
.car-card {
  position: relative;
  width: 290px;
  height: 340px;
  border: 1px solid #242424;
  border-radius: 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(157, 194, 27, 0.2);
}

/* Car Info Section */
.car-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  gap: 5px;
  height: 100px;
  background: #191919;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #242424;
  border-radius: 12px;
  margin: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Overlay for better text readability */
.car-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

/* Car Text Container */
.car-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 2;
}

/* Clickable Gallery */
.clickable-gallery {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clickable-gallery:hover {
  transform: scale(1.02);
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-in-out;
}

.gallery-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gallery-img:hover {
  opacity: 0.9;
}

.gallery-info {
  padding: 20px;
  text-align: center;
  background: var(--card);
}

.gallery-info h3 {
  margin: 0 0 10px 0;
  color: var(--text);
  font-size: 24px;
}

.gallery-info p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.gallery-counter {
  margin-top: 15px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.gallery-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: var(--text);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.gallery-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  pointer-events: all;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.car-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #FFFFFF;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.car-model {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  color: #FFFFFF;
  width: 100%;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Pricing Table */
.pricing-table {
  flex: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 17px;
  margin: 6px 0;
}

.period {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 17px;
  color: #757575;
}

.price {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  text-align: right;
  color: #FFFFFF;
}

/* Separator Lines */
.separator {
  width: 100%;
  height: 1px;
  background: #242424;
  border-radius: 5px;
  margin: 6px 0;
}

/* Action Button */
.action-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px 16px 12px;
  height: 40px;
  background: #9DC21B;
  border-radius: 8px;
  margin: 0 20px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.action-button:hover {
  background: #8AB018;
}

.action-button span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
}

/* Responsive Design */
/* Mobile font tweaks for car cards: prevent wraps and shrink text */
@media (max-width: 768px) {
  .car-brand, .car-model {
    font-size: 14px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pricing-row { height: 17px; }
  .period, .price {
    font-size: 12px;
    white-space: nowrap;
  }
  .action-button span {
    font-size: 13px;
    line-height: 16px;
    white-space: nowrap;
  }
}

@media (max-width: 1200px) {
  .car-cards-row {
    gap: 24px;
  }
  
  .car-card {
    width: calc(50% - 12px);
    max-width: 290px;
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .currency-switcher {
    flex-direction: column;
    gap: 10px;
  }
  
  .currency-label {
    font-size: 14px;
  }
  
  .car-cards-container {
    margin: 30px auto;
    padding: 0 16px;
  }
  
  .car-cards-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .car-card {
    width: calc(50% - 8px);
    max-width: none;
  }
}

@media (max-width: 400px) {
  .car-card {
    width: calc(50% - 8px);
    max-width: none;
  }
  
  .car-info {
    padding: 11px 40px;
  }
}

/* Car rental page: minimize margins and padding around cards on mobile */
@media (max-width: 768px) {
  .car-rental-page .car-cards-container { margin: 8px auto !important; padding-left: 6px !important; padding-right: 6px !important; }
  .car-rental-page .car-cards-row { gap: 12px !important; margin-bottom: 12px !important; }
  .car-rental-page .car-info { margin: 12px !important; padding: 10px !important; }
}
@media (max-width: 400px) {
  .car-rental-page .car-info { padding: 8px 12px !important; }
}

/* Concierge page: align mobile spacings with car-rental */
@media (max-width: 768px) {
  .concierge-page.has-sticky-header main { padding-top: 8px !important; }
  .concierge-page .page-header { margin: 4px 0 !important; padding: 0 !important; gap: 4px !important; }
  .concierge-page .page-title { margin: 0 !important; }
  .concierge-page .categories-grid { margin: 8px auto 0 !important; gap: 10px !important; padding: 0 6px !important; width: 100% !important; box-sizing: border-box !important; }
  .concierge-page .services-list { padding: 10px !important; gap: 10px !important; overflow-x: hidden !important; }
  .concierge-page .calculator-container { padding: 8px !important; width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; box-sizing: border-box !important; }
  .concierge-page .category-calculator { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }
  .concierge-page .tour-calculator { width: 100% !important; max-width: 100% !important; gap: 4px !important; }
  .concierge-page .description-box { min-width: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .concierge-page .price-box { flex: 0 0 60px !important; }
}

/* Global mobile minimal spacing adjustments */
@media (max-width: 768px) {
  :root { --pad-x: 6px; }
  html, body { overflow-x: hidden !important; }
  .has-sticky-header main { padding-top: 8px; }
  .container, main.container { max-width: 100% !important; width: 100% !important; padding-left: var(--pad-x); padding-right: var(--pad-x); box-sizing: border-box; }
  .grid { gap: 8px; }
  .form-card { gap: 12px; }
  .row { gap: 10px; }
  .field-box { padding: 10px; gap: 10px; }
  .tabs { gap: 8px; }
  .tab { height: 36px; padding: 4px 10px; }
  .footer { padding: 12px 0 14px; }
  .sep { margin: 8px 0; }
  .footer-bottom { gap: 8px; }

  /* Extra-compact spacing for the homepage only */
  .home-page .grid { gap: 8px; }
  .home-page .form-card { gap: 10px; }
  .home-page .field-box { padding: 8px; gap: 8px; }
  .home-page .field-title { margin-bottom: 4px; }
  .home-page .input, .home-page .select { height: 38px; padding: 10px 12px; }
  .home-page .custom-select-button { height: 46px; padding: 10px 36px 10px 12px; }
  .home-page .agree-wrapper { gap: 4px; margin: 4px 0; }
  .home-page .cta { height: 44px; padding: 12px; }
  .home-page .rate { gap: 4px; margin: 4px 0 8px; }
  .home-page .faq-grid { gap: 10px; }
  .home-page .faq-btn { height: 72px; padding: 12px; }
  .home-page #faqText { padding: 12px; min-height: 160px; line-height: 1.35; }
}
