@import 'animista.css';

body {
    margin: 0;
    font-family: "Itim", serif;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    font-size: clamp(14px, 1.2vw, 18px);
    background: linear-gradient(145deg, rgba(160,53,66,1) 0%, rgba(35,106,94,1) 100%) no-repeat;
}

*, *:before, *:after {
    box-sizing: border-box;
}

p {
    margin: 0;
}

img {
    display: block;
    object-fit: cover;
    max-width: 100%; 
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1220px;
    padding: 0 clamp(10px, 2vw, 20px);
    margin: 0 auto;
}

/* HEADER */
.header {
    width: 90%;
    padding: clamp(10px, 2vw, 2vw) 0;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* NAV */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
}

.logo img {
    width: clamp(80px, 10vw, 120px);
}

.nav_item {
    color: #fff;
    text-decoration: none;
    padding: clamp(10px, 1vw, 15px);
    cursor: pointer;
    font-size: clamp(14px, 1vw, 18px);
}

.nav_item:hover {
    text-decoration: underline;
}

.btn {
    background: linear-gradient(90deg, rgba(160,53,66,1) 0%, rgba(117,18,30,1) 100%);
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    font-size: clamp(14px, 1vw, 18px); 
    transition: background 0.3s; 
}

.btn_personal {
    margin-top: clamp(10px, 2vw, 30px);
}

.btn:hover {
    background: linear-gradient(217deg, rgba(117, 18, 30, 1), rgba(117, 18, 30, 0)),
                    linear-gradient(127deg, rgba(160, 53, 66, 1), rgba(160, 53, 66, 0)),
                    linear-gradient(336deg, rgba(35, 106, 94, 1), rgba(35, 106, 94, 0));
    background-size: 200% 300%;
    animation: 10s infinite granimate;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.5s ease forwards;
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 50px);
    border-radius: 10px;
    animation: slideUp 0.5s ease forwards;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    height: clamp(50%, 80%, 100%);
    max-width: 100%;
    align-self: flex-end;
}

.modal.hide {
    animation: fadeOut 0.5s ease forwards;
}

.modal.hide .modal-content {
    animation: slideDown 0.5s ease forwards;
}

.modal_title {
    font-size: clamp(32px, 5vw, 78px);
    text-align: center;
    font-family: "Kablammo", system-ui;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.45),
                 0 0 110px rgba(255, 255, 255, 0.25),
                 0 0 100px rgba(255, 255, 255, 0.1);
}

.title_pink {
    color: #CB3852;
    -webkit-text-stroke: 0.01rem #fff;
    animation: text-flicker-in-glow 4s linear both;
}
    
.close {
    position: absolute;
    top: clamp(10px, 5vw, 50px);
    right: clamp(10px, 5vw, 50px);
    font-size: clamp(18px, 2vw, 22px);
    cursor: pointer;
    z-index: 1002;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.45),
                 0 0 110px rgba(255, 255, 255, 0.25),
                 0 0 100px rgba(255, 255, 255, 0.1);
}

/* INTRO */
.intro {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url(../img/intro_bg.png) center, no-repeat;
    background-size: cover;
    border-radius: 50px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 5vw 0;
}

.intro_inner {
    max-width: 90%;
    min-height: auto;
    margin: 0 auto;
    padding: 1vh;
}

.intro_title {
    font-size: clamp(42px, 7vw, 81px);
}

.intro_subtitle {
    font-size: clamp(18px, 3vw, 32px);
    line-height: 1.4;
    margin-top: clamp(10px, 2vw, 30px);
}

/* SECTION */
.section {
    padding: 5vw 0;
    text-align: center;
}

.section_title {
    font-size: 21px;
}

.section_title:after {
    content: "";
    display: block;
    height: 5px;
    width: 33px;
    margin: 30px auto;
    background-color: #fff;
}

.section_subtitle {
    font-size: 16px;
    margin-bottom: 30px;
}

.section_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.section_personal {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три колонки для комп'ютерної версії */
    gap: 30px; /* Відступи між картками */
    justify-items: center;
}

.section_opinion {
    background: url(../img/opiniones_bg.png) center, no-repeat;
    background-size: cover;
}

.section_opinion .section_inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Дві колонки для відгуків */
    gap: 30px; /* Відступи між картками */
    justify-items: center;
}

/* RESERVAR */
.search_form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: calmp(15px, 3vw, 30px);
    max-width: 1020px;
    margin: 0 auto;
    padding: 2vw;
    gap: 20px;
}

.form_group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

label {
    margin-bottom: 0.5vw;
    text-align: left;
    font-size: clamp(14px, 1vw, 16px);
}

input[type="text"], input[type="number"] {
    padding: clamp(10px, 1.5vw, 15px) 10px;
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff;
    font-size: clamp(14px, 1vw, 16px);
    width: 100%;
}

input::placeholder {
    color: #fff;
}

.input_container {
    position: relative;
    width: 100%;
}

/* calendario */
.input_container i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

input[type="text"] {
    width: 100%;
}

.custom-number {
    position: relative;
    display: inline-block;
}

input[type="number"] {
    width: 100%;
    appearance: auto;
}

/* arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.arrow {
    position: absolute;
    right: 10px;
    width: 0;
    height: 0;
    cursor: pointer;
}

.arrow.up {
    top: 5px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 15px solid #4F0009;
}

.arrow.down {
    bottom: 5px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 15px solid white;
}

/* CARD PERSONAL */
.card {
    background-color: #2F0004;
    width: 100%; /* Ширина картки буде залежати від колонки */
    max-width: 370px; /* Максимальна ширина для картки персоналу */
    height: auto;
    min-height: 470px;
    font-size: 21px;
    border-radius: 50px;
    text-align: center;
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px; /* Відступи між картками */
}

.card_opinion {
    max-width: 480px; /* Максимальна ширина для картки відгуків */
    font-size: 16px;
}

.card_image {
    width: 320px; /* Ширина картинки */
    height: 320px; /* Висота картинки, щоб вона була квадратною */
    border-radius: 50%; /* Округлення країв картинки */
    position: absolute;
    background-color: #fff;
    right: -45px;
    bottom: -75px;
    background-size: cover;
    background-position: center;
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три стовпці */
    grid-template-rows: auto;
    max-width: 1200px;
    margin: auto;
}

.item {
    border: 1px solid #fff;
}

.item img {
    width: 100%;
    height: 100%;
}

.item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.item-3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.item-4 { grid-column: 1 / 2; grid-row: 2 / 3; }
.item-5 { grid-column: 1 / 2; grid-row: 3 / 4; }
.item-6 { grid-column: 2 / 4; grid-row: 2 / 4; } /* Великий блок */

/* FOOTER */
.footer {
    width: 100%;
    min-height: 100vh;
    background: url(../img/footer_bg.png) center, no-repeat;
    border-radius: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-size: cover;
}

.footer_inner {
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.footer_title::before {
    content: "";
    display: block;
    height: 5px;
    width: 33px;
    margin: 30px 0;
    background-color: #fff;
}

.footer_title {
    font-size: clamp(36px, 6vw, 48px);
    margin-bottom: 30px;
}

.footer_text {
    font-size: clamp(16px, 3vw, 21px);
}

.sociales .footer_text {
    display: flex;
    gap: 30px;
}

@media (max-width: 1024px) {
    /* Search Form */
    .search_form {
        padding: 4vw; 
        gap: clamp(10px, 5vw, 30px); 
    }

    .form_group {
        flex: 0 1 48%; 
    }

    /* Section */
    .section_personal {
        grid-template-columns: repeat(2, 1fr); /* Дві колонки на планшетах */
    }

    .section_opinion .section_inner {
        grid-template-columns: 1fr; /* Одна колонка на планшетах */
    }

    /* Card */
    .card {
        max-width: 100%; /* Розширюємо картки на планшетах */
    }

    .card_opinion {
        max-width: 100%; /* Розширюємо картки відгуків */
    }
}

/* Адаптивні медіазапити */
@media (max-width: 768px) {
    /* Header Nav */
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 15px;
        transform: translateY(-200%);
        transition: 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Search Form */
    .search_form {
        padding: 5vw;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .form_group {
        flex: 1 1 100%;
    }

    input[type="text"], input[type="number"] {
        font-size: 14px;
        padding: 12px 8px; 
    }

    /* Section */
    .section_personal {
        grid-template-columns: 1fr; /* Одна колонка на мобільних пристроях */
    }

    .section_opinion .section_inner {
        grid-template-columns: 1fr; /* Одна колонка для відгуків на мобільних */
    }

    /* Card */
    .card {
        padding: 30px 20px; /* Зменшуємо відступи на мобільних */
    }

    /* Footer */
    .footer_inner {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .footer_title {
        font-size: clamp(28px, 8vw, 36px); /* зменшуємо шрифт на маленьких екранах */
    }

    .footer_text {
        font-size: clamp(16px, 4vw, 18px); /* зменшуємо шрифт */
    }

    .sociales .footer_text {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .search_form {
        padding: 6vw;
    }

    .form_group {
        flex: 1 1 100%;
    }

    label {
        font-size: 12px;
    }

    input[type="text"], input[type="number"] {
        font-size: 12px;
        padding: 10px 8px;
    }

    .arrow {
        width: 6px;
        height: 6px;
    }
}