/*
    Theme Name:   LOEND T&T
    Theme URI:    https://loendttionline.ru
    Description:  Адаптивная тема-визитка для loendttionline.ru — премиальная мебель из Италии. Сайт-представление с заготовкой под будущий интернет-магазин (WooCommerce-ready): каталог по коллекциям, карточки товаров, объявлена поддержка WooCommerce.
    Author:       LOEND T&T
    Author URI:   https://loendttionline.ru
    Version:          1.2.0
    Requires at least: 6.0
    Requires PHP: 7.4
    License:      GNU General Public License v2 or later
    License URI:  https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain:  loend
    Tags:         one-column, responsive-layout, business, custom-logo
*/

/* ============================================================
   LOEND T&T — Стиль темы-визитки (адаптивной, готовой к магазину)
   Домен: loendttionline.ru
   ============================================================ */

:root {
    /* Премиальная палитра: тёмный графит + золото + тёплый бежевый */
    --color-primary: #1b1a17;
    --color-accent: #b08d57;
    --color-text: #3a3833;
    --color-muted: #8a8578;
    --color-light: #f6f3ee;
    --color-white: #fff;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --container-width: 1140px;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent); }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.custom-logo { max-height: 50px; width: auto; }
.site-title a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
}
.site-description { font-size: .75rem; color: var(--color-muted); letter-spacing: 1px; }

.header-cta { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.header-cta:hover { color: var(--color-accent); }

.main-nav ul { list-style: none; display: flex; gap: 24px; }
.main-nav a { font-weight: 500; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.burger span { width: 26px; height: 3px; background: var(--color-primary); border-radius: 2px; }

/* ---------- Главный экран ---------- */
.hero {
    background: linear-gradient(rgba(20,18,15,.72), rgba(20,18,15,.78)),
                url('https://images.unsplash.com/photo-1493663025894-f26cfd96dbec?auto=format&fit=crop&w=1800&q=75') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 130px 20px;
}
.hero h1 { font-family: var(--font-heading); font-size: 3rem; line-height: 1.2; margin-bottom: 18px; font-weight: 700; }
.hero .hero-subtitle { font-size: 1.2rem; max-width: 680px; margin: 0 auto 36px; opacity: .92; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 40px; font-size: .9rem; opacity: .85; }

.btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 6px;
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.2); color: var(--color-primary); }

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-light); }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-primary);
}
.section-subtitle { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto 44px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.card {
    background: var(--color-white);
    border: 1px solid #eae6df;
    border-radius: 4px;
    padding: 28px;
    text-align: center;
    transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(27,26,23,.08); }
.card-icon { font-size: 2.2rem; margin-bottom: 12px; }

/* ---------- Преимущества (премиум-сегмент) ---------- */
.adv-card h3 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 8px; }

/* ---------- Карточки «товаров» (заготовка под магазин) ---------- */
.product-card {
    background: var(--color-white);
    border: 1px solid #eae6df;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 12px 32px rgba(27,26,23,.12); transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h3 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 6px; }
.product-cat { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-muted); margin-bottom: 8px; }
.product-price { color: var(--color-accent); font-weight: 700; margin-top: 6px; font-size: 1.05rem; }

/* ---------- Контакты ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 12px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}
.contact-form button { border: none; cursor: pointer; }

.map iframe { width: 100%; height: 320px; border: 0; border-radius: 10px; }

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--color-primary);
    color: #cfd4e0;
    padding: 40px 0 24px;
    font-size: .9rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.site-footer a { color: var(--color-accent); }
.footer-copy { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }

/* ---------- Адаптивность ---------- */
@media (max-width: 900px) {
    .hero { padding: 80px 16px; }
    .hero h1 { font-size: 2rem; }
    .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .burger { display: flex; }
    .main-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: var(--color-white);
        border-bottom: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 320px; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
    .main-nav li { border-bottom: 1px solid #f0f0f0; }
    .main-nav a { display: block; padding: 12px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 48px 0; }
}

/* ============================================================
 * Конструктор блоков главной страницы (v1.2)
 * ========================================================== */
.loend-block { position: relative; }

/* Галерея */
.loend-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.loend-gallery-item { margin: 0; border-radius: 12px; overflow: hidden; }
.loend-gallery-item img {
    width: 100%; height: 220px; object-fit: cover; display: block;
    transition: transform .35s ease;
}
.loend-gallery-item:hover img { transform: scale(1.04); }

/* CTA-полоса */
.loend-cta { background: var(--color-dark, #1c1c1c); color: #fff; padding: 56px 0; }
.loend-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.loend-cta h2 { font-family: 'Playfair Display', serif; margin: 0 0 8px; color: #fff; }
.loend-cta p { margin: 0; opacity: .85; max-width: 640px; }
.btn-light { background: #fff; color: #1c1c1c; }
.btn-light:hover { background: #f1f1f1; }

/* Нумерованные этапы */
.step-card { position: relative; }
.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 700; opacity: .25; margin-bottom: 8px;
}

/* Отзывы */
.review-card blockquote { margin: 0; font-style: italic; line-height: 1.6; }
.review-card cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; opacity: .7; }

/* Контакты по центру + заглушка отключённой формы */
.contact-list--center { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.form-disabled-note {
    max-width: 640px; margin: 0 auto; text-align: center;
    background: #faf6ef; border: 1px dashed #d8c9a8; border-radius: 12px; padding: 24px;
}
.form-disabled-note p { margin: 6px 0; }

@media (max-width: 640px) {
    .loend-cta-inner { flex-direction: column; align-items: flex-start; }
    .loend-gallery-item img { height: 160px; }
}
