*{
    margin: 0;
    padding: 0;
    font-family: "Unbounded", sans-serif;;
}

body{
    background-color: #0F2038;
}
h2{
    font-size: 42px;
    color: white;
    margin-bottom: 30px;
}

p{
    font-size: 1.15em;
    color: #9EB7DD;
}
.highlight{
    color: var(--color-title);
}
.subtitle{
    color: var(--color-pink);
    font-family: cursive;
    --tilt: rotate(-5deg);
    margin-bottom: 50px;
}

:root{
    --color-button: #3B82F6;
    --color-pink: #F472B6;
    --color-white: #E5EDF7;
    --color-title: #60A5FA;
    --color-card: #142A4A;
}

menu{
    background-color:transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    
}
.menu-title a{
    text-decoration: none;
    color: var(--color-white);
    font-size: 20px;
}
.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;
}
.menu-nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding-bottom: 4px;
    transition: color .3s ease;
}

/* линия-подчёркивание */
.menu-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-title);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.menu-nav ul li a:hover {
    color: var(--color-title);
}

.menu-nav ul li a:hover::after {
    transform: scaleX(1);
}

.hero{
    padding: 0 100px 0 100px;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("images/hero.webp");
    background-repeat: no-repeat;
    background-size: cover;
    height: 860px;
}
.hero-content{
    width: 70%;
    padding-top: 200px;
    margin: auto;
    text-align: center;
}
.hero h1{
    font-size: 60px;
    color: var(--color-white);
}
.hero h2{
    font-size: 30px;
    color: var(--color-pink);
    font-family: "Caveat", cursive;
    transform: rotate(-2deg);
    margin-bottom: 30px;
}
.hero-content p{
    line-height: 35px;
    color: #9EB7DD;
}

.hero-content button{
    font-size: 20px;
    border-radius: 30px;
    padding: 15px 25px;
    margin-top: 40px;
}
.btn-works{
    background-color: var(--color-button);
    color: var(--color-white);
}
.btn-price{
    background-color: #142A4A;
    color: var(--color-white);
    border: 1px solid var(--color-title);
}
/* Обо мне */
.about-me{
    padding: 150px 100px 100px 100px;
    display: flex;
    align-items: center;
    gap: 100px;
}
.about-me-img img{
    height: 620px;
    width: 460px;
    object-fit: cover;
    border: 7px solid white;
    border-radius: 10px;
    transform: rotate(-5deg);
}

/* Мои работы */
.works{
    padding: 100px;
}
.gallery-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}
.gallery-grid img{
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 10px;
}
.btn-container{
    text-align: center;
    margin-top: 40px;
}
.btn-container a{
    color: #FACC15;
    font-size: 24px;
    font-style: italic;
    font-family: "Caveat", cursive;
}

/* Выбери свой формат */
.tariffs{
    padding: 50px 100px;
}
.container{
    padding-top: 40px;
    display: flex;
}
.card{
    margin: auto;
    width: 100%;
    max-width: 600px;
    background-color: var(--color-card);
    color: white;
    border-radius: 20px;
}
.card-img img{
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.card-content{
    padding: 40px;
}
.card-title{
    margin-bottom: 20px;
}
.card-title h3{
    font-size: 24px;
}
.card-title p{
    font-size: 14px;
    font-style: italic;
    font-family: "Caveat", cursive;
    color: var(--color-title);
}
.card-price{
    margin-bottom: 30px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.card-price h3{
    font-size: 36px;
    font-weight: bold;
}
.card-price p{
    padding-top: 10px;
    font-size: 16px;
}
.card-info{
    padding-left: 10px;
    margin-bottom: 50px;
}
.card-info ul li{
    margin-bottom: 10px;
}
.card-info ul li p{
    font-size: 16px;
    color: white;
}
.card-content button{
    background-color: var(--color-button);
    color: white;
    width: 100%;
    height: 55px;
    font-size: 20px;
    border: none;
    border-radius: 30px;
}

/* Контакты */
.contacts{
    padding: 100px;
    display: flex;
    gap: 10%;
}
.contacts-info{
    width: 50%;
}
.soc-networks{
    margin-top: 30px;
    display: flex;
    gap: 20px;
}
.soc-networks img{
    width: 40px;
    height: 40px;
}
.contacts-img{
    width: 390px;
    height: 490px;
    background-color: white;
    text-align: center;
    --tilt: rotate(5deg);
}
.contact-image img{
    width: 370px;
    height: 395px;
    object-fit: cover;
    border: 10px solid white;
}
.contact-text p{
    font-size: 24px;
    font-family: "Caveat", cursive;
    font-style: italic;
}
/* Подвал */
footer{
    text-align: center;
    padding-top: 40px;
    background-color: #081425;
    height: 50px;
}
h5{
    font-size: 16px;
    color: #9EB7DD;
    font-weight: 400;
}

/* ===== Бургер ===== */
.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(--color-white);
    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); }

/* ===== Анимация появления ===== */
.reveal {
   opacity: 0;
    transform: translateY(60px) var(--tilt, rotate(0deg));
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) var(--tilt, rotate(0deg));
}

/* ===== Наведение ===== */
.hero-content button,
.card-content button {
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}
.hero-content button:hover,
.card-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, .4);
}
.card {
    transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
}
.gallery-grid img {
    cursor: pointer;
    transition: transform .4s ease, box-shadow .4s ease;
}
.gallery-grid img:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .5);
}

/* ===== Лайтбокс ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 37, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    z-index: 999;
    padding: 20px;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 12px;
    transform: scale(.85);
    transition: transform .35s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .7);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 44px;
    color: white;
    cursor: pointer;
    line-height: 1;
    background: transparent;
    border: none;
    transition: transform .25s ease;
}
.lightbox-close:hover { transform: scale(1.2) rotate(90deg); }
body.no-scroll { overflow: hidden; }

/* ===== Планшеты ===== */
@media (max-width: 1024px) {
    .hero { padding: 0 40px; height: auto; padding-bottom: 80px; }
    .hero-content { width: 100%; padding-top: 60px; }
    .hero h1 { font-size: 60px; }
    .hero h2 { font-size: 30px; }
    h2 { font-size: 40px; }

    .about-me { padding: 100px 40px 60px; gap: 50px; }
    .about-me-img img { height: 400px; width: 280px; }

    .works, .tariffs, .contacts { padding: 80px 40px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; justify-items: center; }
    .gallery-grid img { width: 100%; max-width: 340px; height: 300px; }

    .container { flex-wrap: wrap; gap: 30px; justify-content: center; }
    .card { max-width: 480px; }

    /* Бургер для планшетов */
    .burger { display: flex; }
    .menu-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background-color: #081425;
        padding: 100px 30px 30px;
        transform: translateX(100%);
        transition: transform .35s ease;
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .5);
    }
    .menu-nav.open { transform: translateX(0); }
    .menu-nav ul {
        flex-direction: column;
        gap: 25px;
    }
    .menu-nav ul li { font-size: 20px; }
}

/* ===== Телефоны ===== */
@media (max-width: 768px) {
    h2 { font-size: 32px; }
    p { font-size: 17px; }

    .hero { padding: 0 20px 60px; background-position: center; }
    .hero-content { padding-top: 40px; }
    .hero h1 { font-size: 32px; }
    .hero h2 { font-size: 20px; margin-bottom: 30px; }
    .hero-content button { width: 100%; margin-top: 20px; }
    .hero-content .btn-price { margin-top: 12px; }

    .about-me {
        padding: 60px 20px;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .about-me-img img {
        width: 100%;
        max-width: 340px;
        height: auto;
    }

    .works, .tariffs, .contacts { padding: 60px 20px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery-grid img { height: 200px; }

    .container { flex-direction: column; padding-top: 20px; }
    .card { max-width: 100%; }
    .card-content { padding: 25px; }
    .card-title h3 { font-size: 22px; }
    .card-price h3 { font-size: 30px; }

    /* Контакты: сначала текст, потом картинка */
    .contacts {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .contacts-info { width: 100%; }
    .contacts-img {
        width: 100%;
        max-width: 340px;
        height: auto;
        padding-bottom: 20px;
    }
    .contact-image img {
        width: 100%;
        height: auto;
        border-width: 8px;
        box-sizing: border-box;
    }
}