﻿@import "/fonts/Gilroy/stylesheet.css";
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@font-face {
  
font-family: 'Against Regular';
src: url('../fonts/against-regular.otf') format('truetype');
font-weight: normal;
font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz@9..40&family=Inter:wght@400;600&display=swap");
* {
padding: 0px;
margin: 0px;
border: none;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

/* Links */
a, a:link, a:visited {
text-decoration: none;
}

a:hover {
text-decoration: none;
}

/* Common */
aside, nav, footer, header, section, main {
display: block;
}

h1, h2, h3, h4, h5, h6, p {
font-size: inherit;
font-weight: inherit;
}

ul, ul li {
list-style: none;
}

img {
vertical-align: top;
}

img, svg {
max-width: 100%;
height: auto;
}

address {
font-style: normal;
}

/* Form */
input, textarea, button, select {
font-family: inherit;
font-size: inherit;
color: inherit;
background-color: transparent;
}

input::-ms-clear {
display: none;
}

button, input[type=submit] {
display: inline-block;
box-shadow: none;
background-color: transparent;
background: none;
cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
outline: none;
}

button::-moz-focus-inner {
padding: 0;
border: 0;
}

label {
cursor: pointer;
}

legend {
display: block;
}

:root {
    --index: calc(1vw + 1vh);
    --gallery-gap: calc(var(--index) * 7.5);
    --text-color: #1e1e1e;
    --text-muted: #8d8d8d;
    --text-card-dark-blue: #0d1b39;
    --accent: #e58411;
    --header-text-color: #ffffff;
    --footer-accent: #f6973f;
    --footer-bg: #bf9469;
    --footer-text-color: rgba(255, 255, 255, 0.8);
    --ui-orange: #e58411;
    --ui-biruza: #00d6c9;
    --ui-gray: #7c7c7c;
    --ui-dark-blue: #BF9469;
    --font-main: "Gilroy", sans-serif;
    --font-cards: "Inter", sans-serif;
    --font-footer-accent: "DM Sans", sans-serif;
}
html,
body {
    font-family: var(--font-main);
    color: var(--text-color);
    overflow-x: hidden;
}
.contect{
    will-change: transform;
}
.container {
max-width: 1310px;
padding: 0 15px;
margin: 0 auto;
}
.container--small {
max-width: 1094px;
}

.none {
display: none !important;
}

.title-2 {
font-weight: 700;
font-size: clamp(32px, 1.702rem + 1.49vw, 42px);
}

.header {
position: relative;
padding-top: 27px;
background-color: #bf9469; 
background-size: cover;
aspect-ratio: 1920/100;
color: var(--header-text-color);
}
.header a {
color: var(--header-text-color);
}
@media (max-width: 629px) {
.header {
    aspect-ratio: 1920/280;
    padding-top: 13px;
    background-position: center;
}
}

.header__nav {
margin-bottom: clamp(20px, 0.071rem + 5.89vw, 86px);
}

.header__content {
text-align: center;
}

.header__title {
margin-bottom: 14px;
font-weight: 700;
font-size: clamp(28px, 0.821rem + 4.64vw, 80px);
text-wrap: balance;
line-height: 130%; /* 104px */
letter-spacing: -0.8px;
text-transform: capitalize;
}

.header__content p {
margin: 0 auto;
max-width: 606px;
opacity: 0.8;
font-size: clamp(16px, 0.857rem + 0.71vw, 24px);
line-height: 160%; /* 38.4px */
text-wrap: balance;
}
.logo {
font-family: 'Against Regular', cursive !important;
font-weight: 700;
font-size: clamp(25px, 0.946rem + 0.89vw, 28px);
letter-spacing: 0.28px;
text-transform: capitalize;
color: #fff !important;

}
.logo img {
height: 150px;
width: auto; /* Збереження пропорцій */
vertical-align: middle;

}
.nav {
display: grid;
grid-template-columns: 2fr 8fr 2fr;
gap: 20px;
}

.nav__logo {
align-self: center;
}

.nav__btn {
display: none;
}
@media (max-width: 767px) {
.nav__btn {
    display: block;
}
}

.nav-list {
align-self: center;
justify-self: center;
display: flex;
justify-content: center;
align-items: center;
gap: 65px;
font-weight: 500;
font-size: 18px;
}
@media (max-width: 767px) {
.nav-list {
    display: none;
}
}

.nav-list__item {
position: relative;
padding: 10px 0;
}

.nav-list__link {
transition: opacity 0.1s ease-in;
}
.nav-list__link:hover {
opacity: 0.7;
}
.nav-list__link--dropdown {
display: flex;
align-items: center;
gap: 8px;
}
.nav-list__link--dropdown::after {
content: url("./../img/icons/arrow-down.svg");
height: 18px;
}

.nav-list__sub-nav {
z-index: 9999;
opacity: 0;
width: 160px;
pointer-events: none;
position: absolute;
left: 0;
top: 100%;
transform: translate(0%, 10%);
transition: all 0.2s ease-in;
}

.nav-list__item:hover .nav-list__sub-nav {
    pointer-events: all;
    opacity: 1;
    transform: translate(0%, 0%);
}

.sub-nav {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    font-size: 16px;
}
.sub-nav a {
color: var(--footer-text-color);
transition: color 0.1s ease-in;
}
.sub-nav a:hover {
color: var(--accent);
}

.cart {
align-self: center;
justify-self: end;
position: relative;
}

.cart__count {
position: absolute;
top: 3px;
right: -6px;
display: inline-block;
height: 25px;
padding: 0 6px;
border-radius: 40px;
background-color: var(--accent);
font-weight: 700;
line-height: 25px;
font-family: var(--font-cards);
font-size: 16px;
}

.benefits {
background-color: #F7F3E9;
padding: clamp(60px, 2.679rem + 5.36vw, 120px) 0;
}
.benefits__grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
@media (max-width: 992px) {
.benefits__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(30px, 0.982rem + 4.46vw, 60px) 20px;
}
}
@media (max-width: 629px) {
.benefits__grid {
    grid-template-columns: 1fr;
}
}

.benefits__title {
max-width: 260px;
}

.benefit__title {
margin-bottom: 20px;
font-weight: 700;
font-size: 24px;
}

.benefit__text {
margin-bottom: 14px;
font-size: 16px;
line-height: 1.85; /* 29.6px */
opacity: 0.8;
}


.products {
padding: 50px 0;
background-color: #F7E7CE;
}

.products__title {
margin-bottom: 32px;
text-align: center;
}

.products__tabs {
margin-bottom: 80px;
text-align: center;
}

.products__slider {
margin-bottom: clamp(30px, 0.982rem + 4.46vw, 60px);
}
@media (max-width: 1400px) {
.products__slider {
    padding: 0 40px;
}
}
@media (max-width: 629px) {
.products__slider {
    padding: 0 20px;
}
}

.products__link {
text-align: center;
}

.read-more {
display: inline-flex;
gap: 13px;
align-items: center;
color: var(--accent);
font-weight: 500;
font-size: 14px;
line-height: 1.85; /* 25.9px */
}
.read-more::after {
content: url("./../img/icons//arrow-right.svg");
height: 24px;
}
.read-more--large {
font-size: 18px;
}

.tab-controls {
display: inline-flex;
padding: 6px;
align-items: center;
border-radius: 44px;
background: #eee;
}

.tab-controls__btn {
height: 45px;
padding: 7px 20px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 32px;
color: rgba(31, 31, 31, 0.8);
font-weight: 500;
font-size: 18px;
line-height: 1.85;
transition: background-color 0.2s ease-in;
}
.tab-controls__btn:hover {
background-color: rgba(255, 255, 255, 0.5);
}
.tab-controls__btn--active {
background-color: #fff;
}
.tab-controls__btn--active:hover {
background-color: #fff;
}

.card {
position: relative;
width: 268px;
font-family: var(--font-cards);
}

.card__link {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}

.card__photo {
margin-top: 50px;
height: 240px;
background-color: #fafafa;
border-radius: 20px 20px 0 0;
text-align: center;
}

.card__img {
margin-top: -50px;
height: 345px;
width: 400px; 
}
.card__desc {
display: flex;
flex-direction: column;
gap: 6px;
height: 202px;
padding: 14px 22px 28px;
background-color: #fff;
border-radius: 0 0 20px 20px;
}

.card__category {
position: relative;
z-index: 3;
color: var(--text-muted);
font-size: 16px;
}

.card__title {
color: var(--text-card-dark-blue);
font-size: 21px;
font-weight: 600;
}

.card__rating {
display: flex;
gap: 3px;
}

.card__footer {
margin-top: auto;
display: flex;
justify-content: space-between;
align-items: center;
}

.card__price {
display: flex;
align-items: flex-start;
gap: 3px;
color: var(--text-card-dark-blue);
font-size: 21px;
font-weight: 600;
}
.card__price::before {
content: attr(data-value);
font-size: 15px;
}

.card__btn {
position: relative;
z-index: 3;
width: 48px;
height: 48px;
background-color: var(--ui-dark-blue);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0;
transition: opacity 0.2s ease-in;
}
.card__btn:hover {
opacity: 0.8;
}

.slider {
position: relative;
}

.slider__btn {
width: 50px;
height: 50px;
border-radius: 50%;
background: #fff;
box-shadow: 0px 7.03125px 19.53125px 0px rgba(0, 0, 0, 0.06);
display: flex;
justify-content: center;
align-items: center;
}

.slider__btn--prev {
position: absolute;
z-index: 1;
left: 0;
top: 50%;
transform: translate(-50%, -50%);
}

.slider__btn--next {
position: absolute;
z-index: 1;
right: 0;
top: 50%;
transform: translate(50%, -50%);
}

.footer {
padding: clamp(60px, 2.024rem + 8.63vw, 118px) 0 56px;
background-color: var(--footer-bg);
color: var(--footer-text-color);
font-weight: 500;
font-size: 15px;
line-height: 1.6;
}
.footer a {
color: var(--footer-text-color);
transition: opacity 0.1s ease-in;
}
.footer a:hover {
opacity: 0.6;
}

.footer__grid {
margin-bottom: clamp(60px, 2.024rem + 8.63vw, 118px);
display: grid;
grid-template-columns: 3fr 1fr 2fr 2fr 2fr;
gap: 60px 20px;
}
@media (max-width: 992px) {
.footer__grid {
    grid-template-columns: 4fr 1fr 3fr 3fr;
}
}
@media (max-width: 629px) {
.footer__grid {
    grid-template-columns: 1fr 1fr;
}
}

.footer__desc p + p {
margin-top: 1em;
}
@media (max-width: 629px) {
.footer__desc {
    grid-column: 1/3;
}
}

.footer__logo {
margin-bottom: 29px;
}

.footer__nav--services {
grid-column-start: 3;
}
@media (max-width: 629px) {
.footer__nav--services {
    grid-column-start: auto;
}
}

.footer__nav-title {
margin-bottom: 20px;
color: #5c3a2e;
font-family: var(--font-footer-accent);
font-size: 17px;
letter-spacing: -0.232px;
font-weight: 700;
}

.footer__list {
display: grid;
gap: 16px;
}

.footer__row {
display: flex;
justify-content: space-between;
align-items: center;
}
@media (max-width: 629px) {
.footer__row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
}
}

.footer__copyright {
font-family: var(--font-footer-accent);
font-size: 15px;
letter-spacing: -0.205px;
}

.footer__links {
display: flex;
flex-wrap: wrap;
gap: 40px;
}
@media (max-width: 629px) {
.footer__links {
    gap: 20px;
}
}

.mobile-nav-wrapper {
display: none;
position: absolute;
z-index: 9;
right: 0;
top: 0;
bottom: 0;
width: 320px;
padding: 30px 30px;
background-color: var(--footer-bg);
color: var(--footer-text-color);
}
.mobile-nav-wrapper a {
color: var(--footer-text-color);
transition: color 0.1s ease-in;
}
.mobile-nav-wrapper a:hover {
color: #fff;
}
.mobile-nav-wrapper--open {
display: block;
}

.mobile-nav-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cart {
flex-grow: 1;
display: flex;
align-items: center;
gap: 20px;
padding-right: 20px;
border-right: 1px solid rgba(255, 255, 255, 0.2);
font-size: 22px;
font-weight: 500;
}

/* Nav */
.mobile-nav {
display: grid;
gap: 20px;
font-size: 22px;
}

/* Sub nav */
.mobile-sub-nav {
padding: 20px 0 0 20px;
display: grid;
gap: 14px;
font-size: 16px;
}/*# sourceMappingURL=main.css.map */
.preview {
    width: 100vw;
    height: 100vh;
    font-family: 'Playfair Display', serif;
    background-color: #000;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.text1 {
    font-family:'Against Regular', cursive !important;
    font-size: 4.7rem;
    font-weight: 500;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 2.52s;
}
.circle-text {
    position: absolute;
    width: 300px; /* Менший розмір контейнера */
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;    
}


.circle-text span:nth-child(12) {
    color: white;
}
.circle-text span:nth-child(24) {
    color: white;
}	


.circle-text span {
    position: absolute;
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    font-weight: 600;
    color:#E0B98B;
    transform-origin: center;
    pointer-events: none;   
    opacity: 0; /* Початково приховані */
    animation: fadeInLetter 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--i)); /* Затримка появи кожної літери */
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
/* Анімація плавного з'явлення */
@keyframes fadeInLetter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



.circle-text span:nth-child(1)  { --angle: 15; --i: 1; }
.circle-text span:nth-child(2)  { --angle: 30; --i: 2; }
.circle-text span:nth-child(3)  { --angle: 45; --i: 3; }
.circle-text span:nth-child(4)  { --angle: 60; --i: 4; }
.circle-text span:nth-child(5)  { --angle: 75; --i: 5; }
.circle-text span:nth-child(6)  { --angle: 90; --i: 6; }
.circle-text span:nth-child(7)  { --angle: 105; --i: 7; }
.circle-text span:nth-child(8)  { --angle: 120; --i: 8; }
.circle-text span:nth-child(9)  { --angle: 135; --i: 9; }
.circle-text span:nth-child(10) { --angle: 150; --i: 10; }
.circle-text span:nth-child(11) { --angle: 165; --i: 11; }
.circle-text span:nth-child(12) { --angle: 180; --i: 12; }
.circle-text span:nth-child(13) { --angle: 195; --i: 13; }
.circle-text span:nth-child(14) { --angle: 210; --i: 14; }
.circle-text span:nth-child(15) { --angle: 225; --i: 15; }
.circle-text span:nth-child(16) { --angle: 240; --i: 16; }
.circle-text span:nth-child(17) { --angle: 255; --i: 17; }
.circle-text span:nth-child(18) { --angle: 270; --i: 18; }
.circle-text span:nth-child(19) { --angle: 285; --i: 19; }
.circle-text span:nth-child(20) { --angle: 300; --i: 20; }
.circle-text span:nth-child(21) { --angle: 315; --i: 21; }
.circle-text span:nth-child(22) { --angle: 330; --i: 22; }
.circle-text span:nth-child(23) { --angle: 345; --i: 23; }
.circle-text span:nth-child(24) { --angle: 360; --i: 24; }
.hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important; /* Щоб після зникнення не займав місце */
}
.display-none {
    display: none !important;
}
:root {
    --radius: 180px;
}

/* Кути та позиції літер */
.circle-text span {
    transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle) * 1deg));
}
@media (max-width: 768px) {
    .text1 {
        font-size: 4rem;
    }

    .circle-text span {
        font-size: 1.8rem;
    }

    .circle-text {
        width: 300px;
        height: 300px;
    }

    :root {
        --radius: 140px;
    }
}


@media (max-width: 480px) {
    .text1 {
        font-size: 3rem;
    }
    .circle-text span:nth-child(6) {
        position: relative;
        top: 5px; 
        left: 10px;
    }
    .circle-text span:nth-child(18) {
        position: relative;
        top: 5px;
        right: 10px; 
    }
    .circle-text span:nth-child(23) {
        transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle) * 1deg - 5deg)); 
    }

    .circle-text span {
        font-size: 1.4rem;
    }

    .circle-text {
        width: 220px;
        height: 220px;
    }

    :root {
        --radius: 100px;
    }
}
.header2 {
    margin: 0;
    padding: 0;
    padding-top: 100px;
    background-color: #f7f3e9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text figures";
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 90vh;
    z-index: 1;
    position: relative;
    overflow: visible;
}

/* Контейнер тексту */
.content1 {
    grid-area: text;
    font-family: --font-main;
    text-align: left;
    padding-left: 25%;
}

/* Основний заголовок */
.content1 h1 {
    font-weight: 1000;
    font-size: 55px;
    color: #5c3a2e;
    padding-bottom: 140px;
}

/* Підзаголовок */
.content1 p {
    font-family: 'Against Regular', cursive !important;
    padding-bottom: 40px;
    font-size: 50px;
    color: #bf9469;
}

/* Контейнер фігур */
.figures {
    padding-right: 7%;
    grid-area: figures;
    display: flex;
    justify-content: center; /* Центруємо */
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Уникаємо зайвого простору */
}

.figures svg {
    width: 100vw; /* Робимо фігури на всю ширину вікна */
    height: auto;
    max-height: 100%;
    position: relative;
}


/* Анімація */
path {
    fill: none;
    stroke: white;
    stroke-width: 4;
    animation: dash 5s linear 3.4s forwards;
}

@keyframes dash {
    0% {
        fill: transparent;
    }
    80% {
        fill: transparent;
        stroke-dashoffset: 0;
    }
    100% {
        fill: white;
        stroke-dashoffset: 0;
    }
}
@media (max-width: 1366px) {
    .header2 {  
        grid-template-columns: 1fr 1fr;
        height: 100vh;
    }

    .content1 {
        padding-left: clamp(5%, 8vw, 20%);
    }

    .content1 h1 {
        font-size: clamp(40px, 5vw, 48px);
        padding-bottom: 40px;
    }

    .content1 p {
        font-size: clamp(28px, 4vw, 35px);
        padding-bottom: 20px;
    }

    .figures svg {
        width: 90%;
        max-height: 300px;
    }
}
/* 📱 **Адаптація для мобільних** */
@media (max-width: 1024px) {
    .header2 {
        grid-template-columns: 1fr; /* Робимо текст і фігури в один стовпець */
        grid-template-areas: 
            "text"
            "figures";
        height: 100vh; /* Робимо висоту автоматичною для контенту */
    }

    .content1 {
        padding: 0;
        text-align: center; /* Центруємо текст */
        max-width: 95%; /* Робимо контейнер компактнішим */
        margin: 0 auto; /* Центруємо блок */
    }

    .content1 h1 {
        font-size: 38px; /* Зменшуємо заголовок */
        padding-bottom: 20px;
        font-weight: 900;
    }

    .content1 p {
        font-size: 24px; /* Зменшуємо підзаголовок */
        padding: 0;
        text-align: center;
    }

    .figures {
        padding-right: 8%;
        width: 100%; 
        grid-area: figures;
        display: flex;
        justify-content: center; 
        align-items: center;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .figures svg {
        
        width: 100%;
        height: auto;
        max-width: none; 
        display: block; 
        object-fit: cover; 
    }
    
}
@media (max-width: 670px) {
    .figures {
        padding-right: 5%;
    }
}
@media (max-width: 550px) {
    .scroll-wrapper{
        padding-top:100px !important;
    }
    .header2 {
        padding-top: 0px;
        grid-template-columns: 1fr; /* Робимо текст і фігури в один стовпець */
        grid-template-areas: 
            "text"
            "figures";
        height: 100vh; /* Робимо висоту автоматичною для контенту */
    }

    .content1 {
        padding: 0;
        text-align: center; /* Центруємо текст */
        max-width: 95%; /* Робимо контейнер компактнішим */
        margin: 0 auto; /* Центруємо блок */
    }

    .content1 h1 {
        font-size: 38px; /* Зменшуємо заголовок */
        padding-bottom: 20px;
        font-weight: 900;
    }

    .content1 p {
        font-size: 24px; /* Зменшуємо підзаголовок */
        padding: 0;
        text-align: center;
    }

    .figures {
        padding: 0%;
        width: 100%; /* Забезпечує повну ширину */
        grid-area: figures;
        display: flex;
        justify-content: center; /* Гарантовано центрує */
        align-items: center;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .figures svg {
        
        width: 100%;
        height: auto;
        max-width: none; /* Прибирає можливе обмеження ширини */
        display: block; /* Запобігає зайвим відступам */
        object-fit: cover; /* Заповнює контейнер */
    }
    
}
@keyframes cakeEntrance {
    0% {
        transform: translate(-50%, -100vh); /* Початкове положення вище екрану */
        opacity: 0; /* Невидимий на старті */
    }
    100% {
        transform: translate(-50%, -50%); /* Кінцеве положення – по центру */
        opacity: 1; /* Повністю видно */
    }
}

.cake {
    opacity: 0; /* Початково невидимий */
    position: absolute;
    top: 45%; /* Центруємо */
    left: 67%;
    transform: translate(-50%, -50%);
    max-width: 80vw; /* Налаштовуйте за необхідності */
    height: auto;
    z-index: 4; /* Щоб торт був поверх фігур */
    pointer-events: none; /* Запобігає впливу на події */
    animation: cakeEntrance 0.6s ease-out 7.5s forwards;
}
.crumbs1 {
    opacity: 0;
    position: absolute;
    top: 33%;
    left: 56%;
    transform: translate(-150%, -50%); /* Старт лівіше від нормального положення */
    max-width: 22vw;
    height: auto;
    z-index: 2;
    pointer-events: none;
    animation: cakeEntrance1 0.6s ease-out 7.7s forwards;
}

@keyframes cakeEntrance1 {
    0% {
        transform: translate(300%, -50%); /* далеко зліва */
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%); /* нормальне положення */
        opacity: 1;
    }
}


.crumbs2 {
    opacity: 0; /* Початково невидимий */
    position: absolute;
    top: 75%; /* Центруємо */
    left: 90%;
    transform: translate(-50%, -50%);
    max-width: 21vw; /* Налаштовуйте за необхідності */
    height: auto;
    z-index: 2; /* Щоб торт був поверх фігур */
    pointer-events: none; /* Запобігає впливу на події */
    animation: cakeEntrance2 0.6s ease-out 7.7s forwards;
}
@keyframes cakeEntrance2 {
    0% {
        transform: translate(-300%, -50%); /* далеко зліва */
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%); /* нормальне положення */
        opacity: 1;
    }
}
@media (max-width: 767px) {
    .cake {
        top: 42%;
        left: 40%;
        transform: translate(-50%, -50%);
        max-width: 120vw; /* ще більший торт */
    }

    .crumbs1 {
        top: 30%;
        left: 15%; /* лівіше до краю */
        transform: translate(-50%, -50%);
        max-width: 40vw; /* більші крихти */
    }

    .crumbs2 {
        top: 70%;
        left: 88%; /* правіше до краю */
        transform: translate(-50%, -50%);
        max-width: 45vw; /* більші крихти */
    
    }
    
}
@media (min-width: 600px) and (max-width: 1024px) {
    .cake {
        top: 42%;
        left: 41%;
        transform: translate(-50%, -50%);
        max-width: 95vw; /* ще більший торт */
        height: auto;
    }

    .crumbs1 {
        top: 30%;
        left: 17%; /* лівіше до краю */
        transform: translate(-50%, -50%);
        max-width: 35vw; /* більші крихти */
        height: auto;
    }

    .crumbs2 {
        top: 70%;
        left: 88%; /* правіше до краю */
        transform: translate(-50%, -50%);
        max-width: 35vw; /* більші крихти */
        height: auto;
    }

    /* Контейнер для SVG */
    .figures {
        position: relative;
        width: 100vw;
        overflow: hidden;
    }

    .figures svg {
        width: 100%;
        height: auto;
        display: block;
    }

}





.animated-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: jumpSettle 0.6s ease-out forwards;
}
.animated-text1 span {
    opacity: 0;
    display: inline-block;
    transform: translateY(30px);
    animation: jumpSettle 0.6s ease-out forwards;
}

@keyframes jumpSettle {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px); /* трохи вище */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* стає на місце */
    }
}

.animated-text1 span:nth-child(1) { animation-delay: 3.4s; }
.animated-text1 span:nth-child(2) { animation-delay: 3.5s; }
.animated-text1 span:nth-child(3) { animation-delay: 3.6s; }
.animated-text1 span:nth-child(4) { animation-delay: 3.7s; }
.animated-text1 span:nth-child(5) { animation-delay: 3.8s; }
.animated-text1 span:nth-child(6) { animation-delay: 3.9s; }
.animated-text1 span:nth-child(7) { animation-delay: 4s; }
/* Додаємо індивідуальну затримку для кожної літери */
.animated-text span:nth-child(1) { animation-delay: 4s; }
.animated-text span:nth-child(2) { animation-delay: 4.1s; }
.animated-text span:nth-child(3) { animation-delay: 4.2s; }
.animated-text span:nth-child(4) { animation-delay: 4.3s; }
.animated-text span:nth-child(5) { animation-delay: 4.4s; }
.animated-text span:nth-child(6) { animation-delay: 4.5s; }
.animated-text span:nth-child(7) { animation-delay: 4.6s; }
.animated-text span:nth-child(8) { animation-delay: 4.7s; }
.animated-text span:nth-child(9) { animation-delay: 4.8s; }
.animated-text span:nth-child(10) { animation-delay: 4.9s; }
.animated-text span:nth-child(11) { animation-delay: 5s; }
.animated-text span:nth-child(12) { animation-delay: 5.1s; }
.animated-text span:nth-child(13) { animation-delay: 5.2s; }
.animated-text span:nth-child(14) { animation-delay: 5.3s; }
.animated-text span:nth-child(15) { animation-delay: 5.4s; }
.animated-text span:nth-child(16) { animation-delay: 5.5s; }
.animated-text span:nth-child(17) { animation-delay: 5.6s; }
.animated-text span:nth-child(18) { animation-delay: 5.7s; }
.animated-text span:nth-child(19) { animation-delay: 5.8s; }
.animated-text span:nth-child(20) { animation-delay: 5.9s; }
.animated-text span:nth-child(21) { animation-delay: 6s; }
.animated-text span:nth-child(22) { animation-delay: 6.1s; }
.animated-text span:nth-child(23) { animation-delay: 6.2s; }
.animated-text span:nth-child(24) { animation-delay: 6.3s; }
.animated-text span:nth-child(25) { animation-delay: 6.4s; }
.animated-text span:nth-child(26) { animation-delay: 6.5s; }
.animated-text span:nth-child(27) { animation-delay: 6.6s; }
.animated-text span:nth-child(28) { animation-delay: 6.7s; }
.animated-text span:nth-child(29) { animation-delay: 6.8s; }
.animated-text span:nth-child(30) { animation-delay: 6.9s; }
.animated-text span:nth-child(31) { animation-delay: 7s; }
.animated-text span:nth-child(32) { animation-delay: 7.1s; }
.animated-text span:nth-child(33) { animation-delay: 7.2s; }
.animated-text span:nth-child(34) { animation-delay: 7.3s; }
.animated-text span:nth-child(35) { animation-delay: 7.4s; }

.cake-container {
  pointer-events: auto; /* Або просто не ставити нічого */
}
.gallery {
    background-color: #F9F6EE	;
	display: flex;
	padding: calc(var(--index) * 6) 0;
    padding-top: 0 !important;
}
.gallery > * {
	flex: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
}
.gallery__item {
	max-width: calc(var(--index) * 21);
	margin-bottom: var(--gallery-gap);
	max-height: 180vh;
	border-radius: 8px;
}
.gallery__left {
	margin-top: calc(var(--gallery-gap) * 1.75);
}
.gallery__right .gallery__item {
	margin: 0;
	margin-top: var(--gallery-gap);
}
.text-block {
	color: var(--color-text);
	position: relative;
}
.text-block__h {
    font-weight: 700;
    color:#5C3A2E !important;
	font-size: 2rem;
	line-height: 2.4rem;
	color: var(--color-header);
	margin-bottom: 1.5rem;
}
.text-block__p {
    font-size: 25px;
	line-height: 1.75;
}

@media (max-width: 1024px) {
    .gallery {
        padding-top: 0rem !important;
        display: block;
        width: 100%;
    }

    .gallery > * {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hide{
        display: none !important;
    }
}
/* Заборона вибору тексту для уникнення зуму */
body {
    background-color: #F9F6EE;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Вимкнення подвійного тапу для зуму */
html, body {
    touch-action: manipulation;
}


  





.floating_number {
    overflow: hidden;
    position: relative;
    height: 75vh;
    background-color: #F7E7CE;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: flex-start;
}
.number h2 {
    position: relative;
    font-size: clamp(7rem, 18vw, 17rem);
    font-weight: bold;
    color: #ffd800;
    margin: 0;
    z-index: 1;
}
.number {
    position: relative;
  }
.number .label {
    font-weight: 700;
    position: absolute;
    top: 45%; /* регулюй вертикально */
    left: clamp(70%, 5vw + 89%, 94%);
    transform: translate(-50%, -50%);
    font-family: 'Against Regular', cursive !important;
    font-size: clamp(1.6rem, 4vw, 3rem);
    color: #4a2e1b;
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
}
.number .text_5000{
    font-weight: 700;
    position: absolute;
    top: 150%; /* регулюй вертикально */
    left: 105%;
    transform: translate(-50%, -50%);
    font-family: 'Against Regular', cursive !important;
    font-size: clamp(1.5rem, 2.2vw, 1.6rem);

    color: #4a2e1b;
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
}
.crumbs-3{
    opacity: 1;
    position: absolute;
    top: 65%;
    left: 40%;
    max-width: 22vw;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 1024px) {

    .raspberry-1{
        width: 17vw;
        top: 40% !important;

    } 
    .raspberry-2{
        width: 17vw;
        top: 50%  !important;

    }       
    .number {
        left: 6%;
        top: 80px !important;
    }
    .label{
        top: -30% !important;
    }
    .crumbs-3 {
        margin-top: 50px !important;
        max-width: 60vw !important;
        left: 20% !important;
    }
    .crumbs-2 {
        top: -5% !important;
        max-width: 60vw !important;
        left: -5% !important;
    }
    .floating_number {
        height: 75vh;
    }
    .text_5000{
        white-space: normal !important;
        width: 90vw !important;         /* ширина 90% від екрана */
        max-width: 500px;
        left: 50% !important;
        top: 190%!important;
    }
    .number .label {
      position: static;
      display: block;
      transform: none;
      margin-top: 1rem;
      left: auto;
      text-align: center;
      left: 50% !important;
      top: 65% !important;
    }
    .crumbs-3{
        top: 50%;
    }
  }
.crumbs-2{
    opacity: 1;
    position: absolute;
    top: -5%;
    left: 10%;
    max-width: 22vw;
    height: auto;
    z-index: 9999999;
    pointer-events: none;
}

.cake2 {
    position: absolute;
    top: 100%;
    left: 5%;
    width: clamp(280px, 50vw, 480px); /* ще більший адаптивний розмір */
    z-index: 3;
    pointer-events: none;
  }
.label span {
display: inline-block;
opacity: 0;
transform: translateY(30px);
}
.raspberry-1{
    opacity: 1;
    position: absolute;
    top: 70%;
    left: 17%;
    max-width: 22vw;
    height: auto;
    z-index: 1;
    pointer-events: none;
}
.raspberry-2{
    opacity: 1;
    position: absolute;
    top: 80%;
    left: -7%;
    max-width: 22vw;
    height: auto;
    z-index: 1;
    pointer-events: none;
}


.scroll-wrapper {
    padding-top: 130px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1536px;
    height: 280px;
    overflow: hidden;
    z-index: 5;
  
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 80%,
      rgba(0, 0, 0, 0)
    );
  }
.scroll-bottom{
    padding-top: 180px;
}
  
@keyframes scrollLeft {
to {
    left: -200px;
    }
}

@keyframes scrollRight {
to {
    right: -200px;
    }
}

.itemLeft,
.itemRight {
margin-left: -100px;
display: flex;
justify-content: center;
align-items: center;
font-size: 40px;
font-family: 'Against Regular', cursive;
width: 200px;
height: 120px;
border-radius: 6px;
position: absolute;
animation-timing-function: linear;
animation-duration: 20s;
animation-iteration-count: infinite;
}

.itemLeft {
left: max(calc(200px * 8), 100%);
animation-name: scrollLeft;
}

.itemRight {
right: max(calc(200px * 8), calc(100% + 200px));
animation-name: scrollRight;
}

.item1 {
animation-delay: calc(20s / 8 * (8 - 1) * -1);
}

.item2 {
animation-delay: calc(20s / 8 * (8 - 2) * -1);
}

.item3 {
animation-delay: calc(20s / 8 * (8 - 3) * -1);
}

.item4 {
animation-delay: calc(20s / 8 * (8 - 4) * -1);
}

.item5 {
animation-delay: calc(20s / 8 * (8 - 5) * -1);
}

.item6 {
animation-delay: calc(20s / 8 * (8 - 6) * -1);
}

.item7 {
animation-delay: calc(20s / 8 * (8 - 7) * -1);
}

.item8 {
animation-delay: calc(20s / 8 * (8 - 8) * -1);
}
.scroll-text {
    word-spacing: 30px;
    white-space: nowrap;
    font-size: 40px;
    font-family: 'Against Regular', cursive;
    animation: scrollText 30s linear infinite;
  }
  @keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }



.under_text p {
  font-size: 22px;
  font-weight: 400;
  font-family: 'Georgia', serif; /* або кастомний */
  color: #5c4431; /* теплий коричневий */
  letter-spacing: 0.5px;
  margin: 10px 0;
  text-align: center;
  opacity: 0;
  animation: slideDownFade 0.5s ease-out forwards;
  animation-delay: 7s; /* змінюй при потребі */
}
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-400px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
  70% {
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}


.btn_phone {
    position: absolute;
    top: clamp(280px, 36vh, 480px);
    left: clamp(80px, 30vw, 200px);
    background-color: #A98263;
    color: #fff !important;    
    font-size: 20px;
    font-family: 'Against Regular', cursive !important;
    padding: 10px 25px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: bounceIn 1s ease forwards;
    animation-delay: 8s;
}
@media (max-width: 400px) {
  .btn_phone {
    left: 100px;
  }
}
.mob{
    display: none;
}
@media (max-width: 767px) {
  .mob{
    display: block;
  }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Контент модального вікна */

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Таблиця стилів */
table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background: #f4f4f4;
}

/* Кнопки */
button {
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

#checkout {
    background: #fbc02d;
    color: white;
}
/* Обмежуємо висоту кошика і додаємо прокрутку */
/* Збільшуємо розмір модального вікна */
/* Збільшуємо розмір модального вікна */
.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 95%; /* Було 90%, тепер ще ширше */
    max-width: 1000px; /* Було 800px */
    text-align: center;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
}

/* Блокуємо прокрутку фону при відкритому кошику */
body.modal-open {
    overflow: hidden;
}


/* Кнопки + / - */
.quantity-btn {
    font-size: 20px;
    padding: 8px 15px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 5px;
}

.quantity-btn:hover {
    background: #ddd;
}

/* Кнопка Видалити */
.remove-btn {
    font-size: 20px;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

.remove-btn:hover {
    color: darkred;
}

/* Кнопки оформлення замовлення */
.cart-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cart-buttons button {
    padding: 14px 25px;
    font-size: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#continueShopping {
    margin-right: 10px;
    background: #7a4318;
    color: white;
}

#continueShopping:hover {
    background: #5e3212;
}

#checkout:hover {
    background:  #c9a600;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow: auto;
  flex-direction: column; /* ⬅ це потрібно */
}

/* Контейнер всередині модального вікна */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 95%;
  max-width: 1300px;
  text-align: left;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 95vh;
  overflow-y: auto;
}

/* Закрити */
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Основна структура — дві колонки */
.cart-wrapper {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

/* Ліва частина: товари */
.cart-left {
  flex: 2;
  overflow-y: auto;
  max-height: 75vh;
}

/* Права частина: підсумок */
.cart-summary {
  flex: 1;
  background: #b57638;
  color: white;
  padding: 30px;
  border-radius: 16px;
  font-size: 18px;
}

.cart-summary h3 {
  margin-bottom: 25px;
  font-size: 24px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.summary-line.total {
  font-weight: bold;
  font-size: 20px;
  border-top: 1px solid #fff;
  padding-top: 10px;
}

.cart-summary input[type="text"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 15px;
  width: 100%;
  margin-top: 6px;
  outline: none;
  transition: border 0.3s ease, background 0.3s ease;
}

.cart-summary input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cart-summary input[type="text"]:focus {
  border-color: #ffe082;
  background-color: rgba(255, 255, 255, 0.25);
}

/* Кнопки в summary */
.cart-summary button {
  margin-top: 18px;
  background: #fdd835;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

/* Заголовок колонок */
.cart-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ddd;
}

/* Товари в кошику */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Кількість */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1e4d1;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 5px;
}

.quantity-controls button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Ціна товару */
.item-price {
  padding-top: 35px;
  font-weight: bold;
  font-size: 18px;
}
/* Початкова тонка лінія */
.modal-line {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 4px;
  background-color: #b57638;
  animation: none;
  margin-bottom: 20px;
}

.modal-content.modal-animate {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center center;
  animation: none;
  margin-top: 0;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 65vw; }
}

@keyframes expandModal {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
.item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* ⬅ відсуває вправо */
  gap: 70px;
  margin-top: 10px;
}


.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f0e2;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
  min-width: 100px;
}

.quantity-controls:hover {
  background: #f2e6d7;
}

.quantity-controls button {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  transition: color 0.2s;
}

.quantity-controls button:hover {
  color: #000;
}

.quantity-controls span {
  min-width: 14px;
  text-align: center;
}


.remove-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #b30000;
  cursor: pointer;
  margin-left: auto;
  transition: color 0.2s, transform 0.2s;
}

.remove-btn:hover {
  color: #ff0000;
  transform: scale(1.2);
}
.product-description {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 1.4;
}
.product-description span {
  display: block;
}
.item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.info-and-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
}

.item-description {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 70px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8eedd;
  padding: 10px 14px;
  border-radius: 8px;
}

.remove-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #b30000;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.remove-btn:hover {
  color: #ff0000;
  transform: scale(1.2);
}
.free-ship {
  margin: 15px 0;
  font-size: 14px;
  color: #fff; /* текст білий, щоб контрастував із коричневим фоном */
}

.free-ship-text {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.free-ship-amount {
  color: #ffcc33; /* золотистий акцент під стиль кнопки */
  font-weight: bold;
}

.free-ship-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25); /* світлий напівпрозорий фон */
  border-radius: 5px;
  overflow: hidden;
}

.free-ship-fill {
  height: 100%;
  width: 0%;
  background: #ffcc33; /* золотий заповнювач */
  border-radius: 5px;
  transition: width 0.3s ease-in-out;
}
