/* Стили сайта Eaturkish. Красный цвет везде один и тот же: #bb2339 */

/* убираю отступы по умолчанию у всех элементов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #242424;
    background: #ffffff;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

img {
    display: block;
}

/* контейнер по центру, одинаковый для всех секций */
.container,
.popular-container,
.menu-container,
.testimonials-container,
.news-container,
.gallery-container,
.footer-content {
    width: 1300px;
    max-width: calc(100% - 120px);
    margin: 0 auto;
}

/* заголовок секции: маленькая надпись, ложка, большой заголовок */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title p {
    font-size: 16px;
    font-weight: 700;
}

.section-title img {
    width: 40px;
    height: 9px;
    margin: 8px 0;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 500;
}

/* первый экран: шапка и большой баннер */
.hero {
    position: relative;
    min-height: 1021px;
    color: #ffffff;
    background: #bb2339;
    overflow: hidden;
}

.navbar {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 135px;
    height: 47px;
    object-fit: contain;
}

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

.nav-links a {
    color: #ffffff;
    font-size: 14px;
}

/* :not(.login-button) — чтобы кнопка Log In не подчёркивалась */
.nav-links a:not(.login-button):hover {
    text-decoration: underline;
}

.login-button {
    width: 130px;
    height: 48px;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    border-radius: 30px;
    font-weight: 600;
}

.login-button:hover,
.explore-button:hover {
    color: #bb2339;
    background: #ffffff;
}

.hero-content {
    padding-top: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* flex: 1 + max-width — блоки сами сжимаются на узких экранах */
.hero-text {
    flex: 1;
    max-width: 555px;
}

.hero-subtitle {
    margin-bottom: 20px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.hero-title {
    margin-bottom: 22px;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.hero-description {
    max-width: 453px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.04em;
}

.explore-button {
    width: 150px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.hero-image {
    flex: 1;
    max-width: 620px;
    min-width: 0;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* стрелка "прокрути вниз" в правом нижнем углу баннера */
.scroll-image {
    position: absolute;
    right: 60px;
    bottom: 90px;
    width: 63px;
    height: 113px;
}

/* популярные блюда, листаются кнопками */
.popular {
    padding: 110px 0;
    background: #f8f8f8;
}

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

.popular-header h2 {
    color: #bb2339;
    font-size: 34px;
    font-weight: 600;
}

.carousel-buttons {
    display: flex;
    gap: 12px;
}

/* кнопки-стрелки (одинаковые для блюд и для отзывов).
   сами символы ‹ › нарисованы в шрифте выше базовой линии, из-за этого
   flex ставит по центру строку, а сама стрелка уезжает вниз на 3-4px.
   line-height: 1 + нижний padding поднимают её ровно на середину */
.carousel-btn {
    width: 40px;
    height: 40px;
    padding-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #242424;
    background: transparent;
    border: 1px solid #999999;
    border-radius: 6px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.popular-next,
.testimonial-next {
    color: #bb2339;
    border-color: #bb2339;
}

.carousel-btn:hover {
    color: #ffffff;
    background: #bb2339;
    border-color: #bb2339;
}

/* окно карусели: лишние карточки спрятаны, прокрутка плавная */
.popular-carousel,
.testimonials-carousel {
    overflow: hidden;
    scroll-behavior: smooth;
}

.popular-track,
.testimonials-track {
    display: flex;
    gap: 20px;
}

.popular-card {
    width: 310px;
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
}

.popular-card-image img,
.menu-card-image img {
    width: 270px;
    height: 183px;
    object-fit: contain;
}

.popular-card h3,
.menu-card h3 {
    width: 270px;
    margin: 14px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

/* margin-top: auto прижимает звёзды и цену к низу карточки */
.popular-stars {
    width: 108px;
    height: 20px;
    margin-top: auto;
    object-fit: contain;
}

.popular-price {
    margin-top: 12px;
    color: #bb2339;
    font-size: 16px;
    font-weight: 700;
}

/* основное меню */
.regular-menu {
    position: relative;
    padding: 120px 0 110px;
}

/* круглый значок на границе двух секций */
.menu-badge {
    position: absolute;
    top: -47px;
    right: 60px;
    width: 93px;
    height: 93px;
}

.menu-title {
    margin-bottom: 38px;
    color: #bb2339;
    font-size: 40px;
    font-weight: 500;
}

.menu-categories {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menu-categories button {
    height: 40px;
    padding: 0 24px;
    color: #242424;
    background: transparent;
    border: 1px solid #bb2339;
    border-radius: 100px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.menu-categories button:hover,
.menu-categories button.active {
    color: #ffffff;
    background: #bb2339;
}

/* flex-wrap сам переносит карточки на новую строку — медиазапросы не нужны */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-card {
    width: 310px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(36, 36, 36, 0.1);
    border-radius: 14px;
}

.menu-card:hover {
    border-color: #bb2339;
}

.menu-price {
    margin-top: auto;
    color: #bb2339;
    font-size: 16px;
    font-weight: 700;
}

/* отзывы, тоже листаются кнопками */
.testimonials {
    position: relative;
    min-height: 645px;
    padding-bottom: 40px;
    background: #f4f4f4;
}

.testimonials-container {
    padding-top: 90px;
}

.testimonials-carousel {
    margin-top: 55px;
}

.testimonial-card {
    width: 410px;
    min-height: 198px;
    flex-shrink: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(51, 51, 51, 0.1);
    border-radius: 10px;
}

.testimonial-card h3 {
    margin-bottom: 10px;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
}

.testimonial-text {
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
}

/* строка с датой всегда внизу карточки */
.testimonial-info {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonial-info-item img {
    width: 16px;
    height: 16px;
}

.testimonial-info-item span {
    color: #888888;
    font-size: 12px;
    white-space: nowrap;
}

.testimonial-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonials-badge {
    position: absolute;
    right: 60px;
    bottom: -46px;
    width: 93px;
    height: 93px;
}

/* новости */
.news {
    padding: 120px 0;
}

.news .section-title p {
    font-size: 23px;
}

.news .section-title h2 {
    color: #bb2339;
    font-size: 48px;
    letter-spacing: 0.03em;
}

.news-cards {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.news-card {
    flex: 1;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(36, 36, 36, 0.1);
    border-radius: 14px;
}

.news-card-image {
    width: 100%;
    height: 352px;
    object-fit: cover;
}

.news-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-card-content h3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.news-card-content p {
    margin-top: 10px;
    color: #777777;
    font-size: 14px;
    line-height: 1.7;
}

/* ссылка и дата прижаты к низу карточки */
.news-card-bottom {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
}

.news-card-bottom a {
    color: #bb2339;
    font-size: 14px;
    font-weight: 700;
}

.news-card-bottom a:hover {
    text-decoration: underline;
}

.news-card-bottom span {
    color: rgba(36, 36, 36, 0.5);
    font-size: 14px;
}

.news-view-more,
.gallery-button {
    width: 149px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #242424;
    border: 1px solid #bb2339;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
}

.news-view-more:hover,
.gallery-button:hover {
    color: #ffffff;
    background: #bb2339;
}

.news-view-more {
    margin: 40px auto 0;
}

/* большое фото зала */
.video-section img {
    width: 100%;
    height: auto;
}

/* фотогалерея */
.gallery-section {
    min-height: 705px;
    display: flex;
    align-items: center;
    background: #f4f4f4;
}

.gallery-container {
    display: flex;
    align-items: center;
    gap: 64px;
}

.gallery-text {
    width: 390px;
    flex-shrink: 0;
}

.gallery-text > p {
    font-size: 23px;
    font-weight: 700;
}

.gallery-text > img {
    width: 40px;
    height: 9px;
    margin: 8px 0;
}

.gallery-text h2 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3;
}

.gallery-description {
    margin-top: 20px;
    color: #777777;
    font-size: 14px;
    line-height: 1.75;
}

.gallery-button {
    margin-top: 24px;
}

/* три фото делят место поровну.
   min-width: 0 обязательно, иначе третье фото уезжает за край экрана */
.gallery-images {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 32px;
}

.gallery-images img {
    flex: 1;
    min-width: 0;
    height: 447px;
    object-fit: cover;
    border-radius: 14px;
}

/* подвал: подписка, контакты, соцсети */
.footer {
    margin-top: 220px;
    padding-top: 40px;
    color: #ffffff;
    background: #bb2339;
}

/* поднимаю блок подписки минусовым margin-top, чтобы он наполовину
   висел над подвалом. через position: absolute он наезжал на контакты */
.newsletter {
    width: 1406px;
    max-width: calc(100% - 120px);
    margin: -261px auto 60px;
    padding: 64px 20px;
    text-align: center;
    background: #bb2339;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.newsletter-small-title {
    font-size: 16px;
    font-weight: 700;
}

.newsletter h2 {
    margin-top: 20px;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.newsletter-description {
    margin-top: 20px;
    font-size: 14px;
}

.newsletter-form {
    width: 810px;
    max-width: 100%;
    margin: 45px auto 0;
    display: flex;
    gap: 32px;
}

/* именно flex: auto, а не flex: 1 — иначе на телефоне поле сжимается в полоску */
.newsletter-form input {
    flex: auto;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 145px;
    flex-shrink: 0;
    height: 52px;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 100px;
    cursor: pointer;
}

.newsletter-form button:hover {
    color: #bb2339;
    background: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    align-items: start;
    text-align: center;
}

.footer-column h3 {
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 400;
}

.footer-column p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 336px;
    max-width: 100%;
    height: auto;
}

.footer-center p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-socials {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-socials img {
    width: 24px;
    height: 24px;
}

.footer-socials a:hover {
    opacity: 0.7;
}

.footer-copy {
    margin-top: 70px;
    padding-bottom: 25px;
    text-align: center;
    font-size: 13px;
}

/* дальше идёт адаптив. сначала планшеты */
@media (max-width: 1100px) {
    .nav-links {
        gap: 24px;
    }

    .hero-title {
        font-size: 52px;
    }

    .gallery-text {
        width: 320px;
    }

    .gallery-container {
        gap: 40px;
    }

    .footer-content {
        gap: 30px;
    }
}

/* телефоны */
@media (max-width: 760px) {
    .container,
    .popular-container,
    .menu-container,
    .testimonials-container,
    .news-container,
    .gallery-container,
    .footer-content {
        width: calc(100% - 32px);
        max-width: none;
    }

    /* меню сайта переносится в две строки, ничего не прячем */
    .navbar {
        height: auto;
        padding: 25px 0;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 70px;
    }

    .hero-content {
        padding-top: 40px;
        flex-direction: column;
        gap: 50px;
    }

    .hero-text,
    .hero-image {
        max-width: 100%;
    }

    .hero-title {
        font-size: 44px;
    }

    .scroll-image {
        display: none;
    }

    .popular,
    .news {
        padding: 80px 0;
    }

    .regular-menu {
        padding: 90px 0 80px;
    }

    .menu-badge,
    .testimonials-badge {
        right: 16px;
    }

    .menu-title,
    .section-title h2,
    .news .section-title h2,
    .gallery-text h2 {
        font-size: 34px;
    }

    .menu-grid {
        justify-content: center;
    }

    .testimonial-card {
        width: 320px;
    }

    .news-cards {
        flex-direction: column;
        align-items: center;
    }

    .news-card {
        width: 100%;
    }

    .gallery-section {
        min-height: auto;
        padding: 80px 0;
    }

    .gallery-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .gallery-text {
        width: 100%;
    }

    /* на телефоне фото галереи идут друг под другом */
    .gallery-images {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .gallery-images img {
        width: 100%;
        height: 300px;
    }

    .footer {
        margin-top: 180px;
        padding-top: 30px;
    }

    .newsletter {
        width: calc(100% - 32px);
        max-width: none;
        margin: -210px auto 50px;
        padding: 45px 20px;
    }

    .newsletter h2 {
        font-size: 32px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .footer-copy {
        margin-top: 50px;
    }
}
