/* ============================================================
   ELPROINVEST s.r.o. – Hlavní stylesheet
   Moderní redesign
   ============================================================ */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lexend:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary:       #1d4ed8;
    --primary-dark:  #1e3a8a;
    --primary-light: #3b82f6;
    --accent:        #e63946;
    --accent-dark:   #c1121f;
    --anthracite:    #1e293b;
    --grey-dark:     #334155;
    --grey-mid:      #64748b;
    --grey-light:    #e2e8f0;
    --grey-ultra:    #f8fafc;
    --white:         #ffffff;
    --text:          #0f172a;
    --text-light:    #475569;
    --border:        #e2e8f0;
    --shadow:        0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg:     0 4px 8px rgba(0,0,0,0.05), 0 12px 40px rgba(0,0,0,0.10);
    --radius:        8px;
    --radius-lg:     14px;
    --transition:    0.2s ease;
    --font-heading:  'Lexend', 'Arial', sans-serif;
    --font-body:     'Inter', 'Arial', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--anthracite);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* --- Layout helpers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 88px 0; }
.section--grey { background: var(--grey-ultra); }
.section--dark { background: var(--anthracite); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    color: var(--anthracite);
}

.section__header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section__header p {
    margin-top: 14px;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    line-height: 1;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(29,78,216,0.35);
}

.btn--accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn--accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230,57,70,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.06);
}

/* Top bar */
.header-topbar {
    background: var(--anthracite);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 7px 0;
    letter-spacing: 0.01em;
}

.header-topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.header-topbar a {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.header-topbar a:hover { color: #fff; }

.topbar-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* Main header */
.header-main {
    background: var(--white);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 32px;
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 72px;
    width: auto;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.site-logo__claim {
    font-size: 0.7rem;
    color: var(--grey-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.main-nav__item { position: relative; }

.main-nav__link {
    display: block;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--grey-dark);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav__link:hover {
    color: var(--primary);
    background: #eff6ff;
}

.main-nav__link.active {
    color: var(--primary);
    background: #dbeafe;
    font-weight: 600;
}

.main-nav__cta {
    margin-left: 8px;
    padding: 9px 20px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius);
    font-weight: 600;
}
.main-nav__cta:hover,
.main-nav__cta.active {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 16px rgba(29,78,216,0.3);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--anthracite);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    overflow: hidden;
}

/* Mesh gradient background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(59,130,246,0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(29,78,216,0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0f2457 0%, #1e3a8a 40%, #1d4ed8 100%);
    pointer-events: none;
}

/* Subtle grid lines */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 20px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: #93c5fd;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.hero__desc {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.75;
    max-width: 560px;
}

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

/* Decorative circuit element */
.hero__deco {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    opacity: 0.05;
    pointer-events: none;
}

/* Stats bar — kept for possible re-use */
.hero-stats {
    background: rgba(255,255,255,0.06);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.hero-stat__value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat__label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================================
   DIVISIONS OVERVIEW (Homepage grid)
   ============================================================ */
.divisions {
    padding: 88px 0;
}

.divisions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.division-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.division-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.division-card:hover::before { transform: scaleX(1); }

.division-card__icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}

.division-card:hover .division-card__icon {
    background: var(--primary);
}

.division-card__icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
    transition: fill var(--transition);
}

.division-card:hover .division-card__icon svg {
    fill: var(--white);
}

.division-card h3 {
    font-size: 1.15rem;
    color: var(--anthracite);
    margin: 0;
}

.division-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
    margin: 0;
    line-height: 1.6;
}

.division-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 4px;
}

.division-card__link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform var(--transition);
}

.division-card:hover .division-card__link svg {
    transform: translateX(4px);
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
    background: var(--anthracite);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.about-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 90% 50%, rgba(29,78,216,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 20%, rgba(59,130,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about-strip .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-strip h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 20px;
}

.about-strip p { color: rgba(255,255,255,0.75); }

.about-strip__content {
    grid-column: 1 / -1;
    max-width: 900px;
}

.about-strip__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.highlight-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
}

.highlight-item strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f87171;
    margin-bottom: 4px;
    font-weight: 600;
}

.highlight-item span {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

/* ============================================================
   PAGE HEADER (Inner pages)
   ============================================================ */
.page-header {
    background: var(--primary-dark);
    padding: 20px 0 !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(59,130,246,0.2) 0%, transparent 60%),
        linear-gradient(135deg, #0f2457 0%, #1e3a8a 100%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.page-header p {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.5;
    max-width: 600px;
}

/* ============================================================
   CONTENT PAGE LAYOUT
   ============================================================ */
.content-page {
    padding: 72px 0;
}

.content-page .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 56px;
    align-items: start;
}

.content-main h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    color: var(--anthracite);
}

.content-main h3 {
    font-size: 1.15rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.content-main p { color: var(--text-light); }

/* Styled list */
.styled-list {
    margin: 16px 0 24px;
}

.styled-list li {
    padding: 9px 0 9px 28px;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
}

.styled-list li:last-child { border-bottom: none; }

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231d4ed8'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
}

/* About page enhancements */
.about-services-intro {
    margin: 4px 0 0;
    color: var(--text-light);
    font-size: 0.93rem;
}

.about-services-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-service-link {
    --service-accent: #1d4ed8;
    position: relative;
    display: block;
    text-decoration: none;
    border: 1px solid var(--border);
    border-top: 3px solid var(--service-accent);
    border-radius: var(--radius-lg);
    padding: 16px 18px 15px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.about-service-link::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,78,216,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about-service-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-color: var(--border);
}

.about-service-link__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--service-accent);
}

.about-service-link h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--anthracite);
    line-height: 1.3;
}

.about-service-link p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.55;
    min-height: 3.1em;
}

.about-service-link__cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--service-accent);
}

.about-service-link__cta svg {
    width: 15px;
    height: 15px;
    transition: transform var(--transition);
}

.about-service-link:hover .about-service-link__cta svg {
    transform: translateX(3px);
}

.about-service-link--projekce { --service-accent: #1d4ed8; }
.about-service-link--montaze  { --service-accent: #0369a1; }
.about-service-link--rozvadece { --service-accent: #92400e; }
.about-service-link--trafos   { --service-accent: #065f46; }
.about-service-link--energie  { --service-accent: #7c2d12; }

.about-service-link--energie {
    grid-column: 1 / -1;
}

.about-timeline {
    margin-top: 14px;
    border-left: 3px solid var(--primary-light);
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.about-timeline__item {
    position: relative;
    background: var(--grey-ultra);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.about-timeline__item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.about-timeline__year {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.about-timeline__text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.about-management-item {
    background: var(--grey-ultra);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.about-management-item strong {
    display: block;
    color: var(--anthracite);
    margin-bottom: 4px;
    font-weight: 600;
}

.about-management-item span {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Info box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 24px 0;
}

.info-box strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 6px;
}

/* Sidebar */
.content-sidebar { position: sticky; top: 100px; }

.sidebar-card {
    background: var(--grey-ultra);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card--azvn {
    text-align: center;
    padding: 20px;
    background: #f0f7ff;
    border-color: #bfdbfe;
}

.sidebar-card--azvn .azvn-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

.sidebar-card--azvn .azvn-logo-wrap img {
    display: block;
    width: 120px;
    height: auto;
}

.sidebar-card--azvn .azvn-caption {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.sidebar-card--azvn .azvn-caption strong {
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.sidebar-card h4 {
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--grey-mid);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.sidebar-contact-item:last-child { border-bottom: none; }

.sidebar-contact-item svg {
    width: 17px;
    height: 17px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-contact-item a { color: var(--text); font-weight: 500; }
.sidebar-contact-item a:hover { color: var(--primary); }

.sidebar-nav { list-style: none; }
.sidebar-nav li + li { margin-top: 3px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #dbeafe;
    color: var(--primary-dark);
    padding-left: 16px;
    font-weight: 600;
}

/* ============================================================
   CARDS GRID (Services)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__img {
    height: 200px;
    background: var(--grey-light);
    overflow: hidden;
    position: relative;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__body { padding: 24px; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.9rem; }

/* ============================================================
   PRODEJ EL. ENERGIE – ACCORDION
   ============================================================ */
.accordion { margin-top: 32px; }

.accordion__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    background: var(--grey-ultra);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--anthracite);
    text-align: left;
    transition: background var(--transition);
}

.accordion__trigger:hover { background: #e8f0fe; color: var(--primary-dark); }

.accordion__trigger.is-open { background: var(--primary); color: var(--white); }

.accordion__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform var(--transition);
}

.accordion__trigger.is-open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__body {
    display: none;
    padding: 20px 22px;
    background: var(--white);
}

.accordion__body.is-open { display: block; }

/* Documents table */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.docs-table th {
    background: var(--anthracite);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.docs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.docs-table tr:last-child td { border-bottom: none; }
.docs-table tr:hover td { background: var(--grey-ultra); }

.docs-table a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
}

.docs-table a:hover { color: var(--accent); }

.docs-table a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ============================================================
   DISTRIBUTIONS / LDS TABLE
   ============================================================ */
.lds-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.lds-table th {
    background: var(--anthracite);
    color: var(--white);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    letter-spacing: 0.03em;
}

.lds-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.lds-table tr:nth-child(even) td { background: var(--grey-ultra); }

/* ============================================================
   REFERENCES (Projekce)
   ============================================================ */
.references-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.reference-tag {
    padding: 7px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    padding: 72px 0;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.contact-company,
.contact-block--elpro {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px 20px 14px;
}

.contact-company__title,
.contact-block__company {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--anthracite);
}

.contact-company__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.contact-block h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.contact-detail {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail__icon {
    width: 22px;
    height: 22px;
    background: #dbeafe;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail__icon svg {
    width: 11px;
    height: 11px;
    fill: var(--primary);
}

.contact-detail__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-mid);
    margin-bottom: 1px;
    font-weight: 500;
}

.contact-detail__value {
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--text);
    font-weight: 600;
}

.contact-detail__value a { color: var(--text); }
.contact-detail__value a:hover { color: var(--primary); }

/* Contact people cards */
.contact-people {
    margin-bottom: 56px;
}

.contact-people h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    color: var(--anthracite);
}

.contact-people__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.contact-person-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-person-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-person-card__role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-mid);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-person-card__org-lines {
    margin-bottom: 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-mid);
    font-weight: 600;
    line-height: 1.35;
}

.contact-person-card__org-lines span {
    display: block;
}

.contact-person-card__position {
    margin-bottom: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-mid);
    font-weight: 600;
}

.contact-person-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--anthracite);
    margin-bottom: 4px;
}

.contact-person-card__mail {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-person-card__mail:hover {
    color: var(--accent);
}

/* Contact form */
.contact-form-wrap {
    background: var(--grey-ultra);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    border: 1px solid var(--border);
}

.contact-form-wrap h3 {
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group--full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.10);
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--grey-mid);
    margin-top: 12px;
}

/* Map */
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

.map-wrap iframe {
    display: block;
    width: 100%;
}

/* ============================================================
   TRANSFORMATORS – special features
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}

.feature-item {
    text-align: center;
    padding: 28px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all var(--transition);
}

.feature-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 20px rgba(29,78,216,0.08);
    transform: translateY(-2px);
}

.feature-item__icon {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: background var(--transition);
}

.feature-item:hover .feature-item__icon {
    background: var(--primary);
}

.feature-item__icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    transition: fill var(--transition);
}

.feature-item:hover .feature-item__icon svg {
    fill: var(--white);
}

.feature-item h4 {
    font-size: 0.95rem;
    color: var(--anthracite);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.transformer-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 10px;
}

.transformer-offer-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 18px 18px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.transformer-offer-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.transformer-offer-card__header h4 {
    margin: 0;
    font-size: 0.97rem;
    color: var(--anthracite);
    line-height: 1.3;
}

.transformer-offer-card__price {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--accent-dark);
    letter-spacing: 0;
    font-weight: 700;
}

.transformer-offer-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.transformer-offer-card__meta div {
    background: var(--grey-ultra);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 10px;
}

.transformer-offer-card__meta span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-mid);
    margin-bottom: 3px;
    font-weight: 500;
}

.transformer-offer-card__meta strong {
    font-size: 0.85rem;
    color: var(--text);
}

.transformer-offer-card__note {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--text-light);
}

.transformer-offers-note {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--grey-mid);
}

.transformer-offers-section {
    margin-bottom: 18px;
}

.transformer-offers-section > h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.transformer-offers-intro {
    margin: 0 0 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.transformer-offers-toolbar {
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.transformer-offers-toolbar__meta {
    font-size: 0.88rem;
    color: var(--text-light);
}

.transformer-offers-toolbar__meta strong {
    color: var(--anthracite);
}

.transformer-offers-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.transformer-offers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 0.84rem;
}

.transformer-offers-table thead th {
    background: var(--anthracite);
    color: var(--white);
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
}

.transformer-offers-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.4;
}

.transformer-offers-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.transformer-offers-table tbody tr:hover {
    background: #eff6ff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.65);
    padding-top: 64px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .site-logo__name {
    color: var(--white);
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}
.footer-brand .site-logo__claim { color: rgba(255,255,255,0.4); }

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav { list-style: none; }
.footer-nav li + li { margin-top: 7px; }
.footer-nav a {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}
.footer-nav a::before {
    content: '›';
    color: var(--accent);
    font-size: 1.1em;
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-contact-item {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.6);
    align-items: flex-start;
}

.footer-contact-item svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
    .content-page .container { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .divisions { padding: 56px 0; }

    .header-topbar { display: none; }

    .main-nav { display: none; }
    .main-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border-top: 1px solid var(--border);
        padding: 12px 16px;
    }
    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .main-nav__item { width: 100%; }
    .main-nav__link { padding: 10px 14px; }
    .main-nav__cta { margin-left: 0; text-align: center; justify-content: center; }

    .nav-toggle { display: flex; }

    .hero { min-height: 440px; }
    .hero__deco { display: none; }

    .hero-stats .container { grid-template-columns: repeat(2, 1fr); }

    .divisions__grid { grid-template-columns: 1fr; }
    .about-strip .container { grid-template-columns: 1fr; gap: 32px; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-company,
    .contact-block--elpro { padding: 16px 16px 12px; }
    .contact-company__grid { grid-template-columns: 1fr; gap: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .about-management-grid,
    .about-services-grid { grid-template-columns: 1fr; }
    .about-service-link--energie { grid-column: auto; }
    .transformer-offers-grid { grid-template-columns: 1fr; }
    .transformer-offers-toolbar { flex-direction: column; align-items: flex-start; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .page-header { padding: 14px 0 !important; }
    .contact-form-wrap { padding: 24px 20px; }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body.print-offers .site-header,
    body.print-offers .page-header,
    body.print-offers .content-sidebar,
    body.print-offers .site-footer,
    body.print-offers .footer-bottom,
    body.print-offers .footer-main,
    body.print-offers .no-print,
    body.print-offers .features-grid,
    body.print-offers .styled-list,
    body.print-offers .info-box,
    body.print-offers h2,
    body.print-offers h3:not(.transformer-offers-section h3),
    body.print-offers p {
        display: none !important;
    }

    body.print-offers .content-page {
        padding: 0 !important;
    }

    body.print-offers .content-page .container {
        display: block !important;
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body.print-offers .content-main {
        width: 100% !important;
    }

    body.print-offers .transformer-offers-section {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.print-offers .transformer-offers-section h3 {
        margin: 0 0 8px 0 !important;
        font-size: 14pt !important;
    }

    body.print-offers .transformer-offers-note {
        margin-top: 6px !important;
        font-size: 9pt !important;
        color: #333 !important;
    }

    body.print-offers .transformer-offers-table-wrap {
        overflow: visible !important;
        border: 1px solid #aaa !important;
    }

    body.print-offers .transformer-offers-table {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 8.5pt !important;
    }

    body.print-offers .transformer-offers-table thead th {
        position: static !important;
        background: #eee !important;
        color: #000 !important;
        font-size: 8pt !important;
        padding: 6px 7px !important;
        border-bottom: 1px solid #999 !important;
    }

    body.print-offers .transformer-offers-table tbody td {
        padding: 5px 7px !important;
        border-bottom: 1px solid #ccc !important;
    }

    body.print-offers .transformer-offers-table tbody tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
    .hero__actions { flex-direction: column; }
    .about-strip__highlights { grid-template-columns: 1fr; }
    .divisions__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--grey-mid); }
.font-heading { font-family: var(--font-heading); }
.mt-0 { margin-top: 0; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
}

.cookie-consent__inner {
    max-width: 940px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent__text {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    flex: 1 1 300px;
}

.cookie-consent__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
}

.cookie-consent__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
