/* Development Institute s.r.o. — static site, modern refresh
   Brand accent taken from existing logo: #C9A227 (gold) on charcoal/white */

:root{
  --gold: #b8912a;
  --gold-light: #d5b93e;
  --ink: #1c1c1e;
  --ink-soft: #4a4a4d;
  --paper: #ffffff;
  --paper-soft: #f7f6f3;
  --line: #e7e4dc;
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 2px 18px rgba(0,0,0,.06);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img{ max-width: 100%; display: block; }
a{ color: var(--gold); text-decoration: none; }
a:hover{ color: var(--ink); }
h1,h2,h3,h4{
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2{ font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h3{ font-size: 1.15rem; }
p{ margin: 0 0 1.1em; }
ul{ margin: 0 0 1.1em; padding-left: 1.2em; }
li{ margin-bottom: .35em; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header{
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 100;
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max); margin: 0 auto;
  gap: 18px;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink: 0; }
.brand img{ height: 34px; width: auto; flex-shrink: 0; }
.logo-footer{ height: 30px; width: auto; margin-bottom: 10px; }
.brand-fallback{
  font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--ink);
}
.brand-fallback span{ color: var(--gold); }

nav.main-nav{ display:flex; flex: 1 1 auto; min-width: 0; justify-content: center; }
.nav-list{
  list-style: none; display:flex; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0;
  align-items: center; justify-content: center;
}
.nav-list > li{ position: relative; margin: 0; min-width: 0; flex: 0 1 auto; }
.nav-list > li > a{
  display:block; padding: 10px 10px; color: var(--ink); font-size: .97rem;
  border-radius: 6px; white-space: normal; text-align: center; line-height: 1.25;
  overflow-wrap: break-word; hyphens: auto;
}
.nav-list > li > a:hover, .nav-list > li.active > a{ color: var(--gold); }
.nav-list .submenu{
  list-style:none; margin:0; padding: 8px; position:absolute; left:0; top:100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 240px; display:none; z-index: 50;
}
.nav-list li:hover > .submenu, .nav-list li:focus-within > .submenu{ display:block; }
.nav-list .submenu li a{
  display:block; padding: 8px 12px; color: var(--ink-soft); font-size: .93rem; border-radius: 6px;
}
.nav-list .submenu li a:hover{ background: var(--paper-soft); color: var(--gold); }

.header-right{ flex-shrink: 0; }
.lang-switch{ display:flex; gap: 6px; margin-left: 6px; }
.lang-switch a{
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft);
}
.lang-switch a.active, .lang-switch a:hover{ border-color: var(--gold); color: var(--gold); }

.menu-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor:pointer; align-items:center; justify-content:center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content:""; display:block; width: 20px; height: 2px; background: var(--ink); position:relative;
}
.menu-toggle span::before{ top: -6px; position:absolute; }
.menu-toggle span::after{ top: 6px; position:absolute; }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--paper-soft) 0%, #fff 60%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero-inner{
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center;
}
.hero blockquote{
  margin: 0 0 10px; font-family: Georgia, serif; font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); line-height: 1.5;
}
.hero .cite{ color: var(--ink-soft); font-size: .92rem; }
.hero-art{ justify-self: center; }
.hero-art img{ max-width: 320px; opacity: .92; }

/* ---------- Page header (non-home pages) ---------- */
.page-hero{
  padding: 38px 0 28px; border-bottom: 1px solid var(--line); background: var(--paper-soft);
}
.breadcrumb{ font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }
.breadcrumb a{ color: var(--ink-soft); }
.breadcrumb a:hover{ color: var(--gold); }

/* ---------- Teaser cards (home) ---------- */
.teasers{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding: 46px 0 60px;
}
.teaser-card{
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: box-shadow .2s ease, transform .2s ease;
  display:flex; flex-direction:column;
}
.teaser-card:hover{ box-shadow: var(--shadow); transform: translateY(-2px); }
.teaser-card img{ height: 150px; width:100%; object-fit: cover; background: var(--paper-soft); }
.teaser-body{ padding: 20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.teaser-body h2{ font-size: 1.15rem; margin-bottom: .5em; }
.teaser-body p{ color: var(--ink-soft); font-size: .96rem; flex:1; }
.teaser-body .more{ font-size: .88rem; font-weight: 700; letter-spacing: .02em; }

/* ---------- Service grid (portfolio overview) ---------- */
.service-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  padding: 40px 0 60px;
}
.service-card{
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; display:flex; flex-direction: column;
}
.service-card img{ height: 120px; object-fit: cover; }
.service-card .sc-body{ padding: 18px 20px 20px; flex:1; display:flex; flex-direction:column; }
.service-card h3{ margin-bottom: .45em; }
.service-card p{ color: var(--ink-soft); font-size: .93rem; margin-bottom: .8em; flex:1; }
.service-card .more{ font-size: .85rem; font-weight:700; }

/* ---------- Article layout ---------- */
.article{ padding: 44px 0 64px; }
.article-inner{ display:grid; grid-template-columns: 1fr; gap: 34px; max-width: 780px; }
.article-cover{ border-radius: var(--radius); overflow:hidden; margin-bottom: 6px; border:1px solid var(--line); }
.article-cover img{ width:100%; }
.article-body ul{ padding-left: 1.3em; }
.article-body li::marker{ color: var(--gold); }
.note-box{
  background: var(--paper-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--ink-soft); font-size: .92rem;
}

/* ---------- Fake login (Naše týmy) ---------- */
.login-disclaimer{ color: var(--ink-soft); font-size: .9rem; margin-bottom: 18px; }
.login-box{
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; max-width: 480px;
}
.login-row{ display: flex; align-items: center; gap: 14px; }
.login-row label{ flex: 0 0 150px; color: var(--ink-soft); font-size: .95rem; }
.login-row input{
  flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px;
  font-size: .95rem; font-family: inherit; color: var(--ink);
}
.login-row input:focus{ outline: 2px solid var(--gold-light); outline-offset: 1px; }
.login-box button{
  align-self: flex-start; background: var(--gold); color: #fff; border: 0;
  padding: 10px 22px; border-radius: 6px; font-size: .95rem; font-weight: 700; cursor: pointer;
}
.login-box button:hover{ background: var(--ink); }
.login-links{ margin-top: 18px; display: flex; gap: 22px; }
.login-links a{ font-size: .9rem; }
@media (max-width: 480px){
  .login-row{ flex-direction: column; align-items: flex-start; gap: 6px; }
  .login-row label{ flex: none; }
  .login-row input{ width: 100%; }
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.contact-card{
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: #fff;
}
.contact-card dl{ margin: 0; }
.contact-card dt{ font-weight: 700; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.contact-card dt:first-child{ margin-top: 0; }
.contact-card dd{ margin: 2px 0 0; }
.map-embed{ border-radius: var(--radius); overflow:hidden; border: 1px solid var(--line); min-height: 320px; }
.map-embed iframe{ width:100%; height:100%; min-height: 320px; border:0; display:block; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--line); background: var(--paper-soft); margin-top: 20px; }
.footer-inner{
  padding: 34px 0 28px; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
}
.footer-inner h4{ font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: .8em; font-family: inherit; }
.footer-inner ul{ list-style:none; padding:0; margin:0; }
.footer-inner li{ margin-bottom: .4em; }
.footer-inner a{ color: var(--ink-soft); font-size: .92rem; }
.footer-inner a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid var(--line); padding: 16px 0; font-size: .82rem; color: var(--ink-soft);
  display:flex; justify-content: space-between; flex-wrap:wrap; gap: 8px;
}

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 300; display:flex; gap:16px; align-items:center;
  flex-wrap: wrap;
}
.cookie-banner p{ margin:0; font-size: .88rem; flex: 1 1 260px; color: #eee; }
.cookie-banner a{ color: var(--gold-light); }
.cookie-banner button{
  background: var(--gold); color: var(--ink); border:0; padding: 9px 18px; border-radius: 7px;
  font-weight: 700; cursor:pointer; font-size: .88rem;
}
.cookie-banner.hidden{ display:none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
  .hero-art img{ max-width: 220px; }
  .teasers{ grid-template-columns: 1fr 1fr; }
  .service-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .menu-toggle{ display:flex; }
  nav.main-nav{
    position: fixed; inset: 62px 0 0 0; background: #fff; padding: 10px 20px 30px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease;
    overflow-y: auto; border-top: 1px solid var(--line);
  }
  nav.main-nav.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list{ flex-direction: column; align-items: stretch; }
  .nav-list > li > a{ padding: 12px 6px; font-size: 1.05rem; }
  .nav-list .submenu{ position: static; box-shadow:none; border:0; display:block; padding-left: 14px; background:none; }
  .lang-switch{ margin: 14px 0 0; }
  .teasers{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
}
