* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-logo {
  font-weight: 700;
  color: #c2151b;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 54px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.header-contact a {
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
}

.header-contact a:hover {
  color: #c2151b;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #111827;
  text-decoration: none;
}

.site-nav a:hover,
.submenu a:hover {
  color: #c2151b;
}

.nav-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 12px 0;
  z-index: 1000;
}

.submenu a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
}

.nav-item:hover .submenu {
  display: block;
}

.menu-toggle {
  display: none;
}

.current {
  color: #c2151b !important;
  font-weight: 700;
}

.nav-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 12px 0;
  z-index: 1000;
}

.submenu a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
}

.nav-item:hover .submenu {
  display: block;
}
.current {
    color: #c2151b !important;
    font-weight: 700;
}

.breadcrumbs {
    padding: 12px 24px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.breadcrumbs a {
    color: #c2151b;
    text-decoration: none;
}

.separator {
    margin: 0 8px;
    color: #9ca3af;
}

.hero {
  position: relative;
  min-height: 850px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  color: #ffffff;
}

.hero-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2,6,23,.96) 0%,
            rgba(2,6,23,.88) 35%,
            rgba(2,6,23,.55) 65%,
            rgba(2,6,23,.25) 100%
        ),
        url('../img/hero/hero-building.webp');

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;

    width: 700px;
    height: 700px;

    right: -200px;
    top: 50%;

    transform: translateY(-50%);

    background:
        radial-gradient(
            circle,
            rgba(194,21,27,.15),
            transparent 70%
        );

    pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  color: #c2151b;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 82px);
  line-height: 1.05;
  margin: 18px 0 24px;
}

.hero-text {
  max-width: 650px;
  font-size: 20px;
  line-height: 1.6;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: #c2151b;
  color: #ffffff;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.45);
  color: #ffffff;
}

.btn,
.btn-primary,
.btn-secondary {
    cursor: pointer;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn:active,
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-eyebrow {
  color: #c2151b;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(32px, 3vw, 54px);
  line-height: 1.12;
  margin: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  border: 1px solid #e5e7eb;
  padding: 32px;
  min-height: 260px;
  background: #ffffff;
  border-radius: 24px;
}

.why-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(194, 21, 27, 0.08);
  color: #c2151b;
}

.why-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.why-card h3 {
  margin-top: 24px;
  font-size: 22px;
}

.why-card p {
  color: #4b5563;
  line-height: 1.6;
}

.why-card {
    transition: all .25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15,23,42,.12);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    display: block;
    padding: 36px;
    border: 1px solid #e5e7eb;
	border-radius: 24px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    border-color: #c2151b;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.solution-card h3 {
    font-size: 28px;
    margin: 0 0 16px;
}

.solution-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.sectors-section {
    background: #f8fafc;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sector-card {
    position: relative;
    min-height: 300px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    overflow: hidden;

    color: #ffffff;
    text-decoration: none;

    border-radius: 24px;

    background-size: cover;
    background-position: center center;

    transition: all .3s ease;
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.sector-card h3,
.sector-card p {
    position: relative;
    z-index: 2;
}

.sector-card h3 {
    font-size: 30px;
    margin-bottom: 14px;
}

.sector-card p {
	font-size: 15px;
    color: rgba(255,255,255,.92);
    line-height: 1.6;
}

.sector-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(2,6,23,.10),
            rgba(2,6,23,.92)
        );

    z-index: 1;
}

.sector-card.nemocnice {
    background-image: url('../img/odvetvia/nemocnice.webp');
}

.sector-card.administrativa {
    background-image: url('../img/odvetvia/administrativa.webp');
}

.sector-card.priemysel {
    background-image: url('../img/odvetvia/priemysel.webp');
}

.sector-card.hotely {
    background-image: url('../img/odvetvia/hotely.webp');
}

.sector-card.datove-centra {
    background-image: url('../img/odvetvia/datove-centra.webp');
}

.sector-card.logistika {
    background-image: url('../img/odvetvia/logistika.webp');
}

.schrack-section {
    background: #0f172a;
    color: #ffffff;
}

.schrack-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.schrack-content h2 {
    margin-top: 12px;
    margin-bottom: 24px;
    font-size: clamp(32px, 3vw, 52px);
    line-height: 1.15;
}

.schrack-text {
    font-size: 18px;
    line-height: 1.8;
    color: #d1d5db;
}

.schrack-list {
    margin: 32px 0;
    padding-left: 20px;
}

.schrack-list li {
    margin-bottom: 12px;
    color: #e5e7eb;
}

.schrack-logo {
    text-align: center;
}

.schrack-logo img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.references-section {
  background: #ffffff;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card,
.service-item {
    transition: all .25s ease;
}

.why-card:hover,
.service-item:hover {
    transform: translateY(-6px);
    border-color: #c2151b;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.reference-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  min-height: 360px;
  padding: 40px;

  overflow: hidden;
  border-radius: 24px;

  background-size: cover;
  background-position: center;

  text-decoration: none;
  color: #ffffff;

  transition: all .3s ease;
}

.reference-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2,6,23,.15),
      rgba(2,6,23,.95)
    );
  z-index: 1;
}

.reference-card span,
.reference-card h3,
.reference-card p {
  position: relative;
  z-index: 2;
}

.reference-card:hover {
  transform: translateY(-8px);
  border-color: #c2151b;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.reference-card span {
  display: block;
  margin-bottom: 70px;
  color: #c2151b;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
}

.reference-card h3 {
  font-size: 36px;
  min-height: 2.4em;
  margin: 0 0 16px;
}

.reference-card p {
  margin: 0;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
}

.reference-card.ref-nemocnice {
  background-image: url('../img/referencie/nemocnice.webp');
}

.reference-card.ref-administrativa {
  background-image: url('../img/referencie/administrativa.webp');
}

.reference-card.ref-priemysel {
  background-image: url('../img/referencie/priemysel.webp');
}

.service-section {
    background: #f8fafc;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-item {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
border-radius: 24px;
}

.service-item h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 24px;
}

.service-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.cta-section {
    background: #ffffff;
}

.cta-box {
    background: #c2151b;
    color: #ffffff;
    padding: 70px;
    text-align: center;
	border-radius: 28px;
}

.cta-box h2 {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: clamp(32px, 3vw, 54px);
    line-height: 1.15;
}

.cta-box p {
    margin: 0 0 34px;
    font-size: 20px;
}

.cta-box .btn-primary {
    background: #ffffff;
    color: #c2151b;
}

.site-footer {
    background: #0f172a;
    color: #ffffff;
    padding-top: 80px;
}

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

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col p {
    color: #d1d5db;
    line-height: 1.8;
}

.footer-about p {
    max-width: 420px;
}

.footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #9ca3af;
}

/* Farebné oddelenie homepage sekcií */

.why-section {
  background: #f8fafc;
}

.solutions-section {
  background: #ffffff;
}

.sectors-section {
  background: #f8fafc;
}

.references-section {
  background: #ffffff;
}

.service-section {
  background: #f8fafc;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 56px;
    height: 56px;

    border: 0;
    border-radius: 50%;

    background: #c2151b;
    color: #ffffff;

    font-size: 26px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,.25);

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition: all .3s ease;

    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a81217;
    transform: translateY(-3px);
}

/* Hover efekty kariet */

.why-card,
.solution-card,
.sector-card,
.reference-card {
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
}

.why-card,
.solution-card,
.sector-card,
.reference-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.why-card:hover,
.solution-card:hover,
.sector-card:hover,
.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .16);
    border-color: #c2151b;
}

/* Jemné stmavenie obrázkových kariet pri hover */
.sector-card::before,
.reference-card::before {
    transition: background .25s ease;
}

.sector-card:hover::before,
.reference-card:hover::before {
    background:
        linear-gradient(
            180deg,
            rgba(2,6,23,.05),
            rgba(2,6,23,.95)
        );
}
.sector-use-section {
    background: #f8fafc;
}

/* Ikony v sekcii Prečo Symatec */
.why-card:hover .why-icon {
    background: #c2151b;
    color: #ffffff;
    transform: scale(1.06);
}

.why-icon {
    transition: all .25s ease;
}

.page-hero {
  background: #0f172a;
  color: #ffffff;
  padding: 120px 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.05;
  margin: 14px 0 24px;
}

.page-hero p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.content-grid h2 {
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1.12;
  margin: 0;
}

.content-grid p {
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
}

.contact-card h3 {
    margin-bottom: 20px;
}

.contact-card a {
    color: #0f172a;
    text-decoration: none;
}

.contact-card a:hover {
    color: #c2151b;
}

.contact-map iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 24px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    padding: 18px 24px;
    border-radius: 16px;
    margin: 30px 0 0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 18px 24px;
    border-radius: 16px;
    margin: 30px 0 0;
}

.eps-process-section {
    background: #ffffff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.process-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
    transition: all .25s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: #c2151b;
    box-shadow: 0 22px 50px rgba(15,23,42,.16);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: rgba(194,21,27,.08);
    color: #c2151b;
    font-weight: 800;
}
.process-number {
    position: relative;
    top: -3px;
}

.process-card h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.process-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.eps-components-section {
    background: #f8fafc;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.component-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 32px;
    transition: all .25s ease;
}

.component-card:hover {
    transform: translateY(-8px);
    border-color: #c2151b;
    box-shadow: 0 22px 50px rgba(15,23,42,.12);
}

.component-card h3 {
    margin-bottom: 14px;
}

.component-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.eps-benefits-section {
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 32px;
    transition: all .25s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: #c2151b;
    box-shadow: 0 22px 50px rgba(15,23,42,.12);
}

.benefit-card h3 {
    margin-bottom: 14px;
}

.benefit-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.eps-realization-section {
    background: #f8fafc;
}

.realization-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.realization-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    transition: all .25s ease;
}

.realization-card:hover {
    transform: translateY(-8px);
    border-color: #c2151b;
    box-shadow: 0 22px 50px rgba(15,23,42,.12);
}

.realization-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: rgba(194,21,27,.08);
    color: #c2151b;
    font-weight: 800;
}

.realization-card h3 {
    margin: 0 0 14px;
    font-size: 21px;
}

.realization-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.eps-service-section {
    background: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 32px;
    transition: all .25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #c2151b;
    box-shadow: 0 22px 50px rgba(15,23,42,.12);
}

.service-card h3 {
    margin-bottom: 14px;
}

.service-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.eps-faq-section {
    background: #f8fafc;
}

.faq-list {
    max-width: 1000px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: 0;
    text-align: left;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.faq-question span {
    color: #c2151b;
    font-size: 28px;
    line-height: 1;
}

.faq-answer {
    display: none;
    padding: 0 28px 26px;
}

.faq-answer p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-item.is-open .faq-question span {
    content: "-";
}

.faq-item h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.faq-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(194, 21, 27, 0.08);
    color: #c2151b;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.eps-tech-section {
    background: #0f172a;
    color: #ffffff;
}

.eps-tech-section .section-eyebrow {
    color: #ef4444;
}

.eps-tech-section .section-heading p {
    color: #d1d5db;
}

.eps-tech-section .component-card {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
    color: #ffffff;
}

.eps-tech-section .component-card p {
    color: #d1d5db;
}

.eps-tech-section .component-card h3 {
    color: #ffffff;
}

.eps-tech-section .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(194, 21, 27, 0.22);
    color: #ff3b45;
}

.eps-tech-section .feature-icon svg {
    width: 38px;
    height: 38px;
}

.evak-faq-section {
    background: #0f172a;
}

.evak-faq-section .section-heading h2 {
    color: #ffffff;
}

.evak-faq-section .section-heading p {
    color: #d1d5db;
}

.section-gray {
    background: #f8fafc;
}

.solutions-seo-text {
    max-width: 1000px;
    margin: 40px auto 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.solutions-seo-text p {
    margin-bottom: 12px;
}

@media (max-width: 991px) {
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .technologies-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .realization-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .realization-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .realization-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

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

}

@media (max-width: 992px) {
    .components-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .components-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

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

    .contact-map iframe {
        height: 350px;
    }

}


@media (max-width: 768px) {
  .page-hero {
    padding: 70px 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

}

@media (max-width: 1200px) {
  .header-contact {
    display: none;
  }
	
  .why-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid,
  .sectors-grid,
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Globálne opravy rozostupov a ochrana proti horizontálnemu scrollu */
html {
    max-width: 100%;
}

body {
    max-width: 100%;
    overflow-x: clip;
}

.section-heading h2 {
    margin: 0 0 24px 0;
    line-height: 1.15;
}

.section-heading > p:not(.section-eyebrow) {
    margin: 0;
    max-width: 760px;
    line-height: 1.7;
}

.card-link {
    color: inherit;
    text-decoration: none;
}

.card-link:visited {
    color: inherit;
}

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

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;

    color: #d71920;
    text-decoration: none;
    font-weight: 600;

    transition: all .2s ease;
}

.card-action:hover {
    color: #ff3b3b;
}

.card-action:visited {
    color: #c2151b;
}
.card-action1 {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;

    color: #fff;
    text-decoration: none;
    font-weight: 600;

    transition: all .2s ease;
}

.card-action1:hover {
    color: #ff3b3b;
}

.card-action1:visited {
    color: #c2151b;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
}

.cookie-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.cookie-text strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 18px;
}

.cookie-text p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.contact-alert-section {
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions .btn,
    .cookie-actions .card-action {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.footer-bottom a {
    margin-left: 8px;
}

.documents-toolbar {
    margin-bottom: 24px;
}

.documents-search {
    width: 100%;
    max-width: 700px;
    padding: 16px 22px;
    border: 1px solid #d8dbe1;
    border-radius: 999px;
    font-size: 16px;
}

.documents-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    border: 1px solid #d8dbe1;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}

.filter-btn.active {
    background: #c4161c;
    color: #ffffff;
    border-color: #c4161c;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.documents-toolbar {
margin-bottom: 24px;
}

.documents-search {
width: 100%;
max-width: 700px;
padding: 16px 22px;
border: 1px solid #d8dbe1;
border-radius: 999px;
font-size: 16px;
}

.documents-filters {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 30px;
}

.filter-btn {
border: 1px solid #d8dbe1;
background: #ffffff;
color: #111827;
border-radius: 999px;
padding: 10px 18px;
cursor: pointer;
font-weight: 600;
}

.filter-btn.active {
background: #c4161c;
color: #ffffff;
border-color: #c4161c;
}

.documents-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}

.documents-search {
    max-width: 100%;
}

.documents-toolbar {
    margin-bottom: 24px;
    max-width: 1100px;
}

.documents-count {
    margin: 16px 0 30px;
    padding-left: 4px;
    font-weight: 700;
    color: var(--color-primary);
}

.document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.document-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(194, 21, 27, .08);
    color: #c2151b;
}

/* Mobilná navigácia a responzivita */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header .container {
        position: relative;
        gap: 12px;
    }

    .site-logo img {
        height: 38px;
        max-width: 160px;
    }

    .menu-toggle {
        display: block;
        background: #c2151b;
        color: #ffffff;
        border: 0;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    .site-nav {
        display: none;
    }

    .site-nav.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 20px 50px rgba(0,0,0,.15);
        z-index: 2000;
    }

    .site-nav.is-open > a,
    .site-nav.is-open .nav-item > a {
        display: block;
        padding: 16px 18px;
        border-bottom: 1px solid #e5e7eb;
    }

    .site-nav.is-open .submenu {
        position: static;
        display: none;
        border: 0;
        padding: 0 0 10px;
        box-shadow: none;
    }

    .site-nav.is-open .has-submenu.is-submenu-open .submenu {
        display: block;
    }

    .site-nav.is-open .submenu a {
        padding: 10px 30px;
        font-size: 15px;
    }

    .hero {
        min-height: auto;
        padding: 70px 0 48px;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.05;
        max-width: 100%;
        margin: 14px 0 18px;
        overflow-wrap: normal;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.55;
        max-width: 100%;
    }

    .page-hero {
        padding: 70px 0;
    }

    .page-hero h1,
    .section-heading h2,
    .content-grid h2 {
        font-size: 34px;
        max-width: 100%;
        overflow-wrap: normal;
        word-break: normal;
    }

    .page-hero p,
    .section-heading > p:not(.section-eyebrow) {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .why-grid,
    .solutions-grid,
    .sectors-grid,
    .references-grid,
    .service-grid,
    .contact-grid,
    .components-grid,
    .process-grid,
    .technologies-grid,
    .benefits-grid,
    .realization-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 50px 0;
    }

    .cta-box {
        padding: 42px 24px;
    }

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

    .footer-column {
        margin-bottom: 32px;
    }

    .footer-column p,
    .footer-column a {
        line-height: 1.8;
    }

    .contact-map iframe {
        height: 350px;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        right: 16px;
        bottom: 16px;
        font-size: 22px;
    }
}
