:root {
        --font-family: "Lato", sans-serif;
        --background: #FFF9F0;
        --text-primary: #073B4C;
        --text-secondary: #118AB2;
        --primary: #FF6B6B;
        --secondary: #FFD166;
    }
@font-face {
        font-family: 'Lato';
        src: url('../fonts/Lato/Lato-Bold.ttf') format('truetype');
        font-weight: 700;
        font-style: normal;
        }

@font-face {
        font-family: 'Lato';
        src: url('../fonts/Lato/Lato-Regular.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
        }
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: rgb(240, 242, 245);
    color: var(--text-primary);
}

.navbar {
    background-color: var(--bg-navbar);
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: all 0.4s ease-in-out;
    backdrop-filter: blur(6px);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.navbar-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

#home .purchases-title{
    display: none;
}

.navbar-menu-list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu-list__element a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.navbar-menu-list__element a:hover {
    color: var(--text-primary);
}

.navbar-btn {
    background-color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    color: var(--secondary);
}

a.navbar-btn:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
}
.home-title__download:hover {
    background-color: var(--text-secondary);
    transform: translateY(-2px);
}
.bg-home {
    background: linear-gradient(180deg, var(--secondary), var(--text-secondary));
    height: 100dvh;
    padding: 8rem 0 8rem 0;
}

.home-center {
    max-width: 1140px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    height: 100%;
    text-align: -webkit-center;
}

.home-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
}

.home-title {
    flex: 0 1 50%;
    max-width: 50%;
    position: relative;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.home-title__purchases {
    display: block;
    font-size: 10px;
    color: rgb(87, 87, 87);
}

.home-title__download {
    background-color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s 
ease-in-out;
    align-self: center;
    color: var(--secondary);
}

.home-visual-block {
    flex: 0 1 50%;
    max-width: 50%;
    position: relative;
    width: 100%;
    padding: 0 1rem;
    height: 100%;
}

.phone-wrap {
    height: 100%;
    display: block;
}

.phone-bg, .phone-content {
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    aspect-ratio: 9/18.5;
}
.phone-bg {
    z-index: 100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 9 / 18.5;
}
.phone-content {
    height: 98%;
    z-index: 99;
    object-fit: contain;
    padding: 4px;
    border-radius: 13%;
    background-color: #292929;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 9 / 18.5;
}

.title-btn {
    background-color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    align-self: center;
    color: var(--secondary);
}

.title-btn:hover {
    color: var(--primary);
    background-color: var(--text-primary);
    transform: translateY(-2px);
}

.about-container {
    max-width: 900px;
    margin: 6rem auto;
    text-align: center;
    padding: 2rem;
    overflow-wrap: break-word;
}

.about-container h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-container a {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.about-container a:hover {
    background-color: var(--text-primary);
}

.screenshots-container {
    background-color: var(--secondary);
    padding: 4rem 2rem;
    text-align: center;
}

.screenshots-container h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.carousel {
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel__track {
    display: flex;
    gap: 1rem;
    animation: scroll 25s linear infinite;
}

.carousel__track img {
    height: 400px;
    width: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.download-container {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

.download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-title h2 {
    font-size: 1.5rem;
}

.download-icon {
    width: 60px;
    max-width: 80%;
}

.store-badge {
    width: 300px;
    max-width: 80%;
}
#home .title-btn {
    display: none;

}
.title-block .purchases-title {
    display: none;
}
footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 25%;
    object-fit: cover;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.header-logo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.purchases-title {
    margin: 0;
    font-size: 10px;
    color: rgb(87, 87, 87);
}

.footer-accordion {
    font-family: var(--font-family);
    color: var(--text-primary);
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    margin-bottom: -1rem;
}

.footer-accordion h3 {
    margin: 0;
    padding: 15px 20px;
    color: var(--secondary);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.footer-accordion .content {
    display: none;
    padding: 15px 20px;
    color: var(--background);
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.footer-accordion .content p {
    margin: 10px 0;
}

.footer-accordion a {
    color: var(--primary);
    text-decoration: none;
}

.footer-accordion a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .home-title {
        flex: 0 1 45%;
    }
}
@media (max-width: 992px) {

    .home-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .title-btn {
        align-self: anchor-center;
    }

    .home-title {
        display: none;
    }

    .home-title h1 {
        font-size: 2.2rem;
    }

    .home-visual-block {
        flex: 1 1 100%;
        justify-content: center;
    }
    .title-block .purchases-title {
    display: block;
}
}

@media (max-width: 768px) {
    .bg-home {
        padding: 8rem 0 6rem 0;;
    }
    .navbar-container {
        flex-direction: column;
    }
    .navbar-btn {
        display: none;
    }
    .navbar-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel__track img {
        height: 300px;
    }

    .download-icon {
        width: 60px;
    }

    .store-badge {
        width: 300px;
    }
    #home .title-btn {
        margin-top: 20px;
        display: block;
        inline-size: fit-content; 
    }
    #home .purchases-title{
        color: black;
        display: block;
    }
    .title-block .purchases-title {
    display: none;
}
}
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    width: 80%;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    font-family: system-ui, sans-serif;
    z-index: 9999;
}

#cookie-banner.hidden {
    display: none;
}

#cookie-banner h2 {
    margin-top: 0;
    font-size: 18px;
}

#cookie-banner p {
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.5;
}

#cookie-categories label {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}

#cookie-categories input {
    margin-right: 8px;
}

#cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

button {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#accept-all {
    background: #007bff;
    color: #fff;
}

#reject-all {
    background: #e0e0e0;
    color: #333;
}

#save-preferences {
    background: #4caf50;
    color: #fff;
}

#manage-cookies {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    margin-top: 6px;
}

#cookie-settings {
    display: none;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 480px;
    width: 80%;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

#cookie-settings.active {
    display: block;
    color: #333;
}

#cookie-settings h3 {
    margin-top: 0;
}

#open-cookie-settings {
    background: transparent;
    margin-top: 1rem;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f7f7f7;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.accordion-header:hover {
    background-color: #eee;
}

.accordion-content {
    display: none;
    padding: 10px 15px;
    background-color: #fff;
}

.accordion-content p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

.accordion-content label {
    font-size: 14px;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
    display: block;
}

#cookie-buttons {
    margin-top: 15px;
}

#save-preferences {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#save-preferences:hover {
    background-color: #0056b3;
}