/* ============================================================
   ROTANO — стили статических страниц (about / delivery / contacts)
   ============================================================ */

/* Hero внутренних страниц */
.hero--inner { padding: 56px 0 40px; background: #f5efe6; }
.hero--inner .page-h1 { margin: 0 0 16px; font-size: 36px; font-weight: 700; color: #262522; }
.hero__lead { font-size: 18px; line-height: 1.6; color: #6b6560; max-width: 720px; margin: 0; }

/* Секции */
.section { padding: 56px 0; }
.section--white { background: #fff; }
.section--light { background: #f5efe6; }
.section-h2 { margin: 0 0 24px; font-size: 28px; font-weight: 700; color: #262522; }
.section-h2.center { text-align: center; }

/* Сетки */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Карточки преимуществ */
.feature-card { text-align: center; padding: 24px 20px; }
.feature-card__icon { font-size: 48px; margin-bottom: 16px; }
.feature-card__title { margin: 0 0 12px; font-size: 18px; font-weight: 600; color: #262522; }
.feature-card p { font-size: 15px; line-height: 1.6; color: #6b6560; margin: 0; }

/* Чек-лист */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0; font-size: 16px; line-height: 1.6; color: #262522; border-bottom: 1px solid #ede7de; }
.checklist li:last-child { border-bottom: none; }

/* CTA блок */
.section--cta { background: linear-gradient(135deg, #B86945 0%, #a05937 100%); color: #fff; padding: 64px 0; }
.cta-h2 { margin: 0 0 16px; font-size: 32px; font-weight: 700; color: #fff; }
.cta-text { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Доставка */
.delivery-option { margin-bottom: 40px; }
.delivery-option:last-child { margin-bottom: 0; }
.delivery-option__title { margin: 0 0 12px; font-size: 20px; font-weight: 600; color: #262522; }
.delivery-option p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: #4a4540; }
.delivery-option p:last-child { margin-bottom: 0; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card { background: #f5efe6; border: 1px solid #ede7de; border-radius: 8px; padding: 24px; text-align: center; }
.contact-card__icon { font-size: 40px; margin-bottom: 12px; }
.contact-card__title { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #262522; }
.contact-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.contact-link { color: #B86945; text-decoration: none; font-weight: 600; }
.contact-link:hover { text-decoration: underline; }
.contact-card__note { color: #9a9390; font-size: 13px; margin-top: 8px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #ede7de; border-radius: 6px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-size: 16px; font-weight: 600; color: #262522; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 24px; font-weight: 400; color: #B86945; transition: transform .2s; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: #4a4540; }
.faq-answer p { margin: 0; }

.center { text-align: center; }

/* Адаптив */
@media (max-width: 860px) {
    .grid-2col { grid-template-columns: 1fr; gap: 32px; }
    .grid-3col { grid-template-columns: 1fr; gap: 24px; }
    .hero--inner { padding: 40px 0 28px; }
    .section { padding: 40px 0; }
    .section-h2 { font-size: 24px; }
}

/* ============================================================
   BLOG: articles list + article detail
   ============================================================ */

/* Список статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 8px;
}
.articles-grid--small { gap: 24px; }

.article-card {
    background: #fff;
    border: 1px solid #ede7de;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.article-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.article-card__img-wrap { display: block; overflow: hidden; aspect-ratio: 16/9; }
.article-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card__img-wrap:hover img { transform: scale(1.04); }

.article-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    background: #f5efe6;
    font-size: 48px;
    text-decoration: none;
}

.article-card__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card__date {
    font-size: 12px;
    color: #9a9390;
    margin-bottom: 8px;
    display: block;
}
.article-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #262522;
}
.article-card__title a {
    color: inherit;
    text-decoration: none;
}
.article-card__title a:hover { color: #B86945; }
.article-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6b6560;
    margin: 0 0 16px;
    flex: 1;
}
.article-card__link {
    font-size: 14px;
    font-weight: 600;
    color: #B86945;
    text-decoration: none;
    margin-top: auto;
}
.article-card__link:hover { text-decoration: underline; }

.articles-empty {
    text-align: center;
    color: #9a9390;
    font-size: 16px;
    padding: 60px 0;
}

/* CTA кнопки на светлом фоне */
.btn--white {
    background: #fff;
    color: #B86945;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .15s;
}
.btn--white:hover { background: #f5efe6; }
.btn--outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.7);
    padding: 10px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: border-color .15s, background .15s;
}
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Страница статьи */
.page-article { padding-bottom: 0; }
.page-article > .container { max-width: 800px; padding-top: 48px; padding-bottom: 48px; }

.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { font-size: 13px; color: #9a9390; }
.breadcrumb li + li::before { content: '/'; margin-right: 4px; }
.breadcrumb li a { color: #9a9390; text-decoration: none; }
.breadcrumb li a:hover { color: #B86945; }
.breadcrumb li[aria-current] { color: #4a4540; }

.article-h1 {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: #262522;
}
.article-date {
    display: block;
    font-size: 13px;
    color: #9a9390;
    margin-bottom: 32px;
}
.article-cover {
    margin: 0 0 36px;
    border-radius: 10px;
    overflow: hidden;
}
.article-cover img { width: 100%; height: auto; display: block; }

/* Типографика тела статьи */
.article-body { font-size: 17px; line-height: 1.75; color: #3a3330; }
.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #262522;
    margin: 40px 0 16px;
    padding-top: 8px;
    border-top: 2px solid #ede7de;
}
.article-body h3 { font-size: 20px; font-weight: 600; color: #262522; margin: 28px 0 12px; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #262522; }
.article-body a { color: #B86945; }
.article-body a:hover { text-decoration: none; }
.article-body blockquote {
    border-left: 4px solid #B86945;
    margin: 24px 0;
    padding: 16px 20px;
    background: #faf6f0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #6b6560;
}

.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid #ede7de; }

.btn--ghost {
    background: transparent;
    color: #6b6560;
    border: 1px solid #DED4C3;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s;
}
.btn--ghost:hover { background: #f5efe6; color: #262522; }

@media (max-width: 640px) {
    .article-h1 { font-size: 26px; }
    .article-body { font-size: 16px; }
    .articles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME: latest articles block
   ============================================================ */
.home-articles {
    padding: 64px 0;
    background: oklch(98% 0.008 70);
    border-top: 1px solid oklch(91% 0.012 70);
}

.home-articles__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.home-articles__title {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text, #1a1a1a);
    margin: 0 0 6px;
}

.home-articles__sub {
    font-size: 15px;
    color: oklch(45% 0.01 60);
    margin: 0;
}

.home-articles__all {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent, #8B6F4E);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.home-articles__all:hover { text-decoration: underline; }

/* Grid */
.home-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.ha-card {
    background: #fff;
    border: 1px solid oklch(90% 0.012 70);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.ha-card:hover {
    box-shadow: 0 6px 24px oklch(30% 0.05 55 / .10);
    transform: translateY(-2px);
}

.ha-card__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.ha-card__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.ha-card__img-wrap:hover img { transform: scale(1.04); }

.ha-card__img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    background: oklch(95% 0.015 70);
    font-size: 40px;
    text-decoration: none;
}

.ha-card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ha-card__date {
    display: block;
    font-size: 12px;
    color: oklch(58% 0.01 60);
    margin-bottom: 8px;
}

.ha-card__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text, #1a1a1a);
}
.ha-card__title a {
    color: inherit;
    text-decoration: none;
}
.ha-card__title a:hover { color: var(--color-accent, #8B6F4E); }

.ha-card__excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: oklch(44% 0.01 60);
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ha-card__link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-accent, #8B6F4E);
    text-decoration: none;
    margin-top: auto;
}
.ha-card__link:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .home-articles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .home-articles__grid { grid-template-columns: 1fr; }
    .home-articles__head { flex-direction: column; align-items: flex-start; }
}

/* ── Breadcrumb wrapper ── */
.breadcrumb-wrap {
    background: oklch(97% 0.008 70);
    border-bottom: 1px solid oklch(91% 0.012 70);
}
.breadcrumb-wrap .breadcrumb {
    padding: 10px 0;
}

/* ============================================================
   CATALOG: Category / Subcategory hero
   ============================================================ */
.cat-hero {
    background: #f5efe6;
    border-bottom: 1px solid #ede7de;
    padding: 40px 0 32px;
}

.cat-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-hero__inner--has-img {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.cat-hero__img-wrap {
    flex: 0 0 320px;
    border-radius: 10px;
    overflow: hidden;
}

.cat-hero__img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cat-hero__text {
    flex: 1;
}

.cat-hero__parent {
    margin: 0 0 8px;
    font-size: 13px;
}

.cat-hero__parent a {
    color: #B86945;
    text-decoration: none;
    font-weight: 600;
}

.cat-hero__parent a:hover { text-decoration: underline; }

.cat-hero__h1 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #262522;
    line-height: 1.25;
}

.cat-hero__desc {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b6560;
    max-width: 640px;
}

.cat-hero__meta {
    margin: 0;
    font-size: 13px;
    color: #9a9390;
}

@media (max-width: 680px) {
    .cat-hero__inner--has-img {
        flex-direction: column;
        gap: 20px;
    }

    .cat-hero__img-wrap {
        flex: none;
        width: 100%;
    }

    .cat-hero__img-wrap img {
        height: 180px;
    }
}

/* FIX: кнопки в тёмном блоке final-cta — фон и контраст текста */
.final-cta-actions .btn--secondary {
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}
.final-cta-actions .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ffffff !important;
}


/* HERO каталога: две колонки — контент + фото изделия */
.catalog-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}

.catalog-hero__content { min-width: 0; }

.catalog-hero__visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #F5EFE6;
    box-shadow: 0 18px 48px rgba(90, 55, 35, .14);
}

.catalog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-hero__visual-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: 250px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    font-size: .82rem;
    line-height: 1.4;
    color: #4A3629;
}

.catalog-hero__visual-badge strong {
    display: block;
    font-size: .95rem;
    color: #2E2119;
    margin-bottom: 2px;
}

@media (max-width: 900px) {
    .catalog-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .catalog-hero__visual { aspect-ratio: 16 / 10; }
    .catalog-hero__visual-badge { display: none; }
}

/* Смягчаем плашку на hero-фото */
.catalog-hero__visual-badge {
    background: rgba(245, 239, 230, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Сдвигаем фото вверх на 10% */
.catalog-hero__img {
    object-position: center 40%;
}
