/* ================================================================
   Свадьба.Топ — современный стиль выше уровня горько
   Палитра: тёмно-зелёный (eucalyptus) + кремовый + тёплое золото
   ================================================================ */

:root {
    --c-bg: #fafaf7;
    --c-paper: #ffffff;
    --c-ink: #1a1a1a;
    --c-ink-soft: #4a4a4a;
    --c-muted: #8a8a8a;
    --c-line: #e8e6e0;
    --c-line-soft: #f1efe8;
    --c-accent: #2d4a3e;       /* eucalyptus */
    --c-accent-soft: #43614f;
    --c-gold: #c9a96e;
    --c-gold-soft: #e8d5a8;
    --c-rose: #d4a5a5;
    --c-cream: #f5f1e8;
    --c-success: #2d7a4f;
    --c-danger: #c4453d;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);

    --radius: 14px;
    --radius-sm: 8px;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--c-ink);
}

.serif { font-family: var(--font-serif); }

a { color: var(--c-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-gold); }

/* ============ HEADER ============ */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--c-ink);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
}
.brand:hover { color: var(--c-accent); }
.brand-glyph {
    color: var(--c-gold);
    font-size: 20px;
}
.brand-footer { color: var(--c-paper); }
.brand-footer:hover { color: var(--c-gold-soft); }

.primary-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.primary-nav a {
    color: var(--c-ink-soft);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}
.primary-nav a:hover { color: var(--c-accent); }
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 2px;
    background: var(--c-gold);
    transform: scaleX(0);
    transition: transform .2s;
}
.primary-nav a:hover::after { transform: scaleX(1); }

/* ============ BUTTONS ============ */
.btn {
    border-radius: 999px;
    font-weight: 500;
    padding: 8px 18px;
    font-size: 14px;
    border-width: 1.5px;
    transition: all .15s;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

.btn-dark {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
}
.btn-dark:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.btn-accent:hover {
    background: var(--c-accent-soft);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-gold {
    background: var(--c-gold);
    color: #fff;
    border-color: var(--c-gold);
}
.btn-gold:hover {
    background: #b89358;
    color: #fff;
}

.btn-outline-dark {
    border-color: var(--c-line);
    color: var(--c-ink);
    background: var(--c-paper);
}
.btn-outline-dark:hover {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background:
        linear-gradient(135deg, rgba(45,74,62,0.85) 0%, rgba(26,26,26,0.55) 100%),
        url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=2400&q=85&auto=format') center/cover;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(201,169,110,0.12), transparent 60%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero .lead {
    font-size: 19px;
    opacity: 0.92;
    max-width: 640px;
    margin-bottom: 36px;
}
.hero-search {
    background: var(--c-paper);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    gap: 6px;
    max-width: 720px;
}
.hero-search select, .hero-search input {
    flex: 1;
    border: 0;
    padding: 14px 18px;
    font-size: 15px;
    background: transparent;
    outline: none;
}
.hero-search select { max-width: 200px; border-right: 1px solid var(--c-line); }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.hero-stat strong {
    font-family: var(--font-serif);
    font-size: 36px;
    display: block;
    color: var(--c-gold-soft);
}
.hero-stat span { opacity: 0.85; font-size: 14px; }

/* ============ SECTION ============ */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 56px;
}
.section-title .eyebrow {
    display: inline-block;
    color: var(--c-gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 12px;
}
.section-title h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 12px;
}
.section-title p { color: var(--c-muted); max-width: 600px; margin: 0 auto; }

/* ============ CATEGORY GRID ============ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--c-cream);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: #fff;
}
.cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.cat-card-content {
    position: absolute;
    bottom: 16px; left: 18px; right: 18px;
    z-index: 1;
}
.cat-card-content i {
    color: var(--c-gold-soft);
    font-size: 20px;
    margin-bottom: 4px;
}
.cat-card-content h3 {
    color: #fff;
    font-size: 22px;
    margin: 0;
}
.cat-card-content small { opacity: 0.85; font-size: 12px; }
.cat-card:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.06); }

/* ============ VENDOR CARD ============ */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.vendor-card {
    background: var(--c-paper);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: var(--c-ink);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--c-line-soft);
}
.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--c-ink);
    border-color: transparent;
}
.vendor-card-cover {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--c-cream);
}
.vendor-card-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.vendor-card:hover .vendor-card-cover img { transform: scale(1.05); }
.vendor-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vendor-card-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 6px;
    align-items: center;
}
.vendor-card h3 {
    font-size: 18px;
    margin: 0 0 6px;
    line-height: 1.3;
}
.vendor-card .desc {
    font-size: 13px;
    color: var(--c-ink-soft);
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vendor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--c-line-soft);
    font-size: 13px;
}
.vendor-price {
    font-weight: 600;
    color: var(--c-ink);
}
.vendor-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-ink);
    font-weight: 500;
}
.vendor-rating .fa-star { color: var(--c-gold); font-size: 12px; }
.vendor-rating small { color: var(--c-muted); font-weight: 400; }

/* Tier badges on cards */
.tier-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    color: var(--c-ink);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}
.tier-badge.tier-top {
    background: var(--c-ink);
    color: var(--c-gold-soft);
    border: 1px solid var(--c-gold);
}
.tier-badge.tier-premium {
    background: var(--c-gold);
    color: #fff;
}
.tier-badge.tier-standard {
    background: var(--c-accent);
    color: #fff;
}

.verified-badge {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.95);
    color: var(--c-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Feature chips */
.chip {
    display: inline-block;
    padding: 4px 10px;
    background: var(--c-cream);
    color: var(--c-ink-soft);
    border-radius: 999px;
    font-size: 11px;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ============ FILTERS / CATEGORY PAGE ============ */
.cat-hero {
    padding: 60px 0 40px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                var(--cover, none) center/cover;
    color: #fff;
}
.cat-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 48px); }
.cat-hero p { opacity: 0.9; max-width: 600px; }

.filter-sidebar {
    background: var(--c-paper);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--c-line-soft);
    position: sticky;
    top: 90px;
}
.filter-group { margin-bottom: 20px; }
.filter-group h6 {
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-muted);
    margin-bottom: 10px;
    font-weight: 600;
}
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--c-line);
    font-size: 14px;
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(45,74,62,0.10);
}

/* ============ VENDOR DETAIL ============ */
.vendor-hero {
    background: var(--c-paper);
    border-bottom: 1px solid var(--c-line);
}
.gallery-main {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.gallery-thumbs img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity .15s;
}
.gallery-thumbs img:hover { opacity: 0.85; }

.lead-form {
    background: var(--c-paper);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}
.lead-form h5 { margin-bottom: 16px; }
.lead-form .price-tag {
    background: var(--c-cream);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}
.lead-form .price-tag strong {
    font-size: 20px;
    font-family: var(--font-serif);
}

/* ============ TARIFF CARDS ============ */
.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.tariff-card {
    background: var(--c-paper);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--c-line-soft);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tariff-card.featured {
    background: linear-gradient(165deg, var(--c-ink) 0%, var(--c-accent) 100%);
    color: #fff;
    border-color: transparent;
    transform: scale(1.04);
}
.tariff-card.featured h3, .tariff-card.featured .price { color: #fff; }
.tariff-card.featured ul li { color: rgba(255,255,255,0.9); }
.tariff-card.featured ul li::before { color: var(--c-gold-soft); }

.tariff-card .badge-row {
    color: var(--c-gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.tariff-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
}
.tariff-card .price {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    margin: 16px 0 6px;
}
.tariff-card .price small { font-size: 14px; color: var(--c-muted); font-family: var(--font-sans); }
.tariff-card.featured .price small { color: rgba(255,255,255,0.7); }
.tariff-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    flex: 1;
}
.tariff-card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: var(--c-ink-soft);
}
.tariff-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--c-accent);
    font-weight: 700;
}

/* ============ ALERTS / FORMS ============ */
.alert { border-radius: var(--radius-sm); border: 0; }
.alert-success { background: #e8f3ec; color: var(--c-success); }
.alert-danger { background: #faecea; color: var(--c-danger); }
.alert-info { background: var(--c-cream); color: var(--c-ink-soft); }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--c-ink);
    color: rgba(255,255,255,0.75);
}
.site-footer h6 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
.site-footer a:hover { color: var(--c-gold-soft); }
.site-footer hr { border-color: rgba(255,255,255,0.1); }
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    transition: all .15s;
}
.social-links a:hover {
    background: var(--c-gold);
    color: #fff;
    transform: translateY(-2px);
}

/* ============ ADMIN ============ */
.admin-shell { padding: 40px 0; }
.stat-card {
    background: var(--c-paper);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--c-line-soft);
    text-align: left;
}
.stat-card .num {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--c-accent);
    font-weight: 600;
    line-height: 1;
}
.stat-card .lbl {
    color: var(--c-muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Tables */
table.table { font-size: 14px; }
table.table thead th {
    background: var(--c-cream);
    color: var(--c-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--c-line);
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .hero { padding: 60px 0 80px; }
    .hero-search { flex-direction: column; }
    .hero-search select { max-width: 100%; border-right: 0; border-bottom: 1px solid var(--c-line); }
    .hero-stats { gap: 24px; }
    .filter-sidebar { position: static; }
    .lead-form { position: static; }
}
