/* ---- CSS RESET & NORMALIZATION ---- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #181818;
}
ul, ol {
  list-style: none;
  padding:0;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}
a:focus {
  outline: 2px solid #1C4766;
  outline-offset: 2px;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---- VARIABLES (fallbacks where needed) ---- */
:root {
  --brand-primary: #181818;
  --brand-dark: #0c0c0c;
  --brand-light: #fff;
  --brand-gray-50: #f7f7f7;
  --brand-gray-100: #ececec;
  --brand-gray-200: #d7d7d7;
  --brand-gray-400: #b0b0b0;
  --brand-gray-600: #414141;
  --brand-accent: #FF8800;
  --brand-accent-dark: #cc6b00;
  --brand-blue: #1C4766;
  --brand-border: #e0e0e2;
  --shadow-light: 0 3px 16px rgba(0,0,0,0.07);
  --shadow-medium: 0 6px 32px rgba(0,0,0,0.13);
  --radius-xs: 4px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition: all 0.18s cubic-bezier(0.4,0.15,0.3,1);
}

/* ---- TYPOGRAPHY ---- */
body, html {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--brand-primary);
  background: var(--brand-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-dark);
}
h1 {
  font-size: 2.75rem;
  line-height: 1.13;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.22;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 14px;
}
p, ul, ol, blockquote {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--brand-primary);
}
strong, b {
  font-weight: 700;
  color: var(--brand-dark);
}
blockquote {
  font-style: italic;
  color: var(--brand-gray-600);
  border-left: 3px solid var(--brand-blue);
  padding-left: 16px;
  margin-bottom: 10px;
  background: var(--brand-gray-50);
  border-radius: var(--radius-xs);
}

/* ---- CONTAINER SYSTEM ---- */
.container {
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---- NAVIGATION ---- */
header {
  background: var(--brand-gray-50);
  border-bottom: 1px solid var(--brand-border);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 16px 0;
  position: relative;
  font-family: var(--font-display);
}
.main-nav > a {
  font-size: 1rem;
  color: var(--brand-dark);
  font-weight: 500;
  border-radius: var(--radius-xs);
  padding: 7px 14px;
  transition: var(--transition);
  opacity: 0.93;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--brand-gray-100);
  color: var(--brand-blue);
  opacity: 1;
}
.main-nav > a.btn-primary {
  font-family: var(--font-display);
}

header img[alt="SezónaBox"] {
  width: 130px;
  height: auto;
  margin-right: 10px;
}

/* ---- MOBILE NAVIGATION ---- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.05rem;
  color: var(--brand-blue);
  cursor: pointer;
  position: absolute;
  right: 26px;
  top: 16px;
  z-index: 1100;
  transition: var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--brand-accent);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 22, 0.98);
  z-index: 1250;
  overflow-y: auto;
  transition: var(--transition);
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  transform: translateX(0%);
  animation: slideInFromRight 0.33s cubic-bezier(0.68,-0.6,0.32,1.6);
}
@keyframes slideInFromRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--brand-light);
  margin: 21px 28px 10px 0;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 34px 24px 30px 36px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--brand-light);
  font-family: var(--font-display);
  padding: 8px 0;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  opacity: 0.96;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.06);
  opacity: 1;
}
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 780px;
  }
  .main-nav {
    font-size: 1rem;
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  .main-nav > a {
    font-size: 0.98rem;
    padding: 7px 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 96vw;
    padding: 0 7vw;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ---- HERO & CTA ---- */
.hero {
  background: linear-gradient(120deg, #fff 70%, #edeef2 100%);
  padding: 60px 0 60px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: flex-start;
  min-height: 0;
  padding: 0 20px;
}
.hero .content-wrapper {
  gap: 16px;
}
.cta {
  background: #fff;
  border-top: 1px solid var(--brand-gray-100);
  padding: 43px 0;
  margin-bottom: 0 !important;
}
.cta .content-wrapper {
  align-items: flex-start;
}
.cta .btn-primary {
  margin-top: 10px;
}

/* ---- BUTTONS ---- */
.btn-primary, a.btn-primary, button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: var(--radius);
  color: var(--brand-light);
  background: var(--brand-dark);
  box-shadow: 0 2px 10px rgba(26,26,28,0.07);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.09);
  letter-spacing: 0.01em;
  margin-bottom: 0;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus, a.btn-primary:hover, a.btn-primary:focus {
  background: var(--brand-blue);
  color: var(--brand-light);
  box-shadow: 0 6px 28px 0 rgba(10,17,37,0.09);
  transform: translateY(-2px) scale(1.03);
}
.btn-primary:active {
  background: var(--brand-accent-dark);
}

/* ---- FEATURE & CARD PRESENTATION ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-light);
  border: 1px solid var(--brand-gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 230px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-medium);
  border-color: var(--brand-blue);
  z-index: 2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- ICONS IN LISTS ---- */
ul > li > img,
ol > li > img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 12px;
  border-radius: var(--radius-xs);
  background: var(--brand-gray-100);
  box-shadow: 0 2px 10px rgba(12,12,12,0.04);
  object-fit: cover;
  display: inline-block;
}
ul > li, ol > li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.01rem;
  line-height: 1.6;
}
ul > li > span {
  display: block;
  opacity: 0.76;
  font-size: 0.99rem;
  margin-left: 0;
}

/* Ordered list steps styling */
ol > li {
  counter-increment: listitem;
  position: relative;
  padding-left: 40px;
}
ol > li::before {
  content: counter(listitem) ".";
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 1.15em;
}
ol > li > img {
  margin-right: 10px;
  margin-left: -32px;
  position: absolute;
  left: 0;
  top: 2px;
  box-shadow: none;
  background: none;
}

/* ---- TESTIMONIAL CARD ---- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 16px 28px;
  background: #fff;
  border: 1px solid var(--brand-gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 6px 26px rgba(0,0,0,0.05);
  transition: var(--transition);
  min-width: 270px;
  max-width: 600px;
}
.testimonial-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.11);
  border-color: var(--brand-accent);
  background: var(--brand-gray-50);
}
.testimonial-card blockquote {
  background: none;
  border-left: 3px solid var(--brand-blue);
  color: var(--brand-gray-600);
  margin-bottom: 0;
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-card strong {
  font-weight: 700;
  color: var(--brand-dark);
}
.testimonial-card > div:last-child {
  font-size: 1.14rem;
  color: var(--brand-accent);
  margin-top: -8px;
  letter-spacing: 1.5px;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 13px 12px 13px 12px;
  }
}

/* ---- TABLES ---- */
table {
  width: 100%;
  border-spacing: 0;
  margin-bottom: 30px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 22px 0 rgba(11,9,40,0.07);
  font-size: 0.98rem;
}
thead th {
  background: var(--brand-gray-50);
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 1.04rem;
  text-align: left;
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 1px solid var(--brand-border);
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--brand-gray-200);
  color: var(--brand-primary);
}
tbody tr:last-child td {
  border-bottom: none;
}
table strong {
  color: var(--brand-blue);
}

/* ---- FOOTER ---- */
footer {
  background: var(--brand-gray-50);
  border-top: 1px solid var(--brand-gray-100);
  padding-top: 30px;
  margin-top: 60px;
  color: var(--brand-dark);
  font-size: 1rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 16px;
}
.footer-top img {
  width: 58px;
  height: auto;
  margin-right: 18px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-menu a {
  color: var(--brand-blue);
  font-size: 1.04rem;
  font-weight: 500;
  opacity: 0.92;
  transition: var(--transition);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
}
.footer-menu a:hover {
  background: var(--brand-accent);
  color: #fff;
  opacity: 1;
}
.footer-bottom {
  padding: 16px 0 23px 0;
  color: var(--brand-primary);
}
.text-section a {
  color: var(--brand-blue);
  font-weight: 500;
  border-radius: var(--radius-xs);
}
.text-section a:hover { color: var(--brand-accent); background: none; }

/* ---- FLEXBOX RESPONSIVE BREAKPOINTS ---- */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-menu {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom {
    font-size: 0.98rem;
    padding-bottom: 12px;
  }
}

/* ---- CRITICAL SPACING PATTERNS ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- GENERAL UTILITIES ---- */
:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 1.5px;
}
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-thumb { background: var(--brand-gray-100); border-radius: var(--radius-xs); }
::-webkit-scrollbar-track { background: #fff; }

/* ---- MICRO ANIMATIONS ---- */
.btn-primary,
.card,
.testimonial-card {
  transition: box-shadow 0.18s cubic-bezier(0.4,0.15,0.3,1), transform 0.15s cubic-bezier(0.21,1.09,0.64,1.19);
}

.card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.012);
}
.a-scale:hover, a.btn-primary:active, .btn-primary:active {
  transform: scale(0.98);
}

/* ---- RESPONSIVE ADAPTATION ---- */
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 44px;
  }
  .hero {
    padding: 36px 0 36px 0;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 17px;
  }
  h2 {
    font-size: 1.35rem;
    margin-bottom: 13px;
  }
  .hero {
    padding: 26px 0;
  }
  .section {
    padding: 15px 3vw;
    margin-bottom: 33px;
  }
  .card {
    min-width: 70vw;
    padding: 18px 9px;
  }
  .content-wrapper {
    gap: 7px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 98vw;
    padding: 12px 5px 12px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 7770;
  background: #212327;
  color: #fff;
  width: 100vw;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.14);
  transition: var(--transition);
  padding: 16px 14px 16px 14px;
  font-size: 1rem;
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 1100px;
  width: 100%;
}
.cookie-banner > .cookie-banner-content > div {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-btn, .cookie-banner .btn-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 1.02rem;
  cursor: pointer;
  border: none;
  margin: 0 3px;
  transition: var(--transition);
}
.cookie-btn-accept {
  background: var(--brand-accent);
  color: #fff;
  border: 1px solid var(--brand-accent);
}
.cookie-btn-accept:hover {
  background: var(--brand-light);
  color: var(--brand-accent);
}
.cookie-btn-reject {
  background: none;
  border: 1px solid #fff;
  color: #fff;
}
.cookie-btn-reject:hover {
  background: #fff;
  color: #222;
}
.cookie-btn-settings {
  background: none;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
}
.cookie-btn-settings:hover {
  background: var(--brand-accent);
  color: #fff;
}

/* ---- COOKIE MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,24,26,0.86);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.21s linear;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--brand-gray-50);
  color: var(--brand-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 60px rgba(0,0,0,0.24);
  padding: 36px 34px 30px 34px;
  min-width: 300px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalPopIn 0.23s cubic-bezier(0.44,1.22,0.32,1);
  position: relative;
}
@keyframes modalPopIn {
  from {transform: scale(0.93); opacity: 0.6;}
  to {transform: scale(1); opacity:1;}
}
.cookie-modal h3 {
  font-size: 1.35rem;
  margin-bottom: 13px;
}
.cookie-category {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 13px;
  border: 1px solid var(--brand-gray-100);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.cookie-category.disabled {
  opacity: 0.68;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--brand-gray-200);
  transition: .3s;
  border-radius: 22px;
}
.cookie-modal .switch input:checked + .slider {
  background-color: var(--brand-blue);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(22px);
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--brand-blue);
  cursor: pointer;
  z-index: 50;
  transition: var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-accent);
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 17px 8px 10px 8px;
    min-width: unset;
  }
}

/* ---- OVERRIDES AND SPECIALS ---- */
.cta .btn-primary {
  min-width: 220px;
}
.cta p a {
  color: var(--brand-blue);
  text-decoration: underline;
  transition: color 0.14s;
}
.cta p a:hover {
  color: var(--brand-accent);
  text-decoration: none;
}

/* ---- PRINT / ACCESSIBILITY HELPERS ---- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, header, footer { display: none!important; }
  body { color: #111 !important; }
}

/* ---- ENSURE NO OVERLAP ---- */
.section, .card-container, .card, .content-grid, .testimonial-card, .feature-item, .footer-top, .footer-menu {
  margin-bottom: unset;
}

/* ---- END OF STYLES ---- */
