/* Основные стили для свадебного приглашения */

@font-face {
    font-family: 'AlexandraZeferiOne';
    src: url('../Floriselscript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {

  /* Основной акцент (теплое шампанское / soft gold) */
  --primary-color: #a6764f;

  /* Вторичный фон */
  --secondary-color: #efe7de;

  /* Акцентный цвет (sage green) */
  --accent-color: #a8b7a1;

  /* Основной текст */
  --text-color: #2c2723;

  /* Вторичный текст */
  --text-light: #7b7268;

  /* Фоны */
  --light-color: #fbf8f4;
  --background-color: #f4efe9;

  /* Линии */
  --border-color: #e4d9ce;

  /* Шрифты */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Cormorant Garamond', serif;
/*  --font-accent: 'Cormorant Garamond', serif; */
  --font-custom: 'AlexandraZeferiOne', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
font-family:var(--font-secondary);
color:var(--text-color);
font-size:17px;
letter-spacing:0.3px;
line-height:1.6;
display:flex;
justify-content:center;
min-height:100vh;
}

p{
line-height:1.75;
}



.invitation-container{

    max-width:520px;
    margin:40px auto;
    background:#ffffff;

    border-radius:18px;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 10px 30px rgba(0,0,0,0.06);

    position:relative;

    overflow:hidden;
}

.invitation-container::before{

    content:"";

    position:absolute;
    top:-200px;
    left:-200px;

    width:500px;
    height:500px;

    background:radial-gradient(
        circle,
        rgba(176,138,106,0.15),
        transparent 70%
    );

    filter:blur(80px);

    pointer-events:none;
}

/* Элементы с цветами */
.flower-decoration {
    position: absolute;
    z-index: 1;
    max-width: 500px;
    opacity: 0.75;
}

.flower-1 {
    top: 590px;
    left: -64px;
    transform: rotate(-10deg);
    max-width: 295px;
}

.flower-2 {
    top: 590px;
    right: -64px;
    transform: rotate(127deg);
    max-width: 320px;
}

.flower-3 {
    bottom: 30%;
    left: -40px;
    transform: rotate(-5deg);
    max-width: 180px;
}

.flower-4 {
    bottom: 10%;
    right: -40px;
    transform: rotate(8deg);
    max-width: 200px;
}

.flower-5 {
    bottom: 10%;
    right: -40px;
    transform: rotate(8deg);
    max-width: 200px;
}

/* Боковые цветочные элементы для заголовков */
.section-flower-left {
    position: absolute;
    left: -30px;
    top: 0;
    max-width: 120px;
    opacity: 0.4;
    transform: rotate(-5deg);
}

.section-flower-right {
    position: absolute;
    right: -30px;
    top: 0;
    max-width: 120px;
    opacity: 0.4;
    transform: rotate(5deg);
}

/* Главное изображение с именами */
.main-hero-image {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.main-hero-image img {
    width: 100%;
    height: auto;
    display: block;

    /* Плавное исчезновение снизу */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
   
.hero-names {
    line-height: 80px;
    position: absolute;
    bottom: 101px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-custom);
    font-size: 4.4rem;
    font-weight: normal;
    color: #4f463e;
    letter-spacing: 7px;
    font-style: italic;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.08);
    
}

/* Шапка приглашения */
.invitation-header {
    text-align: center;
    position: relative;
    padding: 0;
    margin-bottom: 2rem;
}

/* Стиль даты по новому дизайну */
.date-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    border-bottom: 1px solid rgba(176,138,106,0.25);
}

.month {
    font-family: var(--font-custom);
    font-size: 2rem;
    /* text-transform: uppercase; */
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 300;
    font-style: italic;
}

.day {
    font-family: var(--font-primary);
    font-size: 5.5rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.year {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 300;
    margin-bottom: 2rem;
}

.invitation-text-footer {
        font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
}

/* Расписание таймлайн */
.timeline-section {
    padding: 0 0 1rem;
    text-align: center;
    position: relative;
}

.timeline-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(168, 141, 119, 0.2);
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-time {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
    margin-bottom: 0.2rem;
    letter-spacing: 2px;
}

.timeline-label {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--text-color);
    font-style: italic;
    letter-spacing: 1px;
    opacity: 0.8;
}



.timeline-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:18px;
    filter: contrast(1.05) brightness(.95);
    margin: 0 auto 1.5rem;
    max-width: 90%;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(0,0,0,0.10);
    background-color:#faf8f6;
}

/* Заголовки секций */
.decorative-heading {
    font-family: var(--font-custom);
    text-align: center;
    font-size: 2.4rem;
    color: #433a33;
    margin: 60px 0 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height:1.8;
    text-shadow:
        0 4px 10px rgba(0,0,0,0.08);
}

/* Блок локации */
.location-section {
    padding: 3rem 0 1rem;
    text-align: center;
    position: relative;
    background-color: transparent;
}

.location-image {
    mask-image: url(../images/restaurant_block.png);
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url(../images/restaurant_block.png);
    height: 170px;
    background-image: url('../images/restaurant_block.png');
    background-size: cover;
    position:relative;
    background-position: center;
    margin: 0 auto 1.5rem;
    max-width: 90%;
    border-radius: 16px;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.18),
        0 6px 18px rgba(0,0,0,0.10);
    transition:
        transform .45s ease,
        box-shadow .45s ease;
    filter:
        brightness(.92)
        contrast(.95)
        saturate(.85)
        sepia(.05);    
}

.location-name {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 2.0rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-weight: 300;
}

.location-address {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
}

.map-container {
    margin: 1.5rem auto;
    height: 200px;
    overflow: hidden;
    max-width: 90%;
    border-radius: 12px;
    box-shadow:0 12px 28px rgba(0,0,0,0.10);
    border:1px solid rgba(168,141,119,0.2);
    
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter:saturate(.9) contrast(.95);
}

/* Дресс-код секция */
.dress-code-section {
    padding: 3rem 0 1rem;
    text-align: center;
    position: relative;
    background-color: transparent;
}

.dress-code-info {
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 141, 119, 0.2);
}

.dress-code-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 300;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.beige {
    background-color: #e6d7c9;
}

.brown {
    background-color: #a88d77;
}

.sage {
    background-color: #b2bdaa;
}

.dress-code-note {
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* Секция пожеланий */
.wishes-section {
    padding: 3rem 0 1rem;
    text-align: center;
    position: relative;
    background-color: transparent;
}
.wish-image {
    height: 170px;
    background-image: url('../images/wish_block.png');
    background-size: cover;
    position:relative;
    background-position: center;
    margin: 0 auto 1.5rem;
    max-width: 90%;
    border-radius: 16px;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.18),
        0 6px 18px rgba(0,0,0,0.10);
    transition:
        transform .45s ease,
        box-shadow .45s ease;
    filter:
        brightness(.92)
        contrast(.95)
        saturate(.85)
        sepia(.05);    
}

@media (hover:hover){
.timeline-image:hover,
.location-image:hover,
.wish-image:hover{
    transform:scale(1.02);
    box-shadow:
        0 25px 55px rgba(0,0,0,0.18),
        0 10px 24px rgba(0,0,0,0.12);
    }
}

.wishes-text {
    max-width: 90%;
    margin: 0 auto;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 141, 119, 0.2);
}

.wishes-text p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Контакты */
.contacts-section {
    padding: 3rem 0 1rem;
    text-align: center;
    position: relative;
}

.contacts-container {
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 141, 119, 0.2);
}

.contact-item {
    padding: 0.5rem;
}

.contact-name {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 300;
    font-style: italic;
}

.contact-phone {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 300;
    opacity: 0.8;
}

/* Блок обратного отсчета */
.countdown-section {
    padding: 3rem 0 1rem;
    text-align: center;
    background-color: transparent;
    position: relative;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 90%;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 141, 119, 0.2);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 300;
}

.countdown-label {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-top: 0.3rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* RSVP секция */
.rsvp-section {
    padding: 3rem 0 1rem;
    text-align: center;
    position: relative;
}

.rsvp-button-container {
    margin: 1.5rem auto;
    text-align: center;
    max-width: 90%;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(168, 141, 119, 0.2);
}

.rsvp-button {
    background: linear-gradient(
        135deg,
        #b08a6a,
        #c7a487
    );
    color: white;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.rsvp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

/* Футер */
.invitation-footer {
    text-align: center;
    padding: 0 0 1rem;
}

.initials {
    font-family: var(--font-custom);
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    display: inline-block;
    font-weight: 300;
    letter-spacing: 15px;
}

.footer-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 90%;
    margin: 0 auto;
    font-weight: 300;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .hero-names{
    line-height:80px;
    position:absolute;
    bottom:100px;
    left:0;
    width:100%;
    text-align:center;
    font-family:var(--font-custom);
    font-size:4.6rem;
    letter-spacing:8px;
    color:#3c332d;
    text-shadow:
        0 8px 20px rgba(0,0,0,0.15),
        0 2px 6px rgba(255,255,255,0.6);
}
    
    .flower-decoration {
        max-width: 150px;
    }
    
    .flower-1, .flower-2, .flower-3, .flower-4 {
        opacity: 0.3;
    }
    
    .section-flower-left,
    .section-flower-right {
        max-width: 100px;
        opacity: 0.3;
    }
    
    .day {
        font-size: 4.5rem;
    }
    
   .timeline-time{
    font-family:var(--font-primary);
    font-size:2.3rem;
    font-weight:500;
    letter-spacing:2px;
}
    
    .timeline-label {
        font-size: 1.5rem;
    }
}

.fade-up{
    opacity:0;
    transform:translateY(40px) scale(.98);
    transition:
        opacity .9s cubic-bezier(.2,.6,.2,1),
        transform .9s cubic-bezier(.2,.6,.2,1);
}

.fade-up.visible{
    opacity:1;
    transform:translateY(0) scale(1);
}


@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .invitation-container {
        padding: 0;
    }
    
    .hero-names {
    font-size: 4.5rem;
    letter-spacing: 6px;
    color: #463e37;
    text-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
    
    .flower-decoration {
        max-width: 130px;
    }
    
    .section-flower-left,
    .section-flower-right {
        max-width: 80px;
    }
    
    .day {
        font-size: 3.5rem;
    }
    
    .month, .year {
        font-size: 1.5rem;
    }
    
    .invitation-text-footer {
        font-size: 1.5rem;
    }
    
    .timeline-time {
        font-size: 1.5rem;
    }
    .rsvp-section{
    padding:3rem 0 2rem;
    text-align:center;
}

.rsvp-text{
max-width:420px;
margin:0 auto 20px;
font-size:1.4rem;
line-height:1.7;
}

.rsvp-buttons{
display:flex;
gap:14px;
justify-content:center;
flex-wrap:wrap;

margin-top:40px;
}

.rsvp-button{
padding:12px 28px;
border-radius:30px;
background:#b08968;
color:white;
text-decoration:none;
font-size:0.9rem;
letter-spacing:1px;
transition:all .2s ease;
}

.rsvp-button:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.rsvp-button.decline{
background:#888;
}

img{
display:block;
max-width:100%;
}

} 