
/* ==================================
   MOBILE / TABLET RESPONSIVE
   ================================== */

@media (max-width: 768px) {

  html {
    overflow-x: clip;
  }

  body {
    width: 100%;
    overflow-x: clip;
  }

  /* Главный экран */
  .hero {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;

    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #0D0B0F;
  }

  .hero-content {
    padding: 8px;
  }

  .scroll-hint {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 6px 12px;
  }

  .hero::after {
    height: 25px;
  }

  /* Галерея */
  .gallery {
    min-height: auto;
    padding: 35px 12px 55px;
  }

  .gallery-title {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 8px;
  }

  .gallery-subtitle {
    font-size: 13px;
    margin-bottom: 25px;
  }

  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .photo-card {
    width: 100%;
    min-width: 0;
    padding: 6px;
    border-radius: 10px;
    align-self: stretch;
    transform: none;
  }

  .photo-card:nth-child(even),
  .photo-card:nth-child(odd) {
    transform: none;
    align-self: stretch;
  }

  .photo-card:hover {
    transform: none;
  }

  .photo-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 6px;
  }

  .photo-card p {
    margin: 10px 2px 6px;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  /* Финальный экран */
  .final-section {
    min-height: auto;
    padding: 65px 15px 75px;
  }

  .final-content {
    width: 100%;
    max-width: 100%;
  }

  .final-content h2 {
    font-size: clamp(25px, 6vw, 36px);
    line-height: 1.25;
    margin: 20px 0 25px;
  }

  .flower-box {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .flower-box h3 {
    font-size: 23px;
  }

  #flower-form {
    gap: 10px;
  }

  #flower-form label {
    padding: 14px;
    font-size: 14px;
  }

  #flower-form button {
    min-height: 50px;
    font-size: 20px;
  }

  .final-bottom {
    font-size: 13px;
    margin-top: 35px;
  }
}

/* Очень узкие телефоны */
@media (max-width: 380px) {

  .photo-gallery {
    gap: 8px;
  }

  .photo-card {
    padding: 4px;
  }

  .photo-card img {
    height: 165px;
  }

  .photo-card p {
    font-size: 11px;
  }

  .gallery {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Удобная реакция на касание */
@media (hover: none) {
  .photo-card:hover {
    transform: none;
  }

  .photo-card:active {
    filter: brightness(1.12);
  }
}
