/* CSS Variables */
:root {
    --font-inter: 'Inter', sans-serif;
    --font-poiret: 'Poiret One', serif;
    --font-comfortaa: 'Comfortaa', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
    
    --color-burgundy: #790F2E;
    --color-navy: #fffece;
    --color-brown: #493a2d;
    --color-cream: #E9E6DD;
    --color-sage: #838d7a;
    --color-grey: #9F9F9F;
    --color-dark-grey: #2F2F2F;
    --color-black: #000000;
    --color-white: #FFFFFF;
}

@font-face {
  font-family:'Denistina';
  src:  url(/variant1/ofont.ru_Denistina.ttf);
       font-style: normal;
       font-weight: normal;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

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

.container {
    min-height: 100vh;
    background-color: #FEFCFC;
}
/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.couple-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .couple-photos {
        flex-direction: row;
        gap: 4rem;
    }
}
.person1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* rotate: unset; */
    transform: rotate(-11deg);
    z-index: 0;
    position: relative;
    left: 31px;
}
.person2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* rotate: unset; */
    transform: rotate(6deg);
    z-index: 1;
    position: relative;
    left: -29px;
    top: -19px;
}
.photo-frame {
    width: 16rem;
    height: 20rem;
    margin-bottom: 1rem;
    border: 3px solid #570219;
}

@media (min-width: 1024px) {
    .photo-frame {
        width: 20rem;
        height: 24rem;
    }
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-family: var(--font-poiret);
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--color-black);
}

@media (min-width: 1024px) {
    .name {
        font-size: 2.25rem;
    }
}

.center-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.wedding-decoration {
    top: 91px;
    position: relative;
}
.wedding-rings {
    margin-bottom: 1.5rem;
}

.wedding-rings img {
    width: 10rem;
    height: auto;
}

@media (min-width: 1024px) {
    .wedding-rings img {
        width: 12rem;
    }
}

.wedding-decoration img {
    width: 16rem;
    height: auto;
}

@media (min-width: 1024px) {
    .wedding-decoration img {
        width: 20rem;
    }
}
@media (max-width: 1024px) {
.venue-header p {
    color: #000000;
    font-family: 'Poiret One';
    font-size: 25px;
    text-align: center;
    font-weight: 900;
    height: 34px;
    line-height: 22px;
}
.venue-info {
    /* text-align: center; */
    /* order: 2; */
    flex: unset!important;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 59px;
    flex-direction: column!important;
}
.block1 {
    position: relative;
    left: 0px!important;
    top: -48px!important;
    display: flex;
    width: auto;
    gap: 3px;
}
.block2 {
    position: relative;
    left: -57px!important;
    top: 436px!important;
    display: flex;
    width: auto;
    gap: 3px;
}
.block2 p {
    color: #000000 !important;
    font-family: Denistina;
    font-size: 25px !important;
    transform: rotate(4deg)!important;
}
.block1 p {
    color: #000000!important;
    font-family: Denistina;
    font-size: 25px!important;
    padding-bottom: 15px;
    transform: rotate(-11deg)!important;
}
.block1 img{
    display: none!important;

}
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    margin-bottom: -239px!important;
}
.wedding-message {
    text-align: center;
    max-width: 52rem;
    position: relative;
    top: -260px!important;
}
.wedding-decoration {
    top: -245px!important;
    position: relative;
}
    .couple-photos {
        gap: 0!important;
        position: relative!important;
        top: -242px!important;
    }
.block2 img{
    display: none!important;

}
}
.wedding-message {
    text-align: center;
    max-width: 52rem;
    position: relative;
    top: 47px;
}


.wedding-message p {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-black);
}

/* Venue Section */
.venue-section {
    padding: 4rem 1rem;
}
.venue-content {
    max-width: 70rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

@media (min-width: 1024px) {
.venue-content {
    flex-direction: row;
    gap: 5rem;
}
}

.venue-info {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .venue-info {
        text-align: left;
    }
}

.venue-header {
    margin-bottom: 0.1rem;
}

.venue-header img {
    width: 16rem;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .venue-header img {
        margin: 0;
    }
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 25px;
}
.venue-info {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 196px;
}

.detail-item img:first-child {
    width: 10rem;
    height: auto;
}

.detail-item img:last-child {
    width: 15rem;
    height: auto;
}
.venue-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 292px;
    text-align: center;
    align-content: center;
    align-items: center;
}

.timeline-item img {
    width: 16rem;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .timeline-item img {
        margin: 0;
    }
}
.timeline-item p {
    font-family: 'Comfortaa';
    font-size: 14px;
    font-weight: 100;
    line-height: 1.05;
    color: var(--color-black);
}
.venue-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-border {
    border: 1px solid var(--color-black);
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
}

.photo-border img {
    width: 778px;
    height: 385px;
}
.map-link {
    margin-top: 1rem;
    text-align: center;
}

.map-link button {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 300;
    text-decoration: underline;
    color: var(--color-black);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.map-link button:hover {
    color: var(--color-burgundy);
}

/* Countdown Section */
.countdown-section {
    padding: 4rem 1rem;
    display: flex;
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 241px;
    align-items: center;
}
.countdown-header {
    max-width: 64rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.countdown-header img {
    width: 12rem;
    height: auto;
    margin: 0 auto;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 64rem;
    margin: 0 auto;
}

.timer-unit {
    text-align: center;
}

.timer-number {
    font-family: var(--font-poiret);
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000;
}

@media (min-width: 1024px) {
    .timer-number {
        font-size: 3rem;
    }
}

.timer-label {
    font-family: var(--font-comfortaa);
    font-size: 0.75rem;
    color: #000000;
}

.timer-separator {
    font-family: 'Poiret One';
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .timer-separator {
        font-size: 3rem;
    }
}

/* Dress Code Section */
.dress-code-section {
    padding: 4rem 1rem;
}

.dress-code-header {
    max-width: 64rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.dress-code-header img {
    width: 12rem;
    height: auto;
    margin: 0 auto;
}

.dress-code-message {
    max-width: 64rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.dress-code-message p {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-black);
    max-width: 28rem;
    margin: 0 auto;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 6rem;
    height: 6rem;
    border: 3px solid #570219;
}

@media (min-width: 1024px) {
    .color-swatch {
        width: 7rem;
        height: 7rem;
    }
}

.color-swatch.navy {
    background-color: var(--color-navy);
}

.color-swatch.brown {
    background-color: var(--color-brown);
}

.color-swatch.cream {
    background-color: var(--color-cream);
}

.color-swatch.sage {
    background-color: var(--color-sage);
}

/* Gifts Section */
.gifts-section {
    padding: 4rem 1rem;
}

.gifts-header {
    max-width: 64rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.gifts-header img {
    width: 12rem;
    height: auto;
    margin: 0 auto;
}

.gifts-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gift-item {
    position: relative;
}

.gift-item p {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-black);
    max-width: 28rem;
    margin: 0 auto;
}

.decorative-element {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.age-restriction p {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-black);
    max-width: 28rem;
    margin: 0 auto;
}

/* RSVP Confirmation Section */
.rsvp-confirmation-section {
    padding: 4rem 1rem;
}

.rsvp-header {
    max-width: 64rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.rsvp-header img {
    width: 12rem;
    height: auto;
    margin: 0 auto;
}

.rsvp-message {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.rsvp-message p {
    font-family: var(--font-inter);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-black);
    max-width: 28rem;
    margin: 0 auto;
}

/* RSVP Form Section */
.rsvp-form-section {
    padding: 4rem 1rem;
}

.rsvp-form {
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark-grey);
    display: block;
}

.form-hint {
    font-family: var(--font-montserrat);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-dark-grey);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.radio-custom,
.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--color-grey);
    display: inline-block;
    position: relative;
}

.radio-custom {
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked + .radio-custom,
.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--color-burgundy);
    border-color: var(--color-burgundy);
}

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

.radio-text,
.checkbox-text {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-dark-grey);
}

.text-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-grey);
    padding: 0.75rem 0;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: var(--color-dark-grey);
    background: transparent;
    outline: none;
}

.text-input:focus {
    border-bottom-color: var(--color-burgundy);
}

.form-submit {
    text-align: center;
}

.submit-button {
    padding: 1rem 4rem;
    border: 1px solid var(--color-dark-grey);
    background-color: var(--color-white);
    font-family: var(--font-inter);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-dark-grey);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--color-cream);
}

/* Final Section */
.final-section {
    padding: 4rem 1rem;
}
.final-content {
    max-width: 67rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
.final-content {
    /* flex-direction: row; */
    gap: 12rem;
}
}

.final-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 398px;
}
.final-photo .photo-border {
    border: 3px solid #570219;
    padding: 0;
    max-width: 28rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-photo .photo-border img {
    width: 100%;
    height: auto;
}
.love-forever {
    margin-top: 1rem;
    text-align: center;
    width: 50%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
}

.love-forever img {
    width: 12rem;
    height: auto;
    margin: 0 auto;
}

.final-message {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .final-message {
        text-align: right;
    }
}
.final-message img {
    width: 14rem;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .final-message img {
        margin: 0;
    }
}

/* Floating Image */
.floating-image {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
}

.floating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.hero-section, .venue-section, .countdown-section, .dress-code-section, .gifts-section, .rsvp-confirmation-section, .rsvp-form-section, .final-section {
    padding: 2rem 1rem;
    align-content: center;
    gap: 65px;
}
   .venue-photo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    margin-bottom: 30px;
} 
.venue-info {
    flex: 1;
    text-align: center;
    order: 2;
}
    .couple-photos {
        gap: 1.5rem;
    }
    
    .photo-frame {
        width: 14rem;
        height: 18rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .wedding-rings img {
        width: 8rem;
    }
    
    .wedding-decoration img {
        width: 14rem;
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .timer-separator {
        font-size: 2rem;
    }
    
    .color-swatch {
        width: 5rem;
        height: 5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .floating-image {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    section {
        page-break-inside: avoid;
    }
}

.calendar {
    width: max-content;
    font-family: 'Poiret One';
    color: #000000;
    padding: 20px;
    font-weight: 900;
    border-radius: 8px;
}
.venue-header p {
    color: #000000;
    font-family: 'Poiret One';
    font-size: 30px;
    text-align: center;
    font-weight: 900;
    height: 34px;
}
.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.days span {
    font-size: 16px;
    position: relative;
}

/* ❤️ Контейнер для сердечка */
.day-heart {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ▼ Используем идеальное симметричное сердце */
.day-heart svg {
    width: 42px;
    height: 38px;
    fill: #8c1220;
    position: absolute;
    top: -10px;
}


/* Число поверх сердечка */
.day-heart .day-number {
    position: relative;
    color: #fff;
    font-size: 16px;
    z-index: 2;
    font-weight: 500;
}
