:root {
    --bgcolor: #FDF4EB;

    --font-primary: 'Viaoda Libre';
    --font-accent: 'Caravan';

    --animation-duration: .3s;

    --container-width: 400px;
    --padding-x: 16px;
}

body, html {
    background-color: var(--bgcolor);
    font-family: var(--font-primary), sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 400;
}

p {
    margin: 0;
}

.container {
    max-width: var(--container-width);
    padding: 0 var(--padding-x);
    margin: 0 auto;
}

.description {
    max-width: 328px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    margin-inline: auto;
}

.animated {
    opacity: 0;
}

.header {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.5s ease-in-out forwards;
}

.header-image {
    margin-bottom: 13px;
}

.header-title {
    text-align: center;
    font-size: 24px;
}

.header-title-accent {
    display: block;
    font-size: 96px;
    line-height: 1;
    font-family: var(--font-accent), sans-serif;
    margin-top: -10px;
}

.title {
    font-size: 24px;
    text-align: center;
}

.hero {
    position: relative;
    display: flex;
    padding: 0;
    height: 300px;
    margin-bottom: 162px;
}

.hearts {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hearts svg g {
    opacity: 0;
}

.hearts svg g:nth-child(2) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 2.5s;
}

.hearts svg g:nth-child(4) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 2.7s;
}

.hearts svg g:nth-child(6) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 2.9s;
}

.hearts svg g:nth-child(8) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 3.1s;
}

.hearts svg g:nth-child(10) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 3.3s;
}

.hearts svg g:nth-child(12) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 3.5s;
}

.hearts svg g:nth-child(14) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 3.7s;
}

.hearts svg g:nth-child(16) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 3.9s;
}

.hearts svg g:nth-child(18) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 4.1s;
}

.hearts svg g:nth-child(20) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 4.3s;
}

.hearts svg g:nth-child(22) {
    animation: fadeIn 0.2s ease-out forwards;
    animation-delay: 4.5s;
}


.hero-1 {
    position: absolute;
    top: 25%;
    width: clamp(150px, 58.7vw, 231px);
    height: auto;
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.hero-2 {
    position: absolute;
    top: 90px;
    right: 30px;
    width: clamp(150px, 52.4vw, 206px);
    height: auto;
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

.title.accent {
    font-family: var(--font-accent), sans-serif;
}

.title.accent.big {
    font-size: 64px;
    line-height: 1;
}

.names-container {
    position: relative;
}

.names {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.names-container::before {
    content: '';
    background: url("assets/lepestok-1.png") no-repeat center center;
    position: absolute;
    left: calc(-1 * var(--padding-x) / 2);
    top: -20px;
    width: 203px;
    height: 277px;
}

.name {
    font-size: 96px;
    line-height: .8;
}

.name:first-child {
    margin-right: 80px;
}

.name:last-child {
    margin-left: 80px;
}

.ampersand {
    font-family: 'Bella Script', sans-serif;
    font-size: 42px;
    line-height: .9;
}

.timing {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 55px;
}

.timing::before {
    content: '';
    background: url("assets/lepestok-2.png") no-repeat center center;
    position: absolute;
    right: calc(-1 * var(--padding-x) / 2);
    top: -30px;
    width: 104px;
    height: 205px;
}

.timing-container {
    display: flex;
    column-gap: 32px;
    align-items: center;
    margin-bottom: 7px;
}

.timing-text {
    font-size: 20px;
}

.timing-text:first-child {
    margin-bottom: 5px;
}

.timing-text.big {
    font-size: 48px;
}

.timing-text.border {
    width: 74px;
    height: 33px;
    text-align: center;
    border-width: 1px 0 1px 0;
    border-style: solid;
    border-color: #CDD4C4;
}

.timing-additional {
    margin-bottom: 55px;
}

.timer {
    margin-bottom: 55px;
}

.timer-title {
    font-size: 20px;
    margin-bottom: 25px;
}

.countdown__timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;

}

.timer__box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer__number {
    position: relative;
    font-size: 20px;
    z-index: 5;
    line-height: .8;
}

.timer__unit {
    font-size: 14px;
    font-weight: 400;
}

.timer {
    margin-bottom: 55px;
}

.timer-title {
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.countdown__timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.timer__box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.bg-circle {
    fill: none;
    stroke: #CDD4C4;
    stroke-width: 2;
}

.fg-circle {
    fill: none;
    stroke: #728760;
    stroke-width: 2;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    transition: stroke-dashoffset 1s linear;
}

.program {
    margin-bottom: 60px;
    position: relative;
}

.program::before {
    content: '';
    background: url("assets/lepestok-4.png") no-repeat center center;
    position: absolute;
    left: calc(-1 * var(--padding-x) / 2);
    top: -50px;
    width: 109px;
    height: 189px;
}

.program::after {
    content: '';
    background: url("assets/rings-1.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: 4%;
    top: 10px;
    width: 91px;
    height: 74px;
}

.program-title {
    margin-bottom: 36px;
}

.program-description {
    margin-bottom: 21px;
}

.program-info {
    width: 311px;
    margin-inline: auto;
}

.dress {
    position: relative;
    margin-bottom: 80px;
}

.dress::before {
    content: '';
    background: url("assets/lepestok-5.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc(-1 * var(--padding-x) / 2);
    top: -260px;
    width: 203px;
    height: 263px;
}

.dress-title,
.dress-description {
    margin-bottom: 25px;
}

.dress-colors {
    display: flex;
    justify-content: center;
    column-gap: 21px;
}

.dress-color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.color-1 {
    background-color: #3E5E46;
}

.color-2 {
    background-color: #AEB28F;
}

.color-3 {
    background-color: #ACB9A8;
}

.color-4 {
    background-color: #DDCBBF;
}

.location {
    position: relative;
    margin-bottom: 50px;
}

.location::before {
    content: '';
    opacity: 0.71;
    background: url("assets/lepestok-6.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    left: calc(-1 * var(--padding-x) / 2);
    top: -95px;
    width: 203px;
    height: 263px;
}

.location::after {
    content: '';
    background: url("assets/lepestok-7.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc(-1 * var(--padding-x) / 2);
    top: 80px;
    width: 203px;
    height: 263px;
}

.location-title,
.location-description{
    margin-bottom: 27px;
}

.location-container {
    display: flex;
    justify-content: center;
}

.location-link {
    display: inline-block;
    padding: 10px 14px
}

.gift {
    position: relative;
    margin-bottom: 55px;
}

.gift::before {
    opacity: 0.41;
    content: '';
    background: url("assets/lepestok-8.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    left: calc(-1 * var(--padding-x) / 2);
    top: -20px;
    width: 118px;
    height: 239px;
}

.gift::after {
    opacity: 0.41;
    transform: scaleX(-1);
    content: '';
    background: url("assets/lepestok-8.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc(-1 * var(--padding-x) / 2);
    top: -20px;
    width: 118px;
    height: 239px;
}

.gift-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.contacts {
    position: relative;
    display: flex;
    column-gap: 20px;
    justify-content: center;
    margin-bottom: 70px;
}

.contacts::before {
    content: '';
    background: url("assets/lepestok-9.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    left: calc(-1 * var(--padding-x) / 2);
    bottom: 30px;
    width: 118px;
    height: 239px;
}

.contacts::after {
    content: '';
    background: url("assets/lepestok-9.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc(-1 * var(--padding-x) / 2);
    transform: scaleX(-1);
    bottom: 30px;
    width: 118px;
    height: 239px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-image {
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 161px;
    max-height: 226px;
    object-fit: cover;
    height: auto;
}

.contact-name {
    font-size: 20px;
}

.contact-role {
    margin-bottom: 13px;
}

.form-description {
    margin-bottom: 45px;
}

.form {
    max-width: 310px;
    margin-bottom: 96px;
}

.form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #728760;
    font-size: 16px;
    padding: 3px 5px;
    box-sizing: border-box;
    font-family: var(--font-primary), sans-serif;
}

.form input:focus {
    outline: 1px solid #728760;
}

.form input::placeholder {
    color: #888888;
    font-family: var(--font-primary), sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.form-name {
    width: 100%;
    margin-bottom: 20px;
}

.form-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
}

.form-come {
    display: block;
}

.form label {
    font-size: 14px;
}

.form-section {
    margin-bottom: 25px;
}

.first-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.second-line {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.form-come .first-section {
    margin-bottom: 14px;
}

.form-description {
    font-size: 13px;
    margin-bottom: 25px;
}

.form-button-container {
    display: flex;
    justify-content: center;
    color: black;
}

.form-button {
    font-size: 20px;
    padding: 9px 45px;
    background: transparent;
    border: 1px solid #728760;
    border-radius: 12px;
    font-family: var(--font-primary), sans-serif;
    cursor: pointer;
	color: black;
}

.form input[type="radio"],
.form-alco-selector input[type="checkbox"]{
    display: none;
}

.form-come label,
.form-alco-selector label{
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

.form-come label::before,
.form-alco-selector label:before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #728760;
    transition: background-color .2s ease;
}

.form-come input[type="radio"]:checked + label::before,
.form-alco-selector input[type="checkbox"]:checked + label::before{
    background-color: #728760;
    background-image: url("./assets/checked.svg");
    background-size: 10px 10px;
    background-position: center center;
    background-repeat: no-repeat;
}

.alco-button label input {
    padding: 3px 0;
}

.alco-button label input::placeholder,
.alco-button label input{
    font-size: 14px;
}

.wish-list {
    position: relative;
    margin-bottom: 170px;
}

.wish-list::before {
    content: '';
    background: url("assets/cloud-1.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    left: calc(-1 * var(--padding-x) / 2);
    top: -40px;
    width: 179px;
    height: 261px;
}


.wish-list::after {
    content: '';
    background: url("assets/cloud-2.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc(-1 * var(--padding-x) / 2);
    top: 30px;
    width: 172px;
    height: 249px;
}


.wish-list-description {
    max-width: 226px;
}

.money {
    position: relative;
    box-sizing: border-box;
    aspect-ratio: 1;
    background-color: #F4ECE2;
    border-radius: 50%;
    border: 12px solid #E8DCD0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 39px;
    margin-bottom: 70px;
}

.money::before {
    content: '';
    background: url("assets/money-1.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    left: calc((-8 * var(--padding-x) / 2));
    top: -90px;
    width: 172px;
    height: 249px;
    z-index: 0;
}

.money::after {
    content: '';
    background: url("assets/money-2.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc((-8 * var(--padding-x) / 2));
    bottom: -90px;
    width: 172px;
    height: 249px;
    z-index: 0;
}

.money img {
    position: relative;
    z-index: 1;
}

.money-title {
    font-size: 20px;
    max-width: 211px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.restrict {
    margin-bottom: 20px;
    position: relative;
}

.restrict::before {
    content: '';
    background: url("assets/lepestok-10.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    right: calc((-1 * var(--padding-x) / 2));
    top: 0;
    width: 87px;
    height: 224px;
    z-index: 0;
}

.restrict::after {
    content: '';
    background: url("assets/lepestok-10.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    transform: scaleX(-1);
    left: calc((-1 * var(--padding-x) / 2));
    top: 160px;
    width: 87px;
    height: 224px;
    z-index: 0;
}

.restrict-title {
    margin-bottom: 37px;
}

.restrict-description {
    max-width: 300px;
    margin-bottom: 37px;
}

.video-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    justify-content: center;
    display: flex;
    margin: auto;
    cursor: pointer;
}

.custom-video {
    width: 100%;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: #728760;
    padding: 11px 10px 8px 15px;
}

.footer {
    display: flex;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
}


@media (max-width: 380px) {
    .countdown__timer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Анимация появления заголовка */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимация вылета изображений */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация появления сердечек */
@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
