/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding: 0 16px 40px;
  text-align: center;
}

.hero__title {
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.hero + .section {
  position: relative;
  z-index: 2;
  background: var(--ivory);
}

.hero-line {
  opacity: 0;
  transform: translateY(18px);
  transition: all 900ms cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}

.hero-line.active {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .hero {
    min-height: 460px;
  }

  .hero__title {
    font-size: 40px;
  }
}

.hero__title span {
  display: block;
}

/* ================= INTRO ================= */
.intro {
  text-align: center;
  margin-top: 60px;
  padding: 0 20px;
}

.intro-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

/* IMAGE */
.image-box {
  border-radius: 20px;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT */
.text-secondary {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* HEADINGS */
.heading-md {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .heading-md {
    font-size: 34px;
  }
}

.content-text {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;

  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .content-text {
    padding-left: 0;
    padding-right: 0;
  }
}


.mb-sm {
  margin-bottom: 16px;
}

.mt-sm {
  margin-top: 16px;
}

.mt-md {
  margin-top: 24px;
}

.card-padding {
  padding: 32px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* більше простору зверху */
.container-narrow.section-fade {
  margin-top: 32px;
}

/* більше простору під формою */
.form-card {
  margin-bottom: 48px;
  padding: 40px;
  gap: 28px;
}

.form-actions {
  justify-content: stretch;
}

.form-actions .btn-full {
  width: 100%;
  max-width: none;
}

.btn-full {
  width: 100%;
  max-width: none;
}

.form-input {
  padding: 14px 16px;
  border-radius: 12px;
}




.image-smooth img {
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}

.image-smooth:hover img {
  transform: scale(1.05);
}

/* ================= STORY GRID ================= */

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 0.9fr 1.1fr; /* 🔥 баланс */
    gap: 64px;
  }
}

/* IMAGE */

.story-image {
  max-width: 420px; /* 🔥 ГОЛОВНЕ — менша картинка */
  width: 100%;
  margin: 0 auto;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  display: block;

  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* TEXT */

.story-text {
  max-width: 520px;
}

.story-text p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}