/* =========================================================
   Duman Studio – portfolio
   Tmavý neonový styl s animovanou mřížkou v pozadí.
   ========================================================= */

:root {
    --bg: #0a1112;
    --bg-elevated: #0f1819;
    --panel: rgba(17, 27, 28, 0.86);
    --panel-strong: #142122;
    --panel-soft: rgba(255, 255, 255, 0.035);
    --line: rgba(170, 225, 218, 0.11);
    --line-strong: rgba(53, 211, 196, 0.3);
    --text: #eef6f5;
    --text-soft: #c3d2d0;
    --muted: #8fa3a1;
    --accent: #35d3c4;
    --accent-bright: #7debe1;
    --accent-soft: rgba(53, 211, 196, 0.1);
    --accent-glow: rgba(53, 211, 196, 0.35);
    --danger: #ff8f8f;
    --danger-soft: rgba(255, 120, 120, 0.1);
    --success: #6fe3b5;

    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Space Grotesk', 'DM Sans', 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --container: 1080px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-pad: clamp(24px, 4.5vw, 44px);
}

/* ---------- Základ ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(53, 211, 196, 0.1), transparent 60%),
        radial-gradient(800px 500px at -10% 40%, rgba(53, 140, 150, 0.07), transparent 60%),
        var(--bg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(4, 8, 9, 0.55) 100%);
    content: '';
    pointer-events: none;
}

.background-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
}

body > *:not(.background-grid) {
    position: relative;
    z-index: 1;
}

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

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-bright);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

h3 {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1em;
    color: var(--muted);
    text-wrap: pretty;
}

strong {
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    color: var(--bg);
    background: var(--accent);
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute !important;
    top: 12px;
    left: 12px;
    z-index: 100 !important;
    padding: 10px 16px;
    color: var(--bg);
    background: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 200ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- Tlačítka ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    font: 700 0.95rem/1 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
}

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

.btn-primary {
    color: #061212;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 22px rgba(53, 211, 196, 0.18);
}

.btn-primary:hover:not(:disabled) {
    color: #061212;
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(53, 211, 196, 0.14), 0 10px 28px rgba(53, 211, 196, 0.24);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line-strong);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--accent-bright);
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-lg {
    min-height: 52px;
    padding: 0 26px;
    font-size: 1rem;
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.icon-btn:hover {
    color: #061212;
    background: var(--accent);
    border-color: var(--accent);
}

.text-btn {
    padding: 4px 0;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.text-btn:hover {
    color: var(--accent);
}

/* ---------- Navigace ---------- */

.site-nav {
    position: sticky !important;
    top: 0;
    z-index: 50 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 18px var(--gutter);
    transition: background 250ms var(--ease), box-shadow 250ms var(--ease), padding 250ms var(--ease);
}

.site-nav::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 17, 18, 0.78);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    content: '';
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity 250ms var(--ease);
}

.site-nav.is-scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-nav.is-scrolled::before {
    opacity: 1;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand span {
    color: var(--accent);
}

.brand-mark {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 14px var(--accent-glow);
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 200ms var(--ease), background 200ms var(--ease);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-cta {
    margin-left: 6px;
    color: var(--accent);
    border: 1px solid var(--line-strong);
}

.nav-links .nav-cta:hover {
    color: #061212;
    background: var(--accent);
}

/* ---------- Rozložení ---------- */

.hero,
main,
.site-footer {
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
}

.panel {
    margin-bottom: 24px;
    padding: var(--section-pad);
    background: linear-gradient(150deg, rgba(22, 35, 36, 0.92), rgba(12, 19, 20, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
    width: 18px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 8px var(--accent-glow);
    content: '';
}

/* Objevení sekcí při scrollu */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Úvod (hero) ---------- */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 24px;
    min-height: min(640px, calc(100vh - 90px));
    margin-top: 8px;
    margin-bottom: 28px;
}

.hero::before {
    position: absolute;
    inset: 0 var(--gutter);
    z-index: -1;
    background:
        radial-gradient(560px 380px at 78% 70%, rgba(53, 211, 196, 0.16), transparent 70%),
        linear-gradient(120deg, rgba(20, 38, 39, 0.94), rgba(11, 18, 19, 0.82));
    border: 1px solid rgba(53, 211, 196, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
    content: '';
}

.hero::after {
    position: absolute;
    right: calc(var(--gutter) + 40px);
    bottom: -200px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(53, 211, 196, 0.12);
    border-radius: 50%;
    content: '';
    pointer-events: none;
    clip-path: inset(0 0 200px 0);
}

.hero-text {
    align-self: center;
    padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 72px) clamp(24px, 4.5vw, 52px);
    animation: rise-in 900ms var(--ease) both;
}

.hero h1 {
    max-width: 12ch;
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 6.6vw, 5.1rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero-lead {
    max-width: 46ch;
    margin-bottom: 30px;
    color: var(--text-soft);
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-self: end;
    justify-content: center;
    padding-right: clamp(0px, 3vw, 32px);
    animation: rise-in 1100ms 120ms var(--ease) both;
}

.hero-visual::before {
    position: absolute;
    bottom: 12%;
    left: 50%;
    width: 72%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(53, 211, 196, 0.22), transparent 66%);
    content: '';
    transform: translateX(-50%);
    filter: blur(8px);
}

.hero-img {
    position: relative;
    display: block;
    width: min(100%, 380px);
    margin-bottom: 1px;
    filter: drop-shadow(0 18px 40px rgba(53, 211, 196, 0.18));
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- O mně a služby ---------- */

.about-section {
    background: linear-gradient(140deg, rgba(23, 40, 41, 0.95), rgba(12, 19, 20, 0.94) 70%);
}

.about-intro {
    max-width: 68ch;
    font-size: 1.03rem;
}

.about-lead {
    color: var(--text);
    font-size: clamp(1.18rem, 2vw, 1.35rem);
    font-weight: 500;
    line-height: 1.4;
}

.about-statement {
    position: relative;
    margin: 32px 0;
    padding: 24px 28px 24px 56px;
    background: var(--accent-soft);
    border-left: 2px solid var(--accent);
    border-radius: 2px var(--radius) var(--radius) 2px;
}

.about-statement::before {
    position: absolute;
    top: 14px;
    left: 18px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    content: '\201E';
}

.about-statement p {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.6;
}

.services-title {
    margin-bottom: 14px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.service-list li:hover {
    background: var(--accent-soft);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.service-list svg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 9px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: rgba(53, 211, 196, 0.08);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
}

.service-list span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.service-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 1rem;
}

.about-outro {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ---------- YouTube kanál ---------- */

.youtube-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px 18px 18px;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(110deg, rgba(27, 47, 48, 0.9), rgba(16, 25, 26, 0.9));
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.youtube-card:hover {
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 14px 34px rgba(53, 211, 196, 0.12);
    transform: translateY(-2px);
}

.youtube-avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: var(--panel-strong);
    border: 2px solid var(--line-strong);
    border-radius: 50%;
}

.youtube-channel-name {
    flex: 1 1 150px;
    min-width: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.youtube-stat {
    min-width: 96px;
    text-align: center;
}

.youtube-stat strong,
.youtube-stat small {
    display: block;
}

.youtube-stat strong {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.youtube-stat small {
    color: var(--muted);
    font-size: 0.78rem;
}

.youtube-arrow {
    color: var(--accent);
    font-size: 1.4rem;
    transition: transform 220ms var(--ease);
}

.youtube-card:hover .youtube-arrow {
    transform: translate(3px, -3px);
}

/* ---------- Videa ---------- */

.videos-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.videos-heading h2 {
    margin-bottom: 0;
}

.video-controls {
    display: flex;
    gap: 8px;
}

.video-track {
    display: flex;
    gap: 16px;
    margin: 24px calc(var(--section-pad) * -1) 0;
    padding: 6px var(--section-pad) 18px;
    overflow-x: auto;
    scroll-padding-inline: var(--section-pad);
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(53, 211, 196, 0.5) transparent;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}

.video-card,
.video-skeleton {
    flex: 0 0 clamp(240px, 30%, 290px);
    scroll-snap-align: start;
}

.video-card {
    display: block;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.video-card:hover {
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(53, 211, 196, 0.15);
    transform: translateY(-4px);
}

.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0c1415;
}

.video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: rgba(6, 18, 18, 0.72);
    border: 1px solid rgba(53, 211, 196, 0.6);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
    backdrop-filter: blur(4px);
}

.video-play::after {
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--accent);
    content: '';
    transform: translate(-50%, -50%);
}

.video-card:hover .video-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-card-body {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
}

.video-card-body strong {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.video-card-body small {
    color: var(--muted);
    font-size: 0.8rem;
}

.video-skeleton {
    height: 250px;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(53, 211, 196, 0.07) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 300% 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -150% 0;
    }
}

.video-status {
    margin: 12px 0;
    font-size: 0.92rem;
}

/* ---------- Recenze ---------- */

.reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    margin-bottom: 26px;
}

.reviews-head h2 {
    margin-bottom: 12px;
}

.reviews-intro {
    max-width: 52ch;
    margin: 0;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-summary > strong {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.review-summary-stars {
    display: flex;
    gap: 2px;
    min-height: 1.3rem;
    color: rgba(255, 255, 255, 0.16);
    font-size: 1.25rem;
    line-height: 1;
}

.summary-star.full {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.summary-star.half {
    color: transparent;
    background: linear-gradient(90deg, var(--accent) 50%, rgba(255, 255, 255, 0.16) 50%);
    -webkit-background-clip: text;
    background-clip: text;
}

.review-summary-count {
    color: var(--muted);
    font-size: 0.85rem;
}

.review-box {
    display: grid;
    gap: 16px;
    max-width: 680px;
    padding: clamp(20px, 3vw, 28px);
    background: rgba(6, 12, 13, 0.4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-box-title {
    margin-bottom: 4px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.review-box-text {
    margin-bottom: 16px;
    font-size: 0.93rem;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
}

.field-label span {
    color: var(--muted);
    font-weight: 400;
}

.field {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(5, 10, 11, 0.6);
    border: 1px solid rgba(170, 225, 218, 0.16);
    border-radius: 10px;
    font: inherit;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.field::placeholder {
    color: #627573;
}

.field:hover {
    border-color: rgba(170, 225, 218, 0.28);
}

.field:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 211, 196, 0.18);
}

.review-comment {
    min-height: 120px;
    resize: vertical;
}


.inline-row {
    display: flex;
    gap: 10px;
}

.inline-row .field {
    flex: 1 1 auto;
}

.inline-row .btn {
    flex: 0 0 auto;
}

.form-status {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.form-status:empty {
    display: none;
}

.form-status.is-error {
    padding: 10px 14px;
    color: #ffc9c9;
    background: var(--danger-soft);
    border: 1px solid rgba(255, 143, 143, 0.28);
    border-radius: var(--radius-sm);
}

.form-status.is-success {
    padding: 10px 14px;
    color: #c7f6e6;
    background: rgba(111, 227, 181, 0.08);
    border: 1px solid rgba(111, 227, 181, 0.26);
    border-radius: var(--radius-sm);
}



.customer-session {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.customer-session .form-status {
    flex: 1 1 280px;
    margin: 0;
}

.review-form {
    display: grid;
    gap: 6px;
}

.review-form .field-label {
    margin-top: 10px;
}

.rating-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.rating-fieldset .field-label {
    margin-top: 0;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: max-content;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    padding: 0 3px;
    color: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 2.1rem;
    line-height: 1;
    transition: color 150ms ease, transform 150ms var(--ease), text-shadow 150ms ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.star-rating label:hover {
    transform: scale(1.12);
}

.star-rating input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.char-count {
    color: var(--muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.review-card,
.admin-review-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.review-card-top strong {
    font-family: var(--font-display);
}

.review-stars {
    color: var(--accent);
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-stars-empty {
    color: rgba(255, 255, 255, 0.16);
}

.review-card p,
.admin-review-card p {
    flex: 1;
    margin: 10px 0;
    color: var(--text-soft);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.review-card time,
.admin-review-card time {
    color: var(--muted);
    font-size: 0.8rem;
}

.review-empty {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.review-empty strong {
    font-size: 1rem;
}

.review-empty .btn {
    justify-self: start;
}

/* ---------- Kontakt ---------- */

.contact-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 300px at 100% 100%, rgba(53, 211, 196, 0.14), transparent 70%),
        linear-gradient(125deg, rgba(23, 52, 53, 0.95), rgba(14, 24, 25, 0.95) 70%);
    border-color: rgba(53, 211, 196, 0.22);
}

.contact-section::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(53, 211, 196, 0.16);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.contact-text {
    max-width: 56ch;
    margin-bottom: 26px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.contact-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 8px 0 18px;
    color: var(--text);
    background: rgba(5, 10, 11, 0.45);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    cursor: pointer;
    font: 500 0.98rem var(--font-body);
    transition: border-color 200ms var(--ease);
}

.contact-mail span {
    padding: 6px 10px;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-mail {
    text-decoration: none;
}

.contact-mail:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ---------- Programy ---------- */

.software-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.software-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 150px;
    padding: 20px 12px;
    color: var(--text);
    text-align: center;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.software-card:hover {
    background: var(--accent-soft);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.software-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

/* ---------- Patička ---------- */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 40px;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

/* ---------- Přihlášení a administrace ---------- */

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px var(--gutter);
}

.auth-card {
    width: min(100%, 420px);
    margin: 0;
}

.auth-card h1 {
    margin-bottom: 24px;
    font-size: clamp(1.7rem, 4vw, 2.1rem);
}

.login-form {
    display: grid;
    gap: 6px;
}

.login-form .field {
    margin-bottom: 10px;
}

.login-form .btn {
    width: 100%;
    margin-top: 6px;
}

.auth-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.92rem;
}

.admin-wrap {
    max-width: calc(820px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 48px var(--gutter);
}

.admin-wrap[hidden] {
    display: none;
}

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

.admin-header h1 {
    margin: 0 0 6px;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.admin-header p {
    margin: 0;
}

.admin-review-list {
    display: grid;
    gap: 12px;
}

.admin-review-card .admin-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-danger {
    color: var(--danger);
    background: transparent;
    border-color: rgba(255, 143, 143, 0.35);
}

.btn-danger:hover:not(:disabled) {
    color: #fff;
    background: #8a3f3f;
    border-color: #8a3f3f;
}

/* ---------- Responzivita ---------- */

@media (max-width: 960px) {
    .software-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .youtube-card {
        flex-wrap: wrap;
    }

    .youtube-channel-name {
        flex-basis: calc(100% - 100px);
    }

    .youtube-stat {
        flex: 1 1 0;
    }

    .youtube-arrow {
        display: none;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 72px;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
    }

    .hero-text {
        padding: 36px 24px 8px;
    }

    .hero h1 {
        max-width: 14ch;
    }

    .hero-visual {
        padding-right: 0;
    }

    .hero-img {
        width: min(72%, 280px);
    }

    .hero::after {
        display: none;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .about-statement {
        padding: 20px 20px 20px 48px;
    }

    .about-statement::before {
        left: 14px;
    }

    .reviews-head {
        align-items: stretch;
        flex-direction: column;
    }

    .review-summary {
        align-self: flex-start;
    }

    .contact-actions > * {
        flex: 1 1 100%;
        justify-content: center;
    }

    .contact-mail {
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .inline-row {
        flex-direction: column;
    }

    .inline-row .btn {
        width: 100%;
    }


    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .software-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .youtube-card {
        padding: 16px;
        gap: 14px 8px;
    }

    .youtube-avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .youtube-stat {
        min-width: 0;
    }

    .youtube-stat strong {
        font-size: 1.2rem;
    }

    .videos-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .video-card,
    .video-skeleton {
        flex-basis: 82%;
    }

    .review-list {
        grid-template-columns: 1fr;
    }

    .review-form-footer .btn {
        flex: 1;
    }

    .contact-mail {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
