@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* === Загальні стилі === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif; /* Рекомендовано замінити на 'Poppins', sans-serif; */
    letter-spacing: 1px;
    font-weight: 300; /* Рекомендовано 400 для кращої читабельності */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === Навігація === */
nav {
    height: 6rem;
    width: 100vw;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #131418;
}

.logo {
    padding: 1vh 1vw;
    text-align: center;
}

.logo img {
    height: 5rem;
    width: 7rem;
}

.back-arrow {
    display: none;
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translate(-5%, -50%);
    cursor: pointer;
    z-index: 2;
}

.back-arrow img {
    width: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    width: 88vw;
    padding: 0 0.7vw;
    justify-content: space-evenly;
    align-items: center;
    text-transform: uppercase;
}

.nav-links li a {
    color: #f2f5f7;
    text-decoration: none;
    margin: 0 0.7vw;
}

.nav-links li a:hover {
    color: #61dafb;
}

.nav-links li {
    position: relative;
}

.nav-links li a::before {
    content: "";
    display: block;
    height: 3px;
    width: 0%;
    background-color: #61dafb;
    position: absolute;
    transition: all ease-in-out 250ms;
    margin: 0 0 0 10%;
}

.nav-links li a:hover::before {
    width: 80%;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background: #f2f5f7;
    margin: 5px;
    transition: all 0.3s ease;
}

.hamburger {
    display: none;
}

/* === Адаптивні стилі навігації === */
@media screen and (max-width: 800px) {
    nav {
        position: fixed;
        z-index: 3;
    }

    .hamburger {
        display: block;
        position: absolute;
        cursor: pointer;
        right: 5%;
        top: 50%;
        transform: translate(-5%, -50%);
        z-index: 2;
        transition: all 0.7s ease;
    }

    .nav-links {
        position: fixed;
        background: #131418;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        clip-path: circle(50px at 90% -20%);
        -webkit-clip-path: circle(50px at 90% -10%);
        transition: all 1s ease-out;
        pointer-events: none;
    }

    .nav-links.open {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-links li:nth-child(1) {
        transition: all 0.5s ease 0.2s;
    }

    .nav-links li:nth-child(2) {
        transition: all 0.5s ease 0.4s;
    }

    .nav-links li:nth-child(3) {
        transition: all 0.5s ease 0.6s;
    }

    .nav-links li:nth-child(4) {
        transition: all 0.5s ease 0.7s;
    }

    .nav-links li:nth-child(5) {
        transition: all 0.5s ease 0.8s;
    }

    li.fade {
        opacity: 1;
    }
}

/* === Стилі форми === */
.wrapper-form {
    font-family: "Poppins", sans-serif;
    display: flex;
    min-height: 100vh;
    background: #ffffff;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
}

.wrapper {
    padding-top: 20px;
    width: 715px;
    background: #fff;
}

.wrapper header {
    font-size: 24px;
    font-weight: 600;
    padding: 20px 30px;
    border-bottom: 1px solid #ccc;
}

.wrapper form {
    margin: 35px 30px;
}

.wrapper form.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Група полів в два стовпці */
form .dbl-field {
    display: flex;
    margin-bottom: 25px;
    justify-content: space-between;
}

.dbl-field .field {
    height: 50px;
    display: flex;
    position: relative;
    width: calc(100% / 2 - 13px);
}

/* Стилі іконок в полях */
.wrapper form i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #ccc;
    font-size: 17px;
    pointer-events: none;
    transform: translateY(-50%);
}

form .message i {
    top: 30px;
    font-size: 20px;
}


/* Стилі полів вводу та textarea */
form .field input,
form .message textarea {
    width: 100%;
    height: 100%;
    outline: none;
    padding: 0 18px 0 48px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: #000; /* КОЛІР ТЕКСТУ - ЧОРНИЙ */
}

/* Стиль для поля пошуку */
.field input[type="text"] {
    width: 100%;
    height: 50px;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px; /* Залишено як є */
    color: #000; /* КОЛІР ТЕКСТУ - ЧОРНИЙ */
}

/* Стиль для селекту */
.field select {
    width: 100%;
    height: 50px;
    outline: none;
    padding: 0 18px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px; /* Залишено як є */
    color: #000; /* КОЛІР ТЕКСТУ - ЧОРНИЙ */
}


/* Стилі плейсхолдерів */
.field input::placeholder,
.message textarea::placeholder,
.field input[type="number"]::placeholder,
.field input[type="text"]::placeholder {
    color: #202020; /* ТЕМНІШИЙ КОЛІР ПЛЕЙСХОЛДЕРА */
}


/* Стилі при фокусі */
.field input:focus,
.message textarea:focus {
    padding-left: 47px;
    border: 2px solid #1f1f1f;
}

.field input:focus~i,
.message textarea:focus~i {
    color: #1f1f1f;
}

.field select:focus {
    border: 2px solid #1f1f1f;
}

.field input[type="number"]:focus,
.field input[type="text"]:focus {
    border: 2px solid #1f1f1f;
}


/* Стилі текстового поля (textarea) */
form .message textarea {
    min-height: 130px;
    max-height: 230px;
    max-width: 100%;
    min-width: 100%;
    padding: 15px 20px 0 48px;
}

form .message textarea::-webkit-scrollbar {
    width: 0px; /* Приховати скролбар */
}

.message textarea:focus {
    padding-top: 14px;
}


/* Стилі кількості знайдених продуктів */
#productCount {
    font-size: 14px;
    color: #555;
    margin-top: -10px;
    margin-bottom: 20px;
}


/* Стилі кнопки та статусу */
form .button-area {
    margin: 25px 0;
    display: flex;
    align-items: center;
}

.button-area button {
    color: #fff;
    border: none;
    outline: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    padding: 13px 25px;
    background: #1f1f1f;
    transition: background 0.3s ease;
}

.button-area button:hover {
    background: #1f1f1f;
}

.button-area span {
    font-size: 17px;
    margin-left: 30px;
    display: none;
    color: #333; /* КОЛІР ТЕКСТУ СТАТУСУ */
}


/* === Адаптивні стилі форми === */
@media (max-width: 768px) {
    .wrapper header {
        text-align: center;
        font-size: 22px; /* РОЗМІР ЗАГОЛОВКА НА МОБІЛЬНИХ */
    }

    .wrapper form {
        margin: 35px 20px;
    }

    form .dbl-field {
        flex-direction: column;
        margin-bottom: 0px;
    }

    form .dbl-field .field {
        width: 100%;
        margin-bottom: 15px; /* Відстань між полями */
    }

    /* Розмір тексту полів вводу, селекту, textarea на мобільних (<= 768px) */
    .field input[type="text"],
    .field input[type="number"],
    .field select,
    form .message textarea {
        font-size: 1rem; /* ЗБІЛЬШЕНО РОЗМІР ШРИФТУ ДО 16px */
        color: #000; /* ЧОРНИЙ КОЛІР ТЕКСТУ */
    }

    /* Розмір та колір тексту кількості продуктів на мобільних (<= 768px) */
    #productCount {
        font-size: 0.9rem; /* ЗМІНЕНО РОЗМІР */
        color: #000; /* ЧОРНИЙ КОЛІР */
    }
}

@media (max-width: 600px) {
    /* Стилі кнопки та статусу на ще менших екранах (<= 600px) */
    .wrapper header {
        font-size: 20px; /* РОЗМІР ЗАГОЛОВКА НА ДУЖЕ МАЛИХ ЕКРАНАХ */
    }

    form .dbl-field .field {
        height: 45px; /* ВИСОТА ПОЛЯ */
        margin-bottom: 20px; /* ВІДСТУП */
    }

    form .button-area {
        margin-top: 20px;
        flex-direction: column;
    }

    .button-area button {
        width: 100%;
        padding: 11px 0;
        font-size: 1.1rem; /* РОЗМІР ШРИФТУ КНОПКИ */
    }

    .button-area span {
        margin: 20px 0 0;
        text-align: center;
        font-size: 1rem; /* РОЗМІР ШРИФТУ СТАТУСУ */
    }
}


@media (max-width: 480px) {
     /* Розмір тексту полів вводу, селекту, textarea на дуже малих екранах (<= 480px) */
    .field input[type="text"],
    .field input[type="number"],
    .field select,
    form .message textarea {
        height: 45px; /* ВИСОТА ПОЛЯ */
        font-size: 1rem; /* РОЗМІР ШРИФТУ 16px */
        color: #000; /* ЧОРНИЙ КОЛІР ТЕКСТУ */
        font-weight: bolder;
    }

     /* Розмір та колір тексту кількості продуктів на дуже малих екранах (<= 480px) */
    #productCount {
        font-size: 0.8rem; /* ЗМІНЕНО РОЗМІР */
        color: #000000; /* ЧОРНИЙ КОЛІР */

    }
}

/* === Стилі футера === */
.centroassoluto {
    width: 100%;
    text-align: center;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

@media only screen and (min-width: 768px) {
    .ftC {
        float: left;
        display: flex;
        flex-direction: COLUMN;
        justify-content: space-around;
        margin: 0;
        text-align: center;
        vertical-align: middle;
        width: 100%;
        height: calc(50vh);
        min-height: calc(50vh);
        background-color: #f3f3f3;
    }
}

@media only screen and (max-width: 768px) {
    .ftC {
        display: flex;
        flex-direction: COLUMN;
        justify-content: space-around;
        margin: 0;
        text-align: center;
        width: 100%;
        height: 60vh;
        min-height: 60vh;
        background-color: #f3f3f3;
    }
}

.ftC a {
    color: #808080;
    text-decoration: none;
    font-weight: bold;
}

@media only screen and (min-width: 768px) {
    .sparisci {
        display: block;
    }
}

@media only screen and (max-width: 768px) {
    .sparisci {
        display: none;
    }
}

@media only screen and (min-width: 768px) {
    .sparisci2 {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .sparisci2 {
        display: block;
    }
}

.ftC p {
    margin: 0px;
    color: #808080;
}

.ftcontatti {
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 768px) {
    .colonnacontatti {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media only screen and (min-width: 768px) {
    .colonnacontatti {
        width: 30%;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

@media only screen and (max-width: 768px) {
    .orizcontatti {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media only screen and (min-width: 768px) {
    .orizcontatti {
        display: flex;
        justify-content: space-around;
    }
}

.stroke-solid {
    stroke-dashoffset: 0;
    stroke-dashArray: 300;
    stroke-width: 2px;
    transition: stroke-dashoffset 0.8s ease, opacity 0.5s ease;
}

.stroke-under {
    stroke-dashoffset: 00;
    stroke-dashArray: 300;
    stroke-width: 1px;
}

.st0 {
    fill: #808080;
    display: inline-block;
    border: 0;
    position: absolute;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1);
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1);
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1);
    transition: all 200ms ease-in;
    transform-origin: 50% 50%;
    transform: scale(1);
}

#play:hover .stroke-solid {
    opacity: 1;
    stroke-dashoffset: -300;
}

#play:hover .st0 {
    fill: #202020;
    -webkit-transition: all 100ms ease-in;
    -webkit-transform: scale(1.05);
    -ms-transition: all 100ms ease-in;
    -ms-transform: scale(1.05);
    -moz-transition: all 100ms ease-in;
    -moz-transform: scale(1.05);
    transition: all 100ms ease-in;
    transform-origin: 50% 50%;
    transform: scale(1.05);
}

#play {
    cursor: pointer;
}

.orizcont {
    margin-top: 102px;
    display: flex;
    justify-content: space-around;
}

.vl {
    border-left: 1px solid #dadada;
}

.ol {
    border-top: 1px solid #dadada;
    width: 100%;
}

.fill-height-or-more {
    min-height: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.fill-height-or-more>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media only screen and (min-width: 768px) {
    .ol {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .vl {
        display: none;
    }

    .orizcont {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .fill-height-or-more>div {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .fill-height-or-more {
        display: flex;
        padding: 20px;
        flex-direction: column;
        justify-content: space-around;
    }
}

.some-area {
    padding-left: 10px;
    padding-right: 10px;
}