/* Vzhled inspirovaný jednoduchými HTML/CSS weby Barber Republic,
   Relax Dejvice a Malíř Plzeň. Bez frameworků a složitých efektů. */
:root {
  --dark: #202222;
  --dark-muted: #343535;
  --light: #f5f3ee;
  --white: #fff;
  --text: #292a2a;
  --muted: #666867;
  --accent: #c6a46c;
  --line: #dadad5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; color: var(--text); background: var(--white); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.container { width: 90%; max-width: 1120px; margin: 0 auto; }
.skip-link { position: absolute; left: 10px; top: -80px; padding: 10px; background: #fff; z-index: 999; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* HLAVIČKA */
.header { background: #fff; border-bottom: 1px solid #eee; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: #222; font-size: 25px; font-weight: 800; letter-spacing: .4px; line-height: 1; white-space: nowrap; }
.logo span { color: #ac8750; }
.logo small { margin-top: 8px; font-size: 9px; font-weight: bold; letter-spacing: 2px; color: #777; }
.header nav { display: flex; align-items: center; gap: 35px; }
.header nav a { font-size: 14px; font-weight: bold; text-decoration: none; transition: color .2s; }
.header nav a:hover, .header-email:hover { color: #9b793e; }
.header-email { font-size: 13px; font-weight: bold; text-decoration: none; border-bottom: 1px solid #bbb; padding-bottom: 4px; white-space: nowrap; }
.header-email span { margin-left: 5px; }

/* ÚVOD */
.hero { background: var(--dark); color: white; }
.hero-inner { min-height: 540px; padding-block: 105px 105px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-label { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: bold; letter-spacing: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
.hero h1 { margin: 0 0 23px; font-size: 66px; font-size: clamp(42px, 6.1vw, 73px); letter-spacing: -2px; font-weight: 700; }
.hero h1 span { color: #d6bc92; }
.hero-description { max-width: 620px; font-size: 17px; line-height: 1.8; color: #e0e0da; }
.hero-actions { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 49px; padding: 12px 23px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: bold; transition: background-color .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #1c1c1a; border: 1px solid var(--accent); background: var(--accent); }
.btn-primary:hover { background: #d7b87d; }
.btn-secondary { border: 1px solid #777; background: transparent; color: white; }
.btn-secondary:hover { border-color: white; }

/* SEKCE */
.section { padding-block: 85px; }
.section-label { font-size: 12px; font-weight: bold; color: #907449; letter-spacing: 2px; margin-bottom: 13px; }
h2 { font-size: 36px; font-size: clamp(29px, 3.4vw, 39px); letter-spacing: -.6px; margin-bottom: 20px; }
.intro { background: var(--light); }
.intro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.intro-layout h2 { margin-bottom: 0; }
.intro-text p { font-size: 16px; color: #535550; margin-bottom: 16px; max-width: 545px; }
.intro-text p:last-child { margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 35px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin-bottom: 3px; max-width: 360px; font-size: 15px; }
.services { background: white; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service { padding: 28px 5px 0 0; border-top: 2px solid var(--dark); }
.service-index { font-size: 13px; color: #997d50; font-weight: bold; }
.service h3 { margin: 15px 0 10px; font-size: 21px; }
.service p { color: var(--muted); font-size: 15px; max-width: 300px; }

/* UKÁZKY PROJEKTŮ */
.portfolio { background: var(--light); }
.portfolio-head { margin-bottom: 33px; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { min-width: 0; background: #fff; border: 1px solid #e2e0dc; border-radius: 6px; overflow: hidden; transition: transform .26s ease, box-shadow .26s ease; }
.project:hover, .project:focus-within { transform: translateY(-7px); box-shadow: 0 15px 28px rgba(25, 25, 25, .10); }
.project-preview { position: relative; display: block; width: 100%; aspect-ratio: 1.43; overflow: hidden; background: #ddd; border-bottom: 1px solid #e5e5e5; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.project:hover .project-preview img, .project:focus-within .project-preview img { transform: scale(1.045); }
.preview-open { position: absolute; bottom: 16px; right: 16px; padding: 9px 13px; background: #212323; color: #fff; border-radius: 3px; font-size: 12px; font-weight: bold; opacity: 0; transform: translateY(5px); transition: all .2s; }
.project:hover .preview-open, .project:focus-within .preview-open { opacity: 1; transform: translateY(0); }
.project-content { padding: 24px 22px 23px; }
.project-type { font-size: 10px; font-weight: bold; letter-spacing: 1.5px; color: #927341; margin-bottom: 9px; }
.project h3 { font-size: 23px; margin: 0 0 12px; }
.project-content > p:not(.project-type) { font-size: 14px; color: var(--muted); line-height: 1.7; min-height: 74px; }
.project-links { display: flex; align-items: center; gap: 22px; margin-top: 21px; padding-top: 16px; border-top: 1px solid #ededeb; flex-wrap: wrap; }
.project-links a { font-size: 13px; text-decoration: none; font-weight: bold; }
.project-links a:hover { text-decoration: underline; }
.project-links a:first-child { color: #927341; }
.portfolio-note { color: #777; font-size: 13px; margin: 28px 0 0; }

/* KONTAKT */
.contact { background: #fff; }
.contact-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 85px; align-items: start; }
.contact-left > p:not(.section-label) { max-width: 390px; color: var(--muted); font-size: 16px; }
.contact-left h2 { margin-bottom: 23px; }
.email-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 20px; padding-bottom: 5px; border-bottom: 2px solid #c0a176; text-decoration: none; font-weight: bold; font-size: 19px; }
.email-link:hover { color: #907449; }
form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: bold; }
.field input, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #cececc; border-radius: 4px; color: #222; background: #fff; outline: none; font-size: 14px; }
.field input:focus, .field textarea:focus { border-color: #a88854; box-shadow: 0 0 0 2px rgba(198, 164, 108, .2); }
.field textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 2px; justify-self: start; }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-status { font-size: 14px; min-height: 16px; margin: 0; }
.form-status[data-status="success"] { color: #24713b; }
.form-status[data-status="error"] { color: #a43f32; }

.footer { background: var(--dark); color: #d4d4d2; }
.footer-inner { min-height: 94px; display: flex; gap: 20px; align-items: center; justify-content: space-between; font-size: 13px; }
.footer a { color: #d4d4d2; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .header-email { display: none; }
  .projects { gap: 14px; }
  .project-content { padding: 20px 17px; }
  .contact-layout { gap: 35px; }
}
@media (max-width: 680px) {
  .container { width: 90%; max-width: 520px; }
  .header-inner { flex-direction: column; justify-content: center; gap: 19px; padding-block: 19px; }
  .header nav { justify-content: center; gap: 21px; flex-wrap: wrap; }
  .header nav a { font-size: 13px; }
  .logo { align-items: center; font-size: 23px; }
  .hero-inner { min-height: auto; padding-block: 76px 82px; }
  .hero h1 { letter-spacing: -1.5px; font-size: 46px; font-size: clamp(40px, 9vw, 58px); }
  .hero-label { font-size: 10px; letter-spacing: 1.3px; }
  .hero-description { font-size: 15px; }
  .hero-actions { align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section { padding-block: 60px; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 12px; }
  .intro-layout, .service-grid, .projects, .contact-layout { grid-template-columns: 1fr; }
  .intro-layout { gap: 23px; }
  .service-grid { gap: 25px; }
  .service { padding-top: 20px; }
  .service p { max-width: none; }
  .projects { gap: 26px; }
  .project-content > p:not(.project-type) { min-height: auto; }
  .project-preview { aspect-ratio: 1.53; }
  .preview-open { opacity: 1; transform: none; bottom: 10px; right: 10px; }
  .contact-layout { gap: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { padding-block: 27px; flex-wrap: wrap; gap: 8px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
