/* === Сброс === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Hero === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero__images {
    position: absolute;
    inset: 0;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.hero__image--front {
    z-index: 3;
}

.hero__image--back {
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.hero__title {
    position: relative;
    top: -10%;
    font-size: clamp(3rem, 7vw, 7rem);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-container {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.text-inner {
    display: flex;
    flex-direction: column;
    font-size: 3rem;
    color: #fff;
    transition: transform 1s linear;
}

.line {
    opacity: 0.3;
    transition: opacity 1s;
}

.line.center {
    opacity: 1;
}

/* === About === */
.about {
    font-family: 'Helvetica', sans-serif;
    font-weight: lighter;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 70%,
        #e3f4ff 100%
    );
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 0 10%;
    gap: 4rem;
}

.about__header {
    margin-bottom: 3rem;
}

.about__title {
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: bold;
    text-align: end;
    background: linear-gradient(to right, #8da546 0%, #526029 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__blocks {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    width: 100%;
}

.about__block {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about__block--left .about__text {
    order: 1;
    flex: 1;
}

.about__block--left .about__image-wrapper {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.about__block--right .about__image-wrapper {
    order: 1;
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.about__block--right .about__text {
    order: 2;
    flex: 1;
}

.about__image {
    max-width: 100%;
    height: auto;
    display: block;
}

.about__block--100 {
    flex-direction: column;
    text-align: center;
}

.about__block-title {
    font-size: clamp(1.5rem, 2.5vw, 3.5rem);
    font-weight: bold;
    text-align: center;
    color: #a9b094;
    font-family: 'Helvetica Bold', sans-serif;
    margin-bottom: 1rem;
}

.about__block-text {
    font-size: clamp(1rem, 1.5vw, 1.75rem);
    line-height: 1.6;
    color: #000;
}

.about__block-text strong {
    font-weight: bold;
    color: #4c6e31;
}

.images-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 1.5rem;
}

.about__image--back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    clip-path: inset(0 0 0 0);
}

.about__image--front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    pointer-events: none;
    z-index: 2;
}

/* Галерея */
.about__gallery {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 70vh;
    gap: 1.2rem;
    padding: 0 2rem;
}

.gallery__item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: flex 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.gallery__item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.8rem;
    width: 1.6rem;
    height: 1.6rem;
    transform: translateY(-50%);
    z-index: 5;
}

.gallery__item:last-child::after {
    display: none;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    border-radius: inherit;
}

.about__gallery:hover .gallery__item {
    flex: 0.9;
}

.about__gallery .gallery__item:hover {
    flex: 2;
    z-index: 2;
}

.about__gallery .gallery__item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.about__cta {
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.75rem);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Shop === */
.shop {
    background-color: #e3f4ff;
    padding: 2rem 10%;
    font-family: 'Jost', sans-serif;
}

.shop__or {
    display: block;
    color: #b9cfde;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.shop__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    background: linear-gradient(to right, #0a3958 0%, #13679e 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: start;
    margin-bottom: 3rem;
}

.shop__cards-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.shop__cards {
    display: flex;
    gap: 1.5rem;
    scroll-snap-align: start;
}

.shop__card {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    scroll-snap-align: center;
}

.shop__card-img {
    height: 50%;
    width: 100%;
    padding: 10px;
    object-fit: contain;
    display: block;
}

.shop__card-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 1rem 1rem 0.5rem;
}

.shop__card-desc {
    font-size: 1.05rem;
    color: #555;
    margin: 0 1rem 1.25rem;
    flex-grow: 1;
    line-height: 1.4;
}

.shop__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.weight-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    color: #0a3958;
    background-color: #f0f8ff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.weight-selector:hover {
    background-color: #e1f2ff;
}

.weight-selector svg {
    width: 18px;
    height: 18px;
    stroke: #0a3958;
    stroke-width: 2;
    fill: none;
}

.shop__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.add-btn {
    background-color: #0a3958;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-btn:hover {
    background-color: #13679e;
}

/* кнопка корзины */
#cart-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0a3958;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    z-index: 1000;
    transition: all 0.2s ease;
}

#cart-float-btn:hover {
    background: #13679e;
    transform: scale(1.1);
}

/* модальное окно корзины */
#cart-modal {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 360px;
    max-height: 70vh;
    background: #fff;
    border-top-left-radius: 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

#cart-modal.active {
    transform: translateY(0);
}

.cart-modal-content {
    padding: 1rem;
    font-family: inherit;
}

.cart-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a3958;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cart-item button.remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #777;
    cursor: pointer;
}

.cart-controls button {
    margin: 0 2px;
    background: #0a3958;
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.cart-total {
    margin-top: 1rem;
    font-weight: bold;
    text-align: right;
    color: #0a3958;
}

#close-cart {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: #0a3958;
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
}

#close-cart:hover {
    background: #13679e;
}

/* выпадающее меню граммовки */
.weight-dropdown {
    position: absolute;
    bottom: 70px;
    left: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 5;
}
.weight-option {
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
}
.weight-option:hover {
    background-color: #f0f8ff;
}
