@font-face {
    font-family: "Adine Kirnberg";
    src: url("../fonts/adinekirnberg.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bookman Old Style";
    src: url("../fonts/PTSerif-Regular.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Flores del Sol";
    src: url("../fonts/Flores del Sol.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Eugusto Free Font";
    src: url("../fonts/Eugusto Free Font.otf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "newstandardold";
    src: url("../fonts/newstandardold.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



/* Reset and base styles  */
* {
    padding: 0px;
    margin: 0px;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
    display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}

ul, ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img, svg {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

/* Form */

input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

textarea {
    resize: vertical;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

input[type='file'] {
    max-width: 100%;
}

html,body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

main,section {
    width: 100%;
}

.qr {
    background-image: url("../imgs/bg_qr.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
    flex-direction: column;
}

.qr__top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 1200px);
    gap: clamp(30px, 8vw, 82px);
}

.qr__img {
    flex: 0 0 auto;
    width: clamp(200px, 30vw, 400px);
}

.qr__img img {
    width: 100%;
    height: auto;
    display: block;
}

.qr__text {
    font-family: "Bookman Old Style", serif;
    color: #603e17;
    font-size: clamp(18px, 3.5vw, 25px);
    line-height: 1.6;
    margin: 0;
}

.qr__text p {
    margin: 0;
}

.top {
    flex: 1 1 auto;
    min-width: 250px;
    text-align: center;
}

.qr__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: clamp(30px, 6vw, 60px);
}

.qr__bottom .qr__text {
    max-width: 800px;
    text-align: center;
}

.main {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    place-items: center;
    padding: 52px 40px 0;
    background-image: url("../imgs/huijopa.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

.hearts-one {
    position: absolute;
    right: 30%;
    top: 25%;
    opacity: 0;
    animation: main-rise-in 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hearts-two {
    position: absolute;
    left: 23%;
    top: 45%;
    opacity: 0;
    animation: main-rise-in 2s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

@keyframes main-rise-in {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes main-rise-headline {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes main-rise-photo {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(70%);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes main-rise-hearts-two {
    from {
        opacity: 0;
        transform: translateY(36px) rotate(30deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(30deg);
    }
}

.main__headline {
    position: absolute;
    top: 20%;
    left: 50%;
    z-index: 3;
    width: min(33vw, 390px);
    transform: translateX(-50%);
    opacity: 0;
    animation: main-rise-headline 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.main__mazok {
    filter: brightness(1.25);
    width: 100%;
    height: 94px;
}


.main__headline-text {
    position: absolute;
    top: 70%;
    left: 48%;
    text-wrap: nowrap;
    transform: translate(-50%, -50%);
    font-size: 150px;
    color: #603e17;
    font-family: "Flores del Sol", sans-serif;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.main__photo {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 2;
    width: min(56vw, 720px);
    max-height: 76vh;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
    opacity: 0;
    animation: main-rise-photo 2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    filter:
            drop-shadow(2px 0 0 #ffffff)
            drop-shadow(-2px 0 0 #ffffff)
            drop-shadow(0 2px 0 #ffffff)
            drop-shadow(0 -2px 0 #ffffff)
            drop-shadow(2px 2px 0 #ffffff)
            drop-shadow(-2px -2px 0 #ffffff)
            drop-shadow(2px -2px 0 #ffffff)
            drop-shadow(-2px 2px 0 #ffffff)
}

.main__label {
    position: absolute;
    z-index: 4;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 400;
    line-height: 1;
    opacity: 0;
    animation: main-rise-in 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.main__label img {
    display: block;
    width: clamp(130px, 14vw, 210px);
    margin-top: 10px;

}

.main__label--man {
    font-family: "Bookman Old Style", serif;
    color: #603e17;
    top: 34%;
    left: 15%;
    animation-delay: 0.2s;
}

.main__label--man img {
    left: 95px;
    position: absolute;
}

.main__label--woman img {
    right: 95px;
    position: absolute;
}

.main__label--woman {
    font-family: "Bookman Old Style", serif;
    color: #603e17;
    top: 34%;
    right: 15%;
    animation-delay: 0.35s;
}

.main__hearts {
    position: absolute;
    top: 30%;
    left: 70%;
    z-index: 3;
    width: 110px;
    height: 130px;
    color: rgb(188, 164, 142);
    pointer-events: none;
}

.main__hearts span {
    position: absolute;
    width: 42px;
    height: 42px;
    background-color: currentColor;
    transform: rotate(45deg);
}

.main__hearts span::before,
.main__hearts span::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: currentColor;
}

.main__hearts span::before {
    left: -21px;
}

.main__hearts span::after {
    top: -21px;
}

.main__hearts span:first-child {
    top: 0;
    left: 0;
}

.main__hearts span:last-child {
    right: 2px;
    bottom: 10px;
    width: 34px;
    height: 34px;
}

.main__hearts span:last-child::before,
.main__hearts span:last-child::after {
    width: 34px;
    height: 34px;
}

.main__hearts span:last-child::before {
    left: -17px;
}

.main__hearts span:last-child::after {
    top: -17px;
}

.guests {
    margin-top: 35px;
    --divider-height: min(11.04vw, 159px);

    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    margin-bottom: 100px;
}

.guests::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--divider-height));
    left: 0;
    z-index: 2;
    width: 100%;
    height: var(--divider-height);
    background-image: url("../imgs/bg_main_guest.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.guests::after {
    content: "";
    position: absolute;
    top: calc(-1 * var(--divider-height) - 60px);
    left: 0;
    z-index: 3;
    width: 100%;
    height: 473px;
    background-image: url("../imgs/busiki_Left.png"), url("../imgs/busiki_right.png");
    background-position: 45px top, right 58px top;
    background-repeat: no-repeat;
    background-size: min(29.17vw, 420px) auto, min(29.1vw, 419px) auto;
    pointer-events: none;
}

.guests__title {
    margin: 0;
    color: rgba(74, 22, 0, 0.87);
    font-family: "Adine Kirnberg", cursive;
    font-size: 200px;
    font-weight: 400;
    line-height: 1.38;
}

.guests__text {
    margin: 0;
    color: rgb(43, 20, 0);
    font-family: "Bookman Old Style", serif;
    font-size: 40px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.38;
}

.guests__month {
    margin-top: 50px;
    color: rgb(43, 20, 0);
    font-family: "Bookman Old Style", serif;
    font-size: 60px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.38;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 70px);
    grid-auto-rows: 62px;
    justify-content: center;
    margin-top: 6px;
    color: rgb(43, 20, 0);
    font-family: "Bookman Old Style", serif;
    font-size: 45px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.38;
}



.calendar__weekday,
.calendar__day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar__day--heart::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    z-index: 0;
    width: 220px;
    height: 90px;
    background-image: url("../imgs/heart.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate(-50%, -50%) scale(var(--heart-scale, 1));
    transform-origin: center;
}

.calendar__day--heart {
    color: rgb(255, 255, 255);
    z-index: 1;
}

.calendar__day--heart > span {
    position: relative;
    z-index: 1;
}

.timings {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 56px);
    background-image: url("../imgs/test/1_1.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.timings > .timings_title {
    margin-bottom: clamp(36px, 6vw, 80px);
}

.timings_title {
    margin: 0;
    color: rgba(74, 22, 0, 0.87);
    font-family: "Adine Kirnberg", cursive;
    font-size: 200px;
    font-weight: 400;
    line-height: 1.1;
}

.timings__time {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 1040px);
    gap: clamp(18px, 3vw, 32px);
}

.timings__time-block {
    color: #613421;
    display: grid;
    grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 6vw, 100px);
    width: 100%;
    text-align: left;
}

.timings__time-time {
    font-family: "newstandardold", sans-serif;
    font-size: clamp(44px, 7.5vw, 90px);
    font-weight: 400;
    text-align: center;
}

.timings__time-time-shrift {
    display: block;
    margin-top: 0.15em;
    font-family: "Bookman Old Style", serif;
    font-size: clamp(20px, 2.4vw, 40px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
}

.timings__time-title {
    font-family: "Bookman Old Style", serif;
    font-size: clamp(18px, 2.2vw, 40px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    max-width: 52ch;
    overflow-wrap: anywhere;
}


.dresscode {
    --divider-height: min(11.04vw, 159px);;
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
}

.dresscode_text {
    width: 50%;
    margin: 0;
    color: rgb(43, 20, 0);
    font-family: "Bookman Old Style", serif;
    font-size: 40px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.38;
}

.colors {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.color {
    width: 136px;
    height: 210px;
    border-radius: 100px 100px 5px 5px;
}

.one {
    background-color: rgba(244, 222, 186, 1)
}

.two {
    background-color: rgba(244, 222, 186, 1)
}

.three {
    background-color: rgba(217, 164, 140, 1)
}

.four {
    background-color: rgba(134, 87, 45, 1)
}

.five {
    background-color: rgba(80, 42, 0, 1);
}

.order {
    margin-top: 100px;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 70px 24px;
    background-image: url("../imgs/test/1_1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.order__form {
    width: min(100%, 760px);
    color: rgb(43, 20, 0);
    font-family: "Bookman Old Style", serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.35;
}

.order__title {
    margin-bottom: 34px;
    color: rgba(74, 22, 0, 0.87);
    font-family: "Adine Kirnberg", cursive;
    font-size: 100px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.order__field {
    display: block;
    margin-bottom: 24px;
}

.order__field-label {
    display: block;
    margin-bottom: 4px;
}

.order__companions {
    margin-bottom: 24px;
}

.order__companions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.order__companions-head .order__field-label {
    margin-bottom: 0;
}

.order__add-companion {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(43, 20, 0);
    border-radius: 50%;
    color: rgb(43, 20, 0);
    font-size: 30px;
    font-style: normal;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.order__add-companion:hover,
.order__add-companion:focus-visible {
    background-color: rgb(43, 20, 0);
    color: rgb(255, 255, 255);
}

.order__companions-list {
    margin-top: 12px;
}

.order__companion-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.order__companion-field .order__field {
    margin-bottom: 0;
}

.order__remove-companion {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(43, 20, 0);
    border-radius: 50%;
    color: rgb(43, 20, 0);
    font-size: 28px;
    font-style: normal;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.order__remove-companion:hover,
.order__remove-companion:focus-visible {
    background-color: rgb(43, 20, 0);
    color: rgb(255, 255, 255);
}

.order__text-input {
    width: 100%;
    border-bottom: 1px solid rgba(43, 20, 0, 0.78);
    padding: 6px 0;
    outline: none;
}

.order__text-input:focus {
    border-bottom-color: rgb(74, 22, 0);
}

.order__group {
    margin-top: 22px;
}

.order__question {
    margin-bottom: 12px;
    font-size: 24px;
}

.order__option {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px 10px;
}

.order__option input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: rgb(74, 22, 0);
}

.order__submit {
    display: block;
    min-width: 250px;
    margin: 32px auto 18px;
    border: 3px solid rgb(43, 20, 0);
    border-radius: 7px;
    padding: 5px 28px;
    color: rgb(43, 20, 0);
    font-family: "Bookman Old Style", serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.order__submit:hover,
.order__submit:focus-visible {
    background-color: rgb(43, 20, 0);
    color: rgb(255, 255, 255);
}

.order__note {
    text-align: center;
}

.location {
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.location__content {
    width: 100%;
    padding: 34px 24px 30px;
    background-color: rgba(255, 255, 255, 0.9);
    color: rgb(43, 20, 0);
    text-align: center;
}

.location__title {
    margin-bottom: 18px;
    color: rgba(74, 22, 0, 0.87);
    font-family: "Adine Kirnberg", cursive;
    font-size: 92px;
    font-weight: 400;
    line-height: 1;
}

.location__address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "Bookman Old Style", serif;
    font-size: 32px;
    font-style: italic;
    line-height: 1.22;
}

.exit {
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    padding: 42px 24px 34px;
    background-image: url("../imgs/test/1_1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(74, 22, 0);
    text-align: center;
}

.exit__title {
    margin-bottom: 20px;
    font-family: "Adine Kirnberg", cursive;
    font-size: 94px;
    font-weight: 400;
    line-height: 1;
}

.exit__text {
    font-family: "Bookman Old Style", serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1.34;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s ease, transform 0.85s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.calendar.reveal,
.puty.reveal,
.colors.reveal,
.location__content.reveal {
    transform: translateY(34px) scale(0.96);
}

.calendar.reveal.is-visible,
.puty.reveal.is-visible,
.colors.reveal.is-visible,
.location__content.reveal.is-visible {
    transform: translateY(0) scale(1);
}

.reveal--stagger {
    transform: translateY(18px);
    transition-duration: 0.65s;
}

.exit__title.reveal,
.exit__text.reveal {
    transform: translateY(24px) scale(0.98);
}

.exit__title.reveal.is-visible,
.exit__text.reveal.is-visible {
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .main__ampersand text {
        animation: none;
        fill: rgba(74, 22, 0, 0.24);
        stroke: rgba(74, 22, 0, 0.18);
        stroke-dashoffset: 0;
    }

    .main__photo {
        animation: none;
        opacity: 1;
        transform: translateX(-50%);
    }

    .main__headline {
        animation: none;
        opacity: 1;
        transform: translateX(-50%);
    }

    .main__label {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hearts-one,
    .hearts-two {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .reveal,
    .calendar.reveal,
    .puty.reveal,
    .colors.reveal,
    .location__content.reveal,
    .exit__title.reveal,
    .exit__text.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .order__form {
        font-size: 18px;
    }

    .order__title {
        font-size: 72px;
    }

    .order__question {
        font-size: 20px;
    }

    .location__title {
        font-size: 72px;
    }

    .location__address {
        font-size: 26px;
    }

    .exit__title {
        font-size: 72px;
    }

    .exit__text {
        font-size: 34px;
        letter-spacing: 6px;
    }

    .qr__top {
        flex-direction: column;
    }

    .top {
        width: 100%;
    }

    .qr__img {
        max-width: clamp(180px, 25vw, 350px);
    }
}

@media (max-width: 560px) {
    .order {
        padding: 54px 18px;
    }

    .order__title {
        margin-bottom: 28px;
        font-size: 54px;
    }

    .order__option {
        align-items: flex-start;
        margin-left: 0;
    }

    .location {
        min-height: 280px;
        padding: 38px 0;
    }

    .location__content {
        padding: 28px 18px 26px;
    }

    .location__title {
        font-size: 58px;
    }

    .location__address {
        font-size: 22px;
    }

    .exit {
        min-height: 260px;
        padding: 34px 18px 30px;
    }

    .exit__title {
        margin-bottom: 14px;
        font-size: 58px;
    }

    .exit__text {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .qr {
        padding: clamp(30px, 5vw, 60px) clamp(15px, 4vw, 30px);
    }

    .qr__top {
        width: 100%;
        gap: clamp(20px, 5vw, 40px);
    }

    .qr__img {
        max-width: clamp(150px, 40vw, 280px);
    }

    .qr__text {
        font-size: clamp(16px, 3vw, 22px);
    }

    .top {
        text-align: center;
    }

    .qr__bottom .qr__text {
        text-align: center;
        font-size: clamp(16px, 3vw, 22px);
    }
}

main > br {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.modal-overlay--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(100% - 40px, 520px);
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.modal--active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgb(43, 20, 0);
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.modal__close:hover,
.modal__close:focus-visible {
    color: rgba(43, 20, 0, 0.6);
}

.modal__header {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.modal__icon {
    width: 60px;
    height: 60px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal__header--success .modal__icon {
    color: #2b8a3e;
}

.modal__header--error .modal__icon {
    color: #c41e3a;
}

.modal__title {
    font-family: "Adine Kirnberg", cursive;
    font-size: 48px;
    color: rgba(74, 22, 0, 0.87);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 400;
}

.modal__message {
    font-family: "Bookman Old Style", serif;
    font-size: 18px;
    color: rgb(43, 20, 0);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 12px;
}

.modal__info {
    font-family: "Bookman Old Style", serif;
    font-size: 16px;
    color: rgba(43, 20, 0, 0.7);
    text-align: center;
    margin: 0;
}

.modal__content {
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .modal {
        width: min(100% - 30px, 480px);
        padding: 32px 24px;
    }

    .modal__title {
        font-size: 40px;
    }

    .modal__message {
        font-size: 16px;
    }

    .modal__info {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .modal {
        width: min(100% - 24px, 380px);
        padding: 24px 20px;
        border-radius: 10px;
    }

    .modal__close {
        width: 32px;
        height: 32px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    .modal__title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .modal__icon {
        width: 50px;
        height: 50px;
    }

    .modal__message {
        font-size: 15px;
    }

    .modal__info {
        font-size: 13px;
    }
}

@media (max-width: 1280px) {
    .main__photo {
        width: min(60vw, 660px);
    }

    .main__headline {
        width: min(35vw, 340px);
    }

    .main__label--man {
        left: 3%;
    }

    .main__label--woman {
        right: 5%;
    }

    .guests,
    .dresscode,
    .timings {
        min-height: auto;
        padding: 70px 24px;
    }

    .guests__title,
    .timings_title {
        font-size: 150px;
    }

    .timings > .timings_title {
    
    }

    .timings__time-block {
        grid-template-columns: minmax(110px, 200px) minmax(0, 1fr);
        gap: clamp(20px, 4vw, 72px);
    }

    .guests__text,
    .dresscode_text {
        font-size: 32px;
    }

    .dresscode_text {
        width: min(100%, 820px);
    }

    .puty {
        width: min(100%, 980px);
        margin-top: -70px;
        padding: 80px 140px;
    }

    .time {
        font-size: 32px;
    }

    .shrift {
        font-size: 80px;
    }

    .qr__img {
        max-width: clamp(250px, 25vw, 380px);
    }
}

@media (max-width: 1024px) {
    .main {
        min-height: 82vh;
        padding: 70px 18px;
    }

    .main__photo {
        width: min(68vw, 620px);
        max-height: 68vh;
    }

    .main__headline {
        top: 7%;
        width: min(42vw, 320px);
    }

    .main__label {
        font-size: clamp(28px, 4.4vw, 44px);
    }

    .main__label img {
        width: clamp(110px, 16vw, 160px);
    }

    .main__label--man {
        top: 30%;
        left: 2%;
    }

    .main__label--woman {
        top: 29%;
        right: 3%;
    }

    .main__hearts {
        top: 31%;
        left: 69%;
        transform: scale(0.82);
    }

    .guests {
        margin-top: 0;
    }

    .guests::after {
        top: calc(-1 * var(--divider-height) - 32px);
        height: 300px;
        background-position: 18px top, right 22px top;
        background-size: min(25vw, 250px) auto, min(25vw, 250px) auto;
    }

    .guests__title,
    .timings_title {
        font-size: 120px;
    }

    .timings > .timings_title {
    
    }

    .timings__time {
        gap: 24px;
    }

    .timings__time-block {
        grid-template-columns: minmax(96px, 170px) minmax(0, 1fr);
        gap: clamp(16px, 3.5vw, 48px);
    }

    .guests__text,
    .dresscode_text {
        font-size: 26px;
    }

    .guests__month {
        margin-top: 34px;
        font-size: 46px;
    }

    .calendar {
        grid-template-columns: repeat(7, 58px);
        grid-auto-rows: 52px;
        font-size: 36px;
    }

    .calendar__day--heart::before {
        width: 170px;
        height: 70px;
    }

    .puty {
        margin-top: -50px;
        padding: 70px 80px;
    }

    .time {
        font-size: 26px;
    }

    .shrift {
        font-size: 68px;
    }

    .colors {
        margin-top: 56px;
        gap: 22px;
    }

    .color {
        width: 108px;
        height: 168px;
    }

    .qr__img {
        max-width: clamp(200px, 22vw, 350px);
    }

    .qr__text {
        font-size: clamp(17px, 2.8vw, 24px);
    }
}

@media (max-width: 760px) {
    .main {
        min-height: 680px;
        padding: 28px 14px 0;
    }

    .main__headline {
        top: 15%;
        left: 50%;
        width: min(92vw, 360px);
        transform: translateX(-50%);
    }

    .main__label--man {
        margin-top: 150px;
    }

    .main__label--woman {
        margin-top: 150px;
    }

    .hearts-one {
        right: -25%;
        top: -16%;
    }

    .hearts-two {
        left: -48%;
        top: -11%;
        animation-name: main-rise-hearts-two;
    }

    .main__headline-text {
        position: static;
        transform: none;
        width: 100%;
        font-size: clamp(38px, 17.5vw, 61px);
        line-height: 1.05;
        text-wrap: balance;
        text-align: center;
    }

    .main__photo {
        width: min(118vw, 560px);
        max-height: 66vh;
        left:200px;
    }

    .main__label {
        font-size: clamp(24px, 8vw, 36px);
    }

    .main__label img {
        display: none;
    }

    .main__label--man {
        top: 21%;
        left: 5%;
    }

    .main__label--woman {
        top: 20%;
        right: 5%;
        text-align: right;
    }

    .main__hearts {
        top: 27%;
        left: 62%;
        transform: scale(0.62);
    }

    .guests,
    .dresscode,
    .timings {
        padding: 54px 18px;
    }

    .guests::before,
    .guests::after {
        display: none;
    }

    .guests__title,
    .timings_title {
        font-size: 84px;
        line-height: 1.05;
    }

    .timings {
        padding: 54px 18px;
        background-position: center;
    }

    .timings > .timings_title {
    }

    .timings__time {
        gap: 22px;
    }

    .timings__time-block {
        grid-template-columns: 1fr;
        gap: 10px;
        justify-items: center;
        text-align: center;
    }

    .timings__time-title {
        max-width: 30ch;
    }

    .guests__text,
    .dresscode_text {
        font-size: 20px;
        line-height: 1.45;
    }

    .guests__month {
        margin-top: 28px;
        font-size: 36px;
    }

    .calendar {
        width: min(100%, 390px);
        grid-template-columns: repeat(7, minmax(0, 1fr));
        grid-auto-rows: 44px;
        font-size: 29px;
    }

    .calendar__day--heart::before {
        width: 132px;
        height: 54px;
    }

    .puty {
        display: grid;
        width: min(100%, 420px);
        margin-top: 24px;
        padding: 0;
        gap: 18px;
    }

    .puty-img {
        display: none;
    }

    .time,
    .first,
    .second,
    .third,
    .fourth,
    .fifth {
        position: static;
        inset: auto;
    }

    .time {
        font-size: 22px;
    }

    .shrift {
        font-size: 58px;
    }

    .colors {
        margin-top: 38px;
        gap: 16px;
    }

    .color {
        width: 78px;
        height: 124px;
    }

    .order__form {
        font-size: 17px;
    }

    .order__question {
        font-size: 19px;
    }

    .order__submit {
        width: min(100%, 250px);
        min-width: 0;
    }

    .qr {
        padding: clamp(40px, 5vw, 70px) clamp(15px, 3vw, 24px);
        min-height: auto;
        background-position: initial;
    }

    .qr__top {
        flex-direction: column;
        width: 100%;
        gap: clamp(20px, 4vw, 40px);
    }

    .qr__img {
        margin-right: 29px;
        max-width: clamp(130px, 35vw, 280px);
    }

    .qr__text {
        font-size: clamp(16px, 2.5vw, 20px);
    }

    .top {
        width: 100%;
        margin-top: 0;
        text-align: center;
    }

    .qr__bottom {
        margin-top: clamp(20px, 4vw, 40px);
    }

    .qr__bottom .qr__text {
        font-size: clamp(16px, 2.5vw, 20px);
    }
}

@media (max-width: 420px) {
    .main {
        min-height: 620px;
    }

    .main__label--man {
        margin-top: 150px;
    }

    .main__label--woman {
        margin-top: 150px;
    }

    .hearts-one {
        right: -25%;
        top: -16%;
    }

    .hearts-two {
        left: -48%;
        top: -11%;
        animation-name: main-rise-hearts-two;
    }

    .main__headline {
        top: 17%;
        width: min(94vw, 320px);
    }

    .main__headline-text {
        font-size: clamp(34px, 17.5vw, 61px);
    }

    .main__photo {
        width: 132vw;
        max-height: 62vh;
        left: 190px;
    }

    .main__label--man {
        top: 22%;
        left: 4%;
    }

    .main__label--woman {
        top: 22%;
        right: 4%;
    }

    .main__label {
        font-size: clamp(22px, 7.5vw, 30px);
    }

    .main__hearts {
        top: 31%;
        left: 58%;
        transform: scale(0.48);
    }

    .guests__title,
    .timings_title {
        font-size: 68px;
    }

    .timings {
        padding: 44px 14px;
    }

    .timings > .timings_title {
    
    }

    .timings__time {
        gap: 18px;
    }

    .timings__time-block {
        gap: 6px;
    }

    .timings__time-time {
        font-size: clamp(38px, 12vw, 52px);
    }

    .timings__time-time-shrift {
        font-size: clamp(18px, 5.5vw, 24px);
    }

    .timings__time-title {
        max-width: none;
        font-size: clamp(16px, 4.8vw, 20px);
        line-height: 1.4;
        padding: 0 4px;
    }

    .guests__text,
    .dresscode_text {
        font-size: 18px;
    }

    .calendar {
        grid-auto-rows: 38px;
        font-size: 24px;
    }

    .calendar__day--heart::before {
        width: 112px;
        height: 46px;
    }

    .color {
        width: 60px;
        height: 96px;
    }

    .order__companions-head {
        align-items: flex-start;
    }

    .order__companion-field {
        grid-template-columns: minmax(0, 1fr) 32px;
        gap: 8px;
    }

    .order__add-companion,
    .order__remove-companion {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 25px;
    }

    .location__address,
    .exit__text {
        overflow-wrap: anywhere;
    }

    .qr {
        padding: clamp(25px, 4vw, 50px) clamp(12px, 3vw, 20px);
        min-height: auto;
    }

    .qr__top {
        flex-direction: column;
        width: 100%;
        gap: clamp(16px, 3vw, 30px);
    }

    .qr__img {
        max-width: clamp(100px, 30vw, 200px);
    }

    .qr__text {
        font-size: clamp(14px, 2.2vw, 18px);
        line-height: 1.5;
    }

    .top {
        width: 100%;
        margin-top: 0;
        text-align: center;
    }

    .qr__bottom {
        margin-top: clamp(15px, 3vw, 30px);
    }

    .qr__bottom .qr__text {
        font-size: clamp(14px, 2.2vw, 18px);
    }
}
