/* =============================================
   Flowerpedia — Футуристичный стиль (Киберпанк/Неон)
   ============================================= */

/* === Сброс и базовые настройки === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0d0d2b;
  --neon-blue: #00f0ff;
  --neon-pink: #ff00ff;
  --neon-purple: #b000ff;
  --neon-green: #00ff88;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(0, 240, 255, 0.3);
  --glass-shadow: rgba(0, 240, 255, 0.1);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --transition-speed: 0.3s;
  --transition-slow: 0.5s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Футуристичный фоновый паттерн — сетка в стиле Tron */
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--neon-pink);
}

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

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #fff;
}

/* === Particles Canvas === */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 3px;
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.3),
    0 0 20px rgba(0, 240, 255, 0.1);
}

/* === HEADER / HERO === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #fff;
  text-shadow:
    0 0 7px var(--neon-blue),
    0 0 10px var(--neon-blue),
    0 0 21px var(--neon-blue),
    0 0 42px var(--neon-blue),
    0 0 82px var(--neon-blue),
    0 0 92px var(--neon-blue),
    0 0 102px var(--neon-blue),
    0 0 151px var(--neon-blue);
  animation: flicker 3s infinite alternate;
  margin-bottom: 1.5rem;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 7px var(--neon-blue),
      0 0 10px var(--neon-blue),
      0 0 21px var(--neon-blue),
      0 0 42px var(--neon-blue),
      0 0 82px var(--neon-blue),
      0 0 92px var(--neon-blue),
      0 0 102px var(--neon-blue),
      0 0 151px var(--neon-blue);
  }
  20%, 24%, 55% {
    text-shadow:
      0 0 4px var(--neon-blue),
      0 0 7px var(--neon-blue),
      0 0 14px var(--neon-blue),
      0 0 28px var(--neon-blue),
      0 0 54px var(--neon-blue);
  }
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.hero-description {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-scroll-indicator {
  margin-top: 3rem;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
  color: var(--neon-blue);
  font-size: 1.8rem;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.hero-scroll-indicator a:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* === Основной контейнер === */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Секции === */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    0 0 7px rgba(0, 240, 255, 0.4),
    0 0 20px rgba(0, 240, 255, 0.2),
    0 0 40px rgba(0, 240, 255, 0.1);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.section-title span {
  color: var(--neon-blue);
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.6),
    0 0 30px rgba(0, 240, 255, 0.3),
    0 0 60px rgba(0, 240, 255, 0.15);
}

/* Декоративная линия под заголовком */
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-pink), transparent);
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.3),
    0 0 20px rgba(255, 0, 255, 0.15);
}

/* === Фильтры === */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-speed);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  border-color: var(--neon-blue);
  color: #fff;
  box-shadow:
    0 0 15px rgba(0, 240, 255, 0.2),
    0 0 30px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  border-color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.3),
    0 0 40px rgba(0, 240, 255, 0.15),
    inset 0 0 15px rgba(0, 240, 255, 0.05);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.filter-btn.active::before {
  display: none;
}

/* === Галерея === */
.flowers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* === Карточка цветка === */
.flower-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(30px);
  animation: cardAppear 0.5s ease forwards;
  position: relative;
}

.flower-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 240, 255, 0.1), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.flower-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flower-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.15),
    0 0 40px rgba(0, 240, 255, 0.08),
    0 0 60px rgba(0, 240, 255, 0.04),
    0 0 80px rgba(255, 0, 255, 0.03),
    inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.flower-card:hover::before {
  opacity: 1;
}

.flower-card-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 0, 255, 0.05));
  position: relative;
  overflow: hidden;
  transition: background var(--transition-slow);
}

.flower-card-image .flower-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flower-card:hover .flower-card-image {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 255, 0.08));
}

.flower-card-image::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.03), transparent, rgba(255, 0, 255, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
  animation: rotateGlow 6s linear infinite;
  pointer-events: none;
}

.flower-card:hover .flower-card-image::after {
  opacity: 1;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.flower-emoji,
.flower-img {
  font-size: 5rem;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
  transition: transform var(--transition-speed), filter var(--transition-speed);
  position: relative;
  z-index: 1;
}

.flower-img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1;
}

.flower-card:hover .flower-emoji {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 50px rgba(255, 0, 255, 0.3));
}

.flower-card:hover .flower-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 50px rgba(255, 0, 255, 0.3));
}

.flower-card-info {
  padding: 1.2rem;
}

.flower-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin-bottom: 0.6rem;
  transition: all var(--transition-speed);
}

.flower-card:hover .flower-category-tag {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.flower-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.flower-card-latin {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

.flower-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flower-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.difficulty-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}

.flower-card:hover .difficulty-badge {
  background: rgba(255, 255, 255, 0.08);
}

.difficulty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.difficulty-badge.easy .difficulty-dot {
  background: var(--neon-green);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

.difficulty-badge.medium .difficulty-dot {
  background: #ffaa00;
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.6);
}

.difficulty-badge.hard .difficulty-dot {
  background: var(--neon-pink);
  box-shadow: 0 0 6px rgba(255, 0, 255, 0.6);
}

/* === Модальное окно === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

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

.modal-overlay.closing {
  display: flex;
  animation: fadeOut 0.3s ease forwards;
}

.modal-overlay.closing .modal-window {
  animation: modalSlideOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

.modal-window {
  background: linear-gradient(135deg, #0d0d2b 0%, #1a0a2e 50%, #0a0a2a 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.15),
    0 0 60px rgba(0, 240, 255, 0.08),
    0 0 100px rgba(0, 240, 255, 0.04),
    0 0 120px rgba(255, 0, 255, 0.03),
    inset 0 0 30px rgba(0, 240, 255, 0.03);
  animation: modalSlideIn 0.3s ease;
  /* Неоновая рамка */
  border-color: rgba(0, 240, 255, 0.2);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.modal-window:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.2),
    0 0 60px rgba(0, 240, 255, 0.1),
    0 0 100px rgba(0, 240, 255, 0.05),
    0 0 120px rgba(255, 0, 255, 0.04),
    inset 0 0 30px rgba(0, 240, 255, 0.05);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  z-index: 10;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
  color: var(--neon-pink);
  transform: rotate(90deg);
  text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 255, 0.1);
  border-color: rgba(255, 0, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.modal-body {
  padding: 2rem;
}

.modal-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 0, 255, 0.05));
  border-radius: 12px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.modal-image::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.05), transparent, rgba(255, 0, 255, 0.05), transparent);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
}

.modal-emoji {
  font-size: 7rem;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.4)) drop-shadow(0 0 50px rgba(255, 0, 255, 0.2));
  animation: emojiPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes emojiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: 2px;
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.3),
    0 0 20px rgba(0, 240, 255, 0.15);
}

.modal-latin {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-characteristics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.char-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-speed);
}

.char-item:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.1),
    inset 0 0 10px rgba(0, 240, 255, 0.03);
  transform: translateX(3px);
}

.char-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.char-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.char-label {
  font-size: 0.7rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-blue);
  opacity: 0.8;
}

.char-value {
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  box-shadow:
    0 -10px 30px rgba(0, 240, 255, 0.03),
    0 -20px 60px rgba(255, 0, 255, 0.02);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-pink), transparent);
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.4),
    0 0 20px rgba(255, 0, 255, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-copyright span {
  color: var(--neon-blue);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition-speed);
  position: relative;
  padding-bottom: 2px;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-blue);
  transition: width var(--transition-speed);
  box-shadow: 0 0 5px var(--neon-blue);
}

.footer-link:hover {
  color: var(--neon-blue);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.footer-social a:hover::before {
  left: 100%;
}

.footer-social a:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow:
    0 0 15px rgba(0, 240, 255, 0.3),
    0 0 30px rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}

/* === Вспомогательные классы === */
.d-sm-none {
  display: inline;
}

@media (max-width: 767px) {
  .d-sm-none {
    display: none;
  }
}

/* === Адаптивность === */

/* Планшеты landscape и большие планшеты */
@media (max-width: 1199px) {
  .flowers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

/* Планшеты portrait */
@media (max-width: 991px) {
  .flowers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-characteristics {
    grid-template-columns: 1fr;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .flowers-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }

  .filters {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-window {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
    max-width: 100%;
    box-shadow: none;
  }

  .modal-body {
    padding: 1.2rem;
  }

  .modal-emoji {
    font-size: 5rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    letter-spacing: 3px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
    padding-top: 60px;
  }

  .flower-emoji {
    font-size: 3.5rem;
  }
}
