@font-face {
    font-family: 'Heather Script Two';
    src: url('../fonts/HeatherScriptTwo.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poiret One';
    src: url('../fonts/PoiretOne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select, button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    background-clip: padding-box;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: currentColor;
    transition: background-color 999999s ease-in-out 0s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

img {
    display: block;
    max-width: 100%;
}

/* Гасим горизонтальный вылет крупных имён в hero без создания скролл-контейнера */
html, body { overflow-x: clip; }

body {
    font-size: 35px;
    line-height: 140%;
    color: #1A1A1A;
    font-family: 'Poiret One';
    position: relative;
}

body.loading {
    overflow: hidden;
    height: 100%;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Heather Script Two', cursive;
    font-weight: 400;
    font-style: normal;
    color: #1A1A1A;
}
h1, .h1 { font-size: 147px; line-height: 90%; }
h2, .h2 { font-size: 64px; line-height: 100%; }

#silk-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: block;
    pointer-events: none;
    background: #ebe0d1a6;
}
body.animate #silk-canvas { z-index: -1; }

.all_page {
    background: linear-gradient(to bottom, transparent 130px, rgba(235,224,209,0.65) 230px, rgba(235,224,209,0.65));
}

.btn {
    height: 52px;
    line-height: 50px;
    text-align: center;
    border-radius: 100px;
    background: #D6C4AE;
    border: 1px solid #D6C4AE;
    color: #000;
    text-decoration: none;
    letter-spacing: 1.6px;
    padding: 0 10px;
    display: block;
    transition: 0.3s;
    font-size: 18px;
    flex: 1;
    cursor: pointer;
    font-family: 'Poiret One';
}
.btn:hover { background: #e3cfb7; }
.btn--outline { background: #fff; }

.container {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 630px;
}

/* Hero */
.section.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 50px;
    padding-bottom: 200px;
    box-sizing: border-box;
}
.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    height: calc(100vh - 250px);
    min-height: fit-content;
    max-height: 650px;
}
.hero__names {
    text-align: left;
    max-width: 100%;
    margin: 0 -10px 30px;
    opacity: 0;
    transition: 1s;
    padding: 0 10px;
}
body.animate .hero__names { opacity: 1; }
.hero__names span.hero__names-word { display: block; }
.hero__names span.hero__names-word2 {
    display: block;
    width: 100%;
    padding-left: 70px;
    white-space: nowrap;
}
.hero__date {
    font-family: 'Heather Script Two', cursive;
    font-size: 100px;
    line-height: 100%;
    margin-bottom: 33px;
    opacity: 0;
    transition: none;
    padding: 0 10px;
}
.hero__phrase {
    font-size: 46px;
    line-height: 140%;
    color: #2F2F2F;
    opacity: 0;
    transition: none;
}
body.animate .hero__date { animation: fadeIn 1s ease-out 1s forwards; }
body.animate .hero__phrase { animation: fadeIn 2s ease-out 1s forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Подсказка «Листайте» над карточкой key-info */
.section.hero .scroll-hint {
    position: absolute;
    left: 50%; bottom: 125px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #1A1A1A;
    pointer-events: none;
    opacity: 0;
}
body.animate .section.hero .scroll-hint { animation: fadeIn 2s ease-out 2s forwards; }
.section.hero .scroll-hint__label {
    font-family: 'Poiret One', sans-serif;
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
}
.section.hero .scroll-hint__arrow {
    width: 16px; height: 16px;
    animation: scrollHintBob 1.9s ease-in-out infinite;
}
@keyframes scrollHintBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .section.hero .scroll-hint__arrow { animation: none; }
}

/* Key info — первая карточка наезжает на hero */
.all_page > .section.key-info:first-child {
    margin-top: -130px;
    opacity: 0;
    transition: none;
}
body.animate .all_page > .section.key-info:first-child {
    animation: fadeIn 2s ease-out 2s forwards;
}

.glass {
    border-radius: 30px;
    background: #FFFCF299;
    backdrop-filter: blur(23.2px);
    padding: 5px;
}
.key-info__details {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    text-align: center;
    padding: 10px;
}
.key-info__details.key-info__details--style-2 {
    flex-wrap: wrap;
    justify-content: center;
}
.key-info__item { min-width: 100px; }
.key-info__label {
    display: block;
    font-family: 'Heather Script Two', cursive;
    font-size: 60px;
    line-height: 60px;
}
.key-info__value {
    margin-top: 10px;
    font-size: 30px;
    line-height: 100%;
}
.key-info__item--place { width: 100%; }
.key-info__address {
    display: block;
    font-size: 22px;
    line-height: 130%;
    margin-top: 8px;
    color: #5a4a3a;
}
.key-info__map-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}
.btn--map {
    height: 44px;
    line-height: 42px;
    font-size: 16px;
    padding: 0 18px;
    flex: 0 1 auto;
    min-width: 150px;
}

/* Timer */
.timer_title {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.timer {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}
.timer__block {
    text-align: center;
    width: 110px;
}
.timer__number { font-size: 55px; line-height: 100%; display: block; }
.timer__label  { font-size: 22px; text-transform: uppercase; display: block; text-align: center; }

/* Invitation text */
.invitation-text {
    margin-top: 70px;
    text-align: center;
}
.invitation-text h2 { margin-bottom: 40px; }

/* Calendar + timeline */
.calendar { margin-top: 60px; }
.calendar .glass { padding: 30px; }
.calendar h2 { text-align: center; }
.calendar__dates-row {
    display: flex;
    margin-top: 50px;
    gap: 35px;
    justify-content: center;
    padding-bottom: 40px;
}
.calendar__date-item {
    width: 70px;
    text-align: center;
    font-size: 48px;
    line-height: 100%;
    position: relative;
    z-index: 2;
}
.calendar__date-item.is-event {
    padding-left: 20px;
    padding-right: 20px;
    width: 110px;
    position: relative;
}
.calendar__date-item.is-event:before {
    content: '';
    display: block;
    position: absolute;
    left: 50%; top: 50%;
    width: 124px; height: 110px;
    background: url('../img/heart_date.svg') no-repeat center center;
    transform: translate(-50%, -40%);
}
.calendar__date-item.is-event span { position: relative; z-index: 2; }
.calendar__actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.calendar__actions .btn { flex: 1; max-width: 200px; }

.timeline__list { margin-top: 45px; }
.timeline__desc { font-size: 30px; line-height: 30px; }
.timeline__time { font-size: 40px; line-height: 40px; color: #000; }
.timeline__item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100px;
}
.timeline__content { flex: 1; }
.timeline__item:before {
    content: '';
    position: absolute;
    left: 50%;
    width: 1.5px; height: 50px;
    background: #000;
    top: -24px;
    margin-left: -0.75px;
}
.timeline__item:after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 22px; height: 21px;
    background: url('../img/heart_black.svg') no-repeat center center;
    transform: translate(-50%, -50%);
}
.timeline__item:nth-child(odd)  { padding-right: calc(50% + 36px); text-align: right; }
.timeline__item:nth-child(even) { padding-left:  calc(50% + 36px); text-align: left; }

/* Dresscode */
.dresscode { margin-top: 60px; text-align: center; }
.dresscode h2 { margin-bottom: 30px; }
.dresscode__desc {
    max-width: 360px;
    margin: 0 auto 38px;
    font-size: 25px;
    line-height: 120%;
}
.dresscode__note { margin-top: 35px; font-size: 24px; line-height: 35px; }

/* Final block */
.final-block {
    margin-top: 60px;
    padding-top: 70px;
    position: relative;
    text-align: center;
    padding-bottom: 120px;
}
.final-block:before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 49px; height: 47px;
    background: url('../img/heart_blank.svg') no-repeat center center;
}
.final-block__text { font-size: 40px; }
.final-block__names {
    margin: 0 auto;
    padding-top: 70px;
    text-align: left;
    width: fit-content;
}
.final-block__names > span {
    display: block;
    padding-left: 70px;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 767px) {
    body { font-size: 20px; line-height: 120%; }
    h1, .h1 { font-size: 80px; }
    h2, .h2 { font-size: 44px; }

    .hero__date  { font-size: 58px; }
    .hero__phrase {
        font-size: 28px;
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
    }
    .hero__inner   { min-height: 100svh; }
    .hero__content { height: calc(100svh - 250px); max-height: calc(100svh - 250px); }
    .hero__names span.hero__names-word2 { padding-left: 30px; }
    .section.hero .scroll-hint { bottom: 140px; }

    .key-info__details { gap: 15px; }
    .key-info__label   { font-size: 34px; }
    .key-info__value   { font-size: 18px; }
    .key-info__address { font-size: 16px; }
    .btn--map { font-size: 14px; min-width: 130px; }

    .timer__number { font-size: 40px; }
    .timer__label  { font-size: 18px; }
    .timer { gap: 0; }

    .invitation-text { margin-top: 45px; }
    .invitation-text h2 { margin-bottom: 30px; }

    .calendar { margin-top: 40px; }
    .calendar .glass { padding: 15px; }
    .calendar__dates-row { gap: 20px; margin-top: 30px; padding-bottom: 40px; }
    .calendar__date-item { width: 44px; font-size: 30px; }
    .calendar__date-item.is-event {
        font-size: 24px;
        width: 60px;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 4px;
    }
    .calendar__date-item.is-event:before {
        width: 68px; height: 60px;
        background: url('../img/heart_date_small.svg') no-repeat center center;
        background-size: contain;
    }

    .timeline__list { margin-top: 10px; }
    .timeline__desc { font-size: 20px; line-height: 24px; }
    .timeline__time { font-size: 24px; }
    .timeline__item { height: 80px; }
    .timeline__item:before { height: 30px; top: -14px; }
    .timeline__item:nth-child(odd)  { padding-right: calc(50% + 25px); }
    .timeline__item:nth-child(even) { padding-left:  calc(50% + 25px); }

    .dresscode { margin-top: 40px; }
    .dresscode h2 { margin-bottom: 20px; }
    .dresscode__desc { font-size: 18px; line-height: 24px; margin-bottom: 25px; }
    .dresscode__note { margin-top: 20px; font-size: 16px; line-height: 22px; }

    .btn { font-size: 16px; }

    .final-block { margin-top: 45px; padding-top: 45px; padding-bottom: 70px; }
    .final-block:before {
        width: 29px; height: 27px;
        background: url('../img/heart_blank_small.svg') no-repeat center center;
        background-size: contain;
    }
    .final-block__text { font-size: 24px; line-height: 30px; margin-bottom: 35px; }
}
