main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

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

body {
    font-family: "Georgia", serif;
    color: #fff;
    background: #fafaf8 !important;

}

.container {
    width: 1400px;
    margin: 0 auto;
}

/* HEADER */
.header {
    padding: 20px 0;
    background: #ffffff;
    color: #000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
}

.btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn--red {
    background: #c40000;
    color: #fff;
}

.btn--outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #fff;
}

/* HERO */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(
            120deg,
            #6a6a6a 0%,
            #8a8a8a 25%,
            #cfcfcf 45%,
            #e8e3e0 60%,
            #d8bcb8 80%,
            #9e8683 100%
    );
}

/* Плавный переход к фону #fafafa */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(to bottom, transparent, #fafafa);
    pointer-events: none;


}



.hero__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT */
.hero__left {
    max-width: 500px;
}

.badge {
    display: inline-block;
    background: #c40000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 25px;
}

.hero__buttons {
    display: flex;
    gap: 15px;
}

/* RIGHT */
.hero__right {
    display: grid;
    grid-template-columns: repeat(2, 140px);
    gap: 20px;
}

.card {
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.bg-dark {
    background: #ffffff !important;
}


/* ========== КРАСИВАЯ ШАПКА С АНИМАЦИЕЙ ========== */

/* Градиентный фон для шапки */
/* ========== ПРОЗРАЧНАЯ ШАПКА С ЭФФЕКТОМ ПРИ СКРОЛЛЕ ========== */

/* Изначально шапка полностью прозрачная */
.navbar-dark.bg-dark {
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.15);
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* Стиль шапки после скролла */
.navbar-dark.bg-dark.navbar-scrolled {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Для современных браузеров с поддержкой backdrop-filter */
@supports (backdrop-filter: blur(10px)) {
    .navbar-dark.bg-dark.navbar-scrolled {
        background: rgba(30, 60, 114, 0.95) !important;
        backdrop-filter: blur(10px);
    }
}

/* Стиль для бренда */
.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    background: #929292;;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .navbar-brand {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff 0%, #ffd89b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}



.navbar-scrolled .navbar-brand::before {
    font-size: 1.4rem;
}

/* Стили для пунктов меню в прозрачной шапке */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    color: #929292 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Подчеркивание при наведении */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c40000 !important;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: #c40000 !important;
    transform: translateY(-2px);
}

/* Активный пункт меню */
.navbar-nav .nav-link.active {

    color: #c40000 !important;
}

.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Стиль для кнопки Logout */
.navbar-nav .nav-link.btn-link.logout {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.btn-link.logout:hover {
    background: rgba(255, 69, 58, 0.9);
    border-color: rgba(255, 69, 58, 0.9);
    transform: translateY(-2px);
    color: white !important;
}

.navbar-scrolled .nav-link.btn-link.logout {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Кнопка-бургер для мобильных устройств */
.navbar-toggler {
    border: 2px solid rgba(255, 216, 155, 0.8);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.navbar-toggler:hover {
    border-color: #ffd89b;
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 216, 155, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Мобильная версия */
@media (max-width: 768px) {
    .navbar-dark.bg-dark {
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px);
    }

    .navbar-dark.bg-dark.navbar-scrolled {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    }

    .navbar-collapse {
        background: rgba(30, 60, 114, 0.95);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }

    .navbar-nav .nav-link {
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* Отступ для контента, чтобы он не прятался под шапкой */
body {
    padding-top: 0;
}

/* Первый элемент после шапки (обычно main) должен иметь отступ */
main {
    padding-top: 80px;
}

/* Адаптация отступа для мобильных */
@media (max-width: 768px) {
    main {
        padding-top: 70px;
    }
}

/* Плавное появление контента при загрузке */
main {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

container {
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #555;
}

.search-box input::placeholder {
    color: #aaa;
}

.search-btn {
    width: 60px;
    height: 100%;
    border: none;
    background-color: #e74c3c;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: #c0392b;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

/* Карточка: мягкая тень, скругления, переходы */
.recipe-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08), 0 6px 12px -6px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}



/* Область изображения с пропорцией 4:3 */
.card-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 (высота = 75% от ширины) */
    overflow: hidden;
    background-color: #e9eef3;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.recipe-card:hover .card-image img {
    transform: scale(1.02);
}

/* Блок с информацией под картинкой (надписи) */
.card-info {
    padding: 1.25rem 1.5rem 1.6rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Название блюда */
.dish-name {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a2c3e;
    line-height: 1.25;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Время приготовления (с иконкой) */
.cooking-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: #4a627a;
    background: #f0f4f9;
    padding: 0.45rem 1rem;
    border-radius: 40px;
    width: fit-content;
}

.time-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Лайки (блок с кнопкой лайка и счётчиком) */
.likes-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.2rem;
    border-top: 1px solid #edf2f7;
    padding-top: 0.9rem;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 60px;
    transition: all 0.2s ease;
    color: #4b5e77;
    background-color: #f8fafd;
}

.like-button:hover {
    background-color: #fee2e2;
    color: #e53e3e;
}

.like-button.active {
    color: #e53e3e;
    background-color: #fff0f0;
}

.like-icon {
    font-size: 1.3rem;
    transition: transform 0.2s;
}

.like-button:active .like-icon {
    transform: scale(0.92);
}

.likes-count {
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 2.2rem;
    text-align: center;
    color: #1e2f3f;
    background: #f1f5f9;
    padding: 0.25rem 0.7rem;
    border-radius: 48px;
    display: inline-block;
}

/* разделитель надписей */
.meta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0.7rem;
}

/* Адаптив: на планшетах и мобильных карточки идут в 1-2 колонки */
@media (max-width: 880px) {
    .cards-row {
        gap: 1.5rem;
    }
    .dish-name {
        font-size: 1.4rem;
    }
    .card-info {
        padding: 1rem 1.2rem 1.3rem;
    }
}

@media (max-width: 720px) {
    .cards-row {
        grid-template-columns: 1fr;
        max-width: 460px;
        gap: 2rem;
    }
    body {
        padding: 1.5rem 1rem;
    }
}

/* небольшие украшения */
.badge-light {
    font-size: 0.75rem;
    font-weight: 500;
    background: #eef2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
    color: #2c5282;
}

.cvb{
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/*регистрация*/
/* Компактные стили для страницы регистрации */
.site-register {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.site-register .row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-register .col-lg-5 {
    background: white;
    border-radius: 16px;
    padding: 25px 30px 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    margin-top: 60px;
}

/* Заголовок внутри формы */
.site-register h1 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #4a4a4a;
    font-size: 1.75em;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Компактные поля формы */
.site-register .form-group {
    margin-bottom: 12px;
}

.site-register label {
    color: #5a5a5a;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.85em;
    display: block;
}

.site-register .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e0dbd8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.site-register .form-control:focus {
    border-color: #c7b9b0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(199, 185, 176, 0.15);
}

/* Ошибки валидации */
.site-register .invalid-feedback {
    color: #dc3545;
    font-size: 0.75em;
    margin-top: 3px;
    display: block;
}

/* Кнопка */
.site-register .btn-primary {
    width: 100%;
    padding: 10px 16px;
    background: #a8998e;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.site-register .btn-primary:hover {
    background: #8c7d72;
}

/* Ссылка "уже есть аккаунт" */
.site-register .asd {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee8e5;
}

.site-register .asd a {
    color: #a8998e;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-register .asd a:hover {
    color: #8c7d72;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 560px) {
    .site-register .col-lg-5 {
        padding: 20px;
    }

    .site-register h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .site-register .form-control {
        padding: 7px 10px;
        font-size: 13px;
    }
}
/*вход*/
/* Компактные стили для страницы входа */
.site-login {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.site-login .row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-login .col-lg-5 {
    background: white;
    border-radius: 16px;
    padding: 25px 30px 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    margin-top: 60px;
}

/* Заголовок внутри формы */
.site-login h1 {
    text-align: center;
    margin: 0 0 8px 0;
    color: #4a4a4a;
    font-size: 1.75em;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Стили для описания */
.site-login p {
    text-align: center;
    color: #8a8a8a;
    font-size: 0.85em;
    margin-bottom: 20px;
}

/* Компактные поля формы */
.site-login .form-group {
    margin-bottom: 14px;
}

.site-login label {
    color: #5a5a5a;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.85em;
    display: block;
}

.site-login .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e0dbd8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.site-login .form-control:focus {
    border-color: #c7b9b0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(199, 185, 176, 0.15);
}

/* Стили для чекбокса "Запомнить меня" */
.site-login .custom-control {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.site-login .custom-control-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.site-login .custom-control-label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.85em;
    color: #5a5a5a;
}

/* Кнопка */
.site-login .btn-primary {
    width: 100%;
    padding: 10px 16px;
    background: #a8998e;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.site-login .btn-primary:hover {
    background: #8c7d72;
}

/* Ошибки валидации */
.site-login .invalid-feedback {
    color: #dc3545;
    font-size: 0.75em;
    margin-top: 3px;
    display: block;
}

/* Адаптивность */
@media (max-width: 560px) {
    .site-login .col-lg-5 {
        padding: 20px;
    }

    .site-login h1 {
        font-size: 1.5em;
    }

    .site-login .form-control {
        padding: 7px 10px;
        font-size: 13px;
    }

    .site-login p {
        font-size: 0.8em;
        margin-bottom: 15px;
    }
}
