/*
Theme Name: Kalyna Theme Full With Form (Styled from PDF)
Author: Developer
Version: 1.2
*/
article,
aside,
audio,
button,
input,
select,
textarea,
b,
body,
canvas,
dd,
details,
div,
dl,
dt,
em,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
img,
label,
li,
mark,
menu,
nav,
ol,
p,
section,
span,
strong,
sub,
summary,
sup,
time,
u,
ul,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: 0 0;
    font-size: 100%;
    font-family: "Comfortaa", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --red: #e2252b;
    --blue: #184fb8;
    --text: #222;
    --max: 1366px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Comfortaa", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    font-size: 47px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    /* важливо */
    width: max-content;
    /* ширина = ширина тексту */
    margin: 5px auto 25px auto;
    /* центруємо блок */
    text-align: center;
    padding: 0 60px;
    /* відступ від тексту до декору */
}

h2::before,
h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 114px;
    height: 66px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%);
}

/* «чіпляємо» декор саме до країв h2 */
h2::before {
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/decor-left.svg');
    left: 0;
    transform: translate(-100%, -50%);
    /* рівно зліва від заголовка */
}

h2::after {
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/decor-right.svg');
    right: 0;
    transform: translate(100%, -50%);
    /* рівно справа від заголовка */
}

ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 18px;
}

a {
    text-decoration: none;
}

footer {
    background: #eeeeee;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
}



/* Плавна прокрутка */
html {
    scroll-behavior: smooth;
}



.hero {
    background: #fff
}

.hero .scallop {
    max-width: var(--max);
    height: 7px;
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/line_blue.svg');
    background-repeat: repeat-x;
    background-position: 50% 0;
    margin: 0 auto;
}


.hero-panel {
    background: #2447b5;
    border-radius: 0 0 100px 100px;
    margin: 0 auto;
    max-width: var(--max);
    position: relative;
    overflow: hidden;
    border: 1px solid #2447b5;
    border-top: none;
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start
}

.ornament {
    margin-top: 20px;
    width: 150px;
}

.hero-title {
    margin: 4px 0 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 28px;
    text-align: center
}

.logo-white {
    width: 150px;
    margin: 0 auto;
    display: block
}

.new-label {
    width: 80px;
    margin: 0 auto;
    display: block;
    position: relative;
    top: 50px;
}

.packs {
    width: 90%;
    margin: 0 auto;
    display: block
}

.cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #e63a39;
    color: #fff;
    padding: 16px 26px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}


.product-button {
    /* Основні стилі */
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    background-color: #d81e05;
    /* Основний червоний колір */
    color: #ffffff;
    /* Колір тексту */
    font-size: 22px;
    /* Розмір тексту */
    font-weight: bold;
    text-transform: lowercase;
    /* Текст малими літерами */
    padding: 16px 35px;
    /* Внутрішні відступи */

    /* Форма та рамка */
    border-radius: 50px;
    /* Створює овальну форму */
    border: 6px solid #c12d1a;
    /* Темно-червона рамка для об'єму */

    /* Тіні для 3D-ефекту та падіння */
    box-shadow:
        -8px 0 12px rgba(255, 255, 255, .22),
        /* зовнішній блік зліва */
        12px 0 16px rgba(0, 0, 0, .30),
        /* зовнішнє затемнення справа */
        0 10px 20px rgba(0, 0, 0, .50);
    /* падіння під кнопкою */

    /* Інше */
    text-decoration: none;
    /* Забирає підкреслення у посилань */
    cursor: pointer;
    /* Змінює курсор при наведенні */
    transition: all 0.2s ease-in-out;
    /* Плавний перехід для анімації */
}


.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
}

.nav-arrow.left {
    left: 50px
}

.nav-arrow.right {
    right: 50px
}

.new-badge {
    position: absolute;
    right: 80px;
    top: 28px;
    width: 110px;
    height: 110px;
}

.new-badge svg {
    width: 100%;
    height: 100%
}



#advantages {
    text-align: center;
    padding: 80px 20px;
    background-color: #fff;
}

#advantages>p {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 20px;
    line-height: 1.6;
    color: #000;
}


#advantages ul {
    list-style: none;
    display: grid;
    /* дві колонки, ширина кожної від 320 до 500 */
    grid-template-columns: repeat(2, minmax(320px, 500px));
    justify-content: center;
    /* центруємо всю сітку */
    column-gap: 40px;
    /* ширше між колонками */
    row-gap: 20px;
    /* нижче між рядками */
    margin: 0 auto;
    padding: 0;
}

#advantages ul li {
    width: 100%;
    max-width: 500px;
    /* не більше 500 */
    background: #d7121d;
    color: #fff;
    font-size: 24px;
    padding: 30px 60px;
    font-weight: 500;
    text-align: center;
    position: relative;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    transition: transform .3s ease;
    white-space: nowrap;
}




#advantages ul li:hover {
    transform: scale(1.05);
}

:root {
    --max: 1160px;
    --radius: 28px;
    /* радіус кута фото */
    --laceH: 18px;
    /* висота мережки */
}

.about {
    position: relative;
    padding: 20px 0 20px;
}

.about .scallop {
    max-width: var(--max);
    height: 23px;
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/line_red.svg');
    background-repeat: no-repeat;
    background-position: 50% 0;
    margin: 0 auto;
    position: relative;
    top: 10px;
    z-index: 3;
}

.about__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

/* Фото з великим радіусом і тінню */
.about__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about__media img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
}


/* Текст + розділювач (red-line.svg) */
.about__text {
    text-align: center;
    color: #333;
    width: 75%;
    max-width: 980px;
    margin: 0 auto;
}

.about__text p {
    margin: 20px auto;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6em;
    text-align: left;
}

.about__separator {
    height: 25px;
    margin: 12px auto 12px;
    background: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/red-line.svg') no-repeat center/contain;
}

/* Ягідки-орнамент поверх фото */
/* базові розміри/відступ назовні від краю фото */
:root {
    --berry-size: clamp(68px, 6vw, 96px);
    --berry-x: clamp(16px, 2.2vw, 28px);
    /* наскільки виходять за край по X */
}

/* вигляд ягідки */
.about__berry {
    position: absolute;
    width: var(--berry-size);
    height: var(--berry-size);
    background: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/layer-with-petal.svg') no-repeat center / contain;
    pointer-events: none;
    z-index: 3;
}

/* ОДНА ВЕРТИКАЛЬ ДЛЯ ЛІВОГО КОЛОНЧИКА */
.about__berry--tl {
    /* верхня ліва */
    left: 0;
    top: 6%;
    transform: translate(calc(-100% - var(--berry-x)), 0);
}

.about__berry--ml {
    /* середня ліва */
    left: 0;
    top: 50%;
    transform: translate(calc(-100% - var(--berry-x)), -50%);
}

.about__berry--bl {
    /* нижня ліва */
    left: 0;
    bottom: 4%;
    transform: translate(calc(-100% - var(--berry-x)), 0);
}

/* ==== Ягідки навколо фото (строга горизонталь) ==== */
:root {
    --berry-s: 95px;
    /* розмір іконки на десктопі */
    --berry-x: -34px;
    /* наскільки виходять за край по X (однакова для всіх зліва/справа) */
    --berry-t: 14px;
    /* верхній відступ від фото */
    --berry-b: 12px;
    /* нижній відступ від фото */
}

.about__berry {
    position: absolute;
    width: var(--berry-s);
    height: var(--berry-s);
    background: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/layer-with-petal.svg') no-repeat center/contain;
    pointer-events: none;
    z-index: 3;
}

/* Базові параметри ягідок */
.about__berry {
    position: absolute;
    width: clamp(60px, 6.2vw, 55px);
    height: clamp(56px, 5.8vw, 49px);
    background: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/layer-with-petal.svg') no-repeat center/contain;
    pointer-events: none;
    z-index: 3;
}

/* Лівий бік — НЕ по одній лінії (зміщення різні) */
.about__berry--tl {
    top: 17%;
    left: 12%;
}

.about__berry--ml {
    top: 35%;
    left: 7%;
    transform: rotate(180deg);
    transform: scaleX(-1);
}

.about__berry--bl {
    bottom: 50%;
    left: 15%;
}

/* Правий бік — теж різні відступи (дзеркально не рівні) */
.about__berry--tr {
    top: 18%;
    right: 7%;
    transform: rotate(360deg);
}

.about__berry--mr {
    top: 35%;
    right: 6%;
    transform: scaleX(-1);
}

.about__berry--br {
    bottom: 50%;
    right: 10%;
    /* Додаємо поворот зображення */
    transform: rotate(360deg);
}

/* ===== Асортимент: розміри карток + підкладка ===== */
#products {
    /* картка */
    --card-w: clamp(320px, 42vw, 460px);
    --thumb-h: clamp(180px, 30vw, 240px);
    /* висота зони фото */
    --label-h: 56px;
    /* мін. висота лейбла */

    /* підкладка */
    --flake: clamp(70px, 12vw, 160px);
    /* розмір сніжинки */
    --pos1: 280px;
    /* позиція 1 */
    --pos2: 640px;
    /* позиція 2 */
}

/* 2 колонки фіксованої ширини */
#products .product-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, var(--card-w));
    justify-content: center;
    column-gap: 80px;
    row-gap: 68px;
    max-width: calc(var(--card-w) * 2 + 80px);
    margin: 0 auto;
    padding: 10px 0;
    z-index: 0;
}

/* підкладка зі сніжинками (масштабуються) */
#products .product-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/snowflake.svg') center var(--pos1) / var(--flake) var(--flake) no-repeat,
        url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/snowflake.svg') center var(--pos2) / var(--flake) var(--flake) no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* картка: фіксована геометрія */
.product-item {
    width: var(--card-w);
    display: grid;
    grid-template-rows: var(--thumb-h) var(--label-h);
    align-items: end;
    justify-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    /* над підкладкою */
}

/* !!! ЗАМІНИ свої правила для .product-item img на ці */
.product-item img {
    height: var(--thumb-h);
    /* фіксуємо висоту зони фото */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* вписується без обрізань */
    display: block;
    margin: 0 auto;
}

/* лейбл однакової висоти; центрований текст */
.product-label {
    display: grid;
    place-items: center;
    min-height: var(--label-h);
    padding: 12px 15px;
    width: min(500px, 90%);
    background: #d7121d;
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    font-size: 21px;
    clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
    border-radius: 4px;
}

/* --- Загальні стилі для секції --- */
.partners {
    padding: 60px 0;
    /* overflow: hidden; */
    /* Щоб декоративні елементи не створювали горизонтальний скрол */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* --- Заголовок секції з декоративними елементами --- */
.section-title-wrapper {
    margin-bottom: 50px;
}

/* --- Основний контент секції (2 колонки) --- */
.partners__content {

    position: relative;
}

/* --- Ліва колонка з пропозиціями --- */
.partners__offer {
    position: relative;

}

.partners__offer h3 {
    font-size: 22px;
    border-radius: 20px;
    background-color: #c5161d;
    color: #ffffff;
    font-weight: 100;
    padding: 10px 20px;
    display: block;
    margin: 0 auto 20px 5%;
    width: 255px;
}

/* Головний контейнер списку */
.diamond-list {
    list-style: none;
    text-align: left;
    /* Вимикаємо стандартні маркери */
    padding-left: 0;
    /* Прибираємо відступ зліва за замовчуванням */
    position: relative;
    /* Необхідно для позиціонування вертикальної лінії */
}

/* Вертикальна з'єднувальна лінія */
.diamond-list::before {
    content: '';
    position: absolute;

    /* Позиціонування лінії */
    left: 5px;
    /* Розміщуємо лінію зліва */
    top: 10px;
    /* Невеликий відступ зверху */
    bottom: 10px;
    /* Невеликий відступ знизу */

    /* Стиль лінії */
    width: 2px;
    background-color: rgba(197, 22, 29, 0.4);
    /* Червоний колір з прозорістю */
}

.diamond-list ul {
    list-style: disc;
    padding-left: 20px;

}

.diamond-list li {
    position: relative;
    padding-left: 25px;
    padding-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

/* Прибираємо нижній відступ в останнього елемента, щоб лінія не висіла в повітрі */
.diamond-list li:last-child {
    padding-bottom: 0;
}

/* Маркер-ромб */
.diamond-list li::before {
    content: '';
    position: absolute;

    /* Позиціонування ромба */
    left: 0;
    top: 6px;
    /* Вертикальне вирівнювання відносно тексту */

    /* Створюємо квадрат, який перетворимо на ромб */
    width: 12px;
    height: 12px;
    background-color: #c5161d;
    /* Суцільний червоний колір */

    /* Ключова властивість: повертаємо квадрат на 45 градусів */
    transform: rotate(45deg);
}

/* --- Права колонка з формою (червоний блок) --- */
.partners__form-wrapper {
    width: 90%;
    margin: 20px auto 0 auto;
    position: relative;
    background-color: #c5161d;
    color: #fff;
    padding: 40px;
    /* Створюємо органічну форму за допомогою border-radius */
    border-radius: 40px 40px 40px 40px;
    z-index: 3;
}

/* Додаємо бокові візерунки через псевдо-елементи */
.partners__form-wrapper::before,
.partners__form-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    /* Налаштуйте розмір */
    height: 200px;
    /* Налаштуйте розмір */
    background-size: contain;
    background-repeat: no-repeat;
}

.partners__form-wrapper::before {
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/left_side.svg');
    left: -100px;
    /* Позиціонуємо зліва */
}

.partners__form-wrapper::after {
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/right_side.svg');
    right: -100px;
    /* Позиціонуємо справа */
}

.partners__form-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 30px;
    align-items: flex-start;
}

/* --- Текст всередині червоного блоку --- */
.form-text {
    position: relative;
    padding-right: 20px;
    /* Відступ для стрілки */
}

.form-text p {
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 18px;
    line-height: 1.5em;
}

.form-text h4 {
    font-size: 1.7rem;
    text-align: left;
}

.form-arrow {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
}

/* --- Форма з білим фоном --- */
.form-container {
    background-color: #c5161d;
    padding: 30px;
    border-radius: 50px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    background-color: #ffffff;
}

.form-container textarea {
    margin-bottom: 20px;
    resize: vertical;
}

.form-container button {
    background-color: #c5161d;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    /* Розміщуємо кнопку справа */
}

.form-container button:hover {
    background-color: #ffffff;
    color: #c5161d;
}

.partners__top {
    width: 90%;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Права колонка значно ширша */
    gap: 20px;
    align-items: flex-start;
}

.berries {
    position: absolute;
    top: -20px;
    /* Трохи піднімаємо для кращого вигляду */
    right: 0;
    width: 280px;
    /* Ширина області для розміщення ягідок */
    height: 100%;
    /* Висота на весь батьківський блок */
    pointer-events: none;
    /* Дозволяє клікати крізь елемент, якщо він перекриває щось */
}

/*
 * КРОК 3: Створюємо дві ягідки
 * Використовуємо ::before для більшої та ::after для меншої.
 */
.berries::before {
    content: '';
    position: absolute;
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/layer-with-petal.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

/* Стиль для першої ягідки (більшої, праворуч знизу) */
.berries::before {
    width: 330px;
    height: 330px;
    right: 0px;
    bottom: 0px;
}

/* Стиль для другої ягідки (меншої, ліворуч зверху) */
.berries::after {
    content: '';
    position: absolute;
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/layer-with-petal.svg');
    background-repeat: no-repeat;
    background-size: contain;
    width: 130px;
    height: 130px;
    top: 40px;
    left: -130px;

    /* Додаємо поворот зображення */
    transform: rotate(270deg);
}

.right-berries {
    top: 20px;
    right: 20px;
}

.right-berries img:nth-child(1) {
    top: 0;
    right: 0;
    width: 80px;
}

.right-berries img:nth-child(2) {
    top: 80px;
    right: 60px;
    width: 20px;
}

.angry-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 2fr;
    gap: 0px;
    max-width: var(--max);
    margin: 0 auto;
}

#item-0 {
    grid-row-start: 1;
    grid-column-start: 1;
    grid-row-end: 2;
    grid-column-end: 2;
}

#item-0 h3 {
    text-align: left;
    font-size: 36px;
    color: #c5161d;
    line-height: 1.2;
    font-weight: bold;
}

#item-1 {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-row-end: 3;
    grid-column-end: 2;
    position: relative;
}

#item-1 p {
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
    position: absolute;
    top: 60px;
    left: 0px;
    width: 550px;
}

#item-2 {
    grid-row-start: 1;
    grid-column-start: 2;
    grid-row-end: 3;
    grid-column-end: 3;
}

#item-2 .map {
    width: 100%;
    max-width: 880px;
}

#contacts {
    background-color: #fff;
    padding: 60px 20px 40px;
    text-align: center;
}

.contacts-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.decor-line {
    width: 100%;
    height: 2px;
    background-color: #c5161d;
}

.decor-pattern {
    background-image: url('/wp-content/themes/kalyna-theme-full-with-form/assets/images/decor-down.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 60px;
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    color: #000;
    margin: 8px 0;
    flex-wrap: wrap;
}

.contact-info img {
    height: 20px;
}

.contact-info a {
    color: #000;
    text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-icons img {
    height: 30px;
    width: 30px;
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Обгортка всієї секції */
.product_page {
    padding: 20px;
    margin-top: 60px;
}

/* Сітка товарів */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Картка товару */
.product-card {
    flex: 1 1 calc(25% - 30px);
    max-width: calc(25% - 30px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-card h3 {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.product-card p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* Стилі для контейнера всієї секції 404 */
    .error-404 {
        width: 100%;
        max-width: 800px;
        /* Обмеження ширини */
        margin: 100px auto;
        /* Центрування та відступи */
        padding: 40px;
        text-align: center;
        /* Центрування тексту */
        background-color: #f9f9f9;
        /* Легкий фон */
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    /* Заголовок сторінки */
    .error-404 .page-title {
        font-size: 1.5em;
        color: #e74c3c;
        /* Колір помилки */
        margin-bottom: 20px;
        border-bottom: 2px solid #ddd;
        padding-bottom: 10px;
    }

    /* Основний текстовий блок */
    .error-404 .page-content p {
        font-size: 1.1em;
        line-height: 1.6;
        color: #333;
        margin-bottom: 25px;
    }

    /* Стилі для форми пошуку */
    .error-404 .search-form {
        max-width: 400px;
        margin: 30px auto;
    }

    /* Кнопка або посилання "На головну" */
    .error-404 a {
        display: inline-block;
        background-color: #3498db;
        /* Основний колір кнопки */
        color: white;
        padding: 12px 25px;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    /* Ефект при наведенні на кнопку */
    .error-404 a:hover {
        background-color: #2980b9;
    }

/* Адаптивність */
@media screen and (max-width: 1024px) {
    .product-card {
        flex: 1 1 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
}

@media screen and (max-width: 768px) {
    .product-card {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media screen and (max-width: 480px) {
    .product-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}