
/* Основни настройки */
* {
    box-sizing: border-box;
}

:root {
    --green: #4b8438;
    --green-dark: #30651e;
    --green-light: #eff5dc;
    --brown: #74864d;
    --cream: #fffdf2;
    --text: #454236;
    --border: #dce2bd;
    --white: #F2F2ED;
}

body {
    margin: 0;
    background: #f1f3e9;
    color: var(--text);
    font: 16px/1.65 "Noto Sans", "DejaVu Sans", Arial, sans-serif;
}

/* Основен контейнер */
.site {
    width: min(1500px, calc(100% - 40px));
    margin: 6px auto;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(50, 55, 35, .10);
    border-radius: 8px;
    overflow: hidden;
}

/* Заглавна част */
.header {
    min-height: 58px;
    padding: 0 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(115deg, #fffef1, #e7f1d8);
    border-bottom: 4px solid var(--green);
}

.brand {
    font: bold clamp(22px, 2.5vw, 25px) Georgia, serif;
    color: var(--green-dark);
}

.tagline {
    margin-top: 2px;
    color: var(--brown);
    font-size: 12px;
}

/* Горно меню */
.nav {
    background: #1c941a;
    position: relative;
    z-index: 10;
}

.menu-list {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0 16px;
}

.menu-item {
    position: relative;
}

.menu-item > a,
.menu-item > span {
    display: block;
    padding: 0 16px;
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.menu-item > a:hover,
.menu-item:hover > span {
    background: var(--green-dark);
}

/* Падащи подменюта */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .16);
    border-top: 3px solid var(--green);
}

.menu-item:hover > .submenu,
.menu-item:focus-within > .submenu {
    display: block;
}

.submenu a,
.submenu span {
    display: block;
    padding: 9px 15px;
    color: var(--text);
    text-decoration: none;
}

.submenu a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

/* Основни колони */
.columns {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}

.sidebar {
    min-width: 0;
}

.sidebox {
    margin-bottom: 20px;
    padding: 18px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.sidebox h3 {
    margin: 0 0 14px;
    padding-bottom: 9px;
    color: var(--green-dark);
    font-size: 16px;
    border-bottom: 2px solid #d8e4b9;
}

/* Ляво меню */
.side-menu,
.side-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu > li {
    margin-bottom: 12px;
    color: var(--green-dark);
    font-weight: bold;
}

.side-menu > li > a,
.side-menu > li > span {
    display: block;
    padding: 7px 9px;
    color: var(--green-dark);
    text-decoration: none;
    background: #e8e0bd;
    border-radius: 3px;
}

.side-menu ul {
    padding: 5px 0 0 13px;
}

.side-menu ul li {
    margin: 5px 0;
    font-weight: normal;
    font-size: 14px;
}

.side-menu ul a,
.side-menu ul span {
    display: block;
    padding: 7px 9px;
    color: var(--green-dark);
    font-weight: 600;
    background: #fff8e6;
    border-left: 3px solid #65d600;
    border-radius: 3px;
    text-decoration: none;
}

.side-menu a:hover {
    color: var(--green-dark);
    background: #eee7c7;
}

/* Основно съдържание */
.content {
    min-width: 0;
    padding: 0 12px 30px;
    font-size: 18px;
    line-height: 1.4;
}

.content h1 {
    margin-top: 0;
    margin-bottom: 4px;
    padding-bottom: 4px;
    color: var(--green-dark);
    font: bold 19px Georgia, serif;
    border-bottom: 1px solid var(--border);
}

.content h2 {
    color: var(--brown);
    font: bold 21px Georgia, serif;
}

.content a,
.sidebox a {
    color: var(--green);
}

.content a:hover,
.sidebox a:hover {
    color: var(--brown);
}

/* Новини */
.news-item {
    min-height: 85px;
    padding: 14px 0;
    border-bottom: 1px dotted #d5ddb9;
}

.news-item img,
.article-image {
    max-width: 180px;
    max-height: 150px;
    object-fit: cover;
    float: right;
    margin: 0 0 12px 18px;
}

/* Галерия */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery figcaption {
    padding: 7px;
    text-align: center;
}

/* Долен колонтитул */
footer {
    padding: 20px;
    text-align: center;
    background: #f3f5ea;
    color: #73834d;
    border-top: 1px solid var(--border);
}

/* Таблети */
@media (max-width: 850px) {
    .site {
        width: min(100% - 24px, 700px);
        margin: 12px auto;
    }

    .columns {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .sidebar {
        order: 2;
    }

    .content {
        order: 1;
    }
}

/* Телефони */
@media (max-width: 600px) {
    .site {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .header {
        min-height: 0;
        padding: 8px 14px;
    }

    .menu-list {
        flex-direction: column;
        padding: 0;
    }

    .menu-item > a,
    .menu-item > span {
        padding: 11px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .submenu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 5px 16px;
        background: var(--green-dark);
        border: 0;
        box-shadow: none;
    }

    .submenu a,
    .submenu span {
        color: var(--white);
        padding: 7px 18px;
    }

    .submenu a:hover {
        background: rgba(255, 255, 255, .12);
        color: var(--white);
    }

    .columns {
        padding: 14px;
    }

    .content h1 {
        font-size: 23px;
    }

    .news-item img,
    .article-image {
        max-width: 120px;
    }
}

/* Компактно представяне на седмичните менюта */
.menu-pack {
    line-height: 1.4;
}

.menu-pack > h2 {
    margin: 0 0 5px;
    font-size: 19px;
}

.menu-pack > p {
    margin: 1px 0;
    line-height: 1.3;
}

.menu-day {
    margin: 2px 0 3px;
    padding: 2px 6px;
}

.menu-day > h3 {
    margin: 1px 0 3px;
    font-size: 17px;
    line-height: 1.3;
}

.menu-portion {
    margin: 1px 0;
    padding-bottom: 1px;
    border-bottom: 1px solid #e9edda;
}

.menu-portion h4 {
    margin: 1px 0;
    color: var(--green-dark);
    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.menu-portion details {
    margin: 0;
    line-height: 1.2;
}

.menu-portion summary {
    padding: 0;
    font-size: 19px;
    cursor: pointer;
}

/* Премахване на стандартния триъгълник */
.menu-portion summary {
    list-style: none;
}

.menu-portion summary::-webkit-details-marker {
    display: none;
}

.menu-portion summary::marker {
    content: "";
}

/* По-видим период на седмичния пакет */
.menu-period {
    margin: 8px 0 5px;
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

/* По-видима цена на седмичния пакет */
.menu-pack > p:has(strong) {
    margin: 5px 0 8px;
    color: var(--green-dark);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

/* Четимост на обяснителните страници */
.content p {
    margin: 0 0 12px;
}

/* Бутон за мобилна навигация */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 600px) {
    .mobile-menu-toggle {
        display: block;
        width: 100%;
        padding: 12px 18px;
        border: 0;
        background: var(--green-dark);
        color: var(--white);
        font: inherit;
        font-weight: 700;
        font-size: 17px;
        text-align: left;
        cursor: pointer;
    }

    .menu-list {
        display: none;
    }

    .nav.is-open .menu-list {
        display: flex;
    }

    .nav.is-open .submenu {
        display: block;
    }
}
/* Лого Ям-Ям и заглавие */
.header {
    min-height: 76px;
    padding: 8px 42px;
    flex-direction: row;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.tagline {
    margin-top: 2px;
}

@media (max-width: 600px) {
    .header {
        min-height: 0;
        padding: 6px 14px;
    }

    .header-brand {
        gap: 10px;
    }

    .header-logo {
        width: 44px;
        height: 44px;
    }

    .brand {
        font-size: 21px;
    }

    .tagline {
        font-size: 11px;
    }
}


/* Банер за доставка само в София */
.header {
    justify-content: space-between;
    gap: 20px;
}

.delivery-banner {
    flex: 0 0 175px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    padding: 6px 10px;
    border: 3px solid #fff0c2;
    border-radius: 12px;
    background: #f2ad08;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(100, 75, 0, .10);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    letter-spacing: .3px;
}

.delivery-banner strong {
    color: #28752d;
    font-size: 13px;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .delivery-banner {
        flex-basis: auto;
        min-height: 0;
        padding: 3px 9px;
        border: 1px solid #f2d98b;
        border-radius: 6px;
        background: #fff8e6;
        color: #765b16;
        box-shadow: none;
        font-size: 9px;
        font-weight: 600;
    }

    .delivery-banner strong {
        color: #28752d;
        font-size: 10px;
    }
}


/* Подредба на контактната форма */
.contact-form-wrap {
    max-width: 620px;
    margin-top: 30px;
}

.contact-form-wrap h2 {
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-top: 9px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #b8b8a8;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 12px;
    padding: 10px 22px;
    border: 0;
    border-radius: 5px;
    background: #28752d;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.contact-form button:hover {
    background: #205d25;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-required-note {
    margin-top: 12px;
    font-size: 13px;
}

.contact-success,
.contact-errors {
    padding: 12px 15px;
    margin: 12px 0;
    border-radius: 5px;
}

.contact-success {
    background: #e8f3e7;
    color: #205d25;
}

.contact-errors {
    background: #f9e8e6;
    color: #8a2922;
}

@media (max-width: 600px) {
    .contact-form-wrap {
        max-width: 100%;
    }
}
