/* === DůchodCentrum — Main Stylesheet === */

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Merriweather:wght@400;700&display=swap");

:root {
  --primary: #1b4332;
  --primary-light: #2d6a4f;
  --primary-lighter: #40916c;
  --secondary: #52b788;
  --accent: #e07a5f;
  --accent-dark: #c4603f;
  --bg: #f8f4f0;
  --bg-white: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-lighter: #b2bec3;
  --border: #e0dcd7;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 72px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    "Nunito Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--primary);
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75em;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.35);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(27, 67, 50, 0.08);
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === Hero === */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 60%,
    var(--secondary) 100%
  );
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-stat .label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-image {
  flex: 0 0 400px;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* === Sections === */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-light);
  margin-top: 12px;
}

/* === Cards Grid === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-light);
}

.card-link:hover {
  color: var(--accent);
}

/* === Card Icon (no image) === */
.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(27, 67, 50, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* === FAQ Accordion === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-white);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(27, 67, 50, 0.03);
}

.faq-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.75;
}

.faq-answer.open {
  max-height: 500px;
}

/* === Ad Units === */
.ad-unit {
  margin: 24px auto;
  text-align: center;
  line-height: 1;
}

.ad-unit__label {
  display: block;
  font-size: 10px;
  color: #b0b0b0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: sans-serif;
}

.ad-unit__slot {
  display: inline-block;
  background-color: #f2f2f2;
  border: 1px solid #e0e0e0;
  max-width: 100%;
}

.ad-unit__slot--leaderboard {
  width: 728px;
  height: 90px;
}

.ad-unit__slot--rectangle {
  width: 300px;
  height: 250px;
}

.ad-unit__slot--skyscraper {
  width: 160px;
  height: 600px;
}

.ad-unit__slot--mobile {
  display: none;
  width: 320px;
  height: 50px;
}

@media (max-width: 768px) {
  .ad-unit__slot--leaderboard,
  .ad-unit__slot--skyscraper {
    display: none;
  }

  .ad-unit__slot--mobile {
    display: inline-block;
  }
}

/* === Useful Links === */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.link-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  color: var(--primary);
}

.link-card .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.link-card .info strong {
  display: block;
  font-size: 0.9rem;
}

.link-card .info small {
  color: var(--text-light);
  font-size: 0.78rem;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Footer === */
.site-footer {
  background: #1a252f;
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-about .company {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  opacity: 0.5;
  text-align: center;
}

/* === Content Page (articles) === */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  padding: 50px 0;
}

.page-header h1 {
  color: #fff;
  font-size: 2rem;
}

.page-header p {
  opacity: 0.85;
  margin-top: 8px;
}

.page-content {
  padding: 50px 0;
}

.content-article {
  max-width: 800px;
  margin: 0 auto;
}

.content-article h2 {
  margin-top: 2em;
}

.content-article h3 {
  margin-top: 1.5em;
}

.content-article p {
  margin-bottom: 1em;
}

.content-article ul,
.content-article ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.content-article li {
  margin-bottom: 0.5em;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.content-article th,
.content-article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.content-article th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.content-article th:last-child,
.content-article td:last-child {
  text-align: right;
}

.info-box {
  background: rgba(82, 183, 136, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
}

.info-box strong {
  color: var(--primary);
}

.warning-box {
  background: rgba(224, 122, 95, 0.1);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
}

.step-list {
  counter-reset: steps;
  list-style: none;
  padding-left: 0;
}

.step-list li {
  counter-increment: steps;
  padding: 16px 16px 16px 64px;
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}

.contact-info-card {
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(27, 67, 50, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 0.9rem;
}

.contact-info-item span {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* === Calculator === */
.calc-wrapper {
  background: var(--bg-white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  max-width: 700px;
  margin: 0 auto;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.calc-inputs .full-width {
  grid-column: 1 / -1;
}

.calc-result {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.calc-result .amount {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
}

.calc-result .label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.calc-disclaimer {
  font-size: 0.82rem;
  color: var(--text-lighter);
  text-align: center;
  margin-top: 16px;
}

/* === News === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.news-card .news-date {
  font-size: 0.8rem;
  color: var(--text-lighter);
  padding: 20px 24px 0;
}

.news-card h3 {
  padding: 8px 24px 0;
}

.news-card p {
  padding: 8px 24px 20px;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 24px;
  z-index: 9999;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.9rem;
  min-width: 280px;
}

.cookie-banner p a {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cookie-settings.visible {
  display: block;
}

.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.cookie-category label {
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.cookie-category input[type="checkbox"]:disabled {
  opacity: 0.5;
}

/* === Responsive === */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 50px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .btn {
    min-height: 46px;
    padding: 11px 22px;
  }
}
