/* ==========================================================================
   PROMĚNNÉ A ZÁKLADNÍ NASTAVENÍ
   ========================================================================== */
:root { 
  --cream: #f7f6f2; 
  --ink: #0a0a0a; 
  --red: #ed1c2e; 
  --line: rgba(10, 10, 10, 0.12);
}

* { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body { 
  margin: 0; 
  background: var(--cream); 
  color: var(--ink); 
  font-family: sans-serif; 
  -webkit-font-smoothing: antialiased;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

/* ==========================================================================
   LAYOUT A HLAVIČKA
   ========================================================================== */
.site-shell { 
  min-height: 100vh; 
  padding: 0 clamp(16px, 3.8vw, 56px) clamp(20px, 2.5vw, 40px); 
  overflow-x: hidden; 
}

.site-header { 
  height: clamp(82px, 8.5vw, 120px); 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: clamp(16px, 2vw, 28px); 
  max-width: 1600px; 
  margin: 0 auto; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  line-height: 1.1;
  white-space: nowrap; 
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.logo b { 
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--red); 
}

.logo-mark { 
  display: inline-block;
  width: clamp(24px, 2vw, 30px); 
  height: clamp(24px, 2vw, 30px); 
  background-image: url('img/icons/wrench.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.main-nav { 
  display: flex; 
  gap: clamp(20px, 3.2vw, 52px); 
  font-size: 14px; 
  font-weight: 600; 
  margin-left: auto; 
  margin-right: clamp(16px, 4vw, 64px); 
}

.main-nav a { 
  transition: color .2s ease; 
  white-space: nowrap;
}

.main-nav a:hover { 
  color: var(--red); 
}

/* Tlačítka CTA */
.header-cta, 
.hero-cta { 
  background: var(--red); 
  color: #fff; 
  border: none;
  border-radius: 999px; 
  font-size: 14px; 
  font-weight: 700; 
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 14px; 
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease; 
}

.header-cta { 
  padding: clamp(12px, 1.1vw, 16px) clamp(18px, 1.6vw, 24px); 
  flex-shrink: 0;
}

.header-cta span, 
.hero-cta span { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1; 
}

.header-cta:hover, 
.hero-cta:hover { 
  transform: translateY(-2px); 
  background: #c91525; 
}

/* ==========================================================================
   HERO SEKCE (PLNĚ RESPONZIVNÍ PRO 720p, NOTEBOOKY I VELKÉ MONITORY)
   ========================================================================== */
.hero { 
  max-width: 1600px; 
  margin: 0 auto; 
  height: clamp(500px, calc(100svh - clamp(104px, 10.5vw, 155px)), 865px);
  position: relative; 
  overflow: hidden; 
  background: var(--ink); 
  border-radius: clamp(32px, 4vw, 58px); 
  color: #fff; 
  isolation: isolate; 
  display: flex;
  align-items: center;
  padding: clamp(36px, 5vh, 64px) 7.2%;
}

.hero-background { 
  position: absolute; 
  inset: 0; 
  z-index: -1; 
  background: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 34%, rgba(10,10,10,0.45) 60%, rgba(10,10,10,0.12) 100%), 
              url("img/background.jpg") 78% 58% / cover no-repeat; 
  opacity: 1; 
}

.hero-content { 
  position: relative;
  z-index: 2; 
  max-width: 610px; 
  width: 100%;
}

.eyebrow { 
  color: #d9d9d9; 
  font-size: 11px; 
  letter-spacing: .23em; 
  font-weight: 700; 
  margin: 0 0 clamp(14px, 2.2vh, 25px); 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  text-transform: uppercase;
}

.eyebrow span { 
  width: 34px; 
  height: 1px; 
  background: var(--red); 
  flex-shrink: 0;
}

.eyebrow-dark {
  color: rgba(10, 10, 10, 0.65);
}

h1 { 
  font-size: clamp(42px, min(5.4vw, 9.2vh), 84px); 
  line-height: 0.95; 
  letter-spacing: -.05em; 
  margin: 0; 
  font-weight: 900; 
}

h1 em,
h2 em { 
  color: var(--red); 
  font-style: normal; 
}

h2 {
  font-size: clamp(32px, 3.8vw, 64px);
  line-height: 0.98;
  letter-spacing: -.045em;
  margin: 0;
  font-weight: 900;
}

.hero-copy { 
  max-width: 390px; 
  color: #c8c8c8; 
  font-size: clamp(14px, 1.1vw, 15px); 
  line-height: 1.5; 
  margin: clamp(16px, 2.6vh, 31px) 0 clamp(20px, 3vh, 35px); 
}

.hero-cta { 
  padding: clamp(15px, 1.8vh, 20px) clamp(22px, 2vw, 27px); 
}

/* ==========================================================================
   SPOLEČNÉ ROZESTUPY SEKCÍ
   ========================================================================== */
.section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(64px, 7.5vw, 125px) clamp(12px, 4%, 64px);
}

/* ==========================================================================
   O MNĚ + RECENZE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5.5vw, 90px);
  align-items: start;
}

.about-lead {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.about-body p:not(.about-lead) {
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.65;
  color: rgba(10, 10, 10, 0.78);
  margin: 0 0 34px;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.about-facts b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.about-facts span {
  font-size: 14px;
  color: rgba(10, 10, 10, 0.65);
}

/* Recenze pod O mně */
.reviews-wrap {
  margin-top: clamp(48px, 5.5vw, 88px);
  padding-top: clamp(36px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: 10px;
}

.review-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 560px;
}

.review-stars {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.85);
  margin: 0 0 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.review-author b {
  font-weight: 800;
}

/* ==========================================================================
   SLUŽBY
   ========================================================================== */
.services-section {
  padding-top: 20px;
}

.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.services-intro {
  max-width: 360px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.7);
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: clamp(48px, 5vw, 70px) 1fr auto;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(22px, 2.2vw, 28px) 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s ease;
}

.service-row:hover {
  padding-left: 18px;
}

.service-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
}

.service-name h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-name p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.68);
  max-width: 640px;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(10, 10, 10, 0.75);
  white-space: nowrap;
}

/* ==========================================================================
   KONTAKT (ČERNÝ ZAOBLENÝ BLOK JAKO HERO)
   ========================================================================== */
.contact-box {
  max-width: 1600px;
  margin: 20px auto 0;
  background: var(--ink);
  color: #fff;
  border-radius: clamp(32px, 4vw, 58px);
  padding: clamp(44px, 5.5vw, 90px) 7.2%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5.5vw, 96px);
  align-items: start;
}

.contact-lead {
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin: 24px 0 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-big {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color .2s ease;
  word-break: break-word;
}

.contact-link-big:hover {
  color: var(--red);
}

.contact-link {
  font-size: 16px;
  font-weight: 600;
  color: #d9d9d9;
  transition: color .2s ease;
  word-break: break-word;
}

.contact-link:hover {
  color: var(--red);
}

.contact-address {
  margin: 18px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1.6;
  color: #d9d9d9;
}

.contact-address span {
  display: inline-block;
  margin-top: 4px;
  font-size: 13.5px;
  color: #9a9a9a;
}

/* Formulář */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b5b5b5;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.09);
}

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 2% 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(10, 10, 10, 0.58);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--red);
}

.back-top {
  color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   SPECIFICKÁ OPTIMALIZACE PRO 720p / NÍZKOU VÝŠKU OKNA (1280×720, 1366×768)
   ========================================================================== */
@media (max-height: 780px) and (min-width: 801px) {
  .site-header {
    height: 82px;
  }

  .hero {
    height: clamp(470px, calc(100svh - 102px), 640px);
    border-radius: 40px;
    padding: 28px 6.5%;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(42px, 7.6vh, 62px);
  }

  .hero-copy {
    margin: 14px 0 20px;
    font-size: 14px;
  }

  .hero-cta {
    padding: 15px 24px;
  }
}

/* ==========================================================================
   TABLET & MENŠÍ NOTEBOOKY (801px – 1080px)
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav {
    margin-right: 12px;
    gap: 22px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   MOBILNÍ RESPONSIVITA (max-width: 800px)
   ========================================================================== */
@media (max-width: 800px) {
  .site-shell { 
    padding: 0; 
  }

  .site-header { 
    height: 76px; 
    padding: 0 22px; 
    position: absolute; 
    z-index: 4; 
    width: 100%; 
    color: #fff; 
    justify-content: center;
  }

  .logo-sub { 
    font-size: 13px; 
  }

  .logo b { 
    font-size: 16px; 
  }

  .site-header .logo-mark { 
    width: 24px; 
    height: 24px; 
    filter: brightness(0) invert(1);
  }

  .main-nav,
  .header-cta { 
    display: none; 
  }

  .hero { 
    height: 100svh; 
    min-height: 560px; 
    border-radius: 0; 
    padding: 84px 24px 32px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
  }

  .hero-background { 
    opacity: 1; 
    background: linear-gradient(rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.62)), 
                url("img/background.jpg") 55% 58% / cover no-repeat; 
  }

  .hero-content { 
    position: relative; 
    inset: auto; 
    transform: none; 
    width: 100%; 
    padding: 0; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
  }

  .hero .eyebrow { 
    font-size: 9px; 
    margin-bottom: 20px; 
  }

  h1 { 
    font-size: clamp(44px, 13vw, 80px); 
    line-height: .98; 
  }

  .hero-copy { 
    font-size: 14px; 
    max-width: 315px; 
    margin: 22px 0 26px; 
  }

  .hero-cta { 
    width: 100%; 
    max-width: 360px; 
    padding: 18px 22px; 
  }

  .section {
    padding: 60px 24px;
  }

  .about-facts,
  .form-two {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 38px 1fr;
    padding: 22px 0;
  }

  .service-row:hover {
    padding-left: 0;
  }

  .service-tag {
    display: none;
  }

  .contact-box {
    border-radius: 36px;
    margin: 0 12px;
    padding: 44px 22px;
  }

  .form-submit {
    width: 100%;
    max-width: none;
  }

  .site-footer {
    padding: 40px 24px 36px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 22px;
  }
}

/* ==========================================================================
   VELMI MALÉ TELEFONY (max-width: 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .logo-sub {
    font-size: 11px;
  }

  .logo b {
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .contact-box {
    margin: 0 8px;
    padding: 36px 18px;
    border-radius: 28px;
  }
}