body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Playfair Display', serif;
    color: #222;
}

@font-face {
    font-family: 'Metrika';
    src: url('fonts/Metrika.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mirra';
    src: url('fonts/Mirra.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'rusSH';
    src: url('fonts/rusSH.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.cover {
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    max-height: 100svh;
    position: relative;
    background: url('images/IMG_2063.PNG') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.cover-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}
.initials {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: 3.8rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.22em;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    opacity: 0.92;
    line-height: 1.1;
    text-align: center;
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
}
.date {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: 2.6rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.18em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    opacity: 0.92;
    line-height: 1.1;
    text-align: center;
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 100vw;
}
.cover-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}
.section {
    max-width: 800px;
    margin: 40px auto;
    padding: 32px 32px 24px 32px;
    border: none;
    position: relative;
}

.greeting h1 {
    font-family: 'Metrika', sans-serif !important;
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 18px 0;
    text-align: left;
}

.greeting-line {
    width: 2px;
    min-height: 100px;
    background: linear-gradient(180deg, #a02c2c 0%, #e5d6d6 100%);
    margin-right: 32px;
    opacity: 0.5;
    flex-shrink: 0;
}
.greeting-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
}
.greeting-text {
    font-size: 1.05rem;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
}
.greeting-text .script {
    font-family: 'Dancing Script', cursive;
    color: #8b2323;
    font-size: 1.5rem;
    font-weight: 700;
}
.greeting-img-rect {
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    margin: 32px auto 0 auto;
    display: block;
    box-shadow: none;
    align-self: center;
}

@font-face {
    font-family: 'Kosolapa Script';
    src: url('fonts/KosolapaScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



.greeting-content {
    font-family: 'Metrika', sans-serif !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}
.kosolapa-script {
    display: inline-block; 
    font-size: 5rem;
    font-family: 'rusSH', cursive;
    margin: 0 auto 0 10%; 
    color: darkred;
}
.about-love {
    text-align: center;
    margin-top: 18px;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}
.love-script {
    font-family: 'Metrika', cursive;
    color: #8b2323;
    font-size: 2.1rem;
    margin-left: 8px;
}
.timing {
    margin-top: 60px;
}
.timing h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 40px;
}
.timing-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin: 0 auto;
    max-width: 300px;
    position: relative;
}
.timing-item {
    width: 50vw;
    max-width: 50vw;
    margin-left: 0;
    margin-right: auto;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
}
.timing-item:nth-child(even) {
    width: 50vw;
    max-width: 50vw;
    margin-left: auto;
    margin-right: 0;
    align-items: flex-end;
    text-align: right;
    box-sizing: border-box;
}
.timing-time {
    font-family: 'Mirra', serif !important;
    font-size: 4rem;
    color: #a02c2c;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 0.5em;
    text-align: left;
}
.timing-title, .timing-place, .timing-desc {
    text-align: left;
}
.dresscode-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 32px;
    justify-content: center;
}
.vertical-text {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Mirra', serif;
    font-size: 2.8rem;
    letter-spacing: 0.18em;
    color: #222;
    font-weight: 400;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
    height: 320px;
    display: flex;
    align-items: flex-start; 
    justify-content: center; 
}
.dresscode-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.dresscode-img {
    width: 280px;
    max-width: 40vw;
    border-radius: 16px;
    filter: grayscale(1) contrast(1.1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin: 0 0 18px 0;
    display: block;
}
.dresscode-text {
    font-family: 'Metrika', serif !important;
    margin-bottom: 3%;
    font-size: 1.1rem;
    text-align: center;
}
.palette {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 0;
    width: 100%;
}
.color {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background-size: cover;
    background-position: center;
    border: none;
}
.color-white { background-image: url('images/IMG_2337.AVIF'); }
.color-beige { background-image: url('images/IMG_2338.JPG'); }
.color-grey { background-image: url('images/IMG_2339.JPG'); }
.color-black { background-image: url('images/IMG_2340.JPG'); }
.details {
    margin-top: 18px;
    text-align: center;
}
.details-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    color: #222;
    font-weight: 300;
    margin-bottom: 4px;
}
.details-text {
    font-size: 1.05rem;
}
.final {
    text-align: center;
    padding-bottom: 0;
}
.final-script {
    font-family: 'Dancing Script', cursive;
    color: #8b2323;
    font-size: 2rem;
    margin: 0 0 18px 0;
}
.final-img-block {
    margin-bottom: 18px;
}
.final-img {
    width: 100%;
    border-radius: 6px;
    filter: grayscale(1) contrast(1.1);
}
.final-bottom-text {
    font-family: 'Metrika', serif;
    font-size: 1.6rem;
    margin: 25px 0 40px 0;
}
.final-names {
    font-family: 'Mirra', serif;
    font-size: 1.5rem;
    color: #8b2323 !important;

    letter-spacing: 0.08em;
    margin-bottom: 10px;
}


.final-names .vladi {
    color: #8b2323;
    font-family: 'Mirra', cursive;
    font-size: 1.8rem;
    margin-left: 6px;
}
.final-img-small {
    width: 120px;
    border-radius: 6px;
    margin-top: 10px;
    filter: grayscale(1) contrast(1.1);
}
.accent {
    color: #8b2323;
}
.shape-large {
    border-radius: 32px 32px 60px 60px/40px 40px 80px 80px;
    overflow: hidden;
}
.shape-oval {
    border-radius: 50% / 35%;
    overflow: hidden;
}
.greeting-img, .dresscode-img, .final-img-small {
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.details-title-modern {
    font-family: 'Mirra', serif;
    font-size: 2.6rem;
    font-weight: 300;
    color: #222;
    letter-spacing: 0.13em;
    text-align: center;
    margin-top: 15%;
    margin-bottom: 15px;
    line-height: 1.05;
}
.lovelace {
    font-family: 'Relais', serif !important;
}
@media (max-width: 900px) {
    .coe {
        width: 100vw;
        margin: 0;
        padding: 0;
        background: none;
    }
    svg {
        display: block;
        width: 100vw;
        height: auto;
        margin: 0;
        padding: 0;
    }
    
    .greeting-content {
        display: flex;
        flex-direction: row; 
        align-items: stretch;
        gap: 0;
    }
    .greeting-line {
        width: 2px;
        min-height: 500px;
        background: linear-gradient(180deg, #a02c2c 0%, #e5d6d6 100%);
        margin-right: 32px;

        margin-left: 10%;
        opacity: 0.5;
        flex-shrink: 0;
    }
    .section, .cover {
        max-width: 98vw;
        padding: 10px 2vw;
    }
    .cover-img, .greeting-img, .dresscode-img, .final-img, .final-img-small {
        height: auto;
        max-width: 100%;
    }
    .vertical-text {
        font-size: 2.8rem;
        letter-spacing: 0.12em;
        text-align: center;
    }
    .greeting-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .dresscode-header {
        flex-direction: row;
        align-items: flex-end;
        gap: 10px;
        justify-content: center;
    }
    .palette {
        gap: 8px;
        width: 100%;
    }
    .greeting-img-rect {
        margin: 18px auto 0 auto;
        max-width: 98vw;
    }
    .about-love-block {
        align-items: center;
        text-align: center;
    }
    .dresscode-img {
        width: 44vw;
        max-width: 48vw;
        margin: 0 0 12px 0;
    }
    .color {
        width: 36px;
        height: 36px;
    }
}
@media (max-width: 600px) {
    body {
        font-size: 1.08rem;
    }
    .section, .cover {
        padding: 6vw 1vw;
        border-width: 0;
    }
    .initials {
        font-size: 2.1rem;
        margin-top: 180px;
    }
    .date {
        font-size: 1.3rem;
        margin-top: 120px;
    }
    .greeting h1{
        font-size: 2.3rem;
    }
    .final-script {
        font-size: 1.2rem;
    }
    .final-names {
        font-size: 1.8rem;
        color: #8b2323 !important;

    }
    .final-img-small {
        width: 80px;
    }
}
@media (max-width: 700px) {
    .greeting-content {
        font-family: 'rusSH', sans-serif !important;
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        justify-content: flex-end;
    }
 
    .greeting-main {
        max-width: 340px;
        width: 100%;
        margin: 0 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


    .greeting-text {

        width: 100%;
        align-items: flex-start;
        text-align: center;
        gap: 12px;
        font-size: 1.3rem;
    }
    .greeting-img-rect {
        width: 100%;
        max-width: 80%;
        margin: 24px auto 0 auto;
        border-radius: 8px;
        box-shadow: none;
        align-self: center;
    }
    .about-love-block {
        align-items: center;
        text-align: center;
        margin-top: 32px;
    }
    .timing-list {
        max-width: 98vw;
        gap: 32px;
    }
    .timing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2em;
    }
    .timing-item:nth-child(even) {
        flex-direction: row-reverse;
    }
    .timing-time {
        font-size: 3rem;
        margin-bottom: 0.1em;
        text-align: left;
    }
    .timing-title {
        font-size: 1rem;
    }
    .timing-desc {
        font-size: 0.95rem;
    }
    .cover {
        min-height: 800px;
        height: 150%;
    }
    .initials {
        font-size: 2.2rem;
        top: 44%;
    }
    .date {
        font-size: 1.3rem;
        bottom: 18px;
    }
}
.accent-script {
    font-size: 4rem;
    font-family: 'rusSH', serif;
    color: #a02c2c;
    letter-spacing: 0.04em;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(160,44,44,0.08);
    animation: fadeInUp 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.section, .cover {
    /* box-shadow removed */
    transition: none;
}
.section:hover, .cover:hover {
    /* box-shadow removed */
}
hr, .divider {
    border: none;
    border-top: 1.5px solid #e5d6d6;
    margin: 32px 0 24px 0;
    width: 60%;
    align-self: center;
    opacity: 0.7;
}
.greeting-line {
    background: linear-gradient(180deg, #a02c2c 0%, #e5d6d6 100%);
    opacity: 0.5;
}
.details-title {
    letter-spacing: 0.12em;
    color: #000000;
    font-weight: 700;
}
.palette .color {
    border: 2px solid #e5d6d6;
    box-shadow: 0 2px 8px rgba(160,44,44,0.07);
    transition: transform 0.2s;
}
.palette .color:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(160,44,44,0.13);
}
.about-love-block {
    margin-top: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.about-love-block span {
    display: block;
    line-height: 1.1;
}
.timing-vector {
    position: absolute;
    left: 45%;
    top: 12%;
    transform: translateX(-50%);
    height: 30%;
    width: 50%;
    z-index: 1;
    pointer-events: none;
}
.timing-car {
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translate(-50%, -50%);
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.rsvp-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Metrika', 'Playfair Display', Arial, sans-serif;
    color: #111;
    font-size: 1.08rem;
    background: none;
}
.rsvp-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.2em;
    color: #111;
    gap: 0.2em;
    letter-spacing: 0.01em;
}
.rsvp-label span {
    font-size: 1.6rem;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.01em;
}
.rsvp-label small {
    font-size: 0.95rem;
    color: #444;
    font-weight: 400;
    margin-top: 0.2em;
    letter-spacing: 0.01em;
}
.rsvp-label input[type="text"] {
    border: none;
    border-bottom: 2px solid #111;
    border-radius: 0;
    background: transparent;
    font-size: 1.2rem;
    font-family: inherit;
    color: #111;
    padding: 8px 0 4px 0;
    width: 100%;
    outline: none;
    box-shadow: none;
    margin-top: 10px;
    text-align: left;
}
.rsvp-label input[type="text"]::placeholder {
    color: #888;
    opacity: 1;
    font-style: italic;
}
.rsvp-divider {
    border: none;
    border-top: 2px solid #111;
    margin: 24px 0 18px 0;
    width: 100%;
    align-self: stretch;
    opacity: 1;
}
.rsvp-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.5em;
    letter-spacing: 0.01em;
    text-align: left;
}
.rsvp-checkbox {
    display: flex;
    align-items: center;
    font-size: 1.08rem;
    font-weight: 400;
    margin-bottom: 0.5em;
    gap: 10px;
    color: #111;
    text-align: left;
}
.rsvp-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #111;
    border: 2px solid #111;
    border-radius: 4px;
    margin-right: 8px;
}
.rsvp-submit {
    margin-top: 18px;
    background: #111;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 2px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Metrika', 'Playfair Display', Arial, sans-serif;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    box-shadow: none;
    display: inline-block;
}
.rsvp-submit:hover {
    background: #333;
}
.details-text {
    font-family: 'Metrika', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    text-align: center;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 48px;
    margin-top: 0;
}

@media (max-width: 600px) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
  }
  .visible {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 901px) {
  .curved-bg-img {
    width: 100%;
    height: 120px;
    background: url('style/images/IMG_2027.PNG') center/cover no-repeat;
    clip-path: path('M0 0 Q 215 60 430 0 V40 H0 V0Z');
  }
}
@media (max-width: 900px) {
  .curved-bg-img {
    width: 100%;
    height: 80px;
    background: url('style/images/IMG_2027.PNG') center/cover no-repeat;
    clip-path: none;
    border-radius: 0;
  }
}

@media (min-width: 1200px) {
  body {
    background: #232323;
    font-size: 1.15rem;
    color: #222;
    letter-spacing: 0.01em;
  }

  .section {
    max-width: 1100px;
    margin: 60px auto 60px auto;
    padding: 56px 64px 48px 64px;
    border-radius: 32px;
    background: #fff;
    position: relative;
    transition: none;
  }

  .cover {
    min-height: 600px;
    height: 100vh;
    border-radius: 0 0 80px 80px/0 0 120px 120px;
    overflow: hidden;
    position: relative;
  }

  .cover-content {
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
  }
  .cover-wave{
    display: none;
  }
  .timing-vector{
    display: none;
  }
  .timing-car{
    display: none;
  }

  .initials {
    font-size: 6rem;
    letter-spacing: 0.28em;
    top: 44%;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 4px 32px rgba(0,0,0,0.25);
  }
  .date {
    font-size: 2.8rem;
    bottom: 48px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 4px 32px rgba(0,0,0,0.25);
  }

  .greeting {
    margin-top: 80px;
    margin-bottom: 80px;
    background: #fff;
    border-radius: 32px;
    padding: 64px 80px 48px 80px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
    position: relative;
  }
  .greeting-content {
    flex-direction: row;
    align-items: stretch;
    gap: 48px;
    width: 100%;
  }
  .greeting-line {
    min-height: 420px;
    margin-right: 48px;
    margin-left: 0;
    opacity: 0.7;
    width: 3px;
    background: linear-gradient(180deg, #a02c2c 0%, #e5d6d6 100%);
    border-radius: 2px;
  }
  .greeting-main {
    max-width: 540px;
    margin: 0;
    align-items: flex-start;
  }
  .greeting-text {
    font-size: 1.3rem;
    gap: 32px;
    align-items: flex-start;
    text-align: left;
  }
  .kosolapa-script {
    font-size: 6rem;
    margin-left: 0;
    margin-top: 32px;
    color: #a02c2c;
    text-shadow: 0 2px 12px rgba(160,44,44,0.08);
  }
  .greeting-img-rect {
    width: 420px;
    max-width: 100%;
    margin: 48px 0 0 0;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(160,44,44,0.07), 0 1.5px 8px rgba(0,0,0,0.04);
    align-self: flex-start;
  }
  .about-love-block {
    font-size: 2.2rem;
    margin-top: 48px;
    gap: 0;
  }
  .love-script {
    font-size: 3.2rem;
    color: #a02c2c;
    margin-left: 18px;
    font-family: 'Mirra', serif;
    text-shadow: 0 2px 12px rgba(160,44,44,0.08);
  }

  /* Декоративные элементы */
  .timing-list {
    max-width: 900px;
    gap: 64px;
  }
  .timing-item, .timing-item:nth-child(even) {
    width: 48%;
    max-width: 48%;
    min-width: 340px;
    box-sizing: border-box;
    margin: 0;
    padding: 32px 32px 32px 32px;
    background: #faf7f7;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(160,44,44,0.07);
    position: relative;
  }
  .timing-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px 32px;
  }
  .timing-item:nth-child(odd) {
    align-self: flex-start;
  }
  .timing-item:nth-child(even) {
    align-self: flex-end;
  }
  .timing-time {
    font-size: 4.2rem;
    color: #a02c2c;
    font-family: 'Mirra', serif !important;
    margin-bottom: 0.5em;
  }
  .timing-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.2em;
  }
  .timing-place {
    font-size: 1.1rem;
    color: #a02c2c;
    margin-bottom: 0.2em;
  }
  .timing-desc {
    font-size: 1.1rem;
    color: #222;
  }

  .dresscode-header {
    gap: 48px;
    margin-bottom: 32px;
  }
  .vertical-text {
    font-size: 3.2rem;
    color: #a02c2c;
    font-family: 'Mirra', serif;
    font-weight: 700;
    letter-spacing: 0.22em;
    background: none;
    border: none;
    height: 420px;
    align-items: flex-start;
    justify-content: center;
  }
  .dresscode-img {
    width: 340px;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(160,44,44,0.07), 0 1.5px 8px rgba(0,0,0,0.04);
    margin: 0 0 18px 0;
  }
  .palette {
    gap: 24px;
    margin: 0 auto 24px auto;
    width: 80%;
  }
  .color {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(160,44,44,0.13);
  }
  .details-title-modern {
    font-size: 3.2rem;
    margin-top: 48px;
    margin-bottom: 24px;
    color: #a02c2c;
    font-family: 'Mirra', serif;
    letter-spacing: 0.18em;
  }
  .details-text {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 48px;
    font-family: 'Metrika', serif;
  }
  .rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 48px;
    background: #faf7f7;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(160,44,44,0.07);
    font-size: 1.2rem;
    gap: 24px;
  }
  .rsvp-label span {
    font-size: 2rem;
    font-weight: 600;
  }
  .rsvp-label input[type=\"text\"] {
    font-size: 1.3rem;
    padding: 12px 0 8px 0;
    border-bottom: 2.5px solid #a02c2c;
  }
  .rsvp-divider {
    border-top: 2.5px solid #a02c2c;
    margin: 32px 0 24px 0;
  }
  .rsvp-question {
    font-size: 2rem;
    font-weight: 700;
    color: #a02c2c;
    margin-bottom: 0.5em;
  }
  .rsvp-checkbox {
    font-size: 1.2rem;
    gap: 16px;
  }
  .rsvp-checkbox input[type=\"checkbox\"] {
    width: 28px;
    height: 28px;
    accent-color: #a02c2c;
    border: 2px solid #a02c2c;
  }
  .rsvp-submit {
    font-size: 1.5rem;
    font-weight: 700;
    background: #a02c2c;
    color: #fff;
    border-radius: 8px;
    padding: 18px 48px;
    margin-top: 24px;
    box-shadow: 0 4px 24px rgba(160,44,44,0.07);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    transition: background 0.2s;
  }
  .rsvp-submit:hover {
    background: #7b2323;
  }
  .final {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(160,44,44,0.07), 0 1.5px 8px rgba(0,0,0,0.04);
    padding: 64px 80px 48px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    position: relative;
  }

  .final-script {
    font-size: 6rem;
    color: #a02c2c;
    font-family: 'rusSH', serif;
  }
  .final-img-block {
    margin-bottom: 16px;
  }
  .final-img {
    width: 540px;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(160,44,44,0.07), 0 1.5px 8px rgba(0,0,0,0.04);
  }
  .final-bottom-text {
    font-size: 2rem;
    margin: 5px 0 16px 0;
    color: #222;
    font-family: 'Metrika', serif;
  }
  .final-names {
    font-size: 2.2rem;
    color: #a02c2c !important;
    font-family: 'Mirra', serif;
    margin-bottom: 18px;
  }
  .final-img-small {
    width: 180px;
    border-radius: 32px;
    margin-top: 18px;
    box-shadow: 0 8px 32px rgba(160,44,44,0.07), 0 1.5px 8px rgba(0,0,0,0.04);
  }
  .coe {
    width: 100vw;
    margin: 0;
    padding: 0;
    background: none;
    position: relative;
    z-index: 10;
  }
  .coe svg {
    width: 100vw;
    height: 180px;
    display: none;
    margin: 0;
    padding: 0;
  }
  .final-names .vladi {
    color: #8b2323;
    font-family: 'Mirra', cursive;
    font-size: 2rem;
    margin-left: 6px;
}
  .reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(.23,1.01,.32,1), transform 0.8s cubic-bezier(.23,1.01,.32,1);
    will-change: opacity, transform;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .section {
    max-width: 90vw;
    margin: 40px auto;
    padding: 32px 16px 24px 16px;
    border-radius: 18px;
    background: #fff;
  }
  .final {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 32px 16px 24px 16px;
    border-radius: 18px;
  }
  .final-img {
    width: 90vw;
    max-width: 420px;
  }
}
.final-script {
  display: block;
  width: 100%;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}
.final {
  text-align: center;
}