:root {
  --ftm-ink: #10292c;
  --ftm-teal: #22aeb5;
  --ftm-teal-dark: #0f777d;
  --ftm-steel: #edf2f4;
  --ftm-line: #dbe4e7;
  --ftm-muted: #647378;
  --ftm-amber: #d69437;
  --ftm-shadow: 0 18px 55px rgba(10, 34, 38, .16);
}

body.ftm-zone-body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(12, 31, 34, .96), rgba(16, 41, 44, .86)),
    url("https://ftmabrasives.cz/wp-content/uploads/2026/07/01-hero-pracovnik-tryskani.png") center/cover fixed no-repeat,
    #10292c;
  color: #f4fbfb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.ftm-zone-shell,
.ftm-zone-embed {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
  color: #f4fbfb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.ftm-zone-embed {
  color: var(--ftm-ink);
}

.ftm-zone-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  box-shadow: var(--ftm-shadow);
  backdrop-filter: blur(14px);
}

.ftm-zone-brand {
  color: #f4fbfb;
  text-decoration: none;
  font-size: 23px;
  font-weight: 900;
}

.ftm-zone-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ftm-zone-nav a,
.ftm-zone-button,
.ftm-zone button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(34, 174, 181, .58);
  border-radius: 8px;
  background: var(--ftm-teal);
  color: #fff !important;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.ftm-zone-nav a.is-secondary,
.ftm-zone-button.is-secondary {
  background: rgba(255,255,255,.06);
}

.ftm-zone-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: start;
}

.ftm-zone-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ftm-ink);
  box-shadow: var(--ftm-shadow);
}

.ftm-zone-panel.is-dark {
  background:
    linear-gradient(135deg, rgba(7, 31, 34, .94), rgba(12, 52, 56, .86)),
    url("https://ftmabrasives.cz/wp-content/uploads/2026/07/02-detail-tryskani-oceli.png") center/cover no-repeat;
  color: #f4fbfb;
}

.ftm-zone-panel.is-dark h1,
.ftm-zone-panel.is-dark h2,
.ftm-zone-panel.is-dark h3,
.ftm-zone-panel.is-dark p,
.ftm-zone-panel.is-dark label {
  color: #f4fbfb !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.32);
}

.ftm-zone h1,
.ftm-zone h2,
.ftm-zone h3,
.ftm-zone p {
  margin-top: 0;
}

.ftm-zone h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.ftm-zone h2 {
  font-size: 28px;
  line-height: 1.15;
}

.ftm-zone-kicker {
  margin-bottom: 12px;
  color: var(--ftm-teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ftm-zone-muted {
  color: var(--ftm-muted);
}

.ftm-zone-panel.is-dark .ftm-zone-muted {
  color: #d7e4e6;
}

.ftm-zone-form {
  display: grid;
  gap: 12px;
}

.ftm-zone-form label {
  display: grid;
  gap: 6px;
  color: #31494d;
  font-size: 13px;
  font-weight: 900;
}

.ftm-zone-form input,
.ftm-zone-form textarea,
.ftm-zone-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(16,41,44,.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ftm-ink);
  padding: 10px 12px;
  font: inherit;
}

.ftm-zone-form textarea {
  min-height: 92px;
  resize: vertical;
}

.ftm-zone-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.ftm-zone-alert.is-error {
  border: 1px solid rgba(180,35,24,.28);
  background: #fff1f0;
  color: #84251c;
}

.ftm-zone-alert.is-ok {
  border: 1px solid rgba(34,174,181,.3);
  background: #e8f8f9;
  color: var(--ftm-teal-dark);
}

.ftm-zone-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ftm-line);
  border-radius: 8px;
  background: #fff;
}

.ftm-zone table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ftm-zone th,
.ftm-zone td {
  padding: 12px;
  border-bottom: 1px solid var(--ftm-line);
  text-align: left;
  vertical-align: top;
}

.ftm-zone th {
  color: var(--ftm-teal-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.ftm-zone tbody tr:last-child td {
  border-bottom: 0;
}

.ftm-zone-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.ftm-zone-benefit {
  padding: 16px;
  border-left: 4px solid var(--ftm-teal);
  background: #f6fbfb;
}

.ftm-zone-admin {
  display: grid;
  gap: 20px;
}

.ftm-zone-admin-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.ftm-zone-inline-form {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
}

@media (max-width: 920px) {
  .ftm-zone-grid,
  .ftm-zone-benefits,
  .ftm-zone-admin-row {
    grid-template-columns: 1fr;
  }

  .ftm-zone-topbar {
    grid-template-columns: 1fr;
  }
}

@media print {
  .ftm-zone-topbar,
  .ftm-zone-form,
  .ftm-zone-button,
  button {
    display: none !important;
  }
}

/* FTM zone main header polish - 2026-07-08 */
body.ftm-zone-body .ftm-zone-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 22px !important;
  align-items: center !important;
  min-height: 82px;
  margin: 0 0 26px;
  padding: 12px 18px;
  border: 1px solid rgba(34, 174, 181, .24) !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, rgba(255,255,255,.97), rgba(237,247,247,.91)) !important;
  color: #10292c !important;
  box-shadow: 0 18px 48px rgba(2, 18, 20, .22) !important;
  backdrop-filter: blur(14px);
}

body.ftm-zone-body .ftm-zone-brand {
  display: flex;
  align-items: center;
  min-width: 220px;
  color: #10292c !important;
  text-decoration: none !important;
  font-size: 0;
}

body.ftm-zone-body .ftm-zone-brand img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

body.ftm-zone-body .ftm-zone-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.ftm-zone-body .ftm-zone-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

body.ftm-zone-body .ftm-zone-main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 7px;
  color: #10292c !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

body.ftm-zone-body .ftm-zone-main-nav a:hover,
body.ftm-zone-body .ftm-zone-main-nav a.is-current {
  background: rgba(34, 174, 181, .12);
  color: #0f777d !important;
}

body.ftm-zone-body .ftm-zone-topbar .ftm-zone-nav {
  justify-content: flex-end;
  gap: 8px;
}

body.ftm-zone-body .ftm-zone-topbar .ftm-zone-nav a {
  min-height: 42px;
  border-color: rgba(34, 174, 181, .48);
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(34, 174, 181, .18);
}

body.ftm-zone-body .ftm-zone-topbar .ftm-zone-nav a.is-secondary {
  background: #fff;
  color: #0f777d !important;
  box-shadow: none;
}

@media (max-width: 1080px) {
  body.ftm-zone-body .ftm-zone-topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  body.ftm-zone-body .ftm-zone-brand,
  body.ftm-zone-body .ftm-zone-main-nav,
  body.ftm-zone-body .ftm-zone-topbar .ftm-zone-nav {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  body.ftm-zone-body .ftm-zone-shell,
  body.ftm-zone-body .ftm-zone-embed {
    width: min(100% - 24px, 1180px);
  }

  body.ftm-zone-body .ftm-zone-topbar {
    padding: 14px;
  }

  body.ftm-zone-body .ftm-zone-brand img {
    width: 184px;
  }

  body.ftm-zone-body .ftm-zone-main-nav a {
    font-size: 13px;
    padding: 0 9px;
  }
}

/* FTM global Astra header polish - 2026-07-08 */
body:not(.ftm-zone-body) #masthead.site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: transparent !important;
}

body.admin-bar:not(.ftm-zone-body) #masthead.site-header {
  top: 32px;
}

body:not(.ftm-zone-body) #masthead .ast-primary-header-bar {
  min-height: 88px;
  border: 0;
  border-bottom: 1px solid rgba(34, 174, 181, .22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(238, 249, 249, .92)) !important;
  box-shadow: 0 18px 48px rgba(5, 26, 29, .16);
  backdrop-filter: blur(16px);
}

body:not(.ftm-zone-body) #masthead .ast-builder-grid-row {
  min-height: 88px;
  gap: 18px;
  padding-inline: 18px;
}

body:not(.ftm-zone-body) #masthead .site-branding {
  align-items: center;
  padding: 0;
}

body:not(.ftm-zone-body) #masthead .custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  border-radius: 8px;
  outline-offset: 6px;
}

body:not(.ftm-zone-body) #masthead a,
body:not(.ftm-zone-body) #masthead a:hover,
body:not(.ftm-zone-body) #masthead a:focus,
body:not(.ftm-zone-body) #masthead a:active {
  text-decoration: none !important;
}

body:not(.ftm-zone-body) #masthead img.custom-logo {
  width: 220px;
  height: auto;
  max-height: 62px;
  filter: drop-shadow(0 12px 18px rgba(15, 119, 125, .16));
}

body:not(.ftm-zone-body) #masthead .main-header-menu {
  align-items: center;
  gap: 6px;
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item {
  display: flex;
  align-items: center;
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item > .menu-link {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ftm-ink) !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item:hover > .menu-link,
body:not(.ftm-zone-body) #masthead .main-header-menu > .current-menu-item > .menu-link,
body:not(.ftm-zone-body) #masthead .main-header-menu > .current_page_item > .menu-link,
body:not(.ftm-zone-body) #masthead .main-header-menu > .current-menu-ancestor > .menu-link {
  border-color: rgba(34, 174, 181, .2);
  background: rgba(34, 174, 181, .12);
  color: var(--ftm-teal-dark) !important;
  box-shadow: 0 8px 18px rgba(34, 174, 181, .1);
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item > .menu-link:focus-visible {
  outline: 2px solid rgba(34, 174, 181, .7);
  outline-offset: 3px;
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item > .menu-link::before,
body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item > .menu-link::after {
  content: none !important;
  display: none !important;
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item > a[href*="/zakaznicka-zona/"] {
  border-color: rgba(34, 174, 181, .58);
  background: var(--ftm-teal);
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(34, 174, 181, .24);
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item:hover > a[href*="/zakaznicka-zona/"],
body:not(.ftm-zone-body) #masthead .main-header-menu > .current-menu-item > a[href*="/zakaznicka-zona/"],
body:not(.ftm-zone-body) #masthead .main-header-menu > .current_page_item > a[href*="/zakaznicka-zona/"] {
  border-color: rgba(15, 119, 125, .72);
  background: var(--ftm-teal-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

body:not(.ftm-zone-body) #masthead .main-header-menu > .pll-parent-menu-item > .menu-link {
  border-color: rgba(16, 41, 44, .12);
  background: rgba(255, 255, 255, .78);
  color: #334155 !important;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

body:not(.ftm-zone-body) #masthead .ast-icon.icon-arrow svg {
  width: 11px;
  height: 11px;
  margin-left: 5px;
}

body:not(.ftm-zone-body) #masthead .sub-menu {
  min-width: 248px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(34, 174, 181, .2);
  border-top: 3px solid var(--ftm-teal);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 52px rgba(5, 26, 29, .18);
}

body:not(.ftm-zone-body) #masthead .sub-menu .menu-link {
  min-height: 40px;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--ftm-ink) !important;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

body:not(.ftm-zone-body) #masthead .sub-menu .menu-link:hover,
body:not(.ftm-zone-body) #masthead .sub-menu .current-menu-item > .menu-link {
  background: rgba(34, 174, 181, .1);
  color: var(--ftm-teal-dark) !important;
}

body:not(.ftm-zone-body) #masthead .ast-mobile-menu-trigger-minimal {
  border: 1px solid rgba(34, 174, 181, .38);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(5, 26, 29, .12);
}

body:not(.ftm-zone-body) #masthead .menu-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--ftm-ink);
}

body:not(.ftm-zone-body) .ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .99), rgba(239, 250, 250, .98));
}

body:not(.ftm-zone-body) .ast-mobile-popup-drawer .main-header-menu .menu-link {
  min-height: 46px;
  margin: 4px 12px;
  border-radius: 8px;
  color: var(--ftm-ink) !important;
  font-weight: 900;
}

body:not(.ftm-zone-body) .ast-mobile-popup-drawer .main-header-menu .menu-link:hover,
body:not(.ftm-zone-body) .ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link {
  background: rgba(34, 174, 181, .12);
  color: var(--ftm-teal-dark) !important;
}

@media (max-width: 1180px) {
  body:not(.ftm-zone-body) #masthead .ast-builder-grid-row {
    width: min(100%, calc(100vw - 24px));
    padding-inline: 12px;
  }

  body:not(.ftm-zone-body) #masthead .main-header-menu > .menu-item > .menu-link {
    padding-inline: 9px;
    font-size: 13px;
  }
}

@media (max-width: 921px) {
  body:not(.ftm-zone-body) #masthead .ast-primary-header-bar {
    min-height: 76px;
  }

  body:not(.ftm-zone-body) #masthead .ast-builder-grid-row {
    min-height: 76px;
  }

  body:not(.ftm-zone-body) #masthead img.custom-logo {
    width: 190px;
    max-height: 58px;
  }
}

@media (max-width: 782px) {
  body.admin-bar:not(.ftm-zone-body) #masthead.site-header {
    top: 46px;
  }
}

@media (max-width: 544px) {
  body:not(.ftm-zone-body) #masthead .ast-primary-header-bar {
    min-height: 70px;
  }

  body:not(.ftm-zone-body) #masthead .ast-builder-grid-row {
    min-height: 70px;
    width: min(100%, calc(100vw - 18px));
    padding-inline: 8px;
  }

  body:not(.ftm-zone-body) #masthead img.custom-logo {
    width: 166px;
    max-height: 52px;
  }
}
