@font-face {
  font-family: 'ALS Schlange Sans';
  src: url('assets/ALS Schlange Sans/alsschlangesans-thin.otf') format('opentype');
  font-weight: 100;
}
@font-face {
  font-family: 'ALS Schlange Sans';
  src: url('assets/ALS Schlange Sans/alsschlangesans-light.otf') format('opentype');
  font-weight: 300;
}
@font-face {
  font-family: 'ALS Schlange Sans';
  src: url('assets/ALS Schlange Sans/alsschlangesans.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'ALS Schlange Sans';
  src: url('assets/ALS Schlange Sans/alsschlangesans-bold.otf') format('opentype');
  font-weight: 700;
}
@font-face {
  font-family: 'ALS Schlange Sans';
  src: url('assets/ALS Schlange Sans/alsschlangesans-black.otf') format('opentype');
  font-weight: 900;
}

@font-face {
  font-family: 'TheArtistScript';
  src: url('MADE TheArtist Script PERSONAL USE.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: rgb(255,252,234);
  --green: rgb(79,115,57);
  --green-dark: rgb(84,115,66);
  --brown: rgb(56,47,42);
  --gray: rgb(74,74,73);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #FFFCEA;
  font-family: 'ALS Schlange Sans', sans-serif;
  color: var(--brown);
  -webkit-font-smoothing: antialiased;
}

.sans   { font-family: 'ALS Schlange Sans', sans-serif; }
.serif  { font-family: 'Cormorant Garamond', 'Times New Roman', serif; }
.script { font-family: 'TheArtistScript', cursive; font-style: italic; }


h1, h2, h3 {
    font-weight: 500;
    color: var(--green);
}


.container {
    max-width: 450px;
    padding: 0 20px;
    margin:  0 auto;

}

main {
    background: var(--bg);
    overflow: hidden;
    max-width: 450px;
    margin:  0 auto;
}

/* ============ BOX 1 — HERO ============ */

.hero--wrapper {
    max-width: 450px;
    margin:  0 auto;
}

.hero {
    position: relative;
    width: 100%;
    height: 507px;
    overflow: hidden;
}
.hero-bg {
    width: 100%; height:  100%;
    background:
    url('assets/hero.png') center/cover no-repeat;
}
.hero-names {
    position: absolute;
    left: 0; right: 0; top: 310px;
    margin: 0 auto;
    width: 185px; height: 273px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'TheArtistScript', cursive;
    -webkit-text-stroke: 0.4px white;
    font-size: 64px;
}
.hero-names .name { display: block; line-height: 1.05; }
.hero-names .amp  { font-size: 64px; line-height: 1; margin: -5px 0; }

.play-btn {
    position: absolute;
    right: 10px; top: 430px;
    width: 60px; height: 60px;
}
.play-btn .ring {
    position: absolute;
    left: 13.5px; top: 11.5px;
}
.play-btn .triangle {
    position: absolute;
    left: 24px; top: 20px;

}

section {
    padding: 50px 0;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 37px;
    color: var(--green);
    white-space: pre-line;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-text {
    font-family: ALS Schlange sans, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;

}

.script-text {
    font-family: 'TheArtistScript', cursive;
    font-size: 70px;
    -webkit-text-stroke: 0.4px var(--green);
    color: var(--green);
    display: block;
    line-height: 100%;
}



/* ============ BOX 2 — Дорогие родные ============ */

.box2 {
    position: relative;
    .section-text {
        max-width: 235px;
    }

    .pic {
        position: absolute;
        right: -15px;
        top: 110px;
        width: 95px; height: 200px;
        border-radius: 0 0 0 84px;
        background: url('assets/f1.png') center/cover no-repeat;
        transform: rotate(-5.5deg);
    }

    .script-text {
        position: relative;
        top: -15px;
    }
}


/* ============ BOX 3 — Место и время ============ */
.box3 {
    position: relative;
    .pic1 {
        position: absolute;
        left: -37px;
        top: 85px;
        width: 97px;
        height: 130px;
        border-radius: 0 0 215px 0;
        background: url(assets/f2.png) 0 -25px / cover no-repeat;
        transform: rotate(-7deg);
    }

    .pic2 {
        position: absolute;
        right: -25px;
        top: 410px;
        width: 55px; height: 92px;
        border-radius: 0 0 107px 0;
        background: url('assets/f3.png') center/cover no-repeat;
        transform: rotate(-12deg);
    }

    .section-title {
        margin-bottom: 60px;
        text-align: center;
    }

}



.events {
    padding: 0 10px;

    .content {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: stretch;
    }

    .left,
    .right  {
        display: flex;
        flex-direction: column;
        gap: 45px;
    }
}


.events .content .date {
  width: 107px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  line-height: 34px;
  color: var(--green);
  white-space: pre-line;
  flex-shrink: 0;
}
.events .content .meta {
  padding-left: 22px;
}
.events .content .meta .place-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.events .content  .meta .time {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--green);
}

.events .content  .meta .dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: url('assets/f4.png') center/cover no-repeat;
    flex-shrink: 0;
}
.events .content .meta.meta-2 .dot {
    background: url('assets/f5.png') center/cover no-repeat;

}
.events .content .meta .label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--green);
}
.events .content  .meta .addr {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.15;
    color: var(--brown);
    white-space: pre-line;
}

.events .vline {
    width: 1px; height: 220px;
    background: var(--gray);
        flex-shrink: 0;
}
.events .addr-full {
    text-align: center;
    font-size: 17px;
    line-height: 1.2;
    color: var(--green);
    margin-top: 70px;
}

a {
    text-decoration: none;
}




/* ============ Buttons ============ */
.btn {
    height: 70px;
    padding: 23px;
    width: 330px;
  border-radius: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
    transition: all 0.3s ease-in-out;

}
.btn.outline {
    background: url("assets/dashed.png") no-repeat;
    background-size: 100% 100%;
  color: var(--green);
}
.btn.solid {
  background: var(--green);
  color: var(--bg);
}
.events .btn-map { margin: 26px auto 0; }
.events .btn-go  { margin: 10px auto 0; }

/* ============ BOX 4 — Дресс-код ============ */
.box4 {
  position: relative;
  overflow: hidden;

    .top {
        display: flex;
        gap: 21px;
        align-items: flex-end;

        .right {
            flex: 1;
        }
    }

    .pic {
        width: 64px; height: 170px;
        border-radius: 0 42px 0 0;
        background: url('assets/f6.png') center/cover no-repeat;
    }
}




.box4 .colors {
  margin-top: 40px;
  display: flex;
  gap: 15px;
    justify-content: center;
  align-items: center;
}
.heart {
  width: 50px; height: 63px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

    &:first-child {
        svg {
            path {
                stroke: #547342;
            }
        }
    }
}

/* ============ BOX 5 — Пожелания ============ */
.box5 {
  position: relative;

    .content {
        display: flex;
        flex-direction: column;
        gap: 45px;

        .section-text {
            &:nth-child(1) {
                max-width: 260px;
            }

            &:nth-child(2) {
                align-self: flex-end;
                text-align: end;
                max-width: 261px;
            }
            max-width: 277px;
        }
    }

    .leaf {
        width: 10px; height: 13px;
        color: var(--green);
    }
}


.box5 .pic1 {
    position: absolute;
    right: -15px;
    top: 45px;
    width: 114px;
    height: 190px;
    transform: rotate(-3deg);
    transform-origin: top left;

     img {
         width: 100%;
         height: 100%;
     }
}
.box5 .pic2 {
  position: absolute;
  left: -15px; top: 230px;
  width: 101px; height: 106px;
  background: url('assets/f8.png') center/cover no-repeat;
}


/* ============ BOX 6 — Анкета ============ */
.box6 {
  position: relative;
  text-align: center;

    .section-text {
        max-width: 280px;
        margin:  0 auto;
    }
}



.box6 .iris {
  display: block;
  margin: 18px auto 0;
  width: 64px; height: 60px;
}
.box6 .btn-fill {
  margin: 10px auto 0;
}

/* ============ Inline anketa form ============ */
.anketa-inline {
  display: none;
}
.anketa-inline.active {
  display: block;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-step {
  display: none;
  margin-top: 32px;
}
.form-step.visible {
  display: block;
  animation: stepIn 0.45s ease forwards;
}

.form-q {
  font-size: 20px;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 16px;
}
.form-thanks {
  font-size: 22px;
  line-height: 1.4;
  color: var(--green);
  text-align: center;
  padding: 16px 0 32px;
}

.step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  margin-top: 30px;
  border-radius: 60px;
  background: var(--green);
  color: var(--bg);
  border: none;
  font-size: 19px;
  cursor: pointer;
}
.step-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

section.box7 {
    padding: 50px 0  0;
}


/* ============ BOX 7 — Countdown ============ */
.box7 {

  position: relative;
  text-align: center;


    .section-title {
        margin-bottom: 0;
    }
}

.box7 .script-title {
  font-family: 'TheArtistScript', cursive;
  font-size: 57.5px;
  color: var(--brown);
    -webkit-text-stroke: 0.4px var(--brown);

}

.box7 .secs {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.sec {
  width: 55px;
  text-align: center;
}
.sec .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  color: var(--green);
}
.sec .lbl {
  margin-top: 8px;
  font-family: 'TheArtistScript', cursive;
  font-size: 30px;
  color: var(--brown);
    -webkit-text-stroke: 0.4px var(--brown);

}

.box8 {
    max-width: 450px;
    margin: 0 auto;
    display: flex;

    img {
        width: 100%;
    }
}

/* ============ Form shared ============ */
.form-group {
  margin-top: 16px;
}
.form-input {
  width: 100%;
  height: 39px;
  border-radius: 20px;
    border: none;
  background: transparent;
  padding: 0 20px;
  font-family: inherit;
  font-size: 16px;
  color: rgba(0,0,0,0.85);
  outline: none;
}
.form-input::placeholder { color: rgba(0,0,0,0.7); }

.yesno {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-content {
    display: flex;
    gap: 4px;

    img {
        width: 36px;
        height: 72px;
    }
}

.step-note {
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    max-width: 350px;
    margin-bottom: 45px;
    color: #4F7339;
    font-weight: 500;
    font-size: 18px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: black;
  cursor: pointer;
  user-select: none;
}
.heart-check       { width: 30px; height: 38px; flex-shrink: 0; }
.heart-check.small { width: 18px; height: 23px; }

.form-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.form-options.col1            { grid-template-columns: 1fr; }
.form-options .check-row      { font-size: 13px; line-height: 1.25; }
.form-options.col1 .check-row { font-size: 12px; }

.drink-sub {
  display: none;
  margin-top: 14px;
}
.drink-sub.visible {
  display: block;
  animation: stepIn 0.35s ease forwards;
}
.form-q-sub {
  font-size: 14px;
  color: var(--brown);
  margin-bottom: 8px;
  margin-top: 12px;
  opacity: 0.8;
}

/* ============ Scroll reveal ============ */
.box2, .box3, .events, .box4, .box5, .box6, .box7 {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.box2.revealed, .box3.revealed, .events.revealed,
.box4.revealed, .box5.revealed, .box6.revealed, .box7.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Play button pause state ============ */
.play-btn.playing {
    .pause {
        display: block;
    }

    .play {
        display: none;
    }
}

.play-btn {
    .pause {
        display: none;
    }

    .play {
        display: block;
    }
}

input[type="text"] {
    background: url("assets/dashed2.png") no-repeat;
    background-size: 100% 100%;
}

.check-row {
    span:last-child {
        max-width: 250px;
    }
}

#step-allergy {
    .top {
        position: relative;
    }

    img {
        position: absolute;
        right: -20px;
        top: -33px;
        height: 95px;
    }
}

.d-none {
    display: none;
}

.form-q {
    max-width: 300px;
}

#step-attend {
    margin-top: 0;
}

/* ============ Heart toggle states ============ */
.check-row input[type="checkbox"],
.check-row input[type="radio"]          { display: none; }
.check-row .heart-check .filled         { display: none; }
.check-row.checked .heart-check .empty  { display: none; }
.check-row.checked .heart-check .filled { display: block; }
