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

body {
    font-family: 'Poppins', sans-serif;
    color: #414141;
    background: url('./images/bg.png') no-repeat center center fixed;
    background-size: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

.container {
    max-width: 1238px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: #fff;
    border-bottom: 1px solid #ececec;
}

.header-inner {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 600;
    color: #52604f;
}

.logo-icon {
    width: 84px;
    height: 84px;

    border-radius: 50%;

    background: url('./images/logo.png') no-repeat center center;
    background-size: cover;
}

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

.nav a {
    font-size: 18px;
    color: #555;
    transition: .2s;
}

.nav a:hover,
.nav a.active {
    color: #6c8162;
}

.header-btn {
    padding: 14px 28px;

    border: none;
    border-radius: 18px;

    background: #6FA38B;
    color: #fff;

    font-weight: 600;
    cursor: pointer;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;

    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;

    border-radius: 10px;
    background: #4d4d4d;
}

/* =========================
   HERO
========================= */

.hero {
    padding: 60px 0 30px;
}

.hero h1 {
    margin-bottom: 16px;

    font-size: 64px;
    line-height: 1.1;
    color: #4d5c49;
}

.hero p {
    max-width: 700px;

    font-size: 24px;
    color: #666;
}

/* =========================
   FILTERS
========================= */

.top-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    margin-top: 40px;
}

.search-box {
    flex: 1;
    min-width: 260px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 22px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 22px;
}

.search-box i {
    font-size: 20px;
    color: #666;
}

.search-box input {
    width: 100%;

    border: none;
    outline: none;
    background: transparent;

    font-size: 16px;
    color: #444;
}

.control-btn {
    height: 54px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 24px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 22px;

    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.control-btn i {
    font-size: 20px;
}



/* =========================
   RECIPES
========================= */

.recipes {
    padding: 40px 0 80px;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.recipe-card {
    overflow: hidden;

    background: #fff;
    border-radius: 24px;

    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: .2s;
}

.recipe-card:hover {
    transform: translateY(-4px);
}

.recipe-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.recipe-image img {
    height: 100%;
    object-fit: cover;
}

.recipe-badge {
    position: absolute;
    top: 16px;
    left: 16px;

    padding: 10px 18px;

    background: rgba(255,255,255,0.9);
    border-radius: 16px;

    font-size: 15px;
    font-weight: 500;
}

.recipe-favorite {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.95);
    border-radius: 50%;

    font-size: 20px;
    cursor: pointer;
}

.recipe-content {
    padding: 24px 24px 12px 24px;
}

.recipe-title {
    margin-bottom: 10px;

    font-size: 20px;
    color: #414141;
}

.recipe-meta {
    font-size: 18px;
    color: #777;
}

.recipe-meta {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 16px;
    color: #2d2d2d;
}

.recipe-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;

    border-radius: 50%;
    background: #4CAF50;
}

/* =========================
   PAGINATION
========================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;

    margin-top: 50px;
}

.page-btn {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;

    cursor: pointer;
}

.page-btn.active {
    background: #6FA38B;
    border-color: #6FA38B;
    color: #fff;
}

/* =========================
   SEARCH
========================= */
.search-wrapper {
    position: relative;
    width: 70%;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 100;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid #f3f3f3;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 14px;
    overflow: hidden;
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #222;
}

.search-item-content p {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.search-empty {
    padding: 20px;
    text-align: center;
    color: #888;
}

.tags {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-top: 20px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 10px 20px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;

    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;

    transition: all 0.2s ease;
}

.tag:hover {
    background: #6fa38b;
    color: #fff;
}

.tag.active {
    background: #6fa38b;
    color: #fff;
    border-color: #6fa38b;
}

.tag i {
    font-size: 18px;
}

/* =========================
   FOOTER
========================= */

.smart-footer {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 70px;
    overflow: hidden;
}

.smart-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 25px;

    display: grid;

    /* Равномерное распределение */
    grid-template-columns: 1.6fr 0.9fr 0.9fr 1.2fr;

    gap: 60px;
    align-items: start;
}

.footer-brand,
.footer-links,
.footer-app {
    width: 100%;
}




/* LOGO */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 55px;
}

.footer-logo h2 {
    font-size: 28px;
    color: #31452d;
    margin: 0;
    font-weight: 700;
}

.footer-brand p {
    font-size: 17px;
    line-height: 1.8;
    color: #5c6559;
    margin-bottom: 35px;
    max-width: 340px;
}

/* SOCIALS */

.footer-socials {
    display: flex;
    gap: 18px;
}

.footer-socials a {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #8ba88b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #486146;
    font-size: 35px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: #78a67c;
    color: white;
    transform: translateY(-3px);
}

/* LINKS */

.footer-links h3,
.footer-contact h3,
.footer-app h3 {
    font-size: 18px;
    color: #31452d;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    text-decoration: none;
    color: #4f5f4d;
    font-size: 18px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #78a67c;
    transform: translateX(4px);
}

/* CONTACT */

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
    color: #4f5f4d;
    font-size: 18px;
}

.footer-contact-item i {
    color: #78a67c;
    font-size: 15px;
}

/* APP CARD */

.footer-app {
    width: 100%;
}

.footer-app-content {
    background: rgba(255,255,255,0.85);
    border-radius: 35px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.footer-app-content::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(120,166,124,0.08);
    border-radius: 50%;
    right: -60px;
    bottom: -60px;
}

.footer-app-text {
    position: relative;
    z-index: 2;
}

.footer-app-text p {
    color: #5c6559;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 320px;
}

.footer-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-store-buttons img {
    width: 220px;
    transition: 0.3s;
}

.footer-store-buttons img:hover {
    transform: scale(1.04);
}

.footer-phone {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.footer-phone img {
    width: 210px;
}

/* BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #4f5f4d;
    font-size: 14px;
}

.footer-bottom-center {
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    text-decoration: none;
    color: #4f5f4d;
}

.footer-center-image{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -150px;
}

.footer-center-image img{
    width:150px;
    display:block;
}

.smart-footer{
    position:relative;
}


.rating{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:42px;
}

.all-star{
    margin-bottom: 12px;
    margin-left: 25px;
}


.stars{
    color:#f7b500;
    font-size:28px;
}

.rating-text{
    color:#555;
    font-size:18px;
}

/* TABLET */

@media (max-width: 1200px) {

    .smart-footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-app {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .smart-footer {
        padding-top: 50px;
    }

    .search-wrapper {
        width: 100%;
    }

    .smart-footer-container {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 0 25px 50px;
    }

    .footer-logo h2 {
        font-size: 28px;
    }

    .footer-brand p,
    .footer-links a,
    .footer-contact-item,
    .footer-app-text p {
        font-size: 15px;
    }

    .footer-links h3,
    .footer-contact h3,
    .footer-app h3 {
        font-size: 15px;
    }

    .footer-app-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-app-content {
        padding: 28px;
        border-radius: 28px;
    }

    .footer-phone img {
        width: 170px;
    }

    .footer-app-text p {
        max-width: 100%;
    }

    .footer-store-buttons {
        align-items: center;
    }

    .footer-phone img {
        width: 180px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 20px;
    }

    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    .header-inner {
        min-height: 75px;
    }

    .logo {
        font-size: 24px;
    }

    .header-btn {
        display: none;
    }

    .hero {
        padding: 40px 0 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .top-controls {
        flex-direction: column;
    }

    .search-box,
    .control-btn {
        width: 100%;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .recipe-image {
        height: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/**
Recipe
 */
.recipe-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
}

.recipe-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.recipe-gallery,
.recipe-card,
.recipe-info {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.recipe-gallery {
    padding: 20px;
}

.recipe-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
}

.recipe-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.recipe-thumb {
    width: 90px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.recipe-thumb.active {
    border-color: #7ba36a;
}

.recipe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-info {
    padding: 40px;
}

.recipe-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 50px;
    background: #e8f3e4;
    color: #5b8a56;
    font-size: 15px;
    margin-bottom: 25px;
}

.recipe-title {
    line-height: 1.1;
    color: #2f4735;
    font-weight: 700;
}

.recipe-description {
    font-size: 22px;
    line-height: 1.7;
    color: #6b756e;
    margin-bottom: 35px;
}

.recipe-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.recipe-stat-card {
    background: #f7faf6;
    border-radius: 24px;
    padding: 25px;
}

.recipe-stat-icon {
    font-size: 28px;
    margin-bottom: 15px;
}

.recipe-stat-label {
    color: #7a857d;
    margin-bottom: 10px;
    font-size: 16px;
}

.recipe-stat-value {
    font-size: 28px;
    color: #2f4735;
    font-weight: 700;
}

.recipe-buttons {
    display: flex;
    gap: 20px;
}

.recipe-btn {
    height: 60px;
    padding: 0 30px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.recipe-btn-primary {
    background: linear-gradient(135deg, #a9c18f, #6e946f);
    color: white;
}

.recipe-btn-secondary {
    background: #f3f3f3;
    color: #39483e;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}


.recipe-card-title {
    font-size: 34px;
    color: #2f4735;
    margin-bottom: 25px;
    font-weight: 700;
}

.ingredients-list,
.instructions-list {
    padding-left: 20px;
}

.ingredients-list li,
.instructions-list li {
    margin-bottom: 18px;
    color: #5d665f;
    font-size: 19px;
    line-height: 1.6;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
    font-size: 17px;
    color: #59645d;
}

.nutrition-row strong {
    color: #2f4735;
}

.recipe-instructions-card {
    margin-bottom: 40px;
}

@media (max-width: 992px) {

    .recipe-top,
    .recipe-content-grid {
        grid-template-columns: 1fr;
    }

    .recipe-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {

    .recipe-page {
        padding: 15px;
    }



    .recipe-title {
        font-size: 20px;
    }

    .recipe-description {
        font-size: 18px;
    }

    .recipe-buttons {
        flex-direction: column;
    }

    .recipe-stats {
        grid-template-columns: 1fr;
    }

    .recipe-main-image img {
        height: 300px;
    }
}



/* =========================
   FILTER OVERLAY
========================= */

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 40;
}

/* =========================
   FILTER SIDEBAR
========================= */

.filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 32px;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
}

/* HEADER */

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.filter-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
}

.filter-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f4f4f4;
    cursor: pointer;
    transition: 0.2s;
    font-size: 18px;
}

.filter-close:hover {
    background: #e8e8e8;
}

/* BLOCK */

.filter-block {
    margin-bottom: 36px;
}

.filter-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #222;
}

/* CHECKBOXES */

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #444;
}
.filter-child-label input,
.filter-checkboxes input {
    width: 18px;
    height: 18px;
    accent-color: #618d6e;
}

.filter-parent-category{
    margin-bottom:24px;
}

.filter-parent-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:12px;
}

.filter-children{
    display:flex;
    flex-direction:column;
    gap:10px;

    padding-left:10px;
}

.filter-child-label{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:15px;
}

/* BUTTONS */

.filter-actions {
    display: flex;
    gap: 14px;
    margin-top: 40px;
}

.filter-reset,
.filter-apply {
    flex: 1;
    height: 54px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.filter-reset {
    background: #fff;
    border: 1px solid #ddd;
}

.filter-reset:hover {
    background: #6FA38B;
}

.filter-apply {
    background: #6FA38B;
    color: #fff;
}

.filter-apply:hover {
    opacity: 0.9;
}

.filter-sidebar{
    position: fixed;
    top: 0;
    left: 0;

    width: 380px;
    max-width: 100%;
    height: 100vh;

    background: #fff;

    z-index: 999;

    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);

    display:flex;
    flex-direction:column;

    overflow:hidden;
}



.filer-button{
    position:absolute;

    left:0;
    bottom:0;

    width:100%;

    display:flex;
    gap:14px;

    padding:20px 32px;

    background:#fff;

    border-top:1px solid #f0f0f0;
}



/* MOBILE */

@media (max-width: 768px) {

    .filter-sidebar {
        width: 100%;
        padding: 24px;
    }

    .filter-title {
        font-size: 26px;
    }

}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(111, 163, 139, 0.2);
    border-top: 5px solid #6FA38B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* новые классы */

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: inherit;
    font-size: 22px;
}


/* показать меню */

.lang-dropdown.active .lang-dropdown-menu {
    display: block;
}

.lang-dropdown.active .arrows {
    transform: rotate(180deg);
}

.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cursor {
    cursor: pointer;
}

.login-modal {
    position: relative;
    width: 450px;
    max-width: calc(100% - 30px);
    background: #fff;
    border-radius: 24px;
    padding: 30px;
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.login-modal-logo {
    display: flex;
    justify-content: center;
}

.login-modal-logo img {
    width: 120px;
}

.login-modal-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.login-form-group {
    margin-bottom: 15px;
}

.login-input {
    width: 100%;
    height: 55px;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 0 15px;
}

.login-forgot {
    text-align: right;
    margin-bottom: 20px;
}

.login-forgot a {
    color: #1d8c6f;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 14px;
    background: #1d8c6f;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.login-divider:before,
.login-divider:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.login-divider:before {
    left: 0;
}

.login-divider:after {
    right: 0;
}

.social-btn {
    width: 100%;
    height: 55px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 12px;
    cursor: pointer;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.social-btn i {
    font-size: 20px;
}

.ri-google-fill {
    color: #DB4437; /* Google red */
}

.ri-facebook-circle-fill {
    color: #1877F2; /* Facebook blue */
}

.calorie-page {
    padding-bottom: 80px;
}

/* HERO */

.calculator-hero {
    height: 150px;
    background-image: url('./images/calorie-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
}

.recipe-hero {
    height: 150px;
    background-image: url('./images/recipe-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
}

@media (max-width: 576px) {
    .recipe-hero {
        background-image: none;
    }

    .calculator-hero {
        background-image: none;
    }
}

.title-hero {
    padding-top: 25px;
}

.calculator-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.calculator-hero p {
    color: #666;
    font-size: 18px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GRID */

.calculator-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 24px;

    padding: 20px;
    margin-top: 30px;
}

/* SEARCH */

.search-card {
    background: white;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 15px;

    border: 1px solid #e5e5e5;
    border-radius: 18px;

    padding: 0 20px;
    height: 55px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
}

.search-box i {
    font-size: 22px;
    color: #8c8c8c;
}

.box-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mic-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #edf5eb;
    color: #5f8d67;
    cursor: pointer;
}

/* FOOD */

.food-card {
    background: white;
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 24px;

    border: 1px solid #ececec;
}

.food-header {
    display: flex;
    align-items: center;
    gap: 40px;
}

.food-header img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.food-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.food-tag {
    display: inline-flex;
    align-items: center;

    background: #edf5eb;

    color: #4c7c58;

    padding: 10px 18px;
    border-radius: 30px;

    font-size: 14px;
    font-weight: 600;
}

/* WEIGHT */

.weight-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;

    margin-top: 35px;
}

.qty-btn {
    width: 54px;
    height: 54px;

    border: none;
    border-radius: 50%;

    background: #edf5eb;

    color: #51785b;

    font-size: 30px;
    cursor: pointer;
}

.weight-box {
    width: 160px;
    height: 60px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.weight-box strong {
    font-size: 20px;
}

.weight-box span {
    color: #666;
}

.weight-note {
    text-align: center;
    color: #9a9a9a;
    margin-top: 20px;
    padding: 10px;
}

/* TIP */

.tip-card {
    background: white;
    border-radius: 28px;

    padding: 30px;

    display: flex;
    gap: 20px;

    margin-bottom: 24px;
}

.tip-icon {
    width: 70px;
    height: 70px;

    border-radius: 50%;
    background: #edf5eb;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 28px;
}

.tip-card h4 {
    font-size: 26px;
    margin-bottom: 10px;
}

.tip-card p {
    color: #555;
    line-height: 1.6;
}

/* BUTTON */



/* RIGHT */

.nutrition-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    height: 100%;
}

.nutrition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}

.nutrition-header h3 {
    font-size: 22px;
}

.nutrition-header span {
    color: #5f8d67;
    font-weight: 600;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #ededed;
}

.nutrition-row:last-child {
    border-bottom: none;
}

.nutrition-row span {
    color: #555;
}

.nutrition-row strong {
    color: #222;
}

.nutrition-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nutrition-label i {
    font-size: 20px;
    color: #6fa38b;
}

.nutrition-label span {
    color: #4d4d4d;
}

/* TABLET */

@media (max-width: 992px) {

    .calculator-grid {
        grid-template-columns: 1fr;
    }



    .food-header {
        flex-direction: column;
        text-align: center;
    }
}

/* MOBILE */

@media (max-width: 576px) {

    .calculator-hero h1 {
        font-size: 32px;
    }

    .food-header h2 {
        font-size: 28px;
    }

    .weight-box {
        width: 120px;
    }

    .food-card{
        padding: 0;
    }

    .nutrition-card {
        padding: 20px;
    }
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #444;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
}

.lang-dropdown-toggle i {
    font-size: 18px;
}

.lang-current {
    text-transform: uppercase;
    font-size: 14px;
}

.arrows {
    font-size: 18px;
    transition: transform .3s ease;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    display: none;
    z-index: 1000;
    padding: 10px;
}



.lang-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background .2s;
}


.lang-item.active {
    font-weight: 600;
    background: #f8f8f8;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        z-index: 1000;
    }

    .nav.active {
        display: flex;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .burger span {
        height: 3px;
        width: 25px;
        background: #000;
        display: block;
    }
}

ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}


.sorting-dropdown {
    position: relative;
}

.sorting-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    z-index: 100;
    padding: 8px 0;
}

.sorting-menu button {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 10px 16px;
    cursor: pointer;
}

.sorting-menu button:hover {
    background: #f5f5f5;
}

.mic-btn.recording {
    color: #ff3b30;
    transform: scale(1.1);
}

.nutrition-hidden {
    display: none;
}

.show-more-btn{
    width:100%;
    height:58px;
    border:1px solid #ECECEC;
    border-radius:16px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:18px;
    font-weight:500;
    color:#1F1F1F;
    cursor:pointer;
    transition:all .2s ease;
}

.show-more-btn:hover{
    background:#f8f8f8;
    border-color:#ddd;
}

.show-more-btn svg{
    flex-shrink:0;
}

.search-box {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

.search-item {
    padding: 10px 14px;
    cursor: pointer;
}

.search-item:hover {
    background: #f5f5f5;
}

.block-cord {
    padding: 90px 0;
    background: #fafafa;
}

.privacy-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    line-height: 1.7;
    color: #333;
}

.privacy-wrapper h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.privacy-wrapper h2 {
    margin-top: 35px;
    font-size: 24px;
}

.privacy-wrapper h3 {
    margin-top: 25px;
    font-size: 18px;
}

.privacy-wrapper ul {
    padding-left: 25px;
}

.privacy-wrapper li {
    margin-bottom: 8px;
}

.privacy-wrapper .updated {
    color: #777;
    font-size: 14px;
}

.contact-box {
    margin-top: 20px;
    padding: 20px;
    background: #f5f7f9;
    border-radius: 12px;
}
