/* ================================
   БАЗОВІ НАЛАШТУВАННЯ
================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fff7f0 0%, #ffe6d4 100%);
    color: #4a2c15;
    min-height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    user-select: none;
}

/* КОНТЕЙНЕР */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================
   ХЕДЕР
================================= */
.header {
    background: #d85c37;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(216, 92, 55, 0.5);
}

.header-container {
    display: flex;
    flex-direction: column;
    /* вертикальний стек */
    align-items: center;
    /* по центру горизонтально */
    gap: 15px;
    /* відступ між логотипом і меню */
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    /* збільшити */
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    /* щоб можна було text-align спрацювати */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
    /* по центру */
    flex-wrap: wrap;
    /* щоб не зламати верстку на маленьких екранах */
}

.nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    /* щоб текст у 1 рядок */
}

.btn-order {
    background: #fff;
    color: #d85c37;
    padding: 10px 25px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(255, 255, 255, 0.6);
}

.btn-order:hover,
.btn-order:focus {
    background: #f2a365;
    color: #fff;
    outline: none;
}

/* ================================
   ГОЛОВНИЙ БЛОК (HERO)
================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #fce8d8, #f2b680);
    padding: 100px 15px 150px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: 3.8rem;
    color: #6e3c1c;
    margin: 0 0 15px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 30px;
    color: #7a4c35;
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.btn-hero {
    font-size: 1.25rem;
    padding: 15px 50px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(184, 95, 31, 0.6);
    animation: fadeInUp 1.4s ease forwards;
    opacity: 0;
}

/* Анімації fadeInUp */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   КОНФЕТІ
================================= */
.confetti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.confetti {
    position: absolute;
    top: -10px;
    opacity: 0.85;
    border-radius: 3px;
    animation-name: confettiFall, confettiRotate;
    animation-duration: 5s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(120vh);
        opacity: 0;
    }
}

@keyframes confettiRotate {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================
   КАТАЛОГ
================================= */
.catalog {
    padding: 60px 15px;
    background: #fff3e8;
    border-radius: 40px 40px 0 0;
    box-shadow: inset 0 0 25px rgba(216, 92, 55, 0.1);
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 45px;
    color: #d85c37;
    font-weight: 700;
}

.catalog-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background: #fff7f0;
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(216, 92, 55, 0.15);
    width: 320px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover,
.card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 14px 30px rgba(216, 92, 55, 0.35);
    outline: none;
}

.card img {
    width: 100%;
    height: 180px;
    border-radius: 25px 25px 0 0;
    object-fit: cover;
}

.card h3 {
    color: #d85c37;
    font-size: 1.6rem;
    margin: 18px 0 10px;
    font-weight: 700;
}

.card p {
    padding: 0 15px;
    color: #7a4c35;
    font-size: 1rem;
    flex-grow: 1;
    text-align: center;
}

/* ================================
   КНОПКИ
================================= */
.btn {
    text-decoration: none;
    background-color: #d85c37;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 40px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn:hover,
.btn:focus {
    background-color: #b8472a;
    outline: none;
}

/* ================================
   СЕКЦІЯ Замовити
================================= */

.cta-order {
    position: relative;
    background: linear-gradient(135deg, #d85c37, #f2a365);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(216, 92, 55, 0.4);
    margin: 40px auto;
    max-width: 600px;
    overflow: hidden;
}

.cta-order::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.cta-order .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-wrap: break-word;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #d85c37;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover,
.cta-button:focus {
    background: #f2a365;
    color: #fff;
    outline: none;
}

/* === Mobile Fix for width < 420px === */
@media (max-width: 420px) {
    .cta-order {
        padding: 40px 16px;
        margin: 30px auto;
        /* по горизонталі авто для центровання */
        border-radius: 16px;
        max-width: 90vw;
        overflow-x: hidden;
        box-sizing: border-box;

        display: block;
        /* переконайся, що це блочний елемент */
        /* Якщо .cta-order — inline-block або inline, можна додати: */
        /* display: block; */
    }

    .cta-content h2 {
        font-size: 1.5rem;
        word-break: break-word;
        /* дозволяє переносити довгі слова */
    }

    .cta-content p {
        font-size: 1rem;
        word-break: break-word;
    }

    .cta-button {
        width: 100%;
        /* кнопка на всю ширину контейнера */
        padding: 14px 0;
        font-size: 1rem;
        white-space: normal;
        /* дозволяє перенос тексту */
        box-sizing: border-box;
    }

    .cta-order::before {
        width: 80px;
        height: 80px;
        top: -20px;
        right: -20px;
    }
}

/* ================================
   СЕКЦІЯ ПОДІЛИТИСЬ
================================= */
.share {
    background: #fff3e8;
    padding: 60px 15px 90px;
    border-radius: 0 0 40px 40px;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(216, 92, 55, 0.1);
}

.share p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 25px;
    color: #7a4c35;
}

.share-btn {
    background-color: #f2a365;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    padding: 15px 50px;
    border-radius: 50px;
    box-shadow: 0 5px 12px rgba(210, 105, 30, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-btn:hover,
.share-btn:focus {
    background-color: #d17334;
    outline: none;
}

.share-menu {
    position: relative;
    max-width: 380px;
    margin: 25px auto 0;
    background: #fff7f0;
    border-radius: 25px;
    box-shadow: 0 8px 22px rgba(216, 92, 55, 0.25);
    padding: 20px 15px;
    display: none;
}

.share-menu.visible {
    display: block;
}

.close-share {
    position: absolute;
    top: 12px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 2.3rem;
    color: #d85c37;
    cursor: pointer;
}

.share-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.share-list a,
.share-list button {
    background: #d85c37;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 0;
    /* зверніть увагу: відсутній padding з боків */
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    width: 100%;
    /* додайте для повної ширини */
    box-sizing: border-box;
    /* щоб padding не виходив за межі */
}

.share-list a:hover,
.share-list a:focus,
.share-list button:hover,
.share-list button:focus {
    background: #b8472a;
    outline: none;
}

/* ================================
   КАСТОМНИЙ СКРОЛ
================================= */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #fff3e8;
    border-radius: 12px;
}

body::-webkit-scrollbar-thumb {
    background-color: #d85c37;
    border-radius: 12px;
    border: 3px solid #fff3e8;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #b8472a;
}

/* ================================
   ФУТЕР
================================= */
.footer {
    text-align: center;
    padding: 25px 10px;
    border-top: 2px solid #f2a365;
    font-size: 0.95rem;
    color: #7a4c35;
    background: #fff7f0;
}

/* Адаптив для екранів до 420px */
@media (max-width: 420px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .logo {
        font-size: 2rem;
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .nav-link {
        font-size: 1rem;
        padding: 6px 12px;
    }

    .btn-order {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .hero {
        padding: 70px 10px 100px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .btn-hero {
        font-size: 1rem;
        padding: 12px 40px;
    }

    .catalog {
        padding: 40px 10px;
        border-radius: 30px 30px 0 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .catalog-grid {
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 300px;
        padding-bottom: 20px;
    }

    .card h3 {
        font-size: 1.4rem;
        margin: 14px 0 8px;
    }

    .card p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .share {
        padding: 40px 10px 60px;
        border-radius: 0 0 30px 30px;
    }

    .share p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .share-btn {
        font-size: 1rem;
        padding: 12px 40px;
    }

    .share-menu {
        max-width: 100%;
        padding: 15px 10px;
        border-radius: 20px;
    }

    .share-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .share-list a,
    .share-list button {
        padding: 12px 20px;
        /* додайте горизонтальні відступи */
        font-size: 1rem;
    }

    body::-webkit-scrollbar {
        width: 10px;
    }

    body::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    body::-webkit-scrollbar-thumb {
        border-radius: 10px;
        border: 2.5px solid #fff3e8;
    }

    .footer {
        padding: 20px 10px;
        font-size: 0.9rem;
    }
}

/* Приховуємо навігацію на мобільних, показуємо бургер */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Мобільна версія */
@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #d85c37;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 15;
        overflow-y: auto;
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        padding-left: 20px;
    }

    .nav-link {
        font-size: 1.2rem;
        color: #fff;
        padding: 8px 0;
    }

    .btn-order {
        background: #fff;
        color: #d85c37;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 700;
        box-shadow: none;
        display: inline-block;
    }

    .btn-order:hover,
    .btn-order:focus {
        background: #f2a365;
        color: #fff;
        outline: none;
    }
}

/* Анімація іконки бургер у "хрестик" (опціонально) */
.burger-btn.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================
   Бігучий рядок
================================= */

.marquee-container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background-color: #f2a365;
    /* Приклад фону, можна змінити */
    padding: 10px 15px;
    box-sizing: border-box;
    border-radius: 8px;
}

.marquee-text {
    white-space: nowrap;
    /* Тримати в один рядок для бігу */
    display: inline-block;
    font-size: 1rem;
    color: #fff;
    animation: marqueeAnim 15s linear infinite;
    user-select: none;
}

/* Анімація бігу тексту */
@keyframes marqueeAnim {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Адаптив для мобільних до 420px */
@media (max-width: 420px) {
    .marquee-text {
        font-size: 0.85rem;
    }

    .marquee-container {
        padding: 8px 12px;
    }
}