﻿/* === 3-4 bloky vedle sebe ==== */


:root {
  --ei-bg: #f6f4ef;
  --ei-surface: #e3ddd2;
  --ei-border: #cfc7ba;
  --ei-text: #1f1f1c;
  --ei-muted: #6f675c;
  --ei-accent: #9a6a12;
  --ei-radius: 0px;
  --ei-gap: 36px;
  --ei-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  --ei-max-width: 1440px;
}


.ei-section {
  width: 100%;
  max-width: var(--ei-max-width);
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  color: var(--ei-text);
}


.ei-grid {
  display: grid;
  gap: var(--ei-gap);
  align-items: stretch;
}


.ei-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.ei-grid.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* 1 BLOCK */
.ei-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* TOP BOX */
.ei-topbox {
  min-height: 108px;
  padding: 24px 20px;
  margin-bottom: 32px;
  background: var(--ei-surface);
  border: 1px solid var(--ei-border);
  box-shadow: var(--ei-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  box-sizing: border-box;
}


.ei-topbox-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
}


.ei-topbox-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #000;
}


/* ODKAZY V NADPISECH A TEXTECH */
.ei-section .ei-topbox-title a,
.ei-section .ei-topbox-text a,
.ei-section .ei-title a,
.ei-section .ei-text a,
.ei-section .ei-topbox-title a:link,
.ei-section .ei-topbox-text a:link,
.ei-section .ei-title a:link,
.ei-section .ei-text a:link,
.ei-section .ei-topbox-title a:visited,
.ei-section .ei-topbox-text a:visited,
.ei-section .ei-title a:visited,
.ei-section .ei-text a:visited,
.ei-section .ei-topbox-title a:hover,
.ei-section .ei-topbox-text a:hover,
.ei-section .ei-title a:hover,
.ei-section .ei-text a:hover,
.ei-section .ei-topbox-title a:active,
.ei-section .ei-topbox-text a:active,
.ei-section .ei-title a:active,
.ei-section .ei-text a:active,
.ei-section .ei-topbox-title a:focus,
.ei-section .ei-topbox-text a:focus,
.ei-section .ei-title a:focus,
.ei-section .ei-text a:focus {
  color: #9a6a12 !important;
  text-decoration: underline !important;
}


/* IMAGE */
.ei-image-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--ei-border);
  background: #fff;
  flex-shrink: 0;
}


.ei-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* CONTENT */
.ei-content {
  max-width: 360px;
  margin: 0 auto;
}


.ei-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ei-accent);
}


.ei-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #000;
}


.ei-text strong {
  font-weight: 700;
}


/* VARIANTA BEZ HORNÍHO BOXU */
.ei-item.ei-item--simple {
  padding-top: 10px;
}


/* pouze varianta s horním textem */
.ei-item:not(.ei-item--simple) .ei-topbox {
  min-height: 88px;
  padding: 14px 20px 4px;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}


.ei-item:not(.ei-item--simple) .ei-topbox-title {
  margin: 0 0 8px;
}


.ei-item:not(.ei-item--simple) .ei-topbox-text {
  margin: 0;
  line-height: 1.3;
}


/* TABLET */
@media (max-width: 991px) {
  .ei-grid.is-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .ei-grid.is-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* MOBILE */
@media (max-width: 640px) {
  .ei-section {
    padding: 28px 16px;
  }


  .ei-grid.is-3,
  .ei-grid.is-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }


  .ei-topbox {
    min-height: auto;
    height: auto;
    margin-bottom: 24px;
    padding: 20px 16px;
  }


  .ei-item:not(.ei-item--simple) .ei-topbox {
    min-height: auto;
    padding: 10px 16px 8px;
    justify-content: flex-start;
  }


  .ei-title {
    font-size: 20px;
  }


  .ei-text,
  .ei-topbox-text {
    font-size: 14px;
  }


  .ei-image-wrap {
    width: 120px;
    height: 120px;
    margin-bottom: 22px;
  }
}