
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0D0B0F;
  color: #F4E7E9;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}



.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;

  background-image: url("../images/hero/hero.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #0D0B0F;
}


.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
}

.scroll-hint {
  color: #F4E7E9;
  font-size: 15px;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px #000;
  animation: float 2s ease-in-out infinite;
}

.gallery {
  min-height: 100vh;
  padding: 100px 10%;
  text-align: center;
  background: #0D0B0F;
}

.gallery h2 {
  color: #ED91B0;
  font-size: 48px;
  margin-bottom: 20px;
}

.gallery p {
  color: #BCA8B3;
  font-size: 18px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}



/* Галерея */
.gallery {
  min-height: auto;
  padding: 65px 5%;
  background: #070707;
  text-align: center;
}

.gallery-title {
  color: #ED91B0;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 10px;
}

.gallery-subtitle {
  color: #BCA8B3;
  font-size: 16px;
  margin-bottom: 35px;
}

/* Плотная сетка из 8 фотографий */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1450px;
  margin: 0 auto;
}

.photo-card {
  min-width: 0;
  padding: 9px;
  background: #1A151C;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:nth-child(even) {
  align-self: auto;
  transform: none;
}

.photo-card:nth-child(odd) {
  align-self: auto;
  transform: none;
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px #ED91B02B;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 7px;
}

.photo-card p {
  margin-top: 12px;
  color: #F4E7E9;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

/* Ноутбуки */
@media (max-width: 1100px) {
  .photo-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Планшеты */
@media (max-width: 700px) {
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-card img {
    height: 230px;
  }
}

/* Телефоны */
@media (max-width: 430px) {
  .gallery {
    padding: 50px 15px;
  }

  .photo-card {
    padding: 5px;
  }

  .photo-card img {
    height: 190px;
  }

  .photo-card p {
    font-size: 12px;
  }
}

.photo-card p {
  margin: 14px 4px 6px;
  color: #F4E7E9;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Финальный экран */
.final-section {
  min-height: 100vh;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 45%, #392032 0%, transparent 65%),
    #0D0B0F;
  text-align: center;
}

.final-content {
  width: 100%;
  max-width: 720px;
}

.final-label {
  color: #ED91B0;
  letter-spacing: 4px;
  font-size: 13px;
}

.final-content h2 {
  margin: 25px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: #F4E7E9;
}

.final-intro {
  color: #BCA8B3;
  font-size: 17px;
  margin-bottom: 45px;
}

.flower-box {
  padding: 35px;
  background: #211820;
  border: 1px solid #4B3043;
  border-radius: 22px;
  box-shadow: 0 20px 80px #0005;
  
}

.flower-icon {
  font-size: 48px;
  margin-bottom: 18px;
}

.flower-box h3 {
  color: #F4D7E4;
  font-size: clamp(23px, 3vw, 32px);
  margin-bottom: 30px;
}

.flower-description {
  margin: 12px 0 28px;
  color: #BCA8B3;
}

#flower-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

#flower-form label {
  padding: 15px 18px;
  background: #30212D;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#flower-form label:hover {
  background: #4B3043;
  transform: translateX(5px);
}

#flower-form input[type="radio"] {
  accent-color: #ED91B0;
  margin-right: 10px;
}

.flower-other {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #80546B;
  background: #171019;
  color: white;
  font: inherit;
}

.flower-other[hidden] {
  display: none;
}

#flower-form button {
  margin-top: 15px;
  padding: 17px;
  border: none;
  border-radius: 12px;
  background: #ED91B0;
  color: #1B1017;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

#flower-form button:hover {
  background: #FFB4D0;
  transform: scale(1.02);
}

.form-message {
  text-align: center;
  color: #ED91B0;
  font-size: 14px;
}

.final-bottom {
  margin-top: 50px;
  color: #ED91B0;
  font-size: 15px;
}

@media (max-width: 600px) {
  .final-section { padding: 65px 15px; }
  .flower-box { padding: 23px 17px; }
}

/* Плавный переход от обложки к галерее */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    #0D0B0F
  );
  pointer-events: none;
}

.gallery {
  position: relative;
  padding-top: 55px;
  background:
    radial-gradient(
      ellipse at 50% 10%,
      rgba(237, 145, 176, 0.07),
      transparent 55%
    ),
    #0D0B0F;
}

/* Улучшаем оформление фотографий */
.photo-card {
  overflow: hidden;
  background: #191319;
  border: 1px solid rgba(237, 145, 176, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.photo-card:hover {
  box-shadow:
    0 20px 55px rgba(237, 145, 176, 0.18);
}

.photo-card p {
  padding: 0 5px 5px;
  font-size: 15px;
  line-height: 1.5;
}

/* Улучшаем финальную форму */
.flower-box {
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.35),
    0 0 55px rgba(237, 145, 176, 0.06);
}
