/* RC5 release polish: top-level pages, accessibility and final responsive fixes. */

.gallery-thumb {
  appearance: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font: inherit;
  cursor: pointer;
}

.gallery-thumb:focus-visible {
  outline: 3px solid rgba(46, 125, 50, .35);
  outline-offset: 3px;
}

.contact-form-card button.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.blog-empty:not([hidden]) {
  display: block !important;
}

/* O aloe — modern editorial shell aligned with home, categories and products. */
.about-master-page #main-content {
  padding-bottom: clamp(56px, 8vw, 104px);
  background: #fbfcfa;
  color: #203126;
}

.about-master-page #main-content > .container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.about-master-page .breadcrumb {
  padding-block: 22px 18px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dce8dc;
  border-radius: 28px;
  background: linear-gradient(135deg, #edf7ee 0%, #f8fbf7 68%);
  box-shadow: 0 22px 60px rgba(28, 62, 35, .1);
}

.about-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 70px);
}

.about-eyebrow {
  margin-bottom: 12px;
  color: #2e7d32;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 15ch;
  margin: 0 0 20px;
  color: #183020;
  font-size: clamp(2.35rem, 4.1vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.about-hero p {
  max-width: 62ch;
  margin: 0;
  color: #516057;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.72;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-hero__media {
  min-height: 520px;
  margin: 0;
  background: #e5eee5;
}

.about-hero__media img,
.about-split figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro,
.about-choose,
.about-types {
  padding-top: clamp(64px, 8vw, 104px);
}

.about-master-page .section-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.about-master-page .section-head h2,
.about-split h2,
.about-sources h2,
.about-cta h2 {
  margin: 0;
  color: #183020;
  font-size: clamp(2rem, 3.25vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.about-master-page .section-head p {
  margin: 14px auto 0;
  color: #5a675f;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-fact-grid,
.about-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-fact,
.about-type-grid article,
.about-step {
  padding: 28px;
  border: 1px solid #dfe9df;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 62, 35, .065);
}

.about-fact__index,
.about-step > span,
.about-type__mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 13px;
  background: #e5f3e6;
  color: #2e7d32;
  font-size: .82rem;
  font-weight: 900;
}

.about-fact h3,
.about-step h3,
.about-type-grid h3 {
  margin: 0 0 10px;
  color: #203126;
  font-size: 1.3rem;
  line-height: 1.2;
}

.about-fact p,
.about-step p,
.about-type-grid p,
.about-split p,
.about-sources p {
  margin: 0;
  color: #5a675f;
  line-height: 1.7;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 118px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: #edf5ed;
}

.about-split figure {
  overflow: hidden;
  min-height: 390px;
  margin: 0;
  border-radius: 20px;
}

.about-split > div {
  padding: 14px 10px;
}

.about-split p {
  margin-top: 18px;
}

.about-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-step:nth-child(even) > span {
  background: #f4ece5;
  color: #6b4f38;
}

.about-type-grid article {
  display: flex;
  min-height: 310px;
  flex-direction: column;
}

.about-type-grid a {
  margin-top: auto;
  padding-top: 22px;
  color: #2e7d32;
  font-weight: 800;
  text-decoration: none;
}

.about-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: clamp(70px, 9vw, 116px);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid #e5ddd5;
  border-radius: 24px;
  background: #faf6f2;
}

.about-sources ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-sources a {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #28412e;
  font-weight: 700;
  text-decoration: none;
}

.about-sources a::after {
  margin-left: auto;
  color: #2e7d32;
  content: "→";
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: clamp(32px, 5vw, 54px);
  border-radius: 24px;
  background: #1f5f2b;
  color: #fff;
}

.about-cta .about-eyebrow,
.about-cta h2,
.about-cta p {
  color: #fff;
}

.about-cta p {
  margin: 12px 0 0;
  opacity: .82;
}

.about-cta .btn-primary {
  flex: 0 0 auto;
  border-color: #fff !important;
  background: #fff !important;
  color: #1f5f2b !important;
}

/* Bestseller/curated overview fixes. */
.bestsellers-master-page .featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cooperation has its own warm CTA language inside page content. The global
   header remains byte-for-byte and visually identical to the homepage. */
.cooperation-master-page #main-content .btn-primary,
.cooperation-subpage #main-content .btn-primary {
  border-color: #6b4f38 !important;
  background: #6b4f38 !important;
  color: #fff !important;
}

.cooperation-master-page #main-content .btn-primary:hover,
.cooperation-subpage #main-content .btn-primary:hover {
  border-color: #523b2b !important;
  background: #523b2b !important;
}

.cooperation-master-page .coop-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.cooperation-subpage .placeholder-notice {
  display: block;
}

.cooperation-subpage .placeholder-notice > * {
  margin-inline: 0;
}

.cooperation-master-page .cooperation-hero-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 22px;
}

.cooperation-master-page .cooperation-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cooperation-source-links {
  margin-top: 10px !important;
  font-size: .84rem;
  line-height: 1.55;
}

.cooperation-source-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bestsellers-master-page .btn-registration {
  border-color: #6b4f38 !important;
  background: #6b4f38 !important;
  color: #fff !important;
}

.btn-registration {
  border-color: #6b4f38 !important;
  background: #6b4f38 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(107, 79, 56, 0.18) !important;
}

.btn-registration:hover,
.btn-registration:focus-visible {
  border-color: #513a29 !important;
  background: #513a29 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(81, 58, 41, 0.28) !important;
  transform: translateY(-1px);
}

@media (min-width: 1025px) {
  .blog-filter {
    top: 130px !important;
  }

  .contact-sidebar,
  .cooperation-subpage .quick-overview,
  .cooperation-subpage .steps-sidebar {
    top: 146px !important;
  }
}

@media (max-width: 1024px) {
  .topbar .tablet-cats {
    display: none !important;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__media {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .about-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-filter {
    top: 66px !important;
  }
}

@media (max-width: 768px) {
  .about-master-page #main-content > .container {
    width: min(100% - 24px, 680px);
  }

  .about-hero,
  .about-split,
  .about-sources {
    border-radius: 20px;
  }

  .about-hero__copy {
    padding: 28px 22px 32px;
  }

  .about-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
  }

  .about-fact-grid,
  .about-type-grid,
  .about-split,
  .about-sources {
    grid-template-columns: 1fr;
  }

  .about-type-grid article {
    min-height: auto;
  }

  .about-split {
    padding: 18px;
  }

  .about-split > div {
    order: -1;
  }

  .about-split figure {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .about-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .bestsellers-master-page .featured-card {
    padding: 0 !important;
  }

  .bestsellers-master-page .featured-card > div:first-child {
    padding: 26px 20px !important;
  }

  .bestsellers-master-page .featured-visual {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2;
    order: 0 !important;
  }

  .bestsellers-master-page .compare-section {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .bestsellers-master-page .compare-table {
    min-width: 680px !important;
  }

  .bestsellers-master-page .sleva-cta-actions {
    width: 100%;
    flex-flow: row wrap;
  }

  .bestsellers-master-page .sleva-cta-actions .btn {
    flex: 1 1 190px;
    justify-content: center;
  }

  .cooperation-master-page .cooperation-faq-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .bestsellers-master-page .prod-footer {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .bestsellers-master-page .prod-price,
  .bestsellers-master-page .prod-price-reg {
    text-align: center;
  }

  .bestsellers-master-page .prod-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .about-step-grid {
    grid-template-columns: 1fr;
  }

  .about-actions .btn,
  .about-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cooperation-master-page .sub-grid {
    grid-template-columns: 1fr !important;
  }

  .cooperation-subpage .your-story-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cooperation-subpage .your-story-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
