/* Подключение шрифта */
@font-face {
    font-family: 'Perpetua Titling MT';
    src: url('fonts/Perpetua Titling MT Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

/* ========== АНИМАЦИИ ========== */

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--float-x)) rotate(var(--float-rotate));
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Классы для применения анимаций */
.animate-on-scroll {
    opacity: 0;
    transition: none;
}

.animate-on-scroll.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

.fade-in-up {
    animation-name: fadeInUp;
}

.fade-in-down {
    animation-name: fadeInDown;
}

.fade-in {
    animation-name: fadeIn;
}

.scale-in {
    animation-name: scaleIn;
}

.slide-in-left {
    animation-name: slideInLeft;
}

.slide-in-right {
    animation-name: slideInRight;
}

.rotate-in {
    animation-name: rotateIn;
}

/* Задержки анимаций */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ========== КОНЕЦ АНИМАЦИЙ ========== */

/* Предупреждающее сообщение в свадебном стиле */
.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 50%, #ffd4e8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

/* Анимированные голуби на фоне */
.warning-overlay::before,
.warning-overlay::after {
    content: '🕊️';
    position: absolute;
    font-size: 40px;
    opacity: 0.2;
    animation: flyingDoves 6s ease-in-out infinite;
}

.warning-overlay::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.warning-overlay::after {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes flyingDoves {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(15px) translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateX(5px) translateY(-20px) rotate(-3deg);
    }
    75% {
        transform: translateX(-10px) translateY(-10px) rotate(3deg);
    }
}

.warning-overlay.active {
    opacity: 1;
    visibility: visible;
}

.warning-content {
    text-align: center;
    color: #8b4567;
    padding: 40px 20px;
    max-width: 400px;
    animation: slideIn 0.5s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.warning-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.warning-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #c85a7c;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.warning-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    color: #8b4567;
}

/* Основной контент */
#main-content {
    min-height: 100vh;
}

/* Скрываем основной контент когда показано предупреждение */
body.show-warning #main-content {
    display: none;
}

h1, h2, h3 {
    font-family: Perpetua Titling MT, 'Montserrat', sans-serif;
    font-weight: lighter;
    color: #fff;
    text-align: center;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

.header-block > h1 {
    margin-bottom: 70px;
    animation: fadeInDown 1s ease-out;
}

.header-block > h2 {
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.header-block > h3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

h1.page-h1 {
    color: #62623B;
    font-size: 40px;
    margin-bottom: 20px;
}

p {
    color: #62623B;
    font-size: 16px;
    margin: 0;
    text-align: center;
}

.location {
    font-size: 26px;
    font-weight: bold;
    margin: 7px 0;
}

.content-block {
    padding: 0 20px;
}

.header-block {
    height: 498px;
    background-repeat: no-repeat;
    background-image: url("./img/img1.png");
    background-size: cover;
    background-position: bottom;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-section {
    height: 238px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url("./img/img2.png");
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-section--2 {
    background-image: url("./img/img7.png");
}

.page-section > h1 {
    animation: scaleIn 0.8s ease-out;
}

.colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
    margin: 40px auto;
    max-width: calc(5 * 60px + 4 * 12px);
}

.color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ddd;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color--1 {
    background-color: #1A1A1A;
}

.color--2 {
    background-color: #423529;
}

.color--3 {
    background-color: #563D22;
}

.color--4 {
    background-color: #CFC4B1;
}

.color--5 {
    background-color: #E4DCD0;
}

.color--6 {
    background-color: #54533E;
}

.color--7 {
    background-color: #80846D;
}

.color--8 {
    background-color: #CFCDAF;
}

.color--9 {
    background-color: #E7D8BC;
}

.color--10 {
    background-color: #DDDDD8;
}

.mb-18 {
    margin-bottom: 18px;
}

.mb-14 {
    margin-bottom: 14px;
}

img {
    display: block;
    margin: 0 auto;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

.time {
    font-weight: bold;
}

.links {
    display: flex;
    justify-content: center;
    margin: 34px 0 25px;
}

.link {
    display: block;
    margin: 0 12px;
    width: 51px;
    height: 51px;
    box-shadow: 0px 2px 8px 0px rgba(34, 60, 80, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link:hover {
    transform: translateY(-3px);
    box-shadow: 0px 5px 15px 0px rgba(34, 60, 80, 0.4);
}

.link:active {
    transform: translateY(0px);
}

.link--2gis {
    background-image: url("./img/img4.png");
}

.link--google {
    background-image: url("./img/img5.png");
}

.link--yandex {
    background-image: url("./img/img6.png");
}

.small {
    font-size: 12px;
}

.logo {
    margin-top: 46px;
    margin-bottom: 16px;
    display: block;
    width: 122px;
    height: 44px;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Прогресс-бар прокрутки */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #80846D, #CFC4B1, #E7D8BC);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(128, 132, 109, 0.5);
}

/* Плавающие сердечки */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -50px;
    font-size: 28px;
    opacity: 0;
    animation: floatHeart 6s linear infinite;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    --float-x: 20px;
    --float-rotate: 15deg;
}

.heart:nth-child(2) {
    left: 30%;
    animation-delay: 1.2s;
    --float-x: -30px;
    --float-rotate: -20deg;
    font-size: 24px;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 2.4s;
    --float-x: 15px;
    --float-rotate: 10deg;
    font-size: 32px;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 3.6s;
    --float-x: -20px;
    --float-rotate: -15deg;
    font-size: 30px;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 0.6s;
    --float-x: 25px;
    --float-rotate: 20deg;
    font-size: 26px;
}

.heart:nth-child(6) {
    left: 20%;
    animation-delay: 1.8s;
    --float-x: -15px;
    --float-rotate: -10deg;
    font-size: 28px;
}

.heart:nth-child(7) {
    left: 60%;
    animation-delay: 3s;
    --float-x: 30px;
    --float-rotate: 18deg;
    font-size: 25px;
}

.heart:nth-child(8) {
    left: 40%;
    animation-delay: 4.2s;
    --float-x: -25px;
    --float-rotate: -12deg;
    font-size: 29px;
}

/* Параллакс эффект для секций */
.parallax-section {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
