/* 2MSoft – samostatný styl hlavní stránky. Barvy lze měnit zde. */
:root {
    --navy: #102b40;
    --navy-deep: #0a1e2d;
    --teal: #087c78;
    --teal-light: #8de0d3;
    --ink: #162b40;
    --muted: #526779;
    --line: #dce5eb;
    --surface: #f4f7f9;
    --white: #fff;
    --width: 1200px;
}

/* Základní typografie a rozložení */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { text-decoration: none; }
a:focus-visible { outline: 3px solid #e5a836; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); letter-spacing: -.045em; margin-bottom: 25px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.035em; margin-bottom: 15px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 72px; }
.eyebrow { font-size: .76rem; font-weight: 750; letter-spacing: .16em; color: var(--teal); margin-bottom: 15px; }
.intro { color: var(--muted); max-width: 680px; margin-bottom: 28px; font-size: 1.08rem; }
.tinted { background: var(--surface); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Hlavička a tlačítka */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { color: var(--navy); font-size: 2rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--teal); }
.brand small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .03em; margin-top: 6px; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 600; }
nav a:hover { color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 20px; border-radius: 7px; background: var(--teal); border: 1px solid var(--teal); color: white; text-decoration: none; font-weight: 650; font-size: .94rem; }
.button:hover { background: #06635f; border-color: #06635f; }
.button.small { padding: 9px 14px; font-size: .82rem; white-space: nowrap; }
.button.outline { background: transparent; border-color: #8295a3; }
.button.outline:hover { background: #ffffff15; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Úvodní blok */
.hero { padding: 85px 0; color: white; background: radial-gradient(ellipse at 90% 0%, #20565f, transparent 55%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 65px; align-items: center; }
.hero .eyebrow, .hero h1 span, .contact .eyebrow { color: var(--teal-light); }
.lead { color: #d3e2ea; font-size: 1.18rem; max-width: 590px; margin-bottom: 32px; }
.hero-panel { background: #ffffff09; border: 1px solid #ffffff2b; border-radius: 12px; padding: 28px; }
.hero-panel > a { display: grid; grid-template-columns: 35px 1fr auto; gap: 12px; align-items: center; color: white; text-decoration: none; padding: 20px 0; border-top: 1px solid #ffffff26; font-weight: 650; }
.hero-panel > a:hover { color: var(--teal-light); }
.hero-panel small { display: block; font-size: .8rem; font-weight: 400; color: #c8d8e0; }
.number { color: var(--teal-light); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* Produkty a služby */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); background: white; border-radius: 11px; padding: 26px; }
.product-grid .card { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; }
.product-grid .featured { grid-column: span 3; background: var(--surface); border-top: 4px solid var(--teal); }
.featured h3 { font-size: 1.75rem; }
.tag { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .045em; margin-bottom: 14px; }
.card p { color: var(--muted); }
.card a:not(.button) { font-weight: 600; font-size: .94rem; }
.more { margin-top: auto; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-grid div { background: white; border: 1px solid var(--line); padding: 17px; border-radius: 7px; font-weight: 600; font-size: .95rem; }
.service-grid div:last-child { grid-column: 1 / -1; }
.photo-card { background: var(--navy); color: white; min-height: 310px; }
.photo-card svg { color: var(--teal-light); margin-bottom: 16px; }
.photo-card p, .photo-card a:not(.button) { color: #d3e2ea; }
.link-list > a { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.link-list > a:hover { text-decoration: underline; }
.link-list small { display: block; color: var(--muted); font-weight: 400; }
.note { font-size: .82rem; margin-top: 15px; margin-bottom: 0; }
.support { border-top: 4px solid var(--teal); }
.support > p:last-child { margin-top: 22px; margin-bottom: 0; }

/* Archiv a kontakt */
.news article { display: grid; grid-template-columns: 125px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.news time { color: var(--muted); font-size: .88rem; }
.news h3 { font-size: 1.1rem; margin-bottom: 5px; }
.news p { color: var(--muted); margin-bottom: 0; }
.contact { padding: 65px 0; background: var(--navy); color: white; }
.contact p { color: #d3e2ea; }
.contact a { color: var(--teal-light); }
.email { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 650; display: inline-block; margin-bottom: 18px; }
.languages { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .85rem; }
.languages span { display: inline-flex; align-items: center; gap: 7px; }
.flag { width: 24px; height: 16px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff30; }
.contact-links { padding-left: 30px; border-left: 1px solid #ffffff30; }
.contact-links > a { display: block; width: fit-content; margin-bottom: 8px; }
.pictograms { display: block; max-width: 100%; height: auto; background: white; border-radius: 7px; margin-top: 18px; }
.footer { color: #c6d5df; background: var(--navy-deep); font-size: .82rem; padding: 25px 0; }
.footer a { color: #c6d5df; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom { justify-content: space-between; margin: 0; }

/* Mobilní telefony a tablety */
@media (max-width: 950px) {
    .nav { flex-wrap: wrap; padding-block: 18px; }
    nav { order: 3; width: 100%; gap: 18px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-grid .card { grid-column: span 3; }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 32px); }
    .section, .hero, .contact { padding-block: 44px; }
    .split, .service-grid { grid-template-columns: 1fr; gap: 18px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-grid .card { grid-column: 1; }
    .card, .hero-panel { padding: 20px; }
    .news article { grid-template-columns: 1fr; gap: 5px; }
    .contact-links { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
