/* ============ ZÁKLAD ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-gray);
    color: var(--black-soft);
    font-size: 17px;
    line-height: 1.75;
    text-align: center;
}

/* Barvy – profesionální vínová, bílá, černá paleta */
:root {
    --wine-primary: #6B0F1A;      /* hlavní vínová - tmavá burgundská jako víno */
    --wine-dark: #4A0E27;         /* tmavá vínová - hluboká červená */
    --wine-light: #8B2635;        /* světlá vínová - střední odstín */
    --white: #FFFFFF;              /* bílá */
    --black: #000000;              /* černá */
    --black-soft: #1a1a1a;         /* měkká černá */
    --dark-gray: #2C2C2C;          /* tmavě šedá */
    --light-gray: #F5F5F5;         /* světle šedá */
    --light-gray-alt: #FAFAFA;     /* alternativní světle šedá */
    --muted: #6B7280;              /* tlumená šedá */
    /* Offset pro anchor scroll – výška sticky headeru + rezerva (desktop) */
    --scroll-margin-header: 100px;
}

/* Základní styl odkazů – ať si berou barvu z kontextu */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--wine-primary);
}

.section-accent a {
    color: rgba(255, 255, 255, 0.9);
}

.section-accent a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Klikatelné karty služeb */
.service-link {
    display: block;
    color: inherit;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.service-link:hover {
    text-decoration: none;
}

/* ============ LAYOUT HELPERS ============ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HLAVIČKA ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 15, 26, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    font-weight: 700;
    font-size: 19px;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--black-soft);
    font-size: 15.5px;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: var(--wine-primary);
    border-color: var(--wine-primary);
    transform: translateY(-1px);
}

/* Hamburger – na desktopu skrytý */
.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-size: 0;
}

.menu-toggle-bar {
    display: none;
}

.nav-overlay {
    display: none;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-primary) 50%, var(--wine-dark) 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(139, 38, 53, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 340px;
}

/* Text uprostřed */
.hero-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 560px;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-text h1 {
    white-space: nowrap;
    font-size: clamp(26px, 4vw, 62px);
    word-break: keep-all;
    hyphens: none;
}

.hero-photo {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: -100px; /* obrázek víc vlevo, zůstává vidět; text beze změny */
    z-index: 1;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.hero h1 {
    font-size: clamp(26px, 4vw, 62px);
    color: var(--white);
    margin-bottom: 14px;
    font-family: Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    hyphens: none;
}

.hero-name {
    text-align: center;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-lead {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 36px;
    font-size: clamp(16px, 1.5vw, 19px);
    text-align: center;
    line-height: 1.8;
    font-weight: 400;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    background: var(--white);
    color: var(--wine-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.01em;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--wine-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

/* Foto v hero */
.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.photo-frame {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 16px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 2px 8px rgba(0, 0, 0, 0.15) inset;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 auto;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset,
                0 4px 12px rgba(0, 0, 0, 0.2) inset;
    border-color: rgba(255, 255, 255, 0.35);
}

.photo-frame:hover::before {
    opacity: 1;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ============ SEKCE OBECNĚ ============ */
.section {
    padding: 120px 0;
    background: var(--light-gray);
    text-align: center;
}

.section-light {
    background: var(--white);
    text-align: center;
}

.section-accent {
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-primary) 50%, var(--wine-dark) 100%);
    background-size: 200% 200%;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 38, 53, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.section-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.section-accent p {
    color: rgba(255, 255, 255, 0.95);
}

.section-accent ul {
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.section h2 {
    font-size: clamp(28px, 3.8vw, 50px);
    margin: 0 auto 28px;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section h3 {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--wine-primary);
}

.section.section-accent h2 {
    color: var(--white);
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 44px;
    color: var(--muted);
    text-align: center;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.8;
    font-weight: 400;
}

.section.section-accent .section-intro {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(16px, 1.4vw, 19px);
    max-width: 900px;
}

.section.section-accent p {
    color: rgba(255, 255, 255, 0.95);
}

.section p {
    margin: 0 auto 20px;
    max-width: 800px;
    text-align: center;
    line-height: 1.85;
    color: var(--black-soft);
    font-size: 17px;
}

/* Sekce O mně - jemné vylepšení */
#omne .container {
    max-width: 900px;
}

#omne p {
    max-width: 850px;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 24px;
    color: var(--black-soft);
}

#omne h2 {
    margin-bottom: 32px;
}


.section strong {
    color: var(--wine-primary);
    font-weight: 600;
}

.section-accent strong {
    color: var(--white);
}

/* ============ PRÁVNÍ SLUŽBY – MODERNÍ GRID ============ */

.services .section-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 64px;
    text-align: center;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 28px 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 1140px; /* 3 řady stejné výšky (9 karet) */
}

.service {
    background: var(--white);
    border-radius: 20px;
    padding: 26px 22px 22px;
    border: 1px solid rgba(107, 15, 26, 0.08);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06),
                0 6px 20px rgba(107, 15, 26, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 0; /* grid řada určí výšku */
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--wine-primary), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(107, 15, 26, 0.1),
                0 12px 32px rgba(107, 15, 26, 0.12),
                0 20px 48px rgba(107, 15, 26, 0.08);
    border-color: rgba(107, 15, 26, 0.2);
}

.service:hover::before {
    opacity: 1;
}

.service h3 {
    font-size: clamp(17px, 1.6vw, 22px);
    margin-bottom: 14px;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(107, 15, 26, 0.1);
    transition: border-color 0.35s ease;
}

.service:hover h3 {
    border-bottom-color: rgba(107, 15, 26, 0.25);
}

.service ul {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    list-style: none;
    padding-left: 0;
    flex: 1;
}

.service li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--black-soft);
    font-size: 14px;
    padding-left: 24px;
    position: relative;
    transition: color 0.2s ease;
}

.service li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wine-primary);
    font-weight: bold;
    font-size: 1em;
    line-height: 1.6;
    display: inline-block;
    width: 1em;
    text-align: center;
}

.service li b {
    color: var(--wine-primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.service:hover li {
    color: var(--black-soft);
}

/* odkaz dole v kartě */
.service .link-more {
    margin-top: auto;
    padding-top: 16px;
    font-size: 15px;
    color: var(--wine-primary);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    background: transparent;
    transition: all 0.25s ease;
    display: block;
    position: relative;
    cursor: pointer;
    z-index: 10;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    font-family: inherit;
}

.service .link-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.25s ease;
    display: inline-block;
}

.service .link-more:hover {
    color: var(--wine-dark);
    text-decoration: none;
}

.service .link-more:hover::after {
    transform: translateX(4px);
}

/* Jednoduchý grid pro ostatní sekce (program, kontakt) */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: flex-start;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-2 > div {
    text-align: left;
    position: relative;
    z-index: 1;
}

.grid-2 h3 {
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2vw, 27px);
    margin-bottom: 24px;
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.3;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(107, 15, 26, 0.15);
}

.section-accent .grid-2 h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.grid-2 ul {
    text-align: left;
    margin-left: 0;
    margin-top: 8px;
    list-style: none;
    padding-left: 0;
}

.grid-2 li {
    margin-bottom: 14px;
    line-height: 1.75;
    padding-left: 28px;
    position: relative;
    font-size: 16px;
}

.grid-2 li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wine-primary);
    font-weight: bold;
    font-size: 1em;
    line-height: 1.75;
    display: inline-block;
    width: 1em;
    text-align: center;
}

.section-accent .grid-2 li {
    color: rgba(255, 255, 255, 0.95);
}

.section-accent .grid-2 li::before {
    color: rgba(255, 255, 255, 0.85);
}

/* Křížky pro "Program nezahrnuje" */
.program-excludes li::before {
    content: '✕';
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.75;
    width: 1em;
    text-align: center;
}

/* Poznámka v programu */
.section-note {
    margin-top: 36px;
    padding: 28px 28px 24px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    border-left: 4px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
    position: relative;
    z-index: 1;
}

.section-note-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.section-note-text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 !important;
    text-align: left !important;
    max-width: 100% !important;
}

/* KONTAKT + MAPA */
.section-split {
    text-align: center;
    background: var(--white);
    padding: 60px 0;
}

.section-split .grid-2 {
    align-items: flex-start;
    gap: 40px;
}

.section-split .grid-2 > div:last-child {
    margin-top: 20px;
}

.section-split .grid-2 > div:first-child {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-split .section-title {
    text-align: center;
    margin-bottom: 48px;
    margin-top: 0;
    padding-top: 0;
    font-size: clamp(26px, 3.2vw, 44px);
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Anchor scroll offset – nadpisy zůstanou viditelné pod fixed headerem */
#uvod,
#sluzby,
#program,
#omne,
#kontakt,
#contact-form,
#cenik,
#blog,
#rodinne-pravo,
#nemovitosti,
#smluvni-agenda,
#dedicke-pravo,
#omezeni-svepravnosti,
#pracovni-pravo,
#obchodni-pravo,
#autorske-pravo,
#nahrada-ujmy {
    scroll-margin-top: var(--scroll-margin-header);
}

.section-split .grid-2 > div:first-child h2 {
    display: none; /* Skryj duplicitní nadpis v levém sloupci */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(107, 15, 26, 0.08);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine-primary);
    font-size: 18px;
    margin-top: 2px;
}

.contact-item-content {
    flex: 1;
    min-width: 0;
}

.contact-item-content strong {
    color: var(--wine-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.contact-item-content p {
    margin: 0;
    color: var(--black-soft);
    font-size: 15px;
    line-height: 1.55;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wine-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(107, 15, 26, 0.06);
    border: 1px solid rgba(107, 15, 26, 0.1);
}

.social-link:hover {
    background: rgba(107, 15, 26, 0.12);
    color: var(--wine-dark);
    border-color: rgba(107, 15, 26, 0.2);
    transform: translateY(-1px);
}

.social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.social-link:hover .social-icon {
    transform: scale(1.05);
}

.contact-item-content a {
    color: var(--wine-primary);
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-item-content a:hover {
    color: var(--wine-dark);
    text-decoration: underline;
}

.section-split .grid-2 > div:first-child p {
    text-align: left;
    max-width: 100%;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 14px;
}

.mapa {
    width: 100%;
    aspect-ratio: 1;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(107, 15, 26, 0.1),
                0 1px 4px rgba(107, 15, 26, 0.06);
    border: 1px solid rgba(107, 15, 26, 0.1);
    transition: all 0.3s ease;
    margin: 0;
}

.mapa:hover {
    box-shadow: 0 4px 20px rgba(107, 15, 26, 0.15),
                0 2px 8px rgba(107, 15, 26, 0.1);
    transform: translateY(-2px);
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* CENÍK */
#cenik {
    background: var(--light-gray);
}

#cenik .container {
    max-width: 900px;
}

#cenik p {
    max-width: 850px;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 24px;
}

#cenik p strong {
    color: var(--wine-primary);
    font-size: 20px;
    font-weight: 700;
}

.price-highlight {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(107, 15, 26, 0.1);
    border-radius: 6px;
    color: var(--wine-primary);
    font-weight: 700;
}

/* ============ KONTAKTNÍ FORMULÁŘ ============ */
#contact-form {
    background: var(--light-gray);
}

.contact-form-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(107, 15, 26, 0.10);
    box-shadow: 0 4px 24px rgba(107, 15, 26, 0.08), 0 1px 4px rgba(0,0,0,0.05);
    padding: 48px 52px 44px;
}

.contact-form-container .section-title {
    font-size: clamp(24px, 3vw, 32px);
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-form-container .section-intro {
    font-size: 16px;
    margin-bottom: 36px;
    color: var(--muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Jméno + telefon vedle sebe na desktopu */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-weight: 600;
    font-size: 13px;
    color: var(--black-soft);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1.5px solid rgba(107, 15, 26, 0.15);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--black-soft);
    background: var(--light-gray);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0adb5;
    font-weight: 400;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: rgba(107, 15, 26, 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--wine-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
}

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

.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    background: var(--wine-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(107, 15, 26, 0.30);
    align-self: flex-start;
    letter-spacing: 0.01em;
    margin-top: 4px;
    font-family: inherit;
}

.contact-form .btn-submit:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 15, 26, 0.38);
}

.contact-form .btn-submit:active {
    transform: translateY(0);
}

.form-privacy {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    margin-top: -4px;
    line-height: 1.6;
}

.privacy-link {
    color: var(--wine-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--wine-dark);
}

/* BLOG PREVIEW NA HLAVNÍ STRÁNCE */
#blog {
    background: var(--white);
}

.blog-preview {
    max-width: 800px;
    margin: 48px auto 0;
}

.blog-preview-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.blog-preview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid rgba(107, 15, 26, 0.1);
    text-decoration: none;
    color: var(--black-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-preview-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--wine-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.blog-preview-item:hover {
    background: rgba(107, 15, 26, 0.04);
    border-color: rgba(107, 15, 26, 0.2);
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.1);
}

.blog-preview-item:hover::before {
    transform: scaleY(1);
}

.blog-preview-item:hover .blog-preview-icon {
    color: var(--wine-primary);
    transform: translateX(4px);
}

.blog-preview-icon {
    flex-shrink: 0;
    color: var(--wine-primary);
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 24px;
    text-align: center;
}

.blog-preview-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 500;
}

.blog-preview-action {
    text-align: center;
    margin-top: 32px;
}

.blog-preview-action .btn {
    display: inline-block;
}

/* ============ BLOG ČLÁNKY ============ */

.blog-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(107, 15, 26, 0.1);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06),
                0 4px 16px rgba(107, 15, 26, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wine-primary), var(--wine-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wine-primary), var(--wine-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(107, 15, 26, 0.15),
                0 12px 48px rgba(107, 15, 26, 0.1);
    border-color: rgba(107, 15, 26, 0.3);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
}

.blog-card {
    position: relative;
    overflow: hidden;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: rgba(107, 15, 26, 0);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-card:hover::after {
    background: rgba(107, 15, 26, 0.05);
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.blog-card-title {
    font-size: clamp(18px, 1.8vw, 24px);
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--wine-dark);
}

.blog-card-date {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

.blog-card-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--black-soft);
    margin: 8px 0;
    flex-grow: 1;
}

/* Search highlighting */
mark {
    background: #fef08a;
    color: var(--black-soft);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-reading-time {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-link {
    color: var(--wine-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    transition: all 0.2s ease;
}

.blog-card-link:hover {
    color: var(--wine-dark);
    transform: translateX(4px);
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-style: italic;
}

/* Detail článku */
.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--wine-primary);
    border: 2px solid var(--wine-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--wine-primary);
    color: var(--white);
    transform: translateX(-4px);
}

.blog-article-detail {
    background: var(--white);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid rgba(107, 15, 26, 0.1);
    box-shadow: 0 2px 12px rgba(107, 15, 26, 0.08);
}

.blog-detail-title {
    font-size: clamp(32px, 4vw, 42px);
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-detail-date {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 32px 0;
    font-weight: 500;
}

.blog-detail-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--black-soft);
    margin: 0 0 32px 0;
    padding: 24px;
    background: rgba(107, 15, 26, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--wine-primary);
    font-weight: 500;
}

.blog-detail-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--black-soft);
    max-width: 100%;
}

.blog-detail-content p {
    margin: 0 0 24px 0;
    text-align: left;
}

.blog-detail-content p:last-child {
    margin-bottom: 0;
}

.blog-detail-content strong {
    font-weight: 700;
    color: var(--wine-primary);
}

.blog-detail-content em {
    font-style: italic;
}

.blog-detail-content ul {
    margin: 20px 0;
    padding-left: 32px;
    list-style: none;
}

.blog-detail-content ul li {
    position: relative;
    margin: 12px 0;
    padding-left: 26px;
    line-height: 1.65;
}

.blog-detail-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wine-primary);
    font-weight: bold;
    font-size: 1em;
    line-height: 1.65;
    display: inline-block;
    width: 1em;
    text-align: center;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    color: var(--wine-primary);
    margin: 32px 0 16px 0;
    font-weight: 700;
}

.blog-detail-content h2 {
    font-size: 28px;
}

.blog-detail-content h3 {
    font-size: 24px;
}

/* ============ ADMIN PANEL ============ */

.admin-login {
    max-width: 400px;
    margin: 60px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(107, 15, 26, 0.1);
}

.admin-login h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--wine-primary);
}

.admin-hint {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
    font-style: italic;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h2 {
    margin: 0;
    color: var(--wine-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--wine-primary);
    border: 2px solid var(--wine-primary);
}

.btn-secondary:hover {
    background: var(--wine-primary);
    color: var(--white);
}

.admin-form-container {
    background: var(--white);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06);
    margin-bottom: 40px;
    overflow: hidden;
}

.admin-form-header {
    background: linear-gradient(135deg, var(--wine-primary) 0%, #8b1a2a 100%);
    padding: 24px 40px;
    color: white;
}

.admin-form-header h3 {
    color: white;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-size: 28px;
    margin: 0 0 20px 0;
}

.admin-form-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.form-tab:hover {
    background: rgba(255, 255, 255, 0.3);
}

.form-tab.active {
    background: white;
    color: var(--wine-primary);
}

.form-tab-content {
    display: none;
    padding: 40px;
}

.form-tab-content.active {
    display: block;
}

.label-icon {
    margin-right: 8px;
    font-size: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--black-soft);
    font-size: 15px;
    margin-bottom: 8px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--black-soft);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--black-soft);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wine-primary);
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    font-size: 13px;
    color: var(--muted);
    margin-top: -4px;
}

#meta-char-count {
    font-weight: 600;
    color: var(--wine-primary);
}

/* Image Upload Styles */
.image-upload-container {
    position: relative;
}

.image-drop-zone {
    border: 2px dashed rgba(107, 15, 26, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--light-gray);
    cursor: pointer;
}

.image-drop-zone:hover {
    border-color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.02);
}

.image-drop-zone.drag-over {
    border-color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
    transform: scale(1.02);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.drop-zone-content svg {
    color: var(--wine-primary);
    opacity: 0.6;
}

.drop-zone-content p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.image-preview {
    margin-top: 16px;
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(107, 15, 26, 0.2);
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    object-fit: contain;
}

.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-remove-image:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.category-chip {
    padding: 10px 20px;
    background: var(--light-gray);
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 24px;
    color: var(--black-soft);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.category-chip:hover {
    background: rgba(107, 15, 26, 0.1);
    border-color: var(--wine-primary);
}

.category-chip.active {
    background: var(--wine-primary);
    color: white;
    border-color: var(--wine-primary);
}

/* Status Toggle */
.status-toggle {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.status-btn {
    flex: 1;
    padding: 14px 20px;
    background: var(--light-gray);
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    color: var(--black-soft);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-btn:hover {
    border-color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
}

.status-btn.active {
    background: var(--wine-primary);
    color: white;
    border-color: var(--wine-primary);
}

/* Tags Input */
.tags-input-container {
    margin-top: 8px;
}

#article-tags-input {
    width: 100%;
    margin-bottom: 12px;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--wine-primary);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.tag-item .tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    transition: all 0.2s ease;
}

.tag-item .tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Content Blocks */
.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    color: var(--black-soft);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn:hover {
    border-color: var(--wine-primary);
    color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
}

.content-blocks {
    min-height: 400px;
    border: 2px dashed rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    padding: 20px;
    background: var(--light-gray);
}

.content-block {
    background: white;
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    cursor: move;
    transition: all 0.2s ease;
}

.content-block:hover {
    border-color: var(--wine-primary);
    box-shadow: 0 4px 12px rgba(107, 15, 26, 0.1);
}

.content-block.dragging {
    opacity: 0.5;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(107, 15, 26, 0.1);
}

.block-type {
    font-weight: 600;
    color: var(--wine-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.block-actions {
    display: flex;
    gap: 8px;
}

.block-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(107, 15, 26, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.block-btn:hover {
    background: var(--wine-primary);
    color: white;
}

.block-content {
    min-height: 60px;
}

.block-text .block-content textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid rgba(107, 15, 26, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}

.block-image .block-content {
    text-align: center;
    padding: 20px;
    border: 2px dashed rgba(107, 15, 26, 0.2);
    border-radius: 6px;
}

.block-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
}

.block-quote .block-content {
    padding: 20px;
    background: rgba(107, 15, 26, 0.05);
    border-left: 4px solid var(--wine-primary);
    border-radius: 6px;
    font-style: italic;
}

.block-separator {
    height: 2px;
    background: rgba(107, 15, 26, 0.2);
    margin: 20px 0;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Article Preview */
.article-preview {
    background: white;
    border: 2px solid rgba(107, 15, 26, 0.1);
    border-radius: 8px;
    padding: 40px;
    min-height: 400px;
}

.preview-placeholder {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
    font-style: italic;
}

/* Button improvements */
.btn-primary {
    background: var(--wine-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 15, 26, 0.3);
}

.form-actions {
    display: flex;
    gap: 12px;
    padding: 24px 40px;
    background: var(--light-gray);
    border-top: 1px solid rgba(107, 15, 26, 0.1);
    flex-wrap: wrap;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Image drop zone small */
.image-drop-zone-small {
    padding: 40px;
    border: 2px dashed rgba(107, 15, 26, 0.3);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--light-gray);
}

.image-drop-zone-small:hover {
    border-color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
}

.image-drop-zone-small p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Empty blocks message */
.content-blocks:empty::before {
    content: 'Klikněte na tlačítka výše pro přidání bloků obsahu';
    display: block;
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
    font-style: italic;
}

/* ============================================
   NEW ADMIN LAYOUT - 3 COLUMN DESIGN
   ============================================ */

.admin-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f5;
}

/* LEFT SIDEBAR */
.admin-sidebar {
    width: 280px;
    background: #f5f5f5;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
}

.sidebar-search {
    padding: 20px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
}

.sidebar-search input::placeholder {
    color: #999;
}

.sidebar-search svg {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.sidebar-nav {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: #e5e5e5;
    color: #1a1a1a;
}

.nav-item.active {
    background: var(--wine-primary);
    color: #fff;
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--wine-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wine-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.user-role {
    font-size: 12px;
    color: #666;
}

/* MAIN CONTENT AREA */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.topbar-left {
    flex: 1;
}

.article-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.article-title-input {
    font-size: 28px;
    font-weight: 600;
    border: none;
    outline: none;
    flex: 1;
    padding: 0;
    color: #1a1a1a;
    font-family: inherit;
}

.article-title-input::placeholder {
    color: #999;
}

.article-type-badge {
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.article-meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.editor-toolbar-main {
    padding: 16px 40px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e5e5;
    margin: 0 4px;
}

.toolbar-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 60px;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #f5f5f5;
    border-color: var(--wine-primary);
}

.toolbar-btn.active {
    background: var(--wine-primary);
    color: #fff;
    border-color: var(--wine-primary);
}

.btn-preview,
.btn-save {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-preview {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-preview:hover {
    background: #f5f5f5;
}

.btn-save {
    background: var(--wine-primary);
    color: #fff;
}

.btn-save:hover {
    background: var(--wine-dark);
}

.editor-container {
    flex: 1;
    overflow: hidden;
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

/* Simple Textarea Editor */
.simple-textarea {
    width: 100%;
    height: 100%;
    min-height: 600px;
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    resize: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.simple-textarea:focus {
    border-color: var(--wine-primary);
    box-shadow: 0 2px 12px rgba(107, 15, 26, 0.1);
}

.simple-textarea::placeholder {
    color: #999;
}

.content-editor {
    max-width: 100%;
    margin: 0 auto;
}

.content-block-editor {
    margin-bottom: 24px;
    padding: 8px 0;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: text;
    transition: all 0.2s ease;
    min-height: 40px;
}

.content-block-editor:hover {
    border-color: transparent;
    background: transparent;
}

.content-block-editor.selected {
    border-color: #1a1a1a;
    background: transparent;
    box-shadow: none;
    border-width: 1px;
}

.content-block-editor h1,
.content-block-editor h2,
.content-block-editor h3,
.content-block-editor h4,
.content-block-editor h5,
.content-block-editor h6 {
    margin: 0;
    padding: 0;
    font-weight: 600;
    line-height: 1.4;
    outline: none;
}

.content-block-editor h1 { font-size: 36px; font-weight: 700; margin: 0 0 16px 0; line-height: 1.2; color: #1a1a1a; }
.content-block-editor h2 { font-size: 30px; font-weight: 700; margin: 0 0 16px 0; line-height: 1.2; color: #1a1a1a; }
.content-block-editor h3 { font-size: 24px; font-weight: 600; margin: 0 0 16px 0; line-height: 1.3; color: #1a1a1a; }
.content-block-editor h4 { font-size: 20px; font-weight: 600; margin: 0 0 16px 0; line-height: 1.3; color: #1a1a1a; }
.content-block-editor h5 { font-size: 18px; font-weight: 600; margin: 0 0 16px 0; line-height: 1.4; color: #1a1a1a; }
.content-block-editor h6 { font-size: 16px; font-weight: 600; margin: 0 0 16px 0; line-height: 1.4; color: #1a1a1a; }

.content-block-editor p {
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.8;
    font-size: 16px;
    outline: none;
    min-height: 1.5em;
    color: #1a1a1a;
}

.content-block-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
    cursor: pointer;
}

.content-block-editor[data-block-type="image"] {
    cursor: default;
}

.content-block-editor[data-block-type="image"]:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
}

/* RIGHT PROPERTIES PANEL */
.admin-properties {
    width: 360px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.properties-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.properties-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.properties-content {
    padding: 24px;
    flex: 1;
}

.property-group {
    margin-bottom: 24px;
}

.property-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.property-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.block-type-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.block-type-input .property-select {
    flex: 1;
}

.cycle-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cycle-btn:hover {
    background: #f5f5f5;
    border-color: var(--wine-primary);
}

.accessibility-placeholder {
    min-height: 40px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.position-buttons,
.align-buttons {
    display: flex;
    gap: 8px;
}

.pos-btn,
.align-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pos-btn:hover,
.align-btn:hover {
    background: #f5f5f5;
    border-color: var(--wine-primary);
}

.pos-btn.active,
.align-btn.active {
    background: var(--wine-primary);
    color: #fff;
    border-color: var(--wine-primary);
}

.color-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
}

.property-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.custom-attribute-input {
    display: flex;
    gap: 8px;
}

.custom-attribute-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.edit-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: #f5f5f5;
    border-color: var(--wine-primary);
}

.property-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    outline: none;
}

.property-textarea:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 30px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.toolbar-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.toolbar-btn:hover {
    background: #f5f5f5;
    border-color: #ddd;
    color: #1a1a1a;
}

.toolbar-btn.active {
    background: var(--wine-primary);
    color: #fff;
    border-color: var(--wine-primary);
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #e5e5e5;
    margin: 0 4px;
}

/* Articles List View */
.articles-list-view {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
}

.articles-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.articles-list-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-new-article {
    padding: 12px 24px;
    background: var(--wine-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-new-article:hover {
    background: var(--wine-dark);
}

.articles-list-search {
    margin-bottom: 24px;
}

.articles-list-container {
    display: grid;
    gap: 16px;
}

.article-list-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
}

.article-list-item:hover {
    border-color: var(--wine-primary);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.1);
}

.article-list-thumbnail {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.article-list-content {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.article-list-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.article-list-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.article-list-status.published {
    background: #e8f5e9;
    color: #2e7d32;
}

.article-list-status.draft {
    background: #fff3e0;
    color: #e65100;
}

.article-list-actions {
    display: flex;
    gap: 8px;
}

.article-list-btn {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.article-list-btn:hover {
    background: #e5e5e5;
    color: #1a1a1a;
}

.article-list-btn.delete {
    color: #d32f2f;
}

.article-list-btn.delete:hover {
    background: #ffebee;
    border-color: #d32f2f;
}

/* Form Help Text */
.form-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

/* Admin form input and select styles */
.form-input {
    padding: 12px 16px;
    border: 1px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--black-soft);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--wine-primary);
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
}

.form-select {
    padding: 12px 16px;
    border: 1px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--black-soft);
    cursor: pointer;
    width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: var(--wine-primary);
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
}

.btn-full {
    width: 100%;
}

.image-upload-box {
    border: 2px dashed rgba(107, 15, 26, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--light-gray);
    cursor: pointer;
}

.image-upload-box:hover {
    border-color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.upload-placeholder svg {
    color: var(--wine-primary);
    opacity: 0.6;
}

.upload-placeholder p {
    margin: 0;
    font-size: 14px;
}

.property-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(107, 15, 26, 0.1);
}

.property-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.property-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(107, 15, 26, 0.1);
}

/* Article Editor View */
.article-editor-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .admin-properties {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .admin-properties {
        width: 100%;
        max-height: 300px;
    }
    
    .editor-toolbar-main {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-form-header {
        padding: 20px;
    }
    
    .admin-form-tabs {
        flex-direction: column;
    }
    
    .form-tab {
        width: 100%;
    }
    
    .form-tab-content {
        padding: 24px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .editor-toolbar {
        flex-direction: column;
    }
    
    .toolbar-btn {
        width: 100%;
        justify-content: center;
    }
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-articles-list {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06);
}

.admin-articles-list h3 {
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-size: 24px;
    margin-bottom: 24px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.articles-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--light-gray);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    color: var(--muted);
}

.view-btn:hover {
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
}

.view-btn.active {
    background: var(--wine-primary);
    color: white;
}

.articles-list.grid-view .admin-article-item {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.articles-list.grid-view .admin-article-item .admin-article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.articles-list.grid-view .admin-article-info {
    padding: 20px;
}

.articles-list.grid-view .admin-article-actions {
    padding: 0 20px 20px;
    width: 100%;
}

.admin-article-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid rgba(107, 15, 26, 0.1);
    gap: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.admin-article-item.selected {
    border-color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
}

.article-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 4px;
}

/* ============ DASHBOARD ============ */

.dashboard-view {
    padding: 24px;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(107, 15, 26, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 15, 26, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--wine-primary);
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-content p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

.dashboard-recent {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06);
}

.dashboard-recent h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    margin: 0 0 20px 0;
}

.recent-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recent-article-item:hover {
    background: rgba(107, 15, 26, 0.05);
}

.recent-article-info {
    flex: 1;
}

.recent-article-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black-soft);
    margin: 0 0 4px 0;
}

.recent-article-info p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.published {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.draft {
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
}

.bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(107, 15, 26, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.bulk-actions-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-article-item:hover {
    background: rgba(107, 15, 26, 0.03);
    border-color: rgba(107, 15, 26, 0.2);
}

.admin-article-info {
    flex: 1;
    min-width: 0;
}

.admin-article-info h4 {
    color: var(--wine-primary);
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.admin-article-meta {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px 0;
}

.admin-article-intro {
    font-size: 14px;
    color: var(--black-soft);
    line-height: 1.6;
    margin: 0;
}

.admin-article-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
    border: 2px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: var(--white);
}

.no-articles {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-style: italic;
}

/* ============ BLOG FILTRY A VYHLEDÁVÁNÍ ============ */

.blog-filters {
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search {
    position: relative;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--wine-primary);
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
}

.btn-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    color: var(--black-soft);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: var(--wine-primary);
    color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
}

.category-btn.active {
    background: var(--wine-primary);
    color: var(--white);
    border-color: var(--wine-primary);
}

.blog-results-info {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Kategorie badge */
.blog-card-category,
.blog-detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============ STRÁNKOVÁNÍ ============ */

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    color: var(--black-soft);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 44px;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: var(--wine-primary);
    color: var(--wine-primary);
    background: rgba(107, 15, 26, 0.05);
}

.pagination-btn.active {
    background: var(--wine-primary);
    color: var(--white);
    border-color: var(--wine-primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 10px 8px;
    color: var(--muted);
}

/* ============ ADMIN PANEL VYLEPŠENÍ ============ */

.admin-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.articles-count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.admin-article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.admin-article-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-article-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-published {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-draft {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.admin-article-info h4 {
    flex: 1;
    min-width: 0;
}

.form-group select {
    padding: 12px 16px;
    border: 1px solid rgba(107, 15, 26, 0.2);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--black-soft);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--wine-primary);
    box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
}

.blog-detail-header {
    margin-bottom: 24px;
}

.blog-detail-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.blog-reading-time,
.blog-views {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Share buttons */
.blog-share-buttons {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(107, 15, 26, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--black-soft);
    margin-right: 8px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(107, 15, 26, 0.2);
    background: var(--white);
    color: var(--wine-primary);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--wine-primary);
    color: var(--white);
    border-color: var(--wine-primary);
    transform: translateY(-2px);
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Related articles */
.blog-related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(107, 15, 26, 0.1);
}

.blog-related-articles h3 {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-size: 28px;
    color: var(--wine-primary);
    margin-bottom: 32px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-article-card {
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(107, 15, 26, 0.1);
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 15, 26, 0.15);
}

.related-article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-article-content {
    padding: 20px;
}

.related-article-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.related-article-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.4;
}

.related-article-content h4 a {
    color: var(--black-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-article-content h4 a:hover {
    color: var(--wine-primary);
}

.related-article-date {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* ============ UX VYLEPŠENÍ ============ */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(107, 15, 26, 0.1);
    border-radius: 50%;
    border-top-color: var(--wine-primary);
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(107, 15, 26, 0.1);
    border-radius: 50%;
    border-top-color: var(--wine-primary);
    animation: spin 0.8s linear infinite;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: #10b981;
    color: white;
}

.toast-error {
    background: #ef4444;
    color: white;
}

.toast-info {
    background: #3b82f6;
    color: white;
}

.toast-warning {
    background: #f59e0b;
    color: white;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

/* Confirmation Dialog */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.confirm-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-dialog-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--black-soft);
}

.confirm-dialog-message {
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-dialog-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-dialog-btn-cancel {
    background: rgba(107, 15, 26, 0.1);
    color: var(--wine-primary);
}

.confirm-dialog-btn-cancel:hover {
    background: rgba(107, 15, 26, 0.2);
}

.confirm-dialog-btn-confirm {
    background: var(--wine-primary);
    color: white;
}

.confirm-dialog-btn-confirm:hover {
    background: #5a0a14;
}

.confirm-dialog-btn-danger {
    background: #ef4444;
    color: white;
}

.confirm-dialog-btn-danger:hover {
    background: #dc2626;
}

.admin-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
    font-weight: 500;
    font-size: 15px;
}

.admin-message.show {
    opacity: 1;
    transform: translateX(0);
}

.admin-message-success {
    background: #10b981;
    color: white;
}

.admin-message-error {
    background: #ef4444;
    color: white;
}

/* Loading stav */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--wine-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FOOTER */
.site-footer {
    background: linear-gradient(180deg, var(--black-soft) 0%, #0f0f0f 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 48px 0 56px;
    text-align: center;
    font-size: 15.5px;
    border-top: 2px solid var(--wine-primary);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wine-primary), transparent);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Šipka nahoru – na desktopu skrytá, na mobilu v media query níže */
.back-to-top {
    display: none;
}

.back-to-top-icon {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}

/* ============ RESPONSIVE ============ */

/* ------------------------------------------------------------------
   TABLET + MOBILE  ≤ 900px
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    :root {
        --scroll-margin-header: 80px; /* výška .nav 64px + rezerva */
    }

    /* ----- Base ----- */
    html {
        overflow-x: hidden;
    }
    body {
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding-left:  max(20px, env(safe-area-inset-left, 0));
        padding-right: max(20px, env(safe-area-inset-right, 0));
    }

    /* ----- Header / Nav ----- */
    .site-header {
        padding-left:  env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .nav {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        min-height: 64px;
        padding: 0;
    }

    .logo {
        font-size: 17px;
        max-width: calc(100% - 68px);
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ---- Hamburger button ---- */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        padding: 0;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: -6px; /* hamburger víc doprava k okraji obrazovky */
        background: rgba(107, 15, 26, 0.07);
        border: 1.5px solid rgba(107, 15, 26, 0.15);
        border-radius: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        position: relative;
        z-index: 10001;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid var(--wine-primary);
        outline-offset: 2px;
    }

    .menu-toggle:active {
        background: rgba(107, 15, 26, 0.15);
    }

    /* 3 čárky → X animace */
    .menu-toggle-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--wine-primary);
        border-radius: 2px;
        transform-origin: center;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity  0.20s ease;
    }

    /* Otevřeno: čárka 1 → šikmá dolů */
    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    /* Otevřeno: prostřední zmizí */
    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    /* Otevřeno: čárka 3 → šikmá nahoru */
    .menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Při otevřeném menu: červené pozadí */
    .menu-toggle[aria-expanded="true"] {
        background: var(--wine-primary);
        border-color: var(--wine-primary);
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle-bar {
        background: #fff;
    }

    /* ---- Overlay – není potřeba, menu je full-screen ---- */
    .nav-overlay {
        display: none;
    }

    /* ---- Full-screen menu overlay ---- */
    nav ul {
        /* Vždy flex, animace přes opacity + transform */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        list-style: none;
        margin: 0;

        /* Full viewport */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        /* dvh = dynamic viewport height – správně na iOS Safari kde URL bar mizí */
        height: 100vh;
        height: 100dvh;

        /* Padding: horní = výška headeru + safe area, spodní = safe area */
        padding-top:    max(72px, calc(64px + env(safe-area-inset-top, 0px)));
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
        padding-left:  max(32px, env(safe-area-inset-left, 0px));
        padding-right: max(32px, env(safe-area-inset-right, 0px));

        /* Vzhled – vínové pozadí pro kontrast */
        background: var(--wine-dark);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;

        /* Z-index pod headerem (50), ale nad vším ostatním obsahem stránky.
           Header se tak zobrazí nad menu – hamburger zůstane viditelný. */
        z-index: 45;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.35s;
    }

    nav ul.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    nav ul li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul a {
        display: flex;
        align-items: center;
        padding: 18px 8px;
        font-size: 18px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        letter-spacing: 0.01em;
        transition: color 0.18s ease, padding-left 0.18s ease,
                    background 0.18s ease;
        /* Minimální dotyková výška – 7 položek musí vždy vejít */
        min-height: clamp(44px, 10vh, 72px);
    }

    nav ul a:hover,
    nav ul a:active {
        color: #fff;
        padding-left: 20px;
        background: rgba(255, 255, 255, 0.06);
        text-decoration: none;
    }

    /* Hamburger – z-index dědí od .nav (position:relative, z-index:10001 v rámci headeru).
       Header (z-index:50) je nad menu (z-index:45), takže tlačítko je vždy viditelné. */
    .menu-toggle {
        position: relative;
    }

    /* iOS Safari: scroll-lock pomocí position: fixed na body */
    body.menu-open {
        overflow: hidden;
        /* position: fixed zastaví scroll na iOS Safari */
        position: fixed;
        width: 100%;
        /* top nastavuje JS při otevření */
    }

    /* ----- Hero ----- */
    .hero {
        padding: 72px 0 80px;
        overflow: visible;
    }

    .hero-inner {
        display: block;
        min-height: 0;
        padding: 0;
    }

    .hero-photo {
        display: none;
    }

    .hero-text {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 20px;
        margin: 0;
        text-align: center;
        box-sizing: border-box;
        overflow: visible;
    }

    /* reveal na mobilu bez translateX – text zůstane v normálním flow */
    .hero .hero-text.reveal {
        transform: translateY(24px);
    }
    .hero .hero-text.reveal.visible {
        transform: translateY(0);
    }

    .hero-text h1 {
        font-size: clamp(26px, 6vw, 36px);
        white-space: normal;
        line-height: 1.25;
        display: block;
        width: 100%;
        max-width: 100%;
        word-break: normal;
        hyphens: auto;
        margin-bottom: 8px;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-top: 6px;
        margin-bottom: 12px;
    }

    .hero-lead {
        font-size: 15px;
        line-height: 1.65;
        padding: 0;
        margin-bottom: 24px;
        overflow-wrap: break-word;
    }

    .hero-lead p {
        margin-bottom: 6px;
    }

    .hero .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 14px 28px;
        font-size: 16px;
        width: auto;
        max-width: 100%;
    }

    /* Šipka nahoru – jen na mobilu, průhledná, viditelná jen po scrollu (když není vidět hamburger) */
    .back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: max(20px, env(safe-area-inset-bottom, 0) + 16px);
        right: max(16px, env(safe-area-inset-right, 0) + 8px);
        z-index: 40;
        width: 48px;
        height: 48px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: rgba(107, 15, 26, 0.25);
        color: var(--white);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    .back-to-top--visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .back-to-top:active {
        background: rgba(107, 15, 26, 0.45);
    }

    .back-to-top .back-to-top-icon {
        font-size: 22px;
    }

    /* ----- Sections ----- */
    .section {
        padding: 64px 0;
    }

    .section-light {
        padding: 64px 0;
    }

    .section-accent {
        padding: 64px 0;
    }

    body {
        font-size: 16px; /* Prevent iOS zoom while keeping comfortable reading */
    }

    .section h2,
    .section-header h2 {
        font-size: clamp(24px, 5.5vw, 34px);
        margin-bottom: 16px;
        letter-spacing: -0.015em;
    }

    .section-intro {
        font-size: 16px;
        line-height: 1.75;
        margin-bottom: 28px;
    }

    .section p {
        font-size: 16px;
        line-height: 1.8;
    }

    /* ----- Services grid: tablet 2 sloupce ----- */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        gap: 20px 18px;
        max-width: 100%;
        min-height: 0;
    }

    .services .section-header {
        margin-bottom: 32px;
    }

    .service {
        padding: 22px 18px 20px;
        border-radius: 18px;
        min-height: 240px;
    }

    .service h3 {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 12px;
    }

    .service li {
        font-size: 14px;
        line-height: 1.6;
    }

    /* ----- Program section (accent) grid ----- */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-accent .grid-2 h3 {
        font-size: clamp(17px, 4vw, 22px);
        margin-bottom: 12px;
    }

    .grid-2 li {
        font-size: 16px;
    }

    .section-note {
        margin-top: 20px;
        padding: 20px 18px;
    }

    .section-note-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .section-note-text {
        font-size: 15px;
    }

    /* ----- O mně ----- */
    #omne p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    /* ----- Kontakt ----- */
    .section-split {
        padding: 56px 0;
    }

    .section-split .grid-2 {
        gap: 32px;
    }

    .section-split .grid-2 > div:first-child {
        text-align: left;
    }

    .contact-info {
        gap: 0;
    }

    .contact-item {
        padding: 14px 0;
        gap: 14px;
        align-items: flex-start;
    }

    .contact-item-content a {
        /* Větší dotyková plocha pro tel/email */
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .mapa {
        max-width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }

    /* ----- Contact form ----- */
    .contact-form-container {
        padding: 32px 24px 28px;
        border-radius: 16px;
        box-shadow: none;
        border: 1px solid rgba(107, 15, 26, 0.10);
    }

    .contact-form .form-row {
        grid-template-columns: 1fr; /* na mobilu pod sebou */
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px; /* zabrání auto-zoomu na iOS */
        min-height: 50px;
        padding: 13px 16px;
    }

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

    .contact-form .btn-submit {
        width: 100%;
        align-self: stretch;
        min-height: 54px;
        font-size: 16px;
        justify-content: center;
    }

    /* ----- Ceník ----- */
    #cenik p {
        font-size: 15px;
        line-height: 1.75;
    }

    #cenik p strong {
        font-size: 17px;
    }

    /* ----- Blog preview ----- */
    .blog-preview {
        margin-top: 24px;
    }

    .blog-preview-item {
        padding: 14px 18px;
    }

    .blog-preview-text {
        font-size: 14px;
    }

    /* ----- Blog articles ----- */
    .blog-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-title {
        font-size: 20px;
    }

    .blog-article-detail {
        padding: 28px 20px;
    }

    .blog-detail-intro {
        padding: 18px;
        font-size: 15px;
    }

    /* ----- Detailní stránka služeb ----- */
    .services-detail .hero {
        padding: 72px 0 80px;
    }

    .services-detail .hero h1 {
        font-size: clamp(28px, 5vw, 40px);
        margin-bottom: 20px;
    }

    .services-detail .hero-lead {
        font-size: 16px;
        padding: 0 16px;
    }

    .services-detail-list {
        gap: 28px;
    }

    .service-detail {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .service-detail h2 {
        font-size: clamp(20px, 3.5vw, 28px);
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .service-intro {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    .service-detail-list li {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 24px;
        line-height: 1.65;
    }

    .service-note {
        margin-top: 20px;
        padding: 16px 18px;
    }

    .service-note p {
        font-size: 14px;
    }

    /* ----- Admin ----- */
    .admin-form-container,
    .admin-articles-list {
        padding: 20px;
    }

    .admin-article-item {
        flex-direction: column;
        gap: 14px;
    }

    .admin-article-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ----- Footer ----- */
    .site-footer {
        padding: 40px 20px max(48px, calc(24px + env(safe-area-inset-bottom, 0)));
        font-size: 14.5px;
    }

    .site-footer p {
        margin-bottom: 6px;
    }
}


/* ------------------------------------------------------------------
   PHONE  ≤ 480px
   ------------------------------------------------------------------ */
@media (max-width: 480px) {
    :root {
        --scroll-margin-header: 72px; /* výška .nav 60px + rezerva */
    }

    .container {
        padding-left:  16px;
        padding-right: 16px;
    }

    /* Menu padding-top přizpůsoben nižšímu headeru */
    nav ul {
        padding-top: max(68px, calc(60px + env(safe-area-inset-top, 0px)));
    }

    /* ----- Nav ----- */
    .nav {
        height: 60px;
        min-height: 60px;
    }

    .logo {
        font-size: 15px;
        max-width: calc(100% - 64px);
    }

    /* ----- Hero ----- */
    .hero {
        padding: 56px 0 68px;
    }

    .hero-text h1 {
        font-size: clamp(22px, 7vw, 28px);
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-lead {
        font-size: 14px;
    }

    .hero .btn {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
    }

    /* ----- Sections ----- */
    .section,
    .section-light,
    .section-accent {
        padding: 48px 0;
    }

    .section h2,
    .section-header h2 {
        font-size: clamp(20px, 5.5vw, 26px);
    }

    .section-intro {
        font-size: 14px;
    }

    /* ----- Services: mobil 1 sloupec ----- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service {
        padding: 20px 16px 18px;
        min-height: 0;
        border-radius: 16px;
    }

    .service h3 {
        font-size: 17px;
    }

    .service li {
        font-size: 15px;
    }

    /* ----- Blog ----- */
    .blog-card-image {
        height: 180px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    /* ----- Contact form ----- */
    .contact-form .btn-submit {
        font-size: 16px;
        min-height: 52px;
    }

    /* ----- Buttons ----- */
    .btn {
        min-height: 48px;
        padding: 13px 22px;
        font-size: 15px;
    }

    /* ----- Blog admin ----- */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .blog-categories {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .pagination-btn {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 38px;
    }

    .admin-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-header-actions .btn {
        width: 100%;
    }

    .admin-articles-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-login {
        padding: 28px 20px;
        margin: 32px auto;
    }
}

/* Scroll animace */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text: střed jen na desktopu – na mobilu bez translateX, aby se text neořezával */
@media (min-width: 901px) {
    .hero .hero-text.reveal {
        transform: translateY(24px) translateX(-50%);
    }
    .hero .hero-text.reveal.visible {
        transform: translateY(0) translateX(-50%);
    }
}

/* ============ DETAILNÍ STRÁNKA PRÁVNÍCH SLUŽEB ============ */

/* Hero sekce pro detailní stránku */
.services-detail .hero {
    padding: 100px 0;
}

.services-detail .hero h1 {
    font-size: clamp(40px, 5vw, 52px);
    margin-bottom: 24px;
}

.services-detail .hero-lead {
    max-width: 800px;
    font-size: 18px;
    line-height: 1.8;
}

/* Seznam detailních služeb */
.services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Jednotlivá služba na detailní stránce */
.service-detail {
    background: var(--white);
    border-radius: 20px;
    padding: 44px 40px;
    border: 1px solid rgba(107, 15, 26, 0.1);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06),
                0 4px 16px rgba(107, 15, 26, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wine-primary), var(--wine-light));
    opacity: 0.8;
}

.service-detail:hover {
    box-shadow: 0 4px 16px rgba(107, 15, 26, 0.1),
                0 8px 32px rgba(107, 15, 26, 0.08);
    transform: translateY(-4px);
    border-color: rgba(107, 15, 26, 0.2);
}

.service-detail h2 {
    font-size: clamp(28px, 3vw, 36px);
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: -0.01em;
    line-height: 1.3;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(107, 15, 26, 0.15);
}

/* Úvodní text služby */
.service-intro {
    font-size: 17px;
    line-height: 1.85;
    color: var(--black-soft);
    margin-bottom: 32px;
    text-align: left;
    max-width: 100%;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Seznam v detailní službě */
.service-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-detail-list li {
    margin-bottom: 16px;
    line-height: 1.75;
    color: var(--black-soft);
    font-size: 15px;
    padding-left: 26px;
    position: relative;
}

.service-detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wine-primary);
    font-weight: bold;
    font-size: 1em;
    line-height: 1.75;
    display: inline-block;
    width: 1em;
    text-align: center;
}

.service-detail-list li b {
    color: var(--wine-primary);
    font-weight: 600;
}

/* Poznámka v službě */
.service-note {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(107, 15, 26, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--wine-primary);
}

.service-note p {
    margin: 0;
    text-align: left;
    font-size: 15px;
    line-height: 1.7;
    color: var(--black-soft);
}

.service-note a {
    color: var(--wine-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-note a:hover {
    color: var(--wine-dark);
    text-decoration: underline;
}
.blog-title-hero {
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-primary) 50%, var(--wine-dark) 100%);
    color: var(--white);
    padding: 80px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-title-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(139, 38, 53, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.blog-title-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.blog-title-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.blog-page-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.blog-page-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 2px;
}

/* SECTION A: HERO FEATURED POST - Professional Design */
.blog-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-hero-featured {
    width: 100%;
}

.blog-hero-card {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(107, 15, 26, 0.08);
}

.blog-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(107, 15, 26, 0.12),
                0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(107, 15, 26, 0.15);
}

.blog-hero-image {
    width: 100%;
    height: 480px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(107, 15, 26, 0.05), rgba(107, 15, 26, 0.02));
}

.blog-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-hero-card:hover .blog-hero-image img {
    transform: scale(1.05);
}

.blog-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 15, 26, 0.06), rgba(107, 15, 26, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine-primary);
    font-size: 48px;
    opacity: 0.4;
}

.blog-hero-content {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, var(--white) 0%, #fafafa 100%);
}

.blog-hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--wine-primary), var(--wine-light));
    color: var(--white);
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    width: fit-content;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.2);
}

.blog-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--black-soft);
    margin: 0 0 20px 0;
    line-height: 1.25;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #666;
    flex-wrap: wrap;
}

.blog-hero-author {
    font-weight: 500;
    color: var(--black-soft);
}

.blog-hero-separator {
    color: #ccc;
    font-weight: 300;
}

.blog-hero-category {
    color: var(--wine-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.blog-hero-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 32px 0;
    font-weight: 400;
}

.blog-hero-excerpt p {
    margin: 0 0 12px 0;
}

.blog-hero-excerpt p:last-child {
    margin-bottom: 0;
}

.blog-hero-excerpt strong {
    font-weight: 600;
}

.blog-hero-excerpt em {
    font-style: italic;
}

.blog-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--wine-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 12px 0;
    position: relative;
}

.blog-hero-link::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.blog-hero-link:hover {
    gap: 14px;
    color: var(--wine-dark);
}

.blog-hero-link:hover::after {
    transform: translateX(4px);
}

/* SECTION B: CATEGORY FILTERS - Professional Design */
.blog-filters-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #f8f8f8;
}

/* Redukce paddingu pro všechny blog sekce */
.blog-hero-container ~ section.section,
section.section.section-light:has(.blog-hero-container),
section.section.section-light:has(.blog-filters-container),
section.section.section-light:has(.blog-slider-container) {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.blog-filters-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 20px 0;
}

.blog-filter-pill {
    padding: 16px 36px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 32px;
    color: var(--black-soft);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.blog-filter-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 15, 26, 0.05), rgba(107, 15, 26, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-filter-pill:hover {
    background: rgba(107, 15, 26, 0.06);
    border-color: rgba(107, 15, 26, 0.25);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.1);
    transform: translateY(-1px);
}

.blog-filter-pill:hover::before {
    opacity: 1;
}

.blog-filter-pill.active {
    background: var(--wine-primary);
    color: var(--white);
    border-color: var(--wine-primary);
    box-shadow: 0 2px 12px rgba(107, 15, 26, 0.25),
                0 1px 4px rgba(107, 15, 26, 0.15);
    transform: translateY(-1px);
}

.blog-filter-pill.active::before {
    opacity: 0;
}

.blog-filter-pill.active:hover {
    background: var(--wine-dark);
    border-color: var(--wine-dark);
    box-shadow: 0 4px 16px rgba(107, 15, 26, 0.3),
                0 2px 8px rgba(107, 15, 26, 0.2);
    transform: translateY(-2px);
}

/* SECTION C: RECENT ARTICLES SLIDER */
.blog-slider-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-slider-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
}

.blog-slider-nav {
    display: flex;
    gap: 12px;
}

.blog-slider-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(107, 15, 26, 0.2);
    background: var(--white);
    color: var(--wine-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.blog-slider-arrow:hover:not(:disabled) {
    background: var(--wine-primary);
    color: var(--white);
    border-color: var(--wine-primary);
}

.blog-slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.blog-slider-wrapper {
    overflow: hidden;
    position: relative;
}

.blog-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
}

.blog-slider-item {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.blog-article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(107, 15, 26, 0.1);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(107, 15, 26, 0.12);
    border-color: rgba(107, 15, 26, 0.2);
}

.blog-article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-article-card:hover .blog-article-image img {
    transform: scale(1.05);
}

.blog-article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 15, 26, 0.08), rgba(107, 15, 26, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine-primary);
    font-size: 32px;
    opacity: 0.5;
}

.blog-article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #888;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.blog-article-date {
    color: #888;
}

.blog-article-separator {
    color: #ccc;
}

.blog-article-author {
    color: #888;
    font-weight: 500;
}

.blog-article-category {
    color: var(--wine-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.blog-article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black-soft);
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    transition: color 0.2s ease;
}

.blog-article-card:hover .blog-article-title {
    color: var(--wine-primary);
}

.blog-article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.blog-article-excerpt p {
    margin: 0 0 8px 0;
}

.blog-article-excerpt p:last-child {
    margin-bottom: 0;
}

.blog-article-excerpt strong {
    font-weight: 600;
}

.blog-article-excerpt em {
    font-style: italic;
}

.blog-article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wine-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s ease;
    width: fit-content;
    margin-top: auto;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.blog-article-link:hover {
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-hero-container {
        padding: 50px 20px;
    }
    
    .blog-hero-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }
    
    .blog-hero-image {
        height: 380px;
        border-radius: 16px 16px 0 0;
    }
    
    .blog-hero-content {
        padding: 48px 40px;
    }
    
    .blog-hero-title {
        font-size: 2.25rem;
    }
    
    .blog-slider-item {
        flex: 0 0 calc(50% - 12px);
    }
    
    .blog-slider-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .blog-hero-container {
        padding: 40px 16px;
    }
    
    .blog-filters-container,
    .blog-slider-container {
        padding: 0 16px;
    }
    
    .blog-hero-card {
        border-radius: 12px;
    }
    
    .blog-hero-image {
        height: 320px;
        border-radius: 12px 12px 0 0;
    }
    
    .blog-hero-content {
        padding: 40px 28px;
    }
    
    .blog-hero-title {
        font-size: 1.875rem;
    }
    
    .blog-hero-excerpt {
        font-size: 16px;
        line-height: 1.65;
    }
    
    .blog-hero-badge {
        padding: 8px 18px;
        font-size: 10px;
        margin-bottom: 24px;
    }
    
    .blog-slider-item {
        flex: 0 0 100%;
    }
    
    .blog-slider-header {
        justify-content: center;
    }
    
    .blog-title-hero {
        padding: 80px 0 100px 0;
    }
    
    .blog-page-title {
        font-size: clamp(36px, 5vw, 56px);
    }
    
    .blog-page-title::after {
        width: 60px;
        bottom: -12px;
    }
    
    .blog-filters-section {
        background: #fafafa;
    }
    
    .blog-category-filters {
        margin-top: 3rem;
        margin-bottom: 2.5rem;
        gap: 10px;
        padding: 20px 0;
    }
    
    .blog-filter-pill {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 28px;
    }
}

/* Blog Article Card - pro Popular a Recent sekce */
.blog-article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(107, 15, 26, 0.1);
    box-shadow: 0 2px 8px rgba(107, 15, 26, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 15, 26, 0.15);
    border-color: rgba(107, 15, 26, 0.2);
}

.blog-article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-article-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-article-card-time {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    font-weight: 500;
}

.blog-article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black-soft);
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-article-card:hover .blog-article-card-title {
    color: var(--wine-primary);
}

.blog-article-card-snippet {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 8px 0 0 0;
}

/* Blog Articles - hlavní grid layout pro články */
#blog-list.blog-articles,
.blog-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    #blog-list.blog-articles,
    .blog-articles {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        align-items: stretch;
    }
}

@media (max-width: 900px) {
    #blog-list.blog-articles,
    .blog-articles {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: stretch;
    }
    
    .blog-articles-horizontal {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-article-card {
        border-radius: 12px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 20px;
        margin: 0 0 10px 0;
    }

    .blog-card-intro {
        font-size: 14px;
        margin: 0 0 16px 0;
    }

    .blog-card-author {
        padding-top: 12px;
        gap: 10px;
    }

    .blog-card-author-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .blog-card-author-name,
    .blog-card-author-separator,
    .blog-card-author-date {
        font-size: 13px;
    }

    .blog-card-image {
        height: 200px;
    }

    /* Vyhledávání a kategorie */
    .blog-search-container {
        padding: 0 16px;
    }

    .blog-search-input {
        padding: 12px 16px 12px 44px;
        font-size: 16px;
    }

    .blog-search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .blog-categories-container {
        gap: 8px;
        justify-content: flex-start;
    }

    .blog-category-chip {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Detailní stránka */
    .blog-detail-container {
        padding: 20px;
    }

    .blog-detail-title {
        font-size: clamp(28px, 6vw, 42px);
        margin: 0 0 16px 0;
    }

    .blog-detail-meta {
        margin: 0 0 32px 0;
    }

    .blog-detail-meta-text {
        font-size: 14px;
    }

    .blog-detail-hero {
        margin: 32px -20px 40px;
        border-radius: 0;
    }

    .blog-detail-content > p:first-of-type {
        font-size: 18px;
        padding-left: 20px;
        margin: 0 0 28px 0;
    }

    .blog-detail-content {
        font-size: 17px;
    }

    .blog-detail-content h2 {
        font-size: 26px;
        margin: 40px 0 20px 0;
    }

    .blog-detail-content h3 {
        font-size: 22px;
        margin: 32px 0 16px 0;
    }

    .blog-detail-content p {
        margin: 0 0 20px 0;
    }
    
    .blog-detail-related-section {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .blog-detail-related-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

/* Blog Empty State */
.blog-empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 60px auto;
}

.blog-empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.blog-empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--wine-primary);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    margin: 0 0 16px 0;
}

.blog-empty-state-text {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Detail článku */
/* Blog Detail Page - Professional Layout */
.blog-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 0 20px;
}

/* Remove top padding from section on blog detail page */
main > section.section.section-light:first-of-type {
    padding-top: 40px;
    padding-bottom: 0;
}

.blog-detail-header-actions {
    margin-bottom: 40px;
}

.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--wine-primary);
    border: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #666;
}

.btn-back-to-blog:hover {
    color: var(--wine-primary);
    transform: translateX(-4px);
}

.blog-detail-article {
    background: var(--white);
    padding: 0 !important;
    max-width: 800px;
    margin: 0 auto 0 auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-detail-article + .blog-detail-related-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Category Badge */
.blog-detail-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--wine-primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Hero Image Container */
.blog-detail-hero {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Když hero je následován přímo content-wrapper (bez perexu), sniž margin-bottom */
.blog-detail-hero:not(:has(+ .blog-detail-intro)) + .blog-detail-content-wrapper {
    margin-top: 0 !important;
}

/* Alternativní řešení pro prohlížeče bez :has() podpory */
.blog-detail-hero + .blog-detail-content-wrapper {
    margin-top: 0 !important;
}

/* Když je mezi hero a content-wrapper intro, vrátíme margin-top */
.blog-detail-hero + .blog-detail-intro + .blog-detail-content-wrapper {
    margin-top: 0 !important;
}

.blog-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--wine-primary);
    border: 2px solid var(--wine-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px;
    text-decoration: none;
}

.btn-back:hover {
    background: var(--wine-primary);
    color: var(--white);
    transform: translateX(-4px);
}

/* blog-article-detail removed - using blog-detail-article instead */

.blog-detail-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--black-soft);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Blog Detail Meta Info */
.blog-detail-meta {
    margin: 0 0 40px 0;
}

.blog-detail-meta-text {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    font-family: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.blog-detail-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--wine-primary), var(--wine-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.blog-detail-author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--black-soft);
}

.blog-detail-separator {
    font-size: 14px;
    color: var(--muted);
    margin: 0 4px;
}

.blog-detail-date {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

.blog-detail-reading-time {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

/* Lead Paragraph (Perex) - Professional Styling */
.blog-detail-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 0 0 0 2rem;
    border-left: 4px solid var(--wine-primary);
    font-size: 1.5rem; /* 24px - zvětšený text */
    line-height: 1.8;
    color: var(--black-soft);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 400;
}

.blog-detail-intro p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.blog-detail-intro strong {
    font-weight: 700;
    color: var(--black-soft);
}

.blog-detail-intro em {
    font-style: italic;
}

.blog-detail-content-wrapper {
    max-width: 800px;
    margin: 0 auto 0 auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 60px !important; /* Odsazení od footeru když není sekce "Mohlo by Vás zajímat" */
    margin-top: 0 !important;
}

/* Když JE sekce "Mohlo by Vás zajímat", odstraň margin-bottom (sekce má svůj margin) */
.blog-detail-content-wrapper + .blog-detail-related-section {
    margin-top: 0 !important;
}

/* Když je v article sekce related, odstraň margin-bottom z content-wrapper */
.blog-detail-article:has(.blog-detail-related-section) .blog-detail-content-wrapper {
    margin-bottom: 0 !important;
}

/* Když perex není, content-wrapper má margin-top 0 (žádný prázdný prostor) */
/* Hero je následován přímo content-wrapper (bez perexu) */
.blog-detail-hero + .blog-detail-content-wrapper {
    margin-top: 0 !important;
}

/* Když perex existuje, content-wrapper má margin-top 0 (perex má svůj margin-bottom) */
.blog-detail-hero + .blog-detail-intro + .blog-detail-content-wrapper {
    margin-top: 0 !important;
}

.blog-detail-content {
    font-size: 18px; /* Default, ale může být přepsáno inline stylem */
    line-height: 1.7;
    color: var(--black-soft);
    margin-top: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
}

/* Preserve formatting from editor - font-size must be preserved exactly */
.blog-detail-content [style*="font-size"],
.blog-detail-content span[style*="font-size"] {
    display: inline;
    font-size: inherit !important;
}

.blog-detail-content p[style*="font-size"] {
    font-size: inherit !important;
}

.blog-detail-content p[style*="text-align"] {
    text-align: inherit;
}

.blog-detail-content p[style*="line-height"] {
    line-height: inherit;
}

.blog-detail-content u {
    text-decoration: underline;
}

/* First paragraph in content - NO border (border is only for perex section) */
.blog-detail-content > p:first-of-type {
    font-size: 18px;
    line-height: 1.7;
    color: var(--black-soft);
    margin: 0 0 24px 0;
    padding-left: 0;
    font-weight: 400;
}

.blog-detail-content p {
    margin: 0 0 24px 0;
    text-align: left;
}

.blog-detail-content p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-detail-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-detail-content p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-detail-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-detail-content h2,
.blog-detail-content h3 {
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    color: var(--black-soft);
    margin: 48px 0 24px 0;
    font-weight: 700;
}

.blog-detail-content h2 {
    font-size: 32px;
    line-height: 1.3;
}

.blog-detail-content h3 {
    font-size: 26px;
    line-height: 1.4;
}

.blog-detail-content strong {
    font-weight: 700;
    color: var(--black-soft);
}

.blog-detail-content em {
    font-style: italic;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 24px 0;
    padding-left: 30px;
}

.blog-detail-content ul:last-child,
.blog-detail-content ol:last-child {
    margin-bottom: 0 !important;
}

.blog-detail-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.blog-detail-content img:last-child {
    margin-bottom: 0 !important;
}

/* Related Articles Section */
.blog-detail-related-section {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 50px;
    padding-bottom: 50px;
}

.blog-detail-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin: 100px 0 5px 0 !important;
}

.blog-detail-related-title {
    font-size: clamp(28px, 4vw, 36px);
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--black-soft);
    margin: 0 0 10px 0;
    text-align: center;
}

.blog-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}

.blog-detail-related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-detail-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-detail-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-detail-related-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-detail-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-detail-related-card:hover .blog-detail-related-image {
    transform: scale(1.05);
}

.blog-detail-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: linear-gradient(135deg, rgba(107, 15, 26, 0.05), rgba(107, 15, 26, 0.02));
}

.blog-detail-related-content {
    padding: 20px;
}

.blog-detail-related-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black-soft);
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: 'Aptos', 'Segoe UI', sans-serif;
    transition: color 0.2s ease;
}

.blog-detail-related-card:hover .blog-detail-related-card-title {
    color: var(--wine-primary);
}

.blog-detail-related-card-date {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 968px) {
    .blog-detail-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .blog-detail-container {
        padding: 20px;
    }
    
    .blog-detail-related-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-detail-hero {
        margin: 32px -20px;
        border-radius: 0;
    }
}

