body {
  font-family: "Inter", sans-serif;
  background-color: #fcfcfc; /* Very light gray, almost white */
  color: #1a1a1a; /* Very dark gray, almost black */
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.header-bg {
  background: linear-gradient(
    135deg,
    #1a1a1a 0%,
    #333333 100%
  ); /* Dark gray gradient */
  color: white;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.btn-primary {
  background-color: #ffd700; /* Yellow */
  color: #1a1a1a; /* Dark text for contrast */
  padding: 0.75rem 2rem;
  border-radius: 9999px; /* Pill shape */
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); /* Yellow shadow */
}
.btn-primary:hover {
  background-color: #e0c000; /* Slightly darker yellow on hover */
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: #e0e0e0; /* Light gray */
  color: #1a1a1a; /* Dark text */
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 500;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}
.btn-secondary:hover {
  background-color: #c0c0c0; /* Darker gray on hover */
  transform: translateY(-2px);
}
.card {
  background-color: white;
  border-radius: 1.5rem; /* More rounded */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
  padding: 2.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.section-title {
  color: #1a1a1a; /* Dark text for titles */
  font-weight: 700;
  font-size: 2.5rem; /* Larger titles */
  margin-bottom: 2.5rem;
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0; /* Lighter border */
}
th {
  background-color: #f0f0f0; /* Very light gray for table headers */
  font-weight: 600;
  color: #424242; /* Darker gray */
}
tr:last-child td {
  border-bottom: none;
}
.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #cccccc; /* Light gray border */
  border-radius: 0.75rem; /* More rounded */
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  background-color: #fafafa;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #ffd700; /* Yellow focus */
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.icon-lg {
  width: 48px;
  height: 48px;
  fill: #ffd700; /* Yellow for icons */
  margin-bottom: 1rem;
}
.quiz-container {
  background-color: #f5f5f5; /* Light gray for quiz */
  border-radius: 1.5rem;
  padding: 3rem;
  margin-top: 3rem;
  text-align: center;
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
}
.quiz-options button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 0.75rem;
  background-color: white;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  color: #1a1a1a; /* Dark text for options */
}
.quiz-options button:hover {
  background-color: #e0e0e0;
  border-color: #ffd700;
  transform: translateY(-2px);
}
.quiz-options button.selected {
  background-color: #ffd700; /* Yellow selected */
  color: #1a1a1a; /* Dark text on yellow */
  border-color: #ffd700;
}
.quiz-navigation button {
  margin: 0 0.5rem;
}
.model-card,
.service-card {
  background-color: white;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.model-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.model-card img {
  max-width: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 0.75rem;
}
.service-card svg {
  width: 60px;
  height: 60px;
  fill: #ffd700; /* Yellow for service icons */
  margin: 0 auto 1.5rem;
}
.footer-link-group h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f0f0f0;
}
.footer-link-group a {
  color: #b0b0b0;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.footer-link-group a:hover {
  color: white;
  text-decoration: underline;
}

/* FAQ Accordion Styles */
.faq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: #f8f8f8; /* Slightly darker than card background */
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 1px solid #e0e0e0;
}
.faq-item-header:hover {
  background-color: #f0f0f0;
}
.faq-item-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}
.faq-toggle-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  fill: #1a1a1a; /* Dark color for icon */
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}
.faq-item-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  padding: 0 1.5rem; /* Horizontal padding for content */
  background-color: white;
  border-radius: 0 0 0.75rem 0.75rem;
  border: 1px solid #e0e0e0;
  border-top: none;
}
.faq-item.active .faq-item-content {
  max-height: 500px; /* Increased from 200px to ensure full reveal */
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}
.faq-item-content p {
  padding-top: 0.5rem;
  color: #424242;
}

/* Yandex Map specific styles */
.yandex-map-container {
  width: 100%;
  height: 450px; /* Adjusted height for better visibility */
  border-radius: 1.5rem;
  overflow: hidden; /* Ensures border-radius applies to iframe */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.yandex-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  .grid-cols-1,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .text-5xl {
    font-size: 2.5rem;
  }
  .text-3xl {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .card {
    padding: 1.5rem;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
  }
  td {
    border: none;
    position: relative;
    padding-left: 45%; /* Adjust for data-label */
    text-align: right;
  }
  td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 1rem;
    font-weight: 600;
    text-align: left;
    color: #475569;
  }
  .quiz-container {
    padding: 2rem 1rem;
  }
  .quiz-options button {
    font-size: 1rem;
    padding: 0.75rem;
  }
  .model-card,
  .service-card {
    padding: 1.5rem;
  }
  .faq-item-header {
    padding: 1rem;
  }
  .faq-item-header h3 {
    font-size: 1rem;
  }
  .faq-item-content {
    padding: 0 1rem;
  }
  .yandex-map-container {
    height: 300px; /* Adjust height for mobile */
  }
}

/* Styles for metro line colors */
.metro-line-red { color: #EF372F; }
.metro-line-green { color: #4EB846; }
.metro-line-blue { color: #0099DD; }
.metro-line-light-blue { color: #00B1E6; }
.metro-line-brown { color: #8E4F2D; }
.metro-line-orange { color: #F79227; }
.metro-line-purple { color: #9D228A; }
.metro-line-yellow { color: #FFD700; }
.metro-line-gray { color: #959595; }
.metro-line-light-green { color: #BEE550; }
.metro-line-turquoise { color: #27B0B0; }
.metro-line-light-turquoise { color: #80D1F3; }
.metro-line-mcc { color: #DC2626; } /* Red for MCC text */
.metro-line-mcd { color: #004D99; } /* Darker blue for MCD text */

.metro-icon {
    display: inline-block;
    width: 1.2em; /* Adjust size as needed */
    height: 1.2em;
    margin-right: 0.5em;
    vertical-align: middle;
}