/* ПримЛодка — Кастомные стили (ванильный CSS) */

/* === Базовые настройки === */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: transparent;
}

/* === Навигация === */
.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}
.mobile-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  backdrop-filter: blur(4px);
}
.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.icon-btn:active {
  transform: scale(0.95);
}

/* === Кнопки === */
.btn-primary {
  background-color: #FF6200;
  color: white;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  min-height: 3.25rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(255, 98, 0, 0.3);
  transition: background-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
@media (min-width: 640px) {
  .btn-primary {
    width: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    font-size: 1.125rem;
  }
}
.btn-primary:hover {
  background-color: #e55800;
}
.btn-primary:active {
  background-color: #cc4e00;
  box-shadow: 0 0 15px rgba(255, 98, 0, 0.5);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  color: white;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  min-height: 3.25rem;
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
  width: 100%;
}
@media (min-width: 640px) {
  .btn-secondary {
    width: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    font-size: 1.125rem;
  }
}
.btn-secondary:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.05);
}
.btn-secondary:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* === Карточки преимуществ === */
.advantage-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background-color 0.2s;
  min-height: 11rem;
}
@media (min-width: 768px) {
  .advantage-card {
    padding: 1.5rem;
    gap: 1rem;
    min-height: 12rem;
  }
}
.advantage-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.advantage-card:active {
  transform: scale(0.99);
}

/* === Футер ссылки === */
.footer-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #919498;
  transition: color 0.2s;
  text-transform: uppercase;
}
.footer-link:hover {
  color: #ffb59e;
}

/* === Мобильное меню - открытие === */
#mobile-menu:not(.hidden) {
  display: block;
}

/* === Анимации === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Утилиты для мобильных === */
@media (max-width: 640px) {
  /* Минимальная область нажатия 44×44px */
  button, a[href], [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Убираем задержку тапа */
  a, button {
    touch-action: manipulation;
  }
  
  /* Safe area для iPhone */
  @supports (padding: max(0px)) {
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
  }
}

/* === Скроллбар для таблицы === */
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}
.overflow-x-auto::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* === Доступность === */
:focus-visible {
  outline: 2px solid #FF6200;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* === Печать === */
@media print {
  header, footer, .btn-primary, .btn-secondary {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

/* === Фильтры моделей === */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: #FF6200;
  color: white;
  border-color: #FF6200;
}

.filter-btn:not(.active):hover {
  border-color: #FF6200;
}

/* === Карточки моделей === */
.model-card {
  display: flex;
  flex-direction: column;
}

.model-card.hidden {
  display: none;
}

/* === Анимация появления карточек === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-card {
  animation: fadeIn 0.4s ease-out;
}

/* === Production Timeline === */
/* Hover эффекты для изображений */
.production-step img {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.production-step:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Анимация появления шагов при скролле */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.production-step {
  animation: slideInUp 0.6s ease-out forwards;
}

/* Для мобильных уменьшаем отступы */
@media (max-width: 768px) {
  .production-step {
    margin-bottom: 1.5rem;
  }
}

/* === Glass Card Effect === */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 98, 0, 0.3);
}

/* === Анимация появления карточек === */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.glass-card {
  animation: fadeInScale 0.5s ease-out forwards;
}

/* Задержка для каскадного появления */
.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }
.glass-card:nth-child(5) { animation-delay: 0.5s; }
.glass-card:nth-child(6) { animation-delay: 0.6s; }

/* === Мобильная оптимизация === */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.25rem;
  }
  
  .glass-card h3 {
    font-size: 1.125rem;
  }
  
  .glass-card p {
    font-size: 0.875rem;
  }
}

/* === Поддержка старых браузеров (fallback) === */
@supports not (backdrop-filter: blur(20px)) {
  .glass-card {
    background: rgba(30, 31, 35, 0.9);
    border: 1px solid rgba(68, 70, 79, 0.5);
  }
}

/* === Review Cards === */
.review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  border-color: rgba(255, 98, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* === Анимация появления отзывов === */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInSlide 0.5s ease-out forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

/* === Мобильная оптимизация === */
@media (max-width: 768px) {
  .review-card .h-48 {
    height: 12rem;
  }
  
  .review-card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

/* === Звёзды рейтинга === */
.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-stars .material-symbols-outlined {
  font-size: 16px;
}

@media (min-width: 768px) {
  .rating-stars .material-symbols-outlined {
    font-size: 18px;
  }
}


/* === Glass Card (универсальный стиль) === */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 98, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* === Таблица гарантии === */
.warranty-table {
  border-collapse: collapse;
  width: 100%;
}

.warranty-table th,
.warranty-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.warranty-table th {
  background-color: rgba(52, 53, 57, 1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #919498;
}

.warranty-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* === Анимация появления секции === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#delivery .glass-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

#delivery .glass-card:nth-child(1) { animation-delay: 0.1s; }
#delivery .glass-card:nth-child(2) { animation-delay: 0.2s; }

/* === Мобильная оптимизация === */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.25rem;
  }
  
  .warranty-table th,
  .warranty-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .warranty-table .text-right {
    text-align: right;
  }
}

/* === Fallback для старых браузеров === */
@supports not (backdrop-filter: blur(20px)) {
  .glass-card {
    background: rgba(30, 31, 35, 0.95);
    border: 1px solid rgba(68, 70, 79, 0.5);
  }
}

/* === FAQ Accordion Styles === */
.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 98, 0, 0.3);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Анимация иконки +/- */
.faq-item summary .icon-plus {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.faq-item[open] summary .icon-plus {
  transform: rotate(90deg);
  opacity: 0;
}

/* Анимация контента */
.faq-item > div {
  animation: faqSlideDown 0.3s ease-out;
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Glass Card (универсальный) === */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Мобильная оптимизация === */
@media (max-width: 768px) {
  .faq-item summary {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-item > div {
    padding: 0 1rem 1rem;
    font-size: 0.9375rem;
  }
}

/* === Fallback для старых браузеров === */
@supports not (backdrop-filter: blur(20px)) {
  .glass-card,
  .faq-item {
    background: rgba(30, 31, 35, 0.95);
    border: 1px solid rgba(68, 70, 79, 0.5);
  }
}


/* === Form Inputs === */
.form-input {
  background-color: rgba(18, 19, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e3e2e7;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #afc6ff;
  box-shadow: 0 0 0 3px rgba(175, 198, 255, 0.2);
}

.form-input::placeholder {
  color: #8e909a;
}

/* === Submit Button === */
.btn-primary {
  background-color: #FF6200;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(255, 98, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === Glass Card (универсальный) === */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Анимация появления формы === */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#contact .glass-card {
  animation: fadeInScale 0.6s ease-out forwards;
}

/* === Мобильная оптимизация === */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.25rem;
  }
  
  .form-input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* === Уведомление об успешной отправке === */
.form-success {
  display: none;
  padding: 1rem;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  color: #86efac;
  text-align: center;
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* === Fallback для старых браузеров === */
@supports not (backdrop-filter: blur(20px)) {
  .glass-card {
    background: rgba(30, 31, 35, 0.95);
    border: 1px solid rgba(68, 70, 79, 0.5);
  }
}





