/**
 * Атомарные виджеты шапки и футера:
 * topbar / logo / nav-menu / site-search / contact-info
 * footer-brand / footer-links / socials / footer-bottom.
 */

/* ===== ШАПКА ===== */

/* --- Topbar --- */
.ruru-topbar { font-family: 'Manrope', Arial, sans-serif; }
.ruru-topbar__inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.ruru-topbar__left, .ruru-topbar__right {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.ruru-topbar__socials {
    display: inline-flex; align-items: center; gap: 8px; margin-left: 4px;
}
.ruru-topbar__socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    color: inherit; text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.ruru-topbar__socials a:hover {
    background: currentColor; text-decoration: none;
}
.ruru-topbar__socials a:hover svg { color: #fff8f2; }
.ruru-topbar__socials svg { display: block; }
.ruru-topbar a { color: inherit; text-decoration: none; font-weight: 500; }
.ruru-topbar a:hover { text-decoration: underline; }
@media (max-width: 980px) {
    .ruru-topbar__socials { display: none; }
}
@media (max-width: 640px) {
    .ruru-topbar__inner { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.ruru-topbar--hide-mobile-yes { display: block; }
@media (max-width: 768px) {
    .ruru-topbar--hide-mobile-yes { display: none; }
}

/* --- Logo --- */
.ruru-logo { display: inline-block; text-decoration: none; }
.ruru-logo--text { font-weight: 700; letter-spacing: 2px; white-space: nowrap; }
.ruru-logo--image img { display: block; }

/* --- Nav Menu --- */
.ruru-nav { font-family: 'Manrope', Arial, sans-serif; position: relative; }
.ruru-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
}
.ruru-nav a {
    text-decoration: none;
    transition: color .2s ease;
    display: inline-block;
}
.ruru-nav__burger {
    display: none; background: transparent; border: 0; padding: 6px; cursor: pointer;
    flex-direction: column; gap: 5px; width: 40px; height: 40px;
    align-items: center; justify-content: center; color: #74685b;
    margin-left: auto;
}
.ruru-nav__burger span {
    display: block; width: 22px; height: 2px; background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}
.ruru-nav.is-open .ruru-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ruru-nav.is-open .ruru-nav__burger span:nth-child(2) { opacity: 0; }
.ruru-nav.is-open .ruru-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ruru-nav__list .sub-menu {
    position: absolute; list-style: none; padding: 12px 0; margin: 8px 0 0;
    background: #fff; box-shadow: 0 10px 30px rgba(116,104,91,.12); border-radius: 12px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .2s ease; min-width: 240px; z-index: 30;
}
.ruru-nav__list > li { position: relative; }
.ruru-nav__list > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ruru-nav__list .sub-menu a { padding: 8px 20px; font-size: 13px; text-transform: none; letter-spacing: 0; }

@media (max-width: 768px) {
    .ruru-nav--burger-yes .ruru-nav__burger { display: flex; }
    /* Панель пинится к вьюпорту (не к узкой колонке в Elementor-секции).
     * left:calc(50% - 50vw) выравнивает левый край по viewport вне зависимости
     * от ширины родительской колонки. */
    .ruru-nav--burger-yes .ruru-nav__panel {
        position: absolute;
        left: calc(50% - 50vw); right: calc(50% - 50vw);
        top: 100%; width: 100vw;
        background: #fff;
        max-height: 0; overflow: hidden;
        transition: max-height .35s ease;
        z-index: 25; box-shadow: 0 10px 20px rgba(116,104,91,.08);
    }
    .ruru-nav--burger-yes.is-open .ruru-nav__panel { max-height: 70vh; overflow-y: auto; }
    .ruru-nav--burger-yes .ruru-nav__list {
        flex-direction: column; gap: 0; padding: 12px 24px; align-items: stretch; justify-content: flex-start;
    }
    .ruru-nav--burger-yes .ruru-nav__list li { border-bottom: 1px solid #f8eee8; }
    .ruru-nav--burger-yes .ruru-nav__list li:last-child { border-bottom: 0; }
    .ruru-nav--burger-yes .ruru-nav__list a { display: block; padding: 14px 0; text-align: left; }
    .ruru-nav--burger-yes .ruru-nav__list .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; background: #fff8f2; border-radius: 0; padding: 4px 0 12px; margin: 0;
    }
}

/* --- Site Search --- */
.ruru-search {
    display: inline-flex; align-items: center; position: relative;
    font-family: 'Manrope', Arial, sans-serif;
    width: 100%;
}
.ruru-search__input {
    width: 100%;
    padding: 8px 38px 8px 14px;
    font-family: inherit; font-size: 14px;
    background: transparent;
    border: 1px solid #74685b;
    color: #74685b;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease;
}
.ruru-search__input::placeholder { color: currentColor; opacity: 0.6; }
.ruru-search__input:focus { background: rgba(255,255,255,0.6); }
.ruru-search__submit {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; padding: 4px; cursor: pointer;
    color: inherit; display: inline-flex; align-items: center;
}
.ruru-search__submit:hover { opacity: .7; }
@media (max-width: 980px) {
    .ruru-search { max-width: 100% !important; }
}
@media (max-width: 768px) {
    .ruru-search { display: none; }
}

/* --- Contact Info --- */
.ruru-contacts {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center;
    font-family: 'Manrope', Arial, sans-serif;
}
.ruru-contacts__item { display: inline-flex; align-items: center; gap: 8px; }
.ruru-contacts__icon { display: inline-flex; }
.ruru-contacts__icon i, .ruru-contacts__icon svg { width: 1em; height: 1em; font-size: 1.1em; }
.ruru-contacts__text { text-decoration: none; color: inherit; }
.ruru-contacts a.ruru-contacts__text:hover { text-decoration: underline; }

/* ===== ФУТЕР ===== */

/* --- Footer brand --- */
.ruru-fbrand { font-family: 'Manrope', Arial, sans-serif; color: #74685b; }
.ruru-fbrand__logo { display: block; max-width: 174px; height: auto; margin: 0 0 16px; }
.ruru-fbrand__title { margin: 0 0 12px; font-size: 18px; font-weight: 500; color: #74685b; }
.ruru-fbrand__text { font-size: 14px; line-height: 1.6; color: #74685b; }
.ruru-fbrand__text p { margin: 0 0 4px; }

/* --- Footer links column --- */
.ruru-flinks { font-family: 'Manrope', Arial, sans-serif; }
.ruru-flinks__title {
    font-weight: 500; font-size: 13px; text-transform: uppercase;
    letter-spacing: 2px; margin: 0 0 16px;
}
.ruru-flinks__list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.9; }
.ruru-flinks__list a { text-decoration: none; transition: color .2s ease; }
.ruru-flinks__list a:hover { text-decoration: underline; }

/* --- Socials --- */
.ruru-socials { font-family: 'Manrope', Arial, sans-serif; }
.ruru-socials__title {
    font-weight: 500; font-size: 13px; text-transform: uppercase;
    letter-spacing: 2px; margin: 0 0 16px;
}
.ruru-socials__list {
    display: flex; gap: 12px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0;
}
.ruru-socials__link { display: inline-block; }
.ruru-socials__icon {
    display: inline-flex; width: 40px; height: 40px;
    border-radius: 50%; align-items: center; justify-content: center;
    font-size: 18px; transition: background .2s ease, transform .2s ease;
}
.ruru-socials__link:hover { transform: translateY(-2px); }
.ruru-socials__icon i, .ruru-socials__icon svg { font-size: inherit; }

/* --- Footer bottom --- */
.ruru-fbottom { font-family: 'Manrope', Arial, sans-serif; }
.ruru-fbottom__inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    max-width: 1440px; margin: 0 auto;
}
.ruru-fbottom a { text-decoration: underline; }
@media (max-width: 640px) {
    .ruru-fbottom__inner { flex-direction: column; text-align: left; align-items: flex-start; gap: 8px; }
}
