/* =========================================================
   ALCHEMIND – Newsletter formulář napojený na Ecomail
   + sekce „O nás" na HP (Úvodní text) s formulářem vpravo.
   Nahrazuje Shoptet formuláře, které ukládaly kontakty jen do Shoptetu.
   Pozor: Shoptet má html{font-size:10px} → jen px, nikdy rem/em.
   ========================================================= */

/* Zrušit Shoptet pruh „Odebírat newsletter" nad patičkou (celou sekci) */
.footer-newsletter-full-width { display: none !important; }

/* Shoptet formulář ve sloupci patičky — nahrazuje ho kompaktní Ecomail verze */
#formNewsletterWidget { display: none !important; }


/* Zrušit Shoptet sekci „Poslední komentáře" na HP — nahrazuje ji .am-reviews */
.homepage-latest-contribution-full-width { display: none !important; }


/* =========================================================
   RECENZE (vloženo v Úvodním textu, skript přesune nad „Látkám rozumíme...")
   ========================================================= */
.am-reviews, .am-reviews * { box-sizing: border-box; }
.am-reviews h2, .am-reviews p, .am-reviews figure, .am-reviews blockquote { margin: 0; padding: 0; }

.am-reviews {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  text-align: center;
  padding: 48px 0 8px;
  margin-bottom: 48px;
}

.am-reviews .am-reviews__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666699;
  background: #f1eeff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.am-reviews .am-reviews__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #4a4a7d;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.am-reviews .am-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.am-reviews .am-reviews__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 28px 28px 24px;
  box-shadow: 0 6px 24px rgba(102, 102, 153, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.am-reviews .am-reviews__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 102, 153, 0.16);
}

/* Velké uvozovky v pozadí */
.am-reviews .am-reviews__card::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 140px;
  line-height: 1;
  color: #D2C8FE;
  opacity: 0.45;
  pointer-events: none;
}

.am-reviews .am-reviews__stars {
  font-size: 20px;
  letter-spacing: 3px;
  color: #666699;
  margin-bottom: 14px;
}

.am-reviews .am-reviews__quote {
  position: relative;
  flex: 1 1 auto;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  font-style: italic;
  color: #2d2d4f;
  border: 0;
  margin-bottom: 18px;
}

.am-reviews .am-reviews__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #666699;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.am-reviews .am-reviews__author::before {
  content: "🧪";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1eeff;
  font-size: 15px;
}

.am-reviews .am-reviews__note {
  font-size: 12px;
  line-height: 1.5;
  color: #888;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .am-reviews { padding: 28px 0 4px; margin-bottom: 32px; }
  .am-reviews .am-reviews__title { font-size: 24px; margin-bottom: 20px; }
  .am-reviews .am-reviews__card { padding: 22px 20px 20px; }
  .am-reviews .am-reviews__quote { font-size: 17px; }
}


/* =========================================================
   SEKCE „O NÁS" (Shoptet → Úvodní text na HP)
   ========================================================= */
.am-about, .am-about * { box-sizing: border-box; }
.am-about h2, .am-about p, .am-about ul, .am-about li { margin: 0; padding: 0; }

.am-about {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.am-about .am-about__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #4a4a7d;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.am-about .am-about__text p {
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 14px;
}

.am-about .am-about__list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.am-about .am-about__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}

.am-about .am-about__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1eeff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.am-about .am-about__list strong { display: block; color: #4a4a7d; font-weight: 600; }

/* Záložní odkaz, než naběhne formulář (nebo když JS selže) */
.am-about .am-nlf-mount a { color: #666699; font-weight: 600; }

@media (max-width: 860px) {
  .am-about { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .am-about .am-about__title { font-size: 24px; }
  .am-about .am-about__text p { font-size: 15px; }
}


/* =========================================================
   NEWSLETTER FORMULÁŘ (Ecomail)
   ========================================================= */
.am-nlf, .am-nlf * { box-sizing: border-box; }
.am-nlf h2, .am-nlf h3, .am-nlf p, .am-nlf form { margin: 0; padding: 0; }

.am-nlf {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  text-align: left;
}

/* ---- Karta vedle textu „O nás" ---- */
.am-nlf.am-nlf--side {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-left: 4px solid #666699;
  border-radius: 8px;
  padding: 30px 30px 26px 26px;
  box-shadow: 0 6px 24px rgba(102, 102, 153, 0.12);
}

.am-nlf .am-nlf__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666699;
  background: #f1eeff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.am-nlf .am-nlf__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #4a4a7d;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.am-nlf .am-nlf__sub {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 18px;
}

/* ---- Formulář ---- */
.am-nlf .am-nlf__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.am-nlf .am-nlf__input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 1.5px solid #d4d0e8;
  border-radius: 8px;
  background: #fafafa;
  color: #2d3748;
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.am-nlf .am-nlf__input:focus {
  border-color: #666699;
  background: #fff;
}

.am-nlf .am-nlf__input.am-nlf__input--err { border-color: #cc0000; }

.am-nlf .am-nlf__btn {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #666699;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.am-nlf .am-nlf__btn:hover { background: #4a4a7d; transform: translateY(-2px); }
.am-nlf .am-nlf__btn:active { background: #3d3d6e; transform: translateY(0); }
.am-nlf .am-nlf__btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* Past na roboty — člověk pole nevidí */
.am-nlf .am-nlf__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.am-nlf .am-nlf__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.am-nlf .am-nlf__msg {
  font-size: 14px;
  line-height: 1.5;
  color: #cc0000;
  margin-top: 10px;
}
.am-nlf .am-nlf__msg:empty { display: none; }

.am-nlf .am-nlf__done {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: #4a4a7d;
  background: #f8f9fa;
  border-left: 4px solid #D2C8FE;
  border-radius: 8px;
  padding: 14px 16px;
}

.am-nlf .am-nlf__legal {
  font-size: 12px;
  line-height: 1.5;
  color: #777;
  margin-top: 12px;
}
.am-nlf .am-nlf__legal a { color: #666699; text-decoration: underline; }

/* ---- Kompaktní verze (sloupec v patičce) ---- */
.am-nlf.am-nlf--compact .am-nlf__form { gap: 8px; }
.am-nlf.am-nlf--compact .am-nlf__input,
.am-nlf.am-nlf--compact .am-nlf__btn { height: 44px; font-size: 15px; }
.am-nlf.am-nlf--compact .am-nlf__legal { color: inherit; opacity: 0.75; }
.am-nlf.am-nlf--compact .am-nlf__done { font-size: 14px; padding: 10px 12px; }

/* ---- Mobil ---- */
@media (max-width: 640px) {
  .am-nlf.am-nlf--side { padding: 22px 18px 20px 16px; }
  .am-nlf .am-nlf__title { font-size: 21px; }
  .am-nlf .am-nlf__sub { font-size: 14px; margin-bottom: 16px; }
}
