*{
    margin: 0;
    padding: 0;
    font-family: "Tenor Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.marck-script-regular {
  font-family: "Marck Script", cursive;
  font-weight: 400;
  font-style: normal;
}

body{
    background-color: #693119;
}
h2{
    font-size: 64px;
    color: var(--text);
    margin-bottom: 20px;
}
.f-letter{
    font-size: 96px;
    font-family: "Marck Script", cursive;
    font-weight: 400;
    font-style: normal;
}

p{
    font-size: 24px;
    color:var(--text);
}
.golden-text{
    color: var(--gold);
}

:root{
    --milk:      #F5EFE0;
    --bg-dark:   #3A1C0E;
    --bg-card:   #7A3A1E;
    --green:     #8FBC5A;
    --green-d:   #6FA043;
    --gold:      #E8C07D;
    --text:      #FFF8EE;
}

menu{
    background-color:transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    margin-bottom: 30px;
}
.menu-title a{
    text-decoration: none;
    color: var(--text);
    font-size: 32px;
}
.highlight-title{
    color:  #9EB7DD;
    padding-left: 5px;
    font-family: "Caveat", cursive;
    font-style: italic;
}
.menu-nav ul{
    list-style: none;
    color: var(--color-white);
    display: flex;
    gap: 20px;
}
li a{
    color: white;
    text-decoration: none;
    font-size: 18px;
}
/* ===== Бургер ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}
.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    border-radius: 3px;
    transition: transform .3s ease, opacity .3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Бургер-меню */
.hero{
    padding: 0 150px 0 150px;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    height: 860px;
}
.hero-container{
    display: flex;
}
.hero-content{
    width: 570px;
    padding-top: 100px;
}
.hero-content h1{
    font-size: 84px;
    color: var(--text);
}
.hero h2{
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 50px;
}
.hero-image{
    display: flex;
    justify-content: flex-end;  
    width: 60%;
}
.hero-image img{
    width: 470px;
    height: 690px;
}

.hero-content button{
    font-size: 20px;
    border-radius: 30px;
    padding: 15px 25px;
    margin-top: 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-buttons button {
    font-size: 20px;
    border-radius: 30px;
    padding: 15px 25px;
    /* margin-top убрали — теперь он у контейнера */
}

.btn-works {
    width: 260px;
    height: 65px;
    background-color: var(--green);
    color: var(--text);
}

.btn-price {
    background-color: var(--milk);
    color: var(--green-d);
    width: 170px;
}
.btn-works{
    width: 260px;
    height: 65px;
    background-color: var(--green);
    color: var(--text);
}
.btn-price{
    background-color: var(--milk);
    color: var(--green-d);
    width: 170px;
}

/* Обо мне */
.about-me{
    padding: 50px 150px;
    padding-bottom: 150px;
}
.about-me-img{
    display: flex;
    gap: 60px;
    justify-content: center;
    margin: 70px auto;
}
.about-me-1{
    max-width: 500px;
    max-height: 400px;
    transform: rotate(-5deg);
    border: 20px solid var(--text);
}
.about-me-2{
    max-width: 500px;
    max-height: 400px;
    transform: rotate(8deg);
    border: 20px solid var(--text);
}

.about-me-content{
    text-align: center;
    width: 936px;
    margin: auto;
}
.my-values{
    margin-top: 30px;
    margin-bottom: 10px;
    display: flex;
}
.my-values p{
    color: var(--green);
    margin: auto;
    font-size: 32px;
}

/* Мои работы */
.my-works{
    padding: 150px;
    background-color: var(--milk);
    text-align: center;
}
.my-works h2{
    color: var(--bg-card);
    margin-bottom: 80px;
}
.gallery-flex{
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.gallery-flex img{
    max-width: 360px;
}
.item-1{
    width: 265px;
    height: 410px;
    transform: rotate(-5deg);
    border: 5px solid var(--gold)
}
.item-2{
    width: 210px;
    height: 210px;
    transform: rotate(5deg);
    object-fit: cover;
    margin-top: 10%;
    border: 5px solid var(--gold)
}
.item-3{
    width: 225px;
    height: 350px;
    transform: rotate(-5deg);
    object-fit: cover;
    margin-top: 3%;
    border: 5px solid var(--gold)
}
.item-4{
    width: 360px;
    height: 265px;
    transform: rotate(5deg);
    object-fit: cover;
    border: 5px solid var(--gold)
}
.item-5{
    width: 225px;
    height: 345px;
    transform: rotate(5deg);
    margin-top: 3%;
    border: 5px solid var(--gold)
}
.item-6{
    width: 360px;
    height: 265px;
    transform: rotate(-5deg);
    object-fit: cover;
    object-position: center bottom;
    margin-top: 5%;
    border: 5px solid var(--gold)
}
.item-7{
    width: 265px;
    height: 410px;
    transform: rotate(5deg);
    object-fit: cover;
    margin-top: 3%;
    border: 5px solid var(--gold)
}
.item-8{
    width: 210px;
    height: 210px;
    transform: rotate(-5deg);
    object-fit: cover;
    border: 5px solid var(--gold)
}
.item-9{
    width: 210px;
    height: 210px;
    transform: rotate(-5deg);
    margin-top: 3%;
    border: 5px solid var(--gold)
}
.item-10{
    width: 225px;
    height: 345px;
    transform: rotate(5deg);
    object-fit: cover;
    margin-top: 5%;
    border: 5px solid var(--gold)
}
.item-11{
    width: 360px;
    height: 265px;
    transform: rotate(-5deg);
    object-fit: cover;
    object-position: center bottom;
    margin-top: 3%;
    border: 5px solid var(--gold)
}
.item-12{
    width: 265px;
    height: 410px;
    transform: rotate(5deg);
    object-fit: cover;
    border: 5px solid var(--gold)
}
.item-13{
    width: 360px;
    height: 265px;
    transform: rotate(5deg);
    object-fit: cover;
    object-position: center top;
    border: 5px solid var(--gold)
}
.item-14{
    width: 360px;
    height: 265px;
    transform: rotate(-5deg);
    object-fit: cover;
    margin-top: 5%;
    border: 5px solid var(--gold)
}

/* Цены */
.price{
    padding: 100px 150px;
    text-align: center;
}
.price-flex{
    display: flex;
    padding-top: 40px;
}
.price-card{
    background-color: var(--milk);
    padding: 40px;
    max-width: 455px;
    border: 5px solid var(--green-d);
    border-radius: 30px;
    margin: auto;
}
h3{
    font-size: 32px;
}
.price-card p{
    font-size: 16px;
    color: #8A6A55;
}
h4{
    margin: 20px 0;
    font-size: 55px;
    color: var(--bg-card);
}
.rub{
    font-size: 36px;
}
.price-card ul{
    padding-left: 50px;
}
.price-card ul li{
    padding: 7px;
    color: var(--bg-card);
    text-align: left;
}
.price-card ul li::marker{
    color: var(--green-d);
    font-size: 24px;
}
.price-card button{
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
    height: 45px;
    background-color: var(--green);
    color: var(--bg-dark);
    border: none;
    border-radius: 30px;
    font-size: 18px;
}

/* Свальбы */
.weddings{
    padding: 100px 150px;
}
.weddings-flex{
    display: flex;
    gap: 70px;
}
.weddings-img{
    max-width: 535px;
    max-height: 505px;
    transform: rotate(-5deg);
}
.weddings-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.weddings-content h3{
    font-size: 55px;
    color: var(--gold);
    margin-top: 50px;
    margin-bottom: 50px;
}
.weddings-content p{
    font-size: 20px;
    margin-bottom: 40px;
}
.weddings-content button{
    max-width: 220px;
    height: 55px;
    width: 100%;
    background-color: var(--green);
    border: none;
    border-radius: 30px;
    color: var(--milk);
    font-size: 18px;
}

/* Контакты */
.contacts{
    padding: 100px 150px;
    text-align: center;
}
.toghether{
    font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: var(--green-d);
}
video{
    margin-top: 30px;
    max-width: 585px;
    max-height: 587px;
    width: 100%;
    height: 100%;
}
.soc-networks{
    margin-top: 50px;
    display: flex;
    gap: 25px;
    justify-content: center;
}
.soc-networks img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Подвал */

footer{
    background-color: var(--bg-dark);
    color: var(--text);
    text-align: center;
    height: 100px;
    padding-top: 30px ;
}
h5{
    font-size: 32px;
}
.footer{
    justify-content: center;
    display: flex;
    align-items: center;
}
.footer span + span::before{
    content: "•";
    color: var(--text);
    margin: 0 10px;
}

/* ================= АНИМАЦИИ ПОЯВЛЕНИЯ ================= */
.fade-up {
    opacity: 0;
    /* используем отдельное свойство translate — оно НЕ конфликтует
       с transform: rotate(...) у картинок */
    translate: 0 60px;
    transition: opacity .8s ease, translate .8s ease, box-shadow .3s ease;
    will-change: opacity, translate;
}

.fade-up.visible {
    opacity: 1;
    translate: 0 0;
}

/* Картинки галереи: сохраняем наклон, добавляем лёгкий зум при ховере */
.gallery-flex img {
    cursor: zoom-in;
}



.gallery-flex img.gallery-img:hover {
    box-shadow: 0 0 0 4px var(--green);
}

/* ================= ИНТЕРАКТИВНЫЕ КНОПКИ ================= */
button {
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.btn-works:hover,
.btn-price:hover,
.price-card button:hover,
.weddings-content button:hover {
    filter: brightness(1.08);
}

/* ================= ЛАЙТБОКС ================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox.open {
    display: flex;
    animation: lbFade .3s ease;
}
@keyframes lbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.lightbox-img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,.7);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50%;
}
.lightbox-close:hover {
    background: rgba(255,255,255,.15);
}

/* =======================================================
   ==================  МОБИЛЬНАЯ ВЕРСИЯ  ==================
   ======================================================= */
@media (max-width: 1024px) {

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        padding-top: 40px;
        text-align: center;
    }

    /* Обёртка картинки + кнопок — относительное позиционирование */
    .hero-image {
        width: 100%;
        max-width: 470px;
        justify-content: center;
        margin-top: 30px;
        position: relative;    /* нужно для absolute у .hero-buttons */
        padding-bottom: 100px; /* освобождаем место под тёмную плашку */
    }

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Кнопки ложатся на низ картинки тёмной плашкой */
    .hero-buttons {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: 0;
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 20px 15px;
        background: rgba(0, 0, 0, 0.55);       /* полупрозрачный тёмный фон */
        backdrop-filter: blur(4px);            /* лёгкое размытие под плашкой */
        border-radius: 0 0 12px 12px;          /* скругление по низу картинки */
    }

    .hero-buttons button {
        margin-top: 0;
        flex: 1 1 0;
        max-width: 200px;
        height: 55px;
        font-size: 16px;
        padding: 10px 15px;
    }

    
    .hero { padding: 0 40px; height: auto; padding-bottom: 60px; }
    .hero-content { width: auto; padding-top: 60px; }
    .hero-content h1 { font-size: 56px; }
    .hero h2 { font-size: 30px; margin-bottom: 30px; }
    .hero-image { width: 50%; }
    .hero-image img { width: 100%; height: auto; }

    .about-me { padding: 40px; padding-bottom: 80px; }
    .about-me-1{max-width: 400px; max-height: 300px;}
    .about-me-2{max-width: 400px; max-height: 300px;}
    .about-me-content { width: 100%; }
    .my-values p { font-size: 24px; }

    .my-works { padding: 80px 40px; }
    .gallery-flex img{max-width: 200px;}
    .price-flex{gap: 10px;}
    .price { padding: 60px 40px; }
    .weddings { padding: 60px 40px; }
    .contacts { padding: 60px 40px; }
    .contacts h2{width: 700px; margin: auto;}
}
@media (max-width: 1024px){
    .about-me-1{max-width: 300px; max-height: 200px;}
    .about-me-2{max-width: 300px; max-height: 200px;}
    .gallery-flex img{max-width: 150px; max-height: 220px; object-fit: cover;}
}

@media (max-width: 768px) {
    /* -------- Бургер-меню -------- */
    .burger { display: flex; }
    .menu-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-dark);
        padding: 100px 30px 30px;
        transition: right .35s ease;
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0,0,0,.4);
    }
    .menu-nav.open { right: 0; }
    .menu-nav ul {
        flex-direction: column;
        gap: 25px;
    }
    .menu-nav ul li a { font-size: 22px; }

    /* -------- Общие тексты -------- */
    h2 { font-size: 38px; }
    p  { font-size: 18px; }
    .f-letter { font-size: 56px; }
    h3 { font-size: 26px; }
    h4 { font-size: 40px; }
    .rub { font-size: 26px; }
    h5 { font-size: 18px; }

    /* -------- Hero -------- */
    .hero {
        padding: 20px 20px 50px;
        height: auto;
    }
    .hero-container {
        flex-direction: column;
        align-items: center;
    }
    .hero-content {
        width: 100%;
        padding-top: 30px;
        text-align: center;
    }
    .hero-content h1 { font-size: 44px; }
    .hero h2 { font-size: 24px; margin-bottom: 25px; }

    .hero-image {
    width: 100%;
    max-width: 470px;
    justify-content: center;
    margin-top: 30px;
    position: relative;
    padding-bottom: 90px;  /* поменьше, чем на планшете */
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Кнопки — на плашке поверх низа картинки */
.hero-buttons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    border-radius: 0 0 12px 12px;
}

.hero-buttons button {
    margin: 0;
    flex: 1 1 0;
    max-width: none;
    height: 50px;
    font-size: 15px;
    padding: 8px 12px;
}

    /* -------- Обо мне -------- */
    .about-me { padding: 40px 20px 60px; }
    .about-me-content { width: 100%; text-align: left; }
    .about-me-img {
        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
    }
    .about-me-img img {
        margin: auto;
        height: auto;
        max-width: 290px;
        border: 15px solid var(--milk);
    }
    .my-values {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .my-values p { font-size: 22px; }

    /* -------- Мои работы: 2 столбца -------- */
    .my-works { padding: 60px 20px; }
    .my-works h2 { margin-bottom: 40px; }
    .gallery-flex {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin-bottom: 15px;
    }
    .gallery-flex img {
        margin: auto;
        max-width :180px;
        object-fit: cover;
    }
    .item-1{
    width: 145px;
    height: 225px;
    border: 5px solid var(--gold)
}
.item-2{
    width: 145px;
    height: 145px;
    border: 5px solid var(--gold)
}
.item-3{
    width: 150px;
    height: 110px;
    border: 5px solid var(--gold)
}
.item-4{
    width: 150px;
    height: 230px;
    border: 5px solid var(--gold)
}
.item-5{
    width: 140px;
    height: 220px;
    border: 5px solid var(--gold)
}
.item-6{
    width: 155px;
    height: 115px;
    border: 5px solid var(--gold)
}
.item-7{
    width: 150px;
    height: 150px;
    border: 5px solid var(--gold)
}
.item-8{
    width: 145px;
    height: 225px;
    border: 5px solid var(--gold)
}
.item-9{
    width: 145px;
    height: 225px;
    border: 5px solid var(--gold)
}
.item-10{
    width: 145px;
    height: 145px;
    border: 5px solid var(--gold)
}
.item-11{
    width: 150px;
    height: 110px;
    margin-top: 3%;
    border: 5px solid var(--gold)
}
.item-12{
    width: 145px;
    height: 225px;
    border: 5px solid var(--gold)
}
.item-13{
    width: 145px;
    height: 225px;
    border: 5px solid var(--gold)
}
.item-14{
    width: 150px;
    height: 110px;
    border: 5px solid var(--gold)
}

    /* В мобильной версии наклон чуть меньше — переопределяем transform у item-классов */
.item-1, .item-3, .item-6, .item-8,
.item-9, .item-11, .item-14 {
    transform: rotate(-3deg);
}
.item-2, .item-4, .item-5, .item-7,
.item-10, .item-12, .item-13 {
    transform: rotate(3deg);
}

    /* -------- Цены: один столбец -------- */
    .price { padding: 50px 20px; }
    .price-flex {
        flex-direction: column;
        gap: 30px;
    }
    .price-card {
        max-width: 100%;
        padding: 30px 20px;
    }
    .price-card ul { padding-left: 20px; }

    /* -------- Свадьбы: текст под картинкой -------- */
    .weddings { padding: 50px 20px; }
    .weddings-flex {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .weddings-img {
        max-width: 100%;
        max-height: none;
        transform: rotate(-3deg);
    }
    .weddings-content { text-align: center; }
    .weddings-content h3 { font-size: 36px; margin-bottom: 25px; }
    .weddings-content p { font-size: 18px; }
    .weddings-content button { max-width: 100%; }

    /* -------- Контакты -------- */
    .contacts { padding: 50px 20px; }
    video { max-width: 100%; }
    .soc-networks {
        flex-wrap: wrap;
        gap: 15px;
    }
    .soc-networks img {
        width: 40px;
        height: 40px;
    }

    /* -------- Подвал -------- */
    footer { height: auto; padding: 25px 20px; font-size: 12px; }
    .footer { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    h2 { font-size: 30px; }
    .f-letter { font-size: 42px; }
    .hero-content h1 { font-size: 34px; }
    .hero h2 { font-size: 20px; height: 65px; }
    .btn-price{width: 260px;}
    .hero-content button{margin: 5px;}
    .my-values p { font-size: 18px; }
    .about-me-content{text-align: center;}
    .gallery-flex { gap: 25px; }
    .price-card { padding: 20px 15px; }
    h4 { font-size: 32px; }
    .rub { font-size: 20px; }
    .weddings-content h3 { font-size: 28px; }
    .fade-up{margin: auto; margin-bottom: 20px;}
    .contacts h2{width: 300px;}
    .soc-networks img{max-width: 35px; height: 35px;}
}