@font-face {
    font-family: 'Atziluth-Script';
    src: 
         url('Atziluth Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;  /* Оптимизация загрузки */
}
/* ==================== ИНВЕРТИРОВАННАЯ ЦВЕТОВАЯ ПАЛИТРА ==================== */
:root {
    --chocolate: #110803;       /* Тёмный шоколадный - для фона */
    --beige: #d8ccb4;           /* Бежевый - для текста */
    --light-beige: #f0eadc;     /* Светлый бежевый */
    --medium-beige: #c4baa4;    /* Средний бежевый */
    --dark-beige: #a89e88;      /* Тёмный бежевый */
    --accent-gold: #b5a782;     /* Золотистый акцент */
    --white: #ffffff;
    --off-white: #f9f7f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== ОСНОВНЫЕ НАСТРОЙКИ ==================== */
/* Тело сайта - ШОКОЛАДНЫЙ фон, БЕЖЕВЫЙ текст */
body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: var(--beige);
    background-color: var(--chocolate);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.footer-p{
    font-size: 3rem;
}
.footer-p-p{
    margin-top: 1rem;
    font-size: 2rem;
}
.fas fa-phone{
   margin-right: 0.5rem;
   font-size: 2rem;
}


/* Заголовки - БЕЖЕВЫЕ */
h1, h2, h3, h4 {
    font-family: 'Atziluth-Script','Cormorant Garamond', serif;
    color: var(--beige);
    text-align: center;
    margin-bottom: 1rem;
}

h1 { 
    font-size: 3.5rem; 
    margin-top: 1rem; 
}

h2 { 
    font-size: 5rem; 
    margin-top: 0rem; 
}

h3 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

p { 
    margin-bottom: 1rem; 
    color: var(--beige);
}

/* Ссылки - светлый бежевый */
a {
    color: var(--light-beige);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==================== ГЛАВНЫЙ БАННЕР ==================== */
.hero {
    background-color: rgba(17, 8, 3, 0.7);
    text-align: center;
    padding: 0rem 1rem;
    border-bottom: 1px solid var(--medium-beige);
    margin-bottom: 2rem;
}

.hero-names {
    font-family: 'Atziluth-Script', 'Cormorant Garamond', serif;
    font-size: 9rem;
    font-weight: 400;
    letter-spacing: 0.3rem;
    margin: 1.5rem 0;
    color: var(--beige);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--beige);
}

.custom-divider {
    border: none;
    border-top: 1.9px solid var(--medium-beige);
    width: 100%;
    max-width: 1160px;
    margin: 2rem auto;
    opacity: 0.7;
}

.wedding-photo {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    transform: rotate(0deg);
    margin: 0rem auto;
}

.photo-hands-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
}

.photo-hands {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: block;
    
    position: relative;
    z-index: 1;  /* Фото под рамкой в спокойном состоянии */
}

.photo-hands:hover {
    transform: scale(1.02) translateX(3px);
    
    z-index: 3;  /* Фото выше рамки при наведении */
}

/* Рамка как в Telegram */
.photo-hands-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--beige);
    border-radius: 15px;
    opacity: 0.3;
    pointer-events: none;
     z-index: 2;  /* Рамка выше фото в спокойном состоянии */
}

/* Если хочешь, чтобы рамка тоже двигалась */
.photo-hands-container:hover::before {
   opacity: 0.3;  /* Оставляем ту же прозрачность */
    transform: none;  /* Убираем возможные трансформации */

}

/* Для мобильных корректируем рамку */
@media (max-width: 768px) {
.footer-p{
    font-size: 2.5rem;
}
.footer-p-p{
    margin-top: 0.5rem;
    font-size: 2.0rem;
}
.fas fa-phone{
   margin-right: 0.5rem;
   font-size: 2rem;
}
    
    /* Общие настройки */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 2.8rem !important;
    }
    
    h3 {
        font-size: 1.8rem !important;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Hero секция */
    .hero-names {
        font-size: 2.5rem !important;
        letter-spacing: 0.2rem;
        word-break: break-word;
    }
    
    .hero-date.wedding-day {
        font-size: 2.5rem !important;
        letter-spacing: 5px;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    /* Календарь */
    .week-calendar {
        padding: 0.8rem;
    }
    
    .week-grid {
        gap: 5px;
    }
    
    .month-label {
        font-size: 1.5rem;
    }
    
    
    .day-number {
        font-size: 1.2rem !important;
        height: 40px;
    }
    
    .weekday {
        min-height: 80px;
        padding: 0.5rem 0.2rem;
    }
    
    .heart-shape {
        width: 50px;
        height: 45px;
    }
    
    .heart-shape::before,
    .heart-shape::after {
        width: 25px;
        height: 40px;
    }
    
    .heart-shape::before {
        left: 25px;
    }
    
    .heart-text {
        font-size: 1.2rem;
    }
    
    /* Таймер */
    .countdown {
        padding: 2rem 0.5rem;
    }
    
    .photo-hands-container {
        left: 0 !important;
        max-width: 280px;
    }
    
    #timer {
            margin-left: 2rem;
        gap: 0.5rem;
        padding: 1rem 0.5rem;
    }
    
    .timer-unit {
        min-width: 60px;
        padding: 0.8rem 0.3rem;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .timer-label {
        font-size: 0.6rem;
    }
    
    /* Детали события */
    .details-grid {
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1rem;
    }
    
    .detail-card p,
    .detail-card strong {
        font-size: 1rem !important;
    }
    
    .icon {
        font-size: 2rem;
    }
    
  
    .timeline-content {
        padding-left: 20px;
    }
    
    
    
   
    .timeline-location {
         font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
        background: rgba(216, 204, 180, 0.08);
        border-left: 2px solid var(--beige);
    }
    
    /* Telegram секция */
    .telegram-container {
        grid-template-columns: 1fr;
        gap: 0rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .telegram-content h3 {
        font-size: 1.5rem;
    }
    
    .telegram-description {
        font-size: 1.2rem;
        margin: 20px auto;
    }
    
    .telegram-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .telegram-photo {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .detail-badge {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    
    /* Форма RSVP */
    #rsvp-form {
        padding: 1.5rem;
    }
    
    .form-group label {
        font-size: 1.3rem;
    }
    
    input[type="text"],
    textarea {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .radio-label,
    .checkbox-label {
        font-size: 1.2rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    /* Цветовая палитра */
    .color-palette {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.8rem;
    }
    
    .color-circle {
        width: 70px;
        height: 70px;
    }
    
    .color-name {
        font-size: 0.8rem;
    }
    
    /* Футер */
    footer {
        font-size: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    
    .footer-contacts {
        font-size: 0.9rem;
    }
    
    
    body {
        padding: 10px;
    }
    
    h1 { 
        font-size: 2.5rem; 
    }
  
    
    .hero-names { 
        font-size: 2.8rem; 
        letter-spacing: 0.2rem; 
    }
    
    .hero-date {
        font-size: 1.2rem!important;
    }
    
    #timer { 
        gap: 0.8rem; 
    }



    #timer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);  /* 4 колонки */
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .timer-unit {
        min-width: auto;  /* Убираем min-width */
        padding: 0.8rem 0.2rem;
    }



    
    .timer-unit { 
        min-width: 70px; 
        padding: 1rem; 
    }
    
    .timer-number { 
        font-size: 2.2rem!important;
    }
    
    .details-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
   
    
 
  
    
    
 
   
   
    
    .rsvp-section {
        padding: 2.5rem 1rem;
        margin: 2rem 0;
    }
    
    #rsvp-form {
        padding: 1.8rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .radio-group,
    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .detail-card, #rsvp-form {
        padding: 1.5rem;
    }

    .telegram-section {
        padding: 2rem 1rem;
    }
    
    .telegram-content h3 {
        font-size: 2rem;
    }
    
    .telegram-description {
        font-size: 1.1rem !important;
        margin-top: 0px!important; 
     margin-bottom: 0px!important;
    }
    
    .telegram-button {
        padding: 14px 25px;
        font-size: 1.1rem;
    }
    
    .detail-badge {
        padding: 6px 12px;
        font-size: 1rem;
    }
    
    .telegram-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .telegram-photo {
        max-width: 300px;
    }
    .color-palette {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .color-circle {
        width: 90px;
        height: 90px;
    }
    .color-name {
        font-size: 1.15rem;
        font-weight: 500;
    }
    .week-calendar {
        max-width: 100%;
        padding: 1rem;
    }
    
    .month-label {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.5rem!important;
        margin-bottom: 1.5rem;
    }
    
    .day-number {
        font-size: 2rem!important;
    }
    
    .heart-shape {
        width: 60px!important;
        height: 52px!important;
    }
    
    .heart-shape::before,
    .heart-shape::after {
        width: 30px!important;
        height: 48px!important;
    }
    
    .heart-shape::before {
        left: 30px!important;
    }
    
    .heart-text {
        font-size: 1.2rem!important;
    }
    
    .week-grid {
        gap: 10px!important;
    }
    
    .hero-names {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem!important;
    }

        .day-name {
        font-size: 1.2rem !important;  /* Уменьшить с 2.5rem */
        margin-bottom: 0.5rem!important;
    }
    
    .day-number {
        font-size: 1.5rem !important;  /* Уменьшить с 2rem */
    }
    
    .weekday {
        min-height: 100px;  /* Уменьшить высоту */
        padding: 0.8rem 0.3rem;
    }
        .detail-card p,
    .detail-card strong {
        font-size: 1.2rem !important;  /* Уменьшить с 1.8rem */
    }
    
    .icon {
        font-size: 2rem;  /* Уменьшить иконки */
    }
        .dress-code-text {
        font-size: 1.2rem!important;  /* Уменьшить с 1.8rem */
    }
        .form-group label {
        font-size: 1rem;  /* Уменьшить с 1.3rem */
    }
    
    input[type="text"],
    textarea {
        font-size: 1rem;  /* Уменьшить с 1.2rem */
        padding: 0.8rem;
    }
    
    .radio-label,
    .checkbox-label {
        font-size: 1rem!important;  /* Уменьшить с 1.2rem */
    }
        footer {
        font-size: 1rem;  /* Уменьшить с 1.3rem */
        padding: 2rem 0.5rem;
    }
        .hands-section {
        padding: 2rem 1rem;  /* Уменьшить отступы */
    }
    
    .photo-hands {
        max-width: 300px;  /* Уменьшить фото */
        margin: 1rem auto;
    }

     


    .full-width-photo {
        height: 250px;
    }
    .photo-hands-container::before {
        top: -5px;
        left: -5px;
        right: 5px;
        bottom: 5px;
    }
}
.hands-section {
    background-color: rgba(17, 8, 3, 0.7);
    padding: 5rem 1rem;
    margin: 1rem 0;
        padding: 5rem 1rem;
    border-radius: 15px;
    align-items: center;
   
}

.week-calendar {
    width: 100%;
    font-family: 'Cormorant Garamond', serif;
    max-width: 1160px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.month-label {
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0rem;
    color: var(--beige);
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.weekday {
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-height: 150px;
}

.day-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
    height: 30px;
}

.day-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

/* CSS-сердце с цифрой внутри */
.heart-shape {
    position: relative;
    width: 80px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heartbeat 1.5s ease infinite;
}

.heart-text {
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    z-index: 2;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.heart-shape::before,
.heart-shape::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 40px;
    height: 65px;
    border-radius: 40px 40px 0 0;
    background: var(--beige);
}

.heart-shape::before {
    left: 40px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-shape::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.heart-day {
    padding: 1.5rem 0.5rem;
}

.heart-day .heart-shape {
    margin: 0;
}

.weekday:hover:not(:has(.heart-shape)) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.hero-date.wedding-day {
    font-family: 'Atziluth-Script','Cormorant Garamond', serif;
    font-size: 8rem;
    letter-spacing: 30px;
    margin-top: 1rem;
    color: var(--beige);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-date {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0.5rem 0;
}

/* Адаптация под мобильные */
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--beige);
}

/* ==================== ТАЙМЕР ==================== */
.countdown {
    text-align: center;
    padding: 3rem 1rem;
    background-color: rgba(17, 8, 3, 0.7);
    border-radius: 10px;
    margin: 2rem 0;
  /*  border: 1px solid var(--medium-beige);*/
}
.photo-hands-container{
    margin-top: 1rem;
        position: relative;
    left: 38%;
}
.count {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
#timer {
    
        max-width: 400px;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
     background: rgbargba(17, 8, 3, 0.9);
         align-content: space-around;
    flex-direction: column;
}

.timer-unit {
    background: rgba(17, 8, 3, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 100px;
    border: 1px solid var(--medium-beige);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.timer-unit:hover {
    transform: translateY(-5px);
}

.timer-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--beige);
    display: block;
    line-height: 1;
}

.timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: var(--beige);
}

/* ==================== СЕКЦИЯ ТАЙМИНГА ==================== */
.timing-section {
    background-color: rgba(17, 8, 3, 0.7);
    padding: 3rem 1rem;
    padding-top: 5rem;
    margin: 2rem 0;
    border-radius: 15px;
   /* border: 1px solid var(--medium-beige);*/
   /* box-shadow: 0 10px 30px rgba(0,0,0,0.2);*/
}

.timing-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.timing-intro {
    max-width: 900px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.8rem;
    color: var(--beige);
    line-height: 1.6;
}

.timing-intro p {
    margin-bottom: 0;
}

/* ==================== ВЕРТИКАЛЬНАЯ ЛИНИЯ ВРЕМЕНИ ==================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--beige), var(--medium-beige));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 18px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--chocolate);
    border: 3px solid var(--beige);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(216, 204, 180, 0.1);
}

.timeline-time {
    position: absolute;
    left: -90px;
    top: 0;
    width: 70px;
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--beige);
    background-color: rgba(17, 8, 3, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    border: 2px solid var(--medium-beige);
}

.timeline-content {
    font-family: 'Cormorant Garamond', serif;
    background-color: rgba(17, 8, 3, 0.9);
    padding: 1.8rem;
    border-radius: 12px;
    border-left: 4px solid var(--beige);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.timeline-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--beige);
}

.timeline-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--beige);
    margin: 0 0 0.8rem 0;
    text-align: left;
}

.timeline-content p {
    font-size: 1.6rem;
    color: var(--beige);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--beige);
    background-color: rgba(216, 204, 180, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--beige);
}

.timeline-location i {
    color: var(--beige);
}

.timing-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgba(17, 8, 3, 0.9);
    border-radius: 10px;
    border-left: 4px solid var(--beige);
    font-size: 0.95rem;
}

.timing-note p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--beige);
}

.timing-note i {
    color: var(--beige);
    margin-top: 3px;
}

/* ==================== КАРТОЧКИ С ДЕТАЛЯМИ ==================== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: rgba(17, 8, 3, 0.9);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
   /* border: 1px solid var(--medium-beige);*/
   /* box-shadow: 0 6px 15px rgba(0,0,0,0.2);*/
    transition: all 0.3s ease;
    height: 100%;
}

.detail-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: translateY(-5px);
}

.icon {
    font-size: 2.5rem;
    color: var(--beige);
    margin-bottom: 1rem;
}

.detail-card p {
    margin-bottom: 0.5rem;
    color: var(--beige);
    font-size: 1.8rem;
}

.detail-card strong {
    color: var(--beige);
    font-size: 1.8rem;
    font-weight: 100;
}
.full-width-photo-container {
    margin-top: -15vw;
    width: 100vw;
       position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}
.full-width-photo-container-two {
    margin-top: -15vw;
    width: 100vw;
     position: relative;
    transform: scaleX(-1);
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}
.beads-container {
    position: relative;  /* Добавлено! */
    width: 100%;
    height: 0;  /* Не занимает места */
    pointer-events: none;
    z-index: 5;
}

/* Общие стили для всех бусин */
.bead {
    position: absolute;  /* Добавлено! Теперь top/right работают */
    width: 250px;
    max-width: 20vw;
    overflow: hidden;
}
/* Для точной подстройки под ваше фото */
.bead-1 {
    top: -250px;
    right: -270px;
    width: 105px;
    transform: rotate(0deg);
}

.bead-2 {
    top: 30px;
    right: -100px;
    width: 210px;
    transform: rotate(-5deg);
}

.bead-3 {
    top: 10px;
    left: -190px;
    width: 230px;
    transform: rotate(-10deg);
}

/* Настройка обрезки через clip-path */
.bead-1 .bead-img {
    clip-path: inset(0 15% 0 0);  /* Меньше значение = меньше обрезки */
        width: 200px;
}

.bead-2 .bead-img {
    clip-path: inset(5% 0 5% 5%);
}

.bead-3 .bead-img {
    clip-path: inset(10% 15% 10% 0);
        width: 170px;
}


.beads-container-time {
    position: relative;  /* Добавлено! */
    width: 100%;
    height: 0;  /* Не занимает места */
    pointer-events: none;
    z-index: 5;
}

/* Для точной подстройки под ваше фото */
.bead-1-time {
      top: 200px;
    right: -300px;
    width: 150px;
    transform: rotate(0deg);
}

.bead-2-time {
    top: 30px;
    right: -100px;
    width: 210px;
    transform: rotate(-5deg);
}

.bead-3-time {
  top: -100px;
    left: -150px;
    width: 230px;
    transform: rotate(-10deg);
}

/* Настройка обрезки через clip-path */
.bead-1-time .bead-img {
    clip-path: inset(0 15% 0 0);  /* Меньше значение = меньше обрезки */
        width: 200px;
}

.bead-2-time .bead-img {
    clip-path: inset(5% 0 5% 5%);
}

.bead-3-time .bead-img {
    clip-path: inset(10% 15% 10% 0);
            width: 250px;
}

.ainer{
    margin-top: -15vw;
    width: 12vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}
.bits-one-photo {
    width: 100%;
    object-fit: cover;
    display: block;
}
.full-width-photo {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== СЕКЦИЯ ДРЕСС-КОДА ==================== */
.dress-code-section {
    background-color: rgba(17, 8, 3,0.7);
    padding: 2rem 1rem;
    padding-top: 2rem;
    margin: 3rem 0;
    border-radius: 15px;
    text-align: center;
    /*border: 1px solid var(--medium-beige);*/
}

.dress-code-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.dress-code-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.8rem;
    line-height: 1.6;
}

.dress-code-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--beige);
}

/* ==================== ЦВЕТОВАЯ ПАЛИТРА ==================== */
.color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2rem;
    margin: 1rem 0;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.color-circle {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 2px solid var(--medium-beige);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.05);
}

.color-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--beige);
    text-align: center;
    line-height: 1.2;
    padding: 0 0.2rem;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .color-palette {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
    .color-circle {
        width: 85px;
        height: 85px;
    }
    .color-name {
        font-size: 1.1rem;
    }
}

/* Адаптивность для мобильных */

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .timeline-time {
        left: -35px;        /* Ещё немного смещаем */
        width: 45px;
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 15px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timing-section h2 {
        font-size: 2.8rem !important;
    }

    .timing-intro {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
  
    .color-palette {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
    .color-circle {
        width: 80px;
        height: 80px;
    }
    .color-name {
        font-size: 1rem;
    }
}

.color-hex {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    color: var(--beige);
    padding: 0.1rem 0.3rem;
    background-color: rgba(17, 8, 3, 0.9);
    border-radius: 3px;
    border: 1px solid var(--medium-beige);
}

/* ==================== СОВЕТЫ ПО ОДЕЖДЕ ==================== */
.dress-tips {
    font-family: 'Cormorant Garamond', serif;
    background-color: rgba(17, 8, 3, 0.9);
    padding: 2rem;
    border-radius: 10px;
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: left;
    border: 1px solid var(--medium-beige);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dress-tips h3 {
    text-align: center;
    color: var(--beige);
    margin-bottom: 1.5rem;
}

.dress-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.dress-tips li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--beige);
}

.dress-tips li:before {
    content: "•";
    color: var(--beige);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* ==================== СЕКЦИЯ ПОДТВЕРЖДЕНИЯ (RSVP) ==================== */
.rsvp-section {
    background-color: rgba(17, 8, 3, 0.7);
    padding: 4rem 1rem;
    margin: 3rem 0;
    border-radius: 15px;
    border: 1px solid var(--medium-beige);
}

.rsvp-section .container {
    max-width: 700px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    color: var(--beige);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}
/* ==================== БЛОК TELEGRAM С ФОТО ==================== */
.telegram-section {
    background-color: rgba(17, 8, 3, 0.7);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.telegram-container {
    margin-top: 50px;
    width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.6fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.telegram-content {
    text-align: center;
}

.telegram-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #b5a782, #d8ccb4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #110803;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: telegramPulse 2s infinite;
}

@keyframes telegramPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.telegram-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--light-beige);
    margin-bottom: 15px;
    font-weight: 500;
}

.telegram-description {
     text-align: justify;        /* Выравнивание по ширине */
    text-justify: inter-word;   /* Улучшенное выравнивание для веба */
    hyphens: auto;
    margin-top: 80px;
        margin-bottom: 60px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    color: var(--beige);
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.telegram-details {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.detail-badge {
    background: rgba(181, 167, 130, 0.15);
    border: 1px solid var(--medium-beige);
    padding: 8px 18px;
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--beige);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.detail-badge:hover {
    background: rgba(181, 167, 130, 0.3);
    transform: translateY(-2px);
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #b5a782, #c4baa4);
    color: #110803;
    padding: 16px 35px;
    border-radius: 50px;
    font-family: 'Cormorant Garamond', serif;
    
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    margin: 20px 0 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(181, 167, 130, 0.3);
    border: none;
    cursor: pointer;
}

.telegram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(181, 167, 130, 0.5);
    background: linear-gradient(135deg, #c4baa4, #d8ccb4);
}

.telegram-button i {
    font-size: 1.5rem;
}

.telegram-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--dark-beige);
    font-style: italic;
    margin-top: 10px;
}

/* Фото справа */
.telegram-photo {
    margin-top: 30px;

    position: relative;
    width: 100%;
    max-width: 400px;
    justify-self: end;  /* Прижимаем фото к правому краю */
}

.telegram-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.telegram-img:hover {
    transform: scale(1.02);
}

/* Декоративная рамка для фото */
.telegram-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--beige);
    border-radius: 25px;
    opacity: 0.3;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 968px) {
    .telegram-container {
        grid-template-columns: 1fr;  /* В одну колонку на планшетах */
        gap: 2rem;
    }
    
    .telegram-photo {
        justify-self: center;
        max-width: 350px;
        order: -1;  /* Фото сверху на мобильных */
    }
}

@media (max-width: 480px) {
    .telegram-details {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .detail-badge {
        width: fit-content;
    }
}
/* ==================== ФОРМА RSVP ==================== */
#rsvp-form {
    background: rgba(17, 8, 3, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--medium-beige);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 2.2rem;
    position: relative;
}

.form-group label {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--beige);
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', serif;
}

.form-group label i {
    color: var(--beige);
    width: 20px;
    text-align: center;
}

input[type="text"],
textarea {
    width: 100%;
    font-size: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--medium-beige);
    border-radius: 8px;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s ease;
    background-color: rgba(17, 8, 3, 0.7);
    color: var(--beige);
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--light-beige);
    box-shadow: 0 0 0 3px rgba(240, 234, 220, 0.15);
    background-color: rgba(17, 8, 3,0.9);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: var(--medium-beige);
    opacity: 0.7;
}

textarea {
    font-size: 1.4rem;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* ==================== RADIO КНОПКИ ==================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: rgba(17, 8, 3, 0.7);
    border: 2px solid var(--medium-beige);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    border-color: var(--light-beige);
    background-color: rgba(17, 8, 3,0.9);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom:after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--beige);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--light-beige);
    background-color: rgba(17, 8, 3, 0.9);
}

.radio-option input[type="radio"]:checked + .radio-custom:after {
    opacity: 1;
}

.radio-label {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--beige);
    font-family: 'Cormorant Garamond', serif;
}

/* ==================== CHECKBOX ==================== */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: rgba(17, 8, 3, 0.7);
    border: 2px solid var(--medium-beige);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--light-beige);
    background-color: rgba(17, 8, 3, 0.9);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--beige);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom:after {
    content: '✓';
    color: var(--chocolate);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--beige);
    border-color: var(--light-beige);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom:after {
    opacity: 1;
}

.checkbox-label {
    font-weight: 500;
    color: var(--beige);
    font-size: 1.5rem;
}

/* ==================== КНОПКА ОТПРАВКИ ==================== */
#rsvp-form .submit-btn,
#rsvp-form button[type="submit"] {
    background: linear-gradient(135deg, var(--beige) 0%, var(--light-beige) 100%);
    color: var(--chocolate);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

#rsvp-form .submit-btn:hover,
#rsvp-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(216, 204, 180, 0.3);
    background: linear-gradient(135deg, var(--light-beige) 0%, #f5f0e4 100%);
}

#rsvp-form .submit-btn:active,
#rsvp-form button[type="submit"]:active {
    transform: translateY(-1px);
}

/* ==================== ФИДБЭК ==================== */
.form-feedback {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    display: block;
    font-size: 1.5em;
    background-color: rgba(216, 204, 180, 0.15);
    color: var(--beige);
    border: 1px solid var(--medium-beige);
}

.form-feedback.error {
    display: block;
    background-color: rgba(216, 204, 180, 0.1);
    color: var(--beige);
    border: 1px solid var(--beige);
}

.form-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(17, 8, 3, 0.9);
    border-radius: 8px;
    color: var(--beige);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--beige);
}

.form-note i {
    color: var(--beige);
    flex-shrink: 0;
}

/* ==================== ФУТЕР ==================== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--medium-beige);
    margin-top: 2rem;
        font-family: 'Atziluth-Script','Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--beige);
}

.footer-contacts {
    margin-top: 1rem;
    font-size: 1rem;
}

.footer-contacts i {
    margin-right: 0.5rem;
    color: var(--beige);
}

/* ==================== АДАПТИВНОСТЬ ==================== */





@media (max-width: 480px) {
    h1 { 
        font-size: 2rem; 
    }
    
    .hero-names { 
        font-size: 2.2rem; 
        letter-spacing: 0.1rem; 
    }
    
    .timer-unit { 
        min-width: 60px; 
        padding: 0.8rem; 
    }
  
    
     .timeline-icon {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .timeline-content h3 {
        font-size: 1.4rem;
        margin: 0 0 0.5rem 0;
        text-align: left;
        color: var(--light-beige);
        font-family: 'Cormorant Garamond', serif;
    }
    
    .timing-note {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
    
    #rsvp-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.8rem;
    }
    
    .form-group label {
        font-size: 1.3rem;
    }
    
    .form-group label[required]::after {
        content: " *";
        color: #e74c3c;
    }
    
    .checkbox-label {
        font-size: 1rem;
    }
    
    .submit-btn {
        font-size: 1rem;
    }
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .countdown, .detail-card, #rsvp-form, .timing-section, .dress-code-section {
    animation: fadeIn 0.8s ease-out;
}

.countdown { animation-delay: 0.2s; }
.details-grid > *:nth-child(1) { animation-delay: 0.4s; }
.details-grid > *:nth-child(2) { animation-delay: 0.6s; }
.details-grid > *:nth-child(3) { animation-delay: 0.8s; }
#rsvp-form { animation-delay: 1s; }
.timing-section { animation-delay: 0.5s; }
.dress-code-section { animation-delay: 0.7s; }

/* ==================== ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ ==================== */

/* Для планшетов (до 1024px) */
@media (max-width: 1024px) {
    h2 {
        font-size: 3.5rem;  /* Уменьшаем с 5rem */
    }
    
    h3 {
        font-size: 2.5rem;  /* Уменьшаем с 4rem */
    }
    
    .hero-names {
        font-size: 3rem!important;  /* Уменьшаем с 9rem */
    }
    
    .hero-date.wedding-day {
        font-size: 5rem;  /* Уменьшаем с 8rem */
        letter-spacing: 15px;
    }
    
    .count {
        grid-template-columns: 1fr;  /* В одну колонку */
    }
    
    .photo-hands-container {
        left: 0 !important;  /* Убираем смещение */
        margin: 0 auto;
    }
       #timer {
            margin-left: 2rem;
        display: grid;
        grid-template-columns: repeat(4, 1fr);  /* На маленьких 2 колонки */
        gap: 0.3rem;
    }
 
    
    .bead-1, .bead-2, .bead-3,
    .bead-1-time, .bead-2-time, .bead-3-time {
        display: none;  /* Прячем бусины на планшетах, слишком много */
    }
    
    /* Показываем только одну-две бусины */
    
    
    
}


/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 2.8rem !important;
    }
    
    
    
    .week-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }
    
    .day-name {
        font-size: 0.8rem !important;
    }
    
    .day-number {
        font-size: 1rem !important;
    }
    
    .heart-shape {
        width: 40px;
        height: 35px;
    }
    
    .heart-shape::before,
    .heart-shape::after {
        width: 20px;
        height: 32px;
    }
    
    .heart-shape::before {
        left: 20px;
    }
    
    .heart-text {
        font-size: 1rem;
    }
    
    .timer-unit {
        min-width: 50px;
        padding: 0.5rem 0.2rem;
    }
    
    .timer-number {
        font-size: 1.2rem;
    }
    
    .timer-label {
        font-size: 0.5rem;
    }
    
    .color-palette {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-circle {
        width: 60px;
        height: 60px;
    }
    
    /* Скрываем все бусины на очень маленьких экранах */
    .bead-1-time {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 50px;
        
    }

       .timeline:before {
        left: 65px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 40px;
        margin-bottom: 1.8rem;
    }

.timeline-item:before {
        left: 9px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
  .timing-section h2 {
        font-size: 2.2rem !important;  /* Крупнее */
        margin-bottom: 0.5rem;
    }

    .timing-intro {
        font-size: 1.4rem !important;  /* Крупнее */
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    /* Заголовки событий (например, "Сбор гостей") — нормальные */
    .timeline-content h3 {
        font-size: 1.3rem;
        margin: 0 0 0.5rem 0;
        text-align: left;
        color: var(--light-beige);
    }

    /* Описание событий */
    .timeline-content p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }

    /* Локация */
    .timeline-location {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    /* Важное примечание */
    .timing-note {
        margin-top: 2rem;
        padding: 1.2rem;
        font-size: 0.9rem;
    }

    .timing-note p {
        font-size: 0.9rem;
    }

    /* ✅ ВРЕМЯ — ПРАВЕЕ И ЧИТАЕМОЕ */
    .timeline-time {
        position: absolute;         /* Оставляем абсолютное позиционирование */
        left: -50px;                /* Сдвигаем правее (было -90px, -70px и т.д.) */
        top: 0;
        width: 50px;                /* Чуть шире, чтобы текст вмещался */
        text-align: right;
        font-size: 1rem;
        background: transparent;    /* Убрал фон, чтобы не перекрывал */
        border: none;
        padding: 0;
        color: var(--light-beige);
        font-weight: 600;
        white-space: nowrap;        /* Запрещаем перенос строки */
    }


    .timeline-content h3 {
        font-size: 1.3rem!important;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}

/* Исправление проблем с позиционированием */
.photo-hands-container {
    left: 0;  /* Убираем 38% - это ломало верстку */
    margin: 0 auto;
}

/* Фикс для полной ширины на мобильных */
.full-width-photo-container,
.full-width-photo-container-two {
    margin-top: 0;  /* Убираем отрицательный margin */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 768px) {
    .full-width-photo-container,
    .full-width-photo-container-two {
        margin-top: 1rem;
    }
    
    .full-width-photo {
        height: 220px;  /* Меньше на мобильных */
    }
}

@media (max-width: 480px) {
.hero-names {
        font-size: 3.2rem!important;;

}
    .hero-date.wedding-day {
        font-size: 4.8rem !important;
        letter-spacing: 3px;
    }
.hero h1 {
    font-size: 2.4rem !important;
}
.hero-date  {
    font-size: 1.2rem !important;
}
  .week-calendar {
        padding: 0.8rem;
        border-radius: 25px;
        margin: 1rem auto;
    }
    
    .month-label {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }
    
    .week-grid {
        gap: 5px;
    }
    
    .weekday {
        padding: 0.8rem 0.2rem;
        min-height: 100px;
        border-radius: 15px;
    }
    
    .day-name {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
        height: auto;
    }
    
    .day-number {
        font-size: 1.2rem !important;
        height: 40px;
    }
    
    /* Сердечко для 11 числа */
    .heart-shape {
        width: 45px;
        height: 40px;
    }
    
    .heart-shape::before,
    .heart-shape::after {
        width: 22px;
        height: 36px;
        top: 3px;
    }
    
    .heart-shape::before {
        left: 22px;
    }
    
    .heart-shape::after {
        left: 0;
    }
    
    .heart-text {
        font-size: 1.1rem;
    }
    
    .heart-day {
        padding: 0.8rem 0.2rem;
    }
    
    .heart-day .heart-shape {
        margin: 0;
    }
    .detail-card p {
    
        font-size: 1.2rem !important;
    }
    .dress-code-text p {
         font-size: 1.2rem !important;
    }
    .dress-code-section {
        margin-bottom: 0rem;
    }

      .timing-section {  padding-top: 3rem; 
    margin: 2rem 0;
      }
      .timing-intro p {
         font-size: 1.2rem !important;
      }
     .telegram-section {
        padding: 0rem;;
     }
.telegram-description {
    
     margin-top: 0px; 
     margin-bottom: 0px;
         font-size: 1.2rem;
             text-align: center;
}
.telegram-container {
    gap:0rem;
}

    .telegram-note {
        font-size: 1rem;
    }
.telegram-button {
     font-size: 1.1rem;
}
.footer-p-p {
     font-size: 1.8rem;
}
.footer-p {
        font-size: 2.2rem;
    }
#timer {
    flex-direction: row;
    gap: 1rem;
    margin-top: 0rem;
}

.textarea {
   font-size: 1.2rem!important; 
}
#rsvp-form .submit-btn,
#rsvp-form button[type="submit"] {
  font-size: 1.2rem;
}
    .timeline:before {
        left: 55px;
    }
    .timeline {
        padding-left: 40px;
    }
        .timeline-item {
        padding-left: 50px;}
            .timeline-content p {
        font-size: 1.1rem;
    }
        .timeline-content h3 {
        font-size: 1.3rem !important
    }
    .timeline-time {
        left:-50px;
    }
    .radio-label,
    .checkbox-label {
        font-size: 1.2rem;
    }
        .timing-section h2 {
        font-size: 2.8rem !important;
        }
            .color-palette {
               grid-template-columns: repeat(5, 1fr);}

    .bead-1 {
        display: block;
        top: -90px;
        right: -10px;
        width: 50px;
    }
    
    .bead-2 {
        top: 10px;
        right: -45px;
        width: 75px;
        transform: rotate(-5deg);
        display: block;  /* Показываем */
    }
    
    .bead-3 {
        display: block;
        top: -30px;
            left: 250px;
            width: 95px;
        transform: rotate(-8deg);
    }
    
    .bead-1 .bead-img,
    .bead-2 .bead-img,
    .bead-3 .bead-img,
    .bead-1-time .bead-img,
    .bead-2-time .bead-img,
    .bead-3-time .bead-img {
        width: 100%;
    }

.bead-1-time {
        top: 10px;
        right: -10px;
        width: 50px;
        display: block;
}

.bead-2-time {
        top: 50px;
        right: -45px;
        width: 75px;
        transform: rotate(-5deg);
        display: block;  /* Показываем */
}

.bead-3-time {
        display: block;
        top: -30px;
        left: 10px;
            width: 95px;
        transform: rotate(-8deg);
}
.beads-container-time {
        margin-bottom: 5rem;
}

    .timer-label { 
                font-size: 0.6rem;
    }
    .textarea {
    font-size: 1.2rem;
    }
}