.falling-photo-wrapper {
    position: fixed;
    z-index: -1;
    top: -150px;
    pointer-events: none;
    animation: fall linear var(--animation-duration-long) forwards;
}

.falling-photo {
    width: 100%;
    height: auto;
    animation: combined-animation var(--animation-duration-long) linear infinite;
}

@keyframes combined-animation {
    0% { transform: translateY(-250px) translateX(20px); }
    25% { transform: translateY(15vh) translateX(-20px); }
    50% { transform: translateY(48vh) translateX(20px); }
    75% { transform: translateY(82vh) translateX(-20px); }
    100% { transform: translateY(120vh) translateX(20px); }
}

h1 > span {
    font-family: 'Mak', cursive;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.btn {
  font-weight: bold;
}

.wrapper__index {
    padding: var(--spacing-lg) var(--spacing-md);
}

.price-info {
    /* font-style: italic; */
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-md);
}

.glass-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}


form {
  display: flex;
  justify-content: center;
  margin: 2rem 0rem;
}

form input {
  padding: 1rem;
  border: 0.1rem solid var(--text-color);
  height: 77px;
}

form input[type="text"] {
    border-right: none;
    border-radius: 10px 0px 0px 10px;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: var(--font-size-lg);
    flex: 2;
    max-width: 50%;
    outline: none;
    transition: background 0.3s ease;
}

form input[type="text"]::placeholder {
  color: var(--accent-color);
  text-transform:none;
}

form input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.3);
}

form button[type="submit"] {
  padding: 1rem;
  font-size: var(--font-size-md);
  height: auto;
  border: 0.1rem solid var(--text-color);
  border-radius: 0px 10px 10px 0px;
  font-weight: bold;
  flex: 1;
  max-width: 30%;
  transition: background 0.3s ease;
}

form button[type="submit"]:hover {
  background: var(--border-color);
  color: var(--text-color);
}

.alert {
  font-size: var(--font-size-lg);
}

@keyframes levitate {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px); /* трохи піднімається */
  }
  100% {
    transform: translateY(0); /* повертається вниз */
  }
}

.design-img {
  position: absolute;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  width: 300px;
  height: 450px;
  animation: levitate 3s ease-in-out infinite;
}

.design-img_1 {
  top: 100px;
  left: 50px;
}

.design-img_2 {
  bottom: 100px;
  right: 50px;
}

.design-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   ↓↓↓ MERGED FROM index_new.css ↓↓↓
   Стилі нового першого екрану «Кузні спогадів»
   Цільовий екран: 1280×1024 (5:4), 19", touch-кіоск
   ============================================================ */

.wrapper__index_new {
    width: min(70vw, 760px);
    max-height: 92vh;
    padding: 3rem 3.6rem 2.6rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* ----- Лівітуючі фотострічки по боках ----- */
.float-strip {
    position: fixed;
    width: 13vw;
    max-width: 175px;
    min-width: 120px;
    height: auto;
    border-radius: 8px;
    border: 5px solid #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 1;
    animation: float-levitate 6s ease-in-out infinite;
    will-change: transform;
}

.float-strip--l1 { left: 1.5vw;  top: 6vh;    --rot: -8deg; animation-delay: 0s; }
.float-strip--l2 { left: 0.5vw;  bottom: 4vh; --rot:  6deg; animation-delay: -1.8s; }
.float-strip--r1 { right: 1.5vw; top: 5vh;    --rot:  7deg; animation-delay: -3.2s; }
.float-strip--r2 { right: 0.5vw; bottom: 6vh; --rot: -6deg; animation-delay: -4.6s; }

@keyframes float-levitate {
    0%   { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50%  { transform: rotate(var(--rot, 0deg)) translateY(-22px); }
    100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
}

/* ----- HERO ----- */
.hero { text-align: center; }

.hero h1 {
    font-size: 6rem;
    margin-bottom: 0.8rem;
    line-height: 1.05;
}

.hero h1 > span {
    font-family: 'Mak', cursive;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.brand-nowrap {
    display: inline-block;
    white-space: nowrap;
}

.hero__promise {
    font-size: 2.6rem;
    color: var(--accent-color);
    font-family: var(--font-secondary);
    line-height: 1.3;
    margin-top: 0.4rem;
}

.hero__promise strong {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.15em;
    white-space: nowrap;
}

.hero__sub-promise {
    font-size: 1.9rem;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-top: 0.6rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ----- ЦІНОВІ КАРТКИ ----- */
.prices {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 1.6rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.8rem 1.4rem 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
}

.price-card--highlight {
    background: linear-gradient(155deg, #fff3df 0%, #ffe0bf 100%);
    border: 2px solid var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(164, 90, 38, 0.28);
    padding-top: 2.6rem;
}

.price-card__badge {
    position: absolute;
    text-wrap-mode: wrap;
    top: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.price-card__title {
    font-size: 2.1rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.15;
}

.price-card--highlight .price-card__title { font-size: 2.4rem; }

.price-card__desc {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-family: var(--font-primary);
    line-height: 1.3;
    margin: 0;
}

.price-card__value {
    font-family: var(--font-secondary);
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin: 0;
}

.price-card__value span {
    font-size: 0.55em;
    font-weight: 600;
    margin-left: 0.2rem;
}

.price-card--highlight .price-card__value {
    color: #8a3d12;
    font-size: 4.4rem;
}

/* ----- Клікабельні картки вибору (друк своїх фото / фотосесія + друк) ----- */
.price-card--clickable {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
/* Неактивна, але клікабельна — пунктир натякає «можна обрати» */
.price-card--clickable:not(.price-card--active) {
    border-style: dashed;
}
.price-card--clickable:not(.price-card--active):hover,
.price-card--clickable:not(.price-card--active):active {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Підказка-пігулка внизу картки: «Натисни, щоб обрати» / «✓ Обрано» */
.price-card__choose {
    margin-top: 0.6rem;
    align-self: center;
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: rgba(164, 90, 38, 0.12);
    color: var(--primary-color);
    white-space: nowrap;
}
.price-card--active .price-card__choose {
    background: var(--primary-color);
    color: #fff;
}

/* Бейдж знижки над карткою «Друк своїх фото» — зелений, щоб впадав у око */
.price-card__badge--save {
    background: #2e7d32;
}

/* ----- ГОЛОВНИЙ CTA ----- */
.cta {
    display: flex;
    justify-content: center;
    margin-top: 0.6rem;
}

.btn-hero {
    font-size: 4rem;
    font-weight: 800;
    padding: 2.2rem 5.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c97c3f 100%);
    box-shadow: 0 10px 28px rgba(164, 90, 38, 0.4),
                0 0 0 4px rgba(255, 255, 255, 0.6) inset;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cta-pulse 2.6s ease-in-out infinite;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(164, 90, 38, 0.5),
                0 0 0 4px rgba(255, 255, 255, 0.6) inset;
    background: linear-gradient(135deg, #b8662e 0%, #d68a4a 100%);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(164, 90, 38, 0.40),
                            0 0 0 4px rgba(255, 255, 255, 0.6) inset; }
    50%      { box-shadow: 0 14px 36px rgba(164, 90, 38, 0.55),
                            0 0 0 4px rgba(255, 255, 255, 0.8) inset; }
}

/* ----- ПРОМОКОД (collapsible) ----- */
.promo {
    text-align: center;
    margin-top: -0.4rem;
}

.promo > summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--accent-color);
    text-decoration: underline dashed;
    text-underline-offset: 4px;
    display: inline-block;
    padding: 0.6rem 1rem;
}

.promo > summary::-webkit-details-marker { display: none; }
.promo > summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.2s ease;
}
.promo[open] > summary::before { transform: rotate(90deg); }

.promo form {
    display: flex;
    justify-content: center;
    margin: 1rem auto 0;
    max-width: 540px;
}

.promo input {
    padding: 1rem 1.2rem;
    border: 0.1rem solid var(--text-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: var(--font-size-md);
    flex: 2;
    outline: none;
    height: 60px;
}

.promo input::placeholder {
    color: var(--accent-color);
    text-transform: none;
}

.promo button[type="submit"] {
    padding: 1rem 1.4rem;
    font-size: var(--font-size-md);
    border: 0.1rem solid var(--text-color);
    border-radius: 0 10px 10px 0;
    font-weight: bold;
    flex: 1;
    max-width: 35%;
    height: 60px;
}

.promo button[type="submit"]:hover {
    background: var(--border-color);
    color: var(--text-color);
}

/* ----- ALERTS (для нового index — старі правила вище зберігаються) ----- */
.alerts { text-align: center; }

.alerts .alert {
    font-size: var(--font-size-md);
    padding: 0.8rem 1.4rem;
    border-radius: var(--border-radius-md);
    margin: 0.4rem auto;
    max-width: 90%;
}

.alerts .alert-success {
    background: rgba(0, 132, 9, 0.12);
    color: #065c08;
    border: 1px solid rgba(0, 132, 9, 0.3);
}

.alerts .alert-danger {
    background: rgba(199, 52, 52, 0.12);
    color: #7a1c1c;
    border: 1px solid rgba(199, 52, 52, 0.3);
}

/* ----- TRUST FOOTER ----- */
.trust {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-color);
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 0.2rem;
    opacity: 0.92;
}

/* ----- Адаптив під вузький екран ----- */
@media (max-aspect-ratio: 4/5) {
    .wrapper__index_new { width: 88vw; }
    .prices { grid-template-columns: 1fr; gap: 1.4rem; }
    .price-card--highlight { transform: none; order: -1; }
    .float-strip { display: none; }
    .hero h1 { font-size: 4.4rem; }
    .btn-hero { font-size: 3rem; padding: 1.6rem 3.8rem; }
}


/* ============================================================
   DEGRADED MODE: камера тимчасово недоступна
   Картка фотосесії — приглушена, бейдж сірий
   ============================================================ */
.price-card--disabled {
    background: rgba(220, 215, 205, 0.55) !important;
    border: 1px solid #b8b3a8 !important;
    box-shadow: none;
    opacity: 0.65;
    filter: saturate(0.35);
    pointer-events: none;
    padding-top: 2.6rem;
}

.price-card--disabled .price-card__title,
.price-card--disabled .price-card__desc,
.price-card--disabled .price-card__value {
    color: #6e6a62 !important;
}

.price-card--disabled .price-card__value {
    text-decoration: line-through;
    text-decoration-color: rgba(110, 106, 98, 0.6);
}

.price-card__badge--off {
    background: #8a8378 !important;
    color: #f0ece5 !important;
    box-shadow: 0 4px 10px rgba(80, 75, 68, 0.3) !important;
}


/* ============================================================
   PAPER FORMAT: "card" — фотокарточки замість стрічок
   - Лівітуючі приклади більші (бо карточки коротші пропорції)
   - Trust footer ховаємо
   - Промокод відкритий за замовчуванням (керується через open у HTML)
   ============================================================ */
body[data-paper="card"] .float-strip {
    width: 18vw;
    max-width: 350px;
}

body[data-paper="card"] .trust {
    display: none;
}


/* ============================================================
   Промо-форма ПЕРЕД CTA — щоб не була прихована екранною клавіатурою
   ============================================================ */
.promo--top {
    margin-top: -0.4rem;
    margin-bottom: -0.4rem;
}
