/* ====== Úředně.cz – styl 1:1 dle návrhu (měřeno z 1600px designu) ====== */
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #050190;
  --navy-2: #060375;
  --cyan: #00B4D5;
  --cyan-border: #B0E8F2;
  --cyan-bg: #F2FBFD;
  --badge-bg: #E9E9F2;
  --gray: #6b6b8a;
  --vat-gray: #9D9CC9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Euclid Circular A", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1210px; margin: 0 auto; padding: 0 20px; }

/* ====== Hlavička ====== */
.site-header { background: #fff; padding: 22px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-logo { font-weight: 700; font-size: 34px; color: var(--navy); letter-spacing: -.5px; }
.brand-sub { font-size: 12px; color: var(--gray); margin-top: 3px; }
.header-contact { text-align: right; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--navy); }
.header-contact-title { display: block; font-weight: 400; color: var(--gray); font-size: 13px; }
.header-contact .dot { color: var(--cyan); margin: 0 6px; }
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-switch-item {
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--gray);
  border: 1px solid transparent; transition: all .15s;
}
.lang-switch-item:hover { color: var(--navy); border-color: #d8e4f2; }
.lang-switch-item.active { color: var(--cyan); background: var(--cyan-bg); }

/* ====== Hero ====== */
.hero { text-align: center; padding-top: 16px; }
.hero h1 {
  font-size: 35px; line-height: 1.15; font-weight: 700;
  color: var(--navy); margin: 0 auto;
}
.hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  background: var(--badge-bg); color: var(--navy); font-weight: 600; font-size: 14px;
  padding: 7px 18px; border-radius: 999px;
}
.hero-art { display: block; margin: 40px auto 0; max-width: 100%; height: auto; }

/* ====== Kalkulačka ====== */
.quote-section { padding-bottom: 98px; }
.quote-inner { text-align: center; }
.dropzone { cursor: pointer; display: inline-block; padding: 6px 22px; border-radius: 14px; transition: background .2s, box-shadow .2s; }
.dropzone.dragover { background: var(--cyan-bg); box-shadow: 0 0 0 3px var(--cyan-border); }
.dz-main { font-size: 20px; font-weight: 600; color: var(--navy); margin: 14px 0 0; }
.dz-camera { font-size: 16px; font-weight: 600; color: var(--cyan); margin: 6px 0 0; cursor: pointer; }
.dz-camera:hover { text-decoration: underline; }

.file-list { list-style: none; padding: 0; margin: 20px auto 0; max-width: 680px; text-align: left; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--cyan-bg); border-radius: 10px; padding: 8px 14px; margin-bottom: 6px; font-size: 14px;
}
.file-list .fl-name { font-weight: 600; word-break: break-all; }
.file-list .fl-size { color: var(--gray); white-space: nowrap; }
.file-list .fl-remove { background: none; border: 0; color: var(--navy); cursor: pointer; font-size: 16px; }

.divider { width: 608px; max-width: 100%; height: 2px; background: var(--cyan-border); margin: 46px auto 0; }

.lang-row { display: flex; justify-content: center; gap: 12px; margin-top: 54px; flex-wrap: wrap; }
.lang-field { width: 210px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.lang-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.lang-select { position: relative; }
.lang-select-btn {
  width: 100%; height: 45px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid #cfe6ec; background: var(--cyan-bg);
  font-family: inherit; font-size: 15px; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
}
.lang-select-btn:hover { border-color: var(--cyan); }
.lang-select-value { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.lang-select-value .lang-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-caret { color: var(--cyan); font-size: 13px; }
.lang-select-panel {
  position: absolute; left: 0; right: 0; top: 52px; z-index: 500;
  background: #fff; border: 1.5px solid #cfe6ec; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(5,1,144,.15); overflow: hidden;
}
.lang-search {
  width: calc(100% - 20px); margin: 10px 10px 4px; padding: 9px 12px;
  border: 1.5px solid #cfe6ec; border-radius: 8px; font: inherit; font-size: 16px; color: var(--navy);
}
.lang-search:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.lang-list { list-style: none; margin: 0; padding: 4px 6px 8px; max-height: 260px; overflow-y: auto; }
.lang-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  font-size: 14px; color: var(--navy); cursor: pointer;
}
.lang-item:hover { background: var(--cyan-bg); }
.lang-item .fi, .lang-select-value .fi { width: 22px; line-height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-empty { padding: 10px; font-size: 13px; color: var(--gray); }
.lang-globe { font-size: 15px; width: 22px; text-align: center; }
.lang-name { font-weight: 500; }


.btn-calc {
  display: block; margin: 24px auto 0; min-width: 200px; padding: 13px 40px;
  background: var(--navy); color: #fff; border: 0; border-radius: 14px;
  font-family: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
  transition: transform .15s, background .2s;
}
.btn-calc:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-calc:disabled { opacity: .6; cursor: wait; }
.calc-hint { text-align: center; color: #5A58AA; font-size: 15px; margin: 18px 0 0; }
.error-msg { background: #fdecec; color: #b3261e; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 16px auto 0; max-width: 640px; }

.quote-result { margin-top: 150px; }
.result-langs { text-align: center; font-weight: 600; font-size: 16px; margin: 0; }
.result-chars { text-align: center; font-size: 16px; margin: 6px 0 24px; }
.price-cards { display: grid; grid-template-columns: 305px 305px; gap: 74px; justify-content: center; }
.price-card {
  background: #fff; border: 1px solid var(--cyan-border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.price-card-head { background: var(--cyan-bg); padding: 20px 16px; min-height: 115px; display: flex; align-items: center; justify-content: center; }
.price-card-head h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--navy); text-align: center; }
.price-card-line { height: 1px; background: var(--cyan-border); }
.price-card-body { padding: 22px 18px 26px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.price-vat { font-size: 40px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.1; }
.price-sub { font-size: 13px; color: var(--vat-gray); margin: 4px 0 10px; }
.price-novat { font-size: 16px; color: var(--navy); margin: 0 0 14px; }
.price-deadline { font-size: 16px; color: var(--navy); margin: 0 0 4px; }
.price-deadline-sub { font-size: 13px; color: var(--vat-gray); margin: 0; }
.btn-order {
  margin-top: 16px; background: var(--navy); color: #fff; border: 0; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 16px; padding: 14px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-order:hover { background: var(--navy-2); transform: translateY(-1px); }

.payment-note { text-align: center; font-weight: 700; color: var(--navy); margin: 90px 0 0; font-size: 16px; }

/* ====== Tmavé sekce (reference + o nás) ====== */
.testimonials-section { background: var(--navy); padding: 80px 0 60px; }
.about-section { background: var(--navy); padding: 60px 0 90px; border-bottom: 4px solid var(--cyan-border); }
.section-title { text-align: center; font-size: 40px; margin: 0 0 34px; color: var(--navy); font-weight: 600; }
.section-title.light { color: #fff; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: #fff; border-radius: 16px; padding: 21px 21px 24px; }
.t-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t-name { font-weight: 600; font-size: 16px; color: #4F4F4F; }
.t-stars { color: #FADE5C; font-size: 14px; letter-spacing: 2px; }
.t-meta { color: #8a8aa8; font-size: 13px; margin: 4px 0 12px; }
.t-text { margin: 0; font-size: 15px; line-height: 1.55; color: #4F4F4F; }

.about-inner { text-align: center; max-width: 760px; }
.about-inner p { color: #DDDDEC; font-size: 17px; line-height: 1.65; margin: 0 auto 30px; }
.btn-accent {
  display: inline-block; background: var(--cyan); color: #fff; border-radius: 12px;
  font-weight: 600; font-size: 18px; padding: 14px 40px;
  transition: background .2s, transform .15s;
}
.btn-accent:hover { background: #0099b5; transform: translateY(-1px); }

/* ====== FAQ ====== */
.faq-section { padding: 75px 0 90px; }
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--badge-bg); padding: 8px 0; }
.faq-item:first-child { border-top: 1px solid var(--badge-bg); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 22px; color: var(--navy); padding: 12px 4px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::after { content: "+"; font-size: 26px; color: var(--cyan); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 4px 14px; color: #4a4a68; line-height: 1.6; font-size: 16px; }

/* ====== Patička ====== */
.site-footer { background: var(--navy); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 24px 20px 44px; }
.footer-logo { font-size: 40px; font-weight: 700; color: #fff; margin: 0 0 18px; letter-spacing: 2px; }
.footer-addr { color: #cfd1f3; font-size: 14px; line-height: 1.7; margin: 0; }
.footer-col .footer-link { color: #fff; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a { color: var(--cyan); font-weight: 600; font-size: 15px; }
.footer-bottom { background: var(--navy-2); padding: 14px 0; }
.footer-bottom-inner { text-align: right; color: #9D9DBD; font-size: 13px; }


/* ====== Modály ====== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5,1,144,.45); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 20px; padding: 28px; width: 100%; max-width: 560px;
  position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 20px; color: var(--gray); cursor: pointer; }
.modal-title { margin: 0 0 4px; font-size: 22px; color: var(--navy); }
.modal-sub { color: var(--gray); font-size: 14px; margin: 0 0 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-field input, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cfe6ec;
  background: var(--cyan-bg); font-family: inherit; font-size: 16px; color: var(--navy);
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.form-block { margin: 14px 0; border-top: 1px dashed #d9d9f0; padding-top: 14px; }
.form-block h4 { margin: 0 0 10px; font-size: 15px; color: var(--navy); }
.field-hint { color: var(--gray); font-size: 13px; margin: 0 0 10px; }
.packeta-selected { background: var(--cyan-bg); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 10px 0 0; }
.company-details { margin: 14px 0; }
.company-details summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 14px; }
.order-total { text-align: center; font-size: 22px; font-weight: 700; margin: 8px 0 14px; color: var(--navy); }
.form-note { color: var(--gray); font-size: 12px; text-align: center; margin: 12px 0 0; }

.btn-primary {
  background: var(--navy); color: #fff; border: 0; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 15px; padding: 13px 26px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.btn-outline {
  background: transparent; color: var(--navy); border: 1.5px solid #D2D1E5; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 15px; padding: 12px 24px; cursor: pointer;
}
.btn-outline:hover { border-color: var(--cyan); }

/* ====== GDPR banner ====== */
.gdpr-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1200;
  background: #fff; border: 1.5px solid #e2e2f2; border-radius: 16px;
  box-shadow: 0 16px 50px rgba(5,1,144,.18); padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.gdpr-text { font-size: 14px; color: #4a4a68; line-height: 1.55; max-width: 720px; }
.gdpr-text a { color: var(--navy); text-decoration: underline; }
.gdpr-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.gdpr-content { font-size: 14px; color: #3c3c58; line-height: 1.6; max-height: 60vh; overflow-y: auto; }
.gdpr-content h4 { margin: 14px 0 4px; color: var(--navy); }

/* ====== Responzivita ====== */
@media (max-width: 900px) {
  .price-cards { grid-template-columns: minmax(0, 340px); gap: 26px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .quote-result { margin-top: 64px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .hero-badges { gap: 8px; margin-top: 16px; }
  .badge { font-size: 13px; padding: 6px 14px; }
  .hero-art { margin-top: 24px; }
  .dz-main { font-size: 17px; }
  .dz-camera { font-size: 15px; }
  .divider { margin-top: 28px; }
  .lang-row { margin-top: 26px; gap: 14px; }
  .lang-field { width: 100%; }
  .btn-calc { width: 100%; max-width: 340px; padding: 14px 24px; }
  .quote-section { padding-bottom: 60px; }
  .quote-result { margin-top: 56px; }
  .price-card-head { min-height: 92px; padding: 16px 12px; }
  .price-card-head h3 { font-size: 18px; }
  .price-vat { font-size: 34px; }
  .payment-note { margin-top: 40px; font-size: 15px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-contact { text-align: left; }
  .lang-switch { margin-left: 0; }
  .testimonials-section { padding: 50px 0 40px; }
  .about-section { padding: 44px 0 60px; }
  .about-inner p { font-size: 15px; }
  .btn-accent { font-size: 16px; padding: 13px 28px; }
  .faq-section { padding: 48px 0 60px; }
  .section-title { font-size: 26px; margin-bottom: 24px; }
  .faq-item summary { font-size: 18px; padding: 10px 2px; }
  .faq-answer { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-backdrop { padding: 16px 10px; }
  .modal { padding: 20px 16px; border-radius: 16px; }
  .modal-title { font-size: 19px; }
  .gdpr-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .gdpr-text { font-size: 13px; }
  .footer-bottom-inner { text-align: center; }
  .footer-logo { font-size: 32px; }
  .order-total { font-size: 19px; }
}
[hidden] { display: none !important; }
