/* ==========================================================
   Базовые стили сайта о мотоциклах — МирМото
   Тёмная тема, акценты оранжевый/красный (#e94560)
   ========================================================== */

/* ===== CSS-переменные (тёмная тема) ===== */
:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #12121a;
  --color-bg-card: #1a1a2e;
  --color-bg-card-hover: #222240;
  --color-bg-overlay: rgba(0, 0, 0, 0.8);
  --color-accent: #e94560;
  --color-accent-hover: #ff6b81;
  --color-accent-dim: rgba(233, 69, 96, 0.15);
  --color-text: #e0e0e0;
  --color-text-light: #a0a0b0;
  --color-text-muted: #666680;
  --color-heading: #ffffff;
  --color-border: #2a2a3e;
  --color-error: #ff4444;
  --color-error-bg: rgba(255, 68, 68, 0.1);
  --color-success: #44cc88;
  --color-success-bg: rgba(68, 204, 136, 0.1);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 20px rgba(233, 69, 96, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;

  --header-height: 70px;
  --container-width: 1200px;
}

/* ===== Сброс и база ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Контейнер ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Заголовки секций ===== */
.section {
  padding: 100px 0;
}

.section__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ==========================================================
   HEADER / Шапка
   ========================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--header-height);
  transition: background var(--transition);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Логотип */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.header__logo-icon {
  flex-shrink: 0;
}

.header__logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: 1px;
}

/* Навигация */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.3px;
}

.header__nav-link:hover,
.header__nav-link:focus-visible {
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

/* Бургер-меню (кнопка) */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  z-index: 1001;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.header__burger:hover {
  background: var(--color-accent-dim);
}

.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Анимация бургера в крестик */
.header__burger.active .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.active .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   HERO / Главный экран
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__figure {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.6) 0%,
    rgba(10, 10, 15, 0.3) 50%,
    rgba(10, 10, 15, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
}

.hero__title {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--color-heading);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 2px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero__slogan {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero__btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #d63850);
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-accent), 0 8px 30px rgba(233, 69, 96, 0.4);
}

.hero__btn:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================
   ABOUT / О мотоциклах
   ========================================================== */
.about {
  background: var(--color-bg-alt);
}

.about__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about__article {
  background: var(--color-bg-card);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about__article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.about__subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.about__subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.about__text {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Список фактов */
.about__facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__fact {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.about__fact::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ==========================================================
   MODELS / Популярные модели (карточки)
   ========================================================== */
.models {
  background: var(--color-bg);
}

.models__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Карточка модели */
.model-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.model-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  border-color: var(--color-accent);
}

.model-card__figure {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #111;
}

.model-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.model-card:hover .model-card__img {
  transform: scale(1.1);
}

.model-card__body {
  padding: 24px;
}

.model-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.model-card__specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.model-card__spec {
  font-size: 0.88rem;
  color: var(--color-text-light);
  padding-left: 16px;
  position: relative;
}

.model-card__spec::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.model-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.model-card__btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

/* ==========================================================
   BRANDS / Бренды
   ========================================================== */
.brands {
  background: var(--color-bg-alt);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.brand-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.brand-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.brand-card__img {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
}

.brand-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.5px;
}

/* ==========================================================
   CONTACTS / Контакты и форма
   ========================================================== */
.contacts {
  background: var(--color-bg);
}

.contacts__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Информация слева */
.contacts__info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.contacts__info-text {
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contacts__info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contacts__icon {
  flex-shrink: 0;
}

/* Форма */
.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.3px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-dim);
  background: var(--color-bg-card-hover);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-muted);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

/* Стили ошибок формы */
.form__input.error,
.form__textarea.error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
  box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.1);
}

.form__input.error:focus,
.form__textarea.error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.2);
}

.form__error {
  font-size: 0.82rem;
  color: var(--color-error);
  min-height: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.form__error.visible {
  visibility: visible;
  opacity: 1;
}

.form__btn {
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #d63850);
  border: none;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
}

.form__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent), 0 8px 30px rgba(233, 69, 96, 0.4);
}

.form__btn:active {
  transform: translateY(0);
}

/* ==========================================================
   FOOTER / Подвал
   ========================================================== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer__wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.footer__copyright {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Социальные сети */
.footer__social {
  text-align: center;
}

.footer__social-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer__social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.footer__social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-accent);
  border-color: var(--color-accent);
}

.footer__social-link svg {
  transition: transform var(--transition);
}

.footer__social-link:hover svg {
  transform: scale(1.1);
}

.footer__contacts {
  text-align: right;
}

.footer__contact {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__contact:hover {
  color: var(--color-accent);
}

/* ==========================================================
   МОДАЛЬНОЕ ОКНО
   ========================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn var(--transition) ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.35s ease;
  padding: 40px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-light);
  background: var(--color-bg);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition), transform var(--transition);
  line-height: 1;
}

.modal__close:hover {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  transform: rotate(90deg);
}

.modal__content {
  color: var(--color-text);
}

/* Контент внутри модалки (через JS) */
.modal__content img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.modal__content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.modal__content .modal__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.modal__content .modal__specs li {
  padding-left: 20px;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.modal__content .modal__specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.modal__content .modal__desc {
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==========================================================
   TOAST-УВЕДОМЛЕНИЕ
   ========================================================== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast__message {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ==========================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ СЕКЦИЙ (scroll reveal)
   ========================================================== */

/* Базовое состояние — скрыты */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Видимое состояние */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Анимация с задержками для вложенных элементов */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Ключевые кадры ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================
   СКРОЛЛБАР (стилизация)
   ========================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ==========================================================
   ДЕСКТОП (≥1024px) — стили по умолчанию уже для десктопа
   ========================================================== */
@media (min-width: 1024px) {
  /* Всё уже настроено */
}

/* ==========================================================
   ПЛАНШЕТ (768px – 1023px)
   ========================================================== */
@media (max-width: 1023px) {
  .section {
    padding: 70px 0;
  }

  .section__title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* About — 2 колонки */
  .about__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Models — 2 колонки */
  .models__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Brands — 3 колонки */
  .brands__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Contacts — колонки друг под другом */
  .contacts__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer__wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer__contacts {
    text-align: center;
  }

  /* Hero */
  .hero__title {
    font-size: 3.2rem;
  }

  .hero__slogan {
    font-size: 1.1rem;
  }
}

/* ==========================================================
   МОБИЛЬНЫЕ (≤767px)
   ========================================================== */
@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }

  .section__title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .container {
    padding: 0 16px;
  }

  /* ===== Бургер-меню ===== */
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .header__nav.active {
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .header__nav-link {
    font-size: 1.2rem;
    padding: 14px 32px;
    width: 100%;
  }

  /* Hero */
  .hero__title {
    font-size: 2.4rem;
  }

  .hero__slogan {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero__btn {
    padding: 14px 36px;
    font-size: 0.95rem;
  }

  /* About — 1 колонка */
  .about__content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about__article {
    padding: 24px;
  }

  /* Models — 1 колонка */
  .models__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Brands — 2 колонки */
  .brands__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .brand-card {
    padding: 16px 12px;
  }

  /* Contacts */
  .contacts__wrapper {
    gap: 32px;
  }

  .form__btn {
    width: 100%;
    text-align: center;
  }

  /* Modal */
  .modal {
    padding: 28px 20px;
    margin: 10px;
  }

  /* Toast */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (≤400px)
   ========================================================== */
@media (max-width: 400px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .brands__grid {
    grid-template-columns: 1fr;
  }

  .brand-card__img {
    max-width: 120px;
  }
}
