/* ============================================================
   1. СБРОС И БАЗА
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@font-face {
    font-family: 'Klyakson';
    src: url('Klyakson.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: #faeaea;
    font-family: 'Georgia', serif;
    overflow: hidden;
    height: 100vh;
    margin: 0;
}
/* ============================================================
   КНОПКА МУЗЫКИ
   ============================================================ */
.music-toggle {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    border: none;
    background: #5b1b14; /* коричневый */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    /* Форма сердечка */
    clip-path: path("M30 52.9 L27.1 50 C12.5 35.4 5 27.9 5 19.1 C5 11.6 11 5.6 18.5 5.6 C22.7 5.6 26.6 7.6 30 11 C33.4 7.6 37.3 5.6 41.5 5.6 C49 5.6 55 11.6 55 19.1 C55 27.9 47.5 35.4 32.9 50 L30 52.9Z");
    padding: 0;
}

.music-toggle.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-toggle svg {
    position: absolute;
    top: 25%;          /* ← было по умолчанию 0, теперь чуть выше центра */
 
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* превращает чёрный в белый */
}
.music-toggle .icon-off { opacity: 0; }
.music-toggle.muted .icon-on { opacity: 0; }
.music-toggle.muted .icon-off { opacity: 1; }

/* ============================================================
   2. ЗАСТАВКА (SPLASH)
   ============================================================ */
#splash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1.2s ease;
    padding: 20px;
    overflow: hidden;
}

#splash::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('DSC06699.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: 0;
}

#splash .camera-wrapper { z-index: 1; }
#splash .click-bubble  { z-index: 1000; }
#splash .photo-frame   { z-index: 10; }

#splash.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   3. КАМЕРА И ФОТОРАМКА
   ============================================================ */
.camera-wrapper {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.camera-icon {
    width: 450px;
    height: 350px;
    z-index: 1000;
}

/* Кружок "ЩЕЛК" */
.click-bubble {
    position: absolute;
    bottom: 280px;
    left: -50px;
    width: 100px;
    height: 70px;
    background: #ffffff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Klyakson', cursive;
    font-size: 26px;
    font-weight: normal;
    color: #1a1a2e;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.click-bubble:hover {
    transform: scale(1.05);
}

/* Рамка, выезжающая из камеры */
.photo-frame {
    position: absolute;
    bottom: 400px;
    left: 50%;
    transform: translateX(-50%) translateY(120%) scale(1);
    width: 320px;
    opacity: 0;
    transition: all 4s ease-out;
    z-index: 10;
    text-align: center;
}

.photo-frame.show {
    opacity: 1;
    bottom: 320px;
    transform: translateX(-50%);
}

.frame-inner {
    background-color: #fffefe;
    padding: 30px 25px 25px;
    border-radius: 3px;
    border: 0.5px solid #E0E5EB;
    box-shadow: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.polaroid-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fbfaf6;
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

.pastel-text {
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 32px;
    line-height: 1.4;
    font-weight: 400;
    background: linear-gradient(135deg,
        #5b1b14 0%,
        #803e37 30%,
        #97625c 60%,
        #bd8e89 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.frame-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-top: auto;
    padding: 0 8px;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 18px;
    color: #1a1a2e;
    -webkit-text-fill-color: #1a1a2e;
}

.footer-names,
.footer-date {
    font-weight: 400;
}

/* ============================================================
   4. ПОЛАРОИДЫ (жених / невеста)
   ============================================================ */
.polaroid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    flex-wrap: wrap;
    position: relative;
}

.polaroid-card {
    background-color: #fffefe;
    padding: 5% 5% 6%;
    border-radius: 3px;
    border: 0.5px solid #E0E5EB;
    width: 270px;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 -10px;
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1px;
    background-color: #f0f0f0;
}

.polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 18px;
    line-height: 1;
    color: #1a1a2e;
    padding: 0 4px;
}

.polaroid-label,
.polaroid-year {
    font-weight: 400;
}

.polaroid-card.left {
    transform: rotate(-6deg);
}

.polaroid-card.right {
    transform: rotate(6deg);
    margin-top: 130px;
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: none;
    z-index: 10;
}

/* Надпись "Мы женимся!" */
.top-label {
    position: absolute;
    top: 70px;
    right: 10px;
    left: 300px;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 56px;
    color: #442c2c;
    transform: rotate(-8deg);
    z-index: 5;
    white-space: nowrap;
}

/* ============================================================
   5. ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
#main {
    display: none;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 20px 20px 50px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1vh;
}

#main::before {
    content: '';
    position: fixed;        /* ← было absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('DSC06699.jpg') center/cover no-repeat;
    filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

#main > * {
    position: relative;
    z-index: 1;
}

#main.visible {
    display: flex;
}

#main h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #f7c948, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Заголовок на заставке (если используется) */
.main-title {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
    transition: none;
    width: 90%;
    max-width: 700px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.main-title.show {
    animation: titleAppear 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes titleAppear {
    0%   { opacity: 0; transform: translateX(-50%) translateY(50px) scale(0.85); }
    50%  { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1.04); }
    80%  { transform: translateX(-50%) translateY(4px) scale(0.98); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.rainbow-text {
    background: linear-gradient(90deg,
        #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd, #ff6b6b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowMove 4s linear infinite;
    font-size: inherit;
}

@keyframes rainbowMove {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.main-title .sub {
    display: block;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.5);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    text-transform: uppercase;
}

/* ============================================================
   6. ЦВЕТНЫЕ БЛОКИ (буквы)
   ============================================================ */
.colorful-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.colorful-text-block1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -30px;
    text-align: center;
}

.line-1, .line-2, .line-3, .line-4 {
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 82px;
    line-height: 1.2;
    letter-spacing: -10px;
    margin: -5px;
}

.line-1 { margin-bottom: 25px; }
.line-2 { margin-bottom: 25px; }
.line-3 { margin-top: 90px; }
.line-4 { margin-bottom: -70px; }

.plus-sign, .equals-sign {
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 75px;
    font-weight: bold;
    color: #5b1b14;
    line-height: 0.3;
}

.equals-sign {
    margin: 5px 0 15px 0;
}

.colorful-text-block:last-of-type {
    margin-top: -30px;
    margin-bottom: 300px;
}

/* ============================================================
   7. СЕРДЕЧКО-ГАЛЕРЕЯ
   ============================================================ */
.heart-photo {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: scale(1);
}

.heart-photo .heart-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.heart-photo .heart-img.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes doubleBeat {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.05); }
    35%  { transform: scale(1); }
    55%  { transform: scale(1.05); }
    75%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.heart-photo.playing {
    animation: doubleBeat 1.2s ease-in-out 1 forwards;
}

/* ============================================================
   8. МЕСТО ВСТРЕЧИ (drag-stack)
   ============================================================ */
.venue-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.venue-title {
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 42px;
    color: #a56c66;
    margin-bottom: 20px;
    text-align: center;
}

.venue-polaroid {
    background-color: #ffffff;
    padding: 4% 4% 5%;
    border-radius: 3px;
    border: 0.5px solid #E0E5EB;
    box-shadow: none;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.venue-photo {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    border-radius: 1px;
    background-color: #f0f0f0;
}

.venue-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.venue-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-top: 15px;
    padding: 0 5px;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 20px;
    color: #1a1a2e;
}

.venue-map-link {
    display: block;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 20px;
    color: #1a1a2e;
    text-decoration: none;
    margin-top: 25px;
    padding-bottom: 3px;
    border-bottom: 2px solid #1a1a2e;
    transition: opacity 0.3s ease;
}

.venue-map-link:hover {
    opacity: 0.7;
}

/* Карточный стек */
.drag-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 360px;
    height: 480px;
    margin: 30px auto;
    position: relative;
}

.drag-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: none;
    transform: none;
    opacity: 1;
    z-index: auto;
}
.drag-stack,
.drag-card {
    touch-action: none;
}
.drag-card:active {
    cursor: grabbing;
}

.drag-card .venue-polaroid {
    width: 100%;
    height: 100%;
    padding: 4% 4% 5%;
    border-radius: 3px;
    border: 0.5px solid #E0E5EB;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    box-shadow: none;
}

.drag-card .venue-photo {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    border-radius: 1px;
    background-color: #f0f0f0;
}

.drag-card .venue-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drag-card .venue-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-top: 15px;
    padding: 0 5px;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 20px;
    color: #1a1a2e;
}

.drag-card.flipped {
    transform: translateX(120%) rotate(20deg);
    opacity: 0;
}

/* ============================================================
   9. РАСПИСАНИЕ
   ============================================================ */
.raspisanie {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 60px auto 30px;
    max-width: 500px;
    padding: 0 20px;
    text-align: left;
}

.raspisanie > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raspisanie > div > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: start;
    gap: 15px;
}

.raspisanie .time {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 40px;
    color: #1a1a2e;
    line-height: 1.2;
    margin-right: 10px;
}

.raspisanie .event {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Georgia', serif;
}

.raspisanie .event p:first-child {
    font-size: 30px;
    color: #1a1a2e;
    line-height: 1.2;
    font-family: 'Klyakson', 'Georgia', serif;
    margin: 0;
}

.raspisanie .event p:last-child {
    font-size: 20px;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0;
    font-family: 'Klyakson', 'Georgia', serif;
}

.raspisanie svg {
    width: 150%;
    height: 20px;
    margin: 16px -60px 10px;
    opacity: 0.5;
}
.transfer-info {
    width: 100vw;                              /* на всю ширину экрана */
    max-width: none;                           /* убираем ограничение */
    margin-left: calc(-50vw + 50%);            /* выходим за padding родителя */
    margin-right: calc(-50vw + 50%);
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 40px;                           /* отступы по бокам, чтобы текст не прилипал к краям */
    text-align: center;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 30px;
    line-height: 1.5;
    color: #1a1a2e;
    box-sizing: border-box;

}
.transfer-info2 {
    width: 100vw;                              /* на всю ширину экрана */
    max-width: none;                           /* убираем ограничение */
    margin-left: calc(-50vw + 50%);            /* выходим за padding родителя */
    margin-right: calc(-50vw + 50%);
    margin-top: 10px;
    margin-bottom: 40px;
    padding: 0 40px;                           /* отступы по бокам, чтобы текст не прилипал к краям */
    text-align: center;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 30px;
    line-height: 1.5;
    color: #1a1a2e;
    box-sizing: border-box;

}
.transfer-info p {
    margin: 10px 0;
}

.transfer-info strong {
    text-decoration: underline;
    font-family: 'Klyakson', 'Georgia', serif;
    color: #1a1a2e;
    font-size: 30px;

}
/* ============================================================
   10. ДРЕСС-КОД
   ============================================================ */
.dresscode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.dresscode-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    justify-content: center;
    justify-items: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 10px;
}

.dresscode-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.dresscode-subtitle {
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 35px;
    color: #1a1a2e;
    white-space: nowrap;
    margin-bottom: 10px;
}
.dresscode-subtitle1 {
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 25px;
    color: #47130d;
    white-space: nowrap;
    margin-top: 10px;
}
.dresscode-palette {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.dresscode-palette.vertical {
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.dresscode-palette.vertical .color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 22px;
}

.dresscode-center {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dresscode-center .drag-stack {
    margin: 0 auto;
}

/* Свотчи */
.color-swatch {
    position: relative;
    outline: none;
    width: 65px;
    height: 65px;
    border-radius: 22px;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch:focus {
    -webkit-tap-highlight-color: transparent;
}

/* Тултип цвета */
.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    background: rgba(26, 26, 46, 0.92);
    color: #fff;
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 14px;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
    box-shadow: none;
}

.color-swatch::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%) translateY(6px);
    border: 6px solid transparent;
    border-top-color: rgba(26, 26, 46, 0.92);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 20;
}

.color-swatch:hover::after,
.color-swatch:focus::after,
.color-swatch:hover::before,
.color-swatch:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* ============================================================
КНОПКА "ВСТУПИТЬ В ЧАТ"
============================================================ */
.chat-button {
    display: inline-block;
    margin: 40px auto;
    padding: 18px 50px;
    background: rgba(255, 255, 255, 0.7);;
    border: 1px solid #5b1b14;
    border-radius: 50px; /* pill-форма */
    font-family: 'Klyakson', 'Georgia', serif;
    font-size: 22px;
    color: #5b1b14;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;

}


/* ============================================================
   11. ЖДЁМ ВАС
   ============================================================ */
.waiting-polaroid {
    background: #fffefe;
    padding: 14px 14px 46px;
    border-radius: 3px;
    border: 0.5px solid #E0E5EB;
    box-shadow: none;
    transform: rotate(-3deg);
    margin: 30px auto 0;
    width: fit-content;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.waiting-polaroid:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: none;
}

.waiting-polaroid-photo {
    width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1px;
    background-color: #f0f0f0;
}

.waiting-polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* ============================================================
   12. ФУТЕР И СЛУЖЕБНОЕ
   ============================================================ */
.site-footer {
    margin-top: 40px;
    text-align: center;
    color: #b0b0b0;
    font-size: 12px;
    font-family: 'Georgia', serif;
}

.site-footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #666;
}

#vk_playlist_-2000620976_18620976 {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.divider {
    display: block;
    margin: 15px auto;
    width: 80px;
    height: 20px;
}
/* ============================================================
   ================  АДАПТИВ (МОБИЛЬНЫЕ)  ======================
   ============================================================ */

/* ---------- Планшеты: <= 900px ---------- */
@media (max-width: 900px) {
    .dresscode-layout {
        gap: 20px;
        padding: 0 10px;
    }
}

/* ---------- Дресс-код перестройка: <= 800px ---------- */
@media (max-width: 800px) {
    .dresscode-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .dresscode-column {
        margin-top: 0;
    }

    .dresscode-palette.vertical {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .dresscode-palette.vertical .color-swatch {
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }

}

/* ---------- Телефоны: <= 600px ---------- */
@media (max-width: 600px) {

    /* Заголовок на заставке */
    .main-title {
        font-size: 28px;
        top: 14%;
    }

    .main-title .sub {
        font-size: 14px;
        letter-spacing: 4px;
    }

    /* Камера */
    .camera-wrapper {
        width: 160px;
        height: 130px;
        bottom: 20px;
    }

    .camera-icon {
        width: 350px;
        height: 320px;
    }

    .click-bubble {
        width: 100px;
        height: 100px;
        font-size: 25px;
        bottom: 180px;
        left: -100px;
    }

    .top-label {
        position: static !important; 
        display: block;
        width: 100%;
        text-align: center;
        font-size: 36px;
        transform: rotate(-3deg);
        margin: 10px 0 20px 0; 
        white-space: normal;
        order: -1; /* Принудительно ставим надпись самым первым элементом */
    }

    /* Контейнер */
    .polaroid-container {
        display: flex;
        flex-wrap: wrap; /* Разрешаем перенос строк */
        justify-content: center;
        align-items: flex-start;
        gap: 10px; 
        padding: 20px 10px;
    }

    .polaroid-card {
        width: 180px; /* Увеличиваем размер для лучшего вида */
        padding: 10px 10px 15px;
        margin: 0; /* Убираем отрицательные отступы */
    }

    .polaroid-card.left {
        transform: rotate(-4deg);
    }

    .polaroid-card.right {
        transform: rotate(4deg);
        margin-top: 0; /* Убираем сдвиг, так как теперь они в колонку */
        margin-left: 40px; /* Немного смещаем вправо для "живости" */
    }

    .polaroid-footer {
        font-size: 14px;
    }

    


    /* Цветные буквы */
    .line-1, .line-2 {
        font-size: 34px;
        letter-spacing: -4px;
    }

    .plus-sign,
    .equals-sign {
        font-size: 28px;
    }

    /* Сердечко */
    .heart-photo {
        width: 150px;
        height: 150px;
    }

    /* Место встречи */
    .drag-stack {
        width: 260px;
        height: 350px;
    }

    .venue-polaroid {
        width: 280px;
    }

    .venue-title {
        font-size: 32px;
    }

    .venue-footer {
        font-size: 18px;
    }

    .venue-map-link {
        font-size: 18px;
    }

    /* Палитра дресс-кода (общая) */
    .dresscode-palette {
        gap: 10px;
    }

    .color-swatch {
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }

    /* "Ждём вас" */
    .waiting-polaroid-photo {
        width: 240px;
    }
        .photo-frame {
        width: 260px;              /* было 320px */
    }

    .frame-inner {
        padding: 18px 16px 16px;   /* было 30px 25px 25px */
        min-height: 220px;         /* было 280px */
    }

    .polaroid-placeholder {
        padding: 24px;             /* было 45px — главное уменьшение */
    }

    .pastel-text {
        font-size: 25px;           /* было 32px */
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .frame-footer {
        font-size: 16px;           /* было 18px */
        padding: 0 4px;
    }

    
    .music-toggle {
        width: 60px;
        height: 60px;
        right: 6px;
        top: 6px;
        transform: scale(0.75);
        transform-origin: top right;
    }
    .music-toggle svg { width: 24px; height: 24px; }

    .transfer-info {
        width: 95%;
        font-size: 17px;
        padding: 0 15px;
    }
    
    .transfer-info strong {
        font-size: 19px;
    }
}
/* ---------- Маленькие телефоны: <= 400px ---------- */
@media (max-width: 400px) {

    .main-title {
        font-size: 22px;
        top: 12%;
    }

    .click-bubble {
        width: 100px;
        height: 100px;
        font-size: 25px;
        bottom: 180px;
        left: -100px;
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
        outline: none;
        user-select: none;
    }

    .camera-wrapper {
        width: 130px;
        height: 100px;
        bottom: 15px;
    }

    .camera-icon {
        width: 350px;
        height: 320px;
    }

    .drag-stack {
        width: 220px;
        height: 310px;
    }

    .venue-polaroid {
        width: 240px;
    }
        .photo-frame {
        width: 230px;
    }

    .frame-inner {
        padding: 14px 12px 12px;
        min-height: 190px;
    }

    .polaroid-placeholder {
        padding: 18px;
    }

    .pastel-text {
        font-size: 25px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .frame-footer {
        font-size: 16px;
    }

        .polaroid-container {
        padding: 15px 5px;
    }

    .polaroid-card {
        width: 120px;      /* Еще меньше, чтобы точно влезли */
        padding: 8px 8px 12px;
        margin: 0 -8px;    /* Чуть сильнее накладываем друг на друга */
    }

    .polaroid-card.right {
        margin-top: 30px;  /* Выравниваем по высоте */
    }

    .polaroid-footer {
        font-size: 11px;   /* Уменьшаем шрифт подписей */
    
    }
        .top-label {
        font-size: 26px; 
        margin-bottom: 10px;
    }




    .line-3 {
        margin-top: 15px;
    }
    
    .colorful-text-block:last-of-type {
        margin-bottom: 20px; 
    }
}

/* ============================================================
   ПОДСКАЗКИ: «жми» у сердечка и «свайпай карточки»
   ============================================================ */
.heart-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.hint {
    font-family: 'Klyakson', 'Georgia', serif;
    color: #5b1b14;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hint.hidden {
    opacity: 0;
}

.hint-text {
    font-size: 26px;
    line-height: 1;
    white-space: nowrap;
}

/* жми */
.hint-heart {
    position: absolute;
    top: 6%;
    left: 100%;
    margin-left: -30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: rotate(6deg);
    animation: hintNudge 1.6s ease-in-out infinite;
}

.hint-heart .hint-arrow {
    margin-top: 2px;
}

@keyframes hintNudge {
    0%, 100% { transform: translate(0, 0) rotate(6deg); }
    50%      { transform: translate(-6px, 4px) rotate(6deg); }
}

/* свайпай карточки */
.hint-swipe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px auto 0;
}

.hint-swipe .hint-text {
    font-size: 24px;
}

.hint-swipe .hint-arrow:first-child {
    animation: swipeLeft 1.4s ease-in-out infinite;
}

.hint-swipe .hint-arrow:last-child {
    animation: swipeRight 1.4s ease-in-out infinite;
}

@keyframes swipeLeft {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-8px); }
}

@keyframes swipeRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(8px); }
}

@media (max-width: 600px) {
    .hint-heart { margin-left: -12px; top: 0; }
    .hint-heart .hint-text { font-size: 22px; }
    .hint-heart .hint-arrow { width: 52px; height: 39px; }
    .hint-swipe { gap: 8px; }
    .hint-swipe .hint-text { font-size: 20px; }
    .hint-swipe .hint-arrow { width: 34px; height: 17px; }
}
/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (добавить в самый КОНЕЦ stylewedding.css)
   ============================================================ */

/* Страница не должна ездить вбок и прыгать из-за адресной строки */
@media (max-width: 600px) {

    #main {
        overflow-x: hidden;
        min-height: 100dvh;
        padding: 10px 16px 40px;
    }
    #main::before {
        width: 100%;
        height: 100dvh;
    }

    /* ---------- Заставка: камера и рамка не вылезают на низких экранах ---------- */
    .camera-wrapper {
        transform-origin: 50% 100%;
    }

    /* ---------- «Мы женимся» + два полароида в один ряд ---------- */
    .polaroid-container {
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 8px 20px;
        justify-content: center;
        align-items: flex-start;
    }
    .polaroid-card {
        width: min(43vw, 200px);
        padding: 8px 8px 12px;
        margin: 0;
        flex-shrink: 0;
    }
    .polaroid-card.left  { transform: rotate(-5deg); }
    .polaroid-card.right {
        transform: rotate(5deg);
        margin-top: 40px;
        margin-left: -4px;
    }
    .polaroid-footer { font-size: clamp(11px, 3.4vw, 15px); margin-top: 8px; }
    .top-label {
        position: static !important;
        order: -1;
        flex: 0 0 100%;
        width: 100%;
        margin: 0 0 14px;
        text-align: center;
        font-size: clamp(30px, 9.5vw, 40px);
        white-space: normal;
        transform: rotate(-3deg);
    }

    /* ---------- Крупные цветные надписи: все одного размера ---------- */
    .line-1, .line-2, .line-3, .line-4 {
        font-size: clamp(30px, 11vw, 44px);
        letter-spacing: -0.12em;
        margin: -3px;
    }
    .line-1, .line-2 { margin-bottom: 14px; }
    .line-3 { margin-top: 40px; }
    .plus-sign, .equals-sign { font-size: clamp(26px, 8vw, 34px); }
    .colorful-text-block { margin-bottom: 18px; }
    .colorful-text-block:last-of-type {
        margin-top: 0;
        margin-bottom: 30px;
    }

    /* ---------- Сердечко: крупнее ---------- */
    .heart-photo {
        width: min(240px, 62vw);
        height: min(240px, 62vw);
    }

    /* ---------- Стопки карточек: масштабируются от ширины экрана ---------- */
    .drag-stack {
        width: min(300px, 80vw);
        height: auto;
        aspect-ratio: 5 / 7;
        margin: 20px auto;
        touch-action: none;          /* свайп карточки не скроллит страницу */
    }
    .drag-card { touch-action: none; }
    .drag-card .venue-footer,
    .venue-footer {
        font-size: clamp(14px, 4.2vw, 18px);
        margin-top: 10px;
        line-height: 1.15;
    }
    .venue-title { font-size: clamp(26px, 8.5vw, 34px); text-align: center; }
    .venue-map-link { font-size: 18px; }

    /* ---------- Тайминг ---------- */
    .raspisanie {
        max-width: 100%;
        padding: 0 4px;
        margin: 30px auto 20px;
        gap: 12px;
    }
    .raspisanie > div > div {
        grid-template-columns: 74px 1fr;
        gap: 10px;
    }
    .raspisanie .time {
        font-size: 28px;
        margin-right: 0;
    }
    .raspisanie .event p:first-child { font-size: 21px; }
    .raspisanie .event p:last-child  { font-size: 16px; }
    .raspisanie svg {
        width: 100%;
        margin: 8px 0 4px;
    }

    /* ---------- Текстовые блоки на всю ширину без «100vw-хака» ---------- */
    .transfer-info,
    .transfer-info2 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
        margin-bottom: 24px;
        padding: 0 6px;
        font-size: 19px;
        line-height: 1.4;
    }
    .transfer-info strong { font-size: 20px; }

    /* ---------- Дресс-код ---------- */
    .dresscode-subtitle { font-size: 26px; white-space: normal; text-align: center; }
    .dresscode-palette {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
        margin-bottom: 24px;
    }
    .color-swatch { width: 46px; height: 46px; border-radius: 16px; }
    .dresscode-center { margin-bottom: 20px; }

    /* ---------- Кнопки ---------- */
    .chat-button {
        padding: 14px 34px;
        font-size: 19px;
        margin: 22px auto;
    }

    /* ---------- «Ждём вас» ---------- */
    .waiting-polaroid-photo { width: min(260px, 70vw); }
}

/* Низкие экраны: уменьшаем камеру с рамкой, чтобы рамка не обрезалась сверху */
@media (max-width: 600px) and (max-height: 720px) {
    .camera-wrapper { transform: translateX(-50%) scale(0.82); }
}
@media (max-width: 600px) and (max-height: 620px) {
    .camera-wrapper { transform: translateX(-50%) scale(0.66); }
}

/* Нажатие на телефоне не должно «залипать» в hover-эффекте */
@media (hover: none) {
    .polaroid-card.left:hover  { transform: rotate(-5deg); }
    .polaroid-card.right:hover { transform: rotate(5deg); }
    .waiting-polaroid:hover    { transform: rotate(-3deg); }
    .color-swatch:hover        { transform: none; }
    .click-bubble:hover        { transform: none; }
}
/* Кнопка «позвонить» только на телефонах */
.call-button {
    display: none;
}

@media (max-width: 1024px) {
    .call-button {
        display: inline-block;
    }
}