:root {
  --green-halal: #28a745;
  --green-light: #d4edda;
  --gold: #ffd700;
  --gold-light: #fff3cd;
  --white: #ffffff;
  --blue-dark: #0d3b66;
  --maroon: #84263f;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  font-family: "Cairo", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.8;
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.policy-page a{
  text-decoration: none !important;
  color: #067342 !important;
}
.container-about a{
  text-decoration: none !important;
  color: #067342 !important;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--blue-dark);
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 100px;
  height: 4px;
  background: var(--green-halal);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--green-halal), #1e7e34);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ffc107);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.badge-halal {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-halal);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 10px;
  border: 2px solid var(--green-halal);
}

input,
select,
textarea {
  font-family: "Cairo", sans-serif;
}

.certificate {
  background: white;
  border-radius: 12px;
  padding: 30px;
  border: 2px solid #e9ecef;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--green-light);
}

.certificate-title {
  color: var(--blue-dark);
  font-size: 1.5rem;
  margin: 0;
}

.certificate-number {
  color: var(--green-halal);
  font-weight: bold;
  font-size: 1.1rem;
}

.header {
  position: fixed;
  background-color: #fff;
  width: 100%;
  z-index: 99;
}

.header .container {
  max-width: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-image {
  width: 70px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 2em;
  font-weight: 700;
  color: #134640;
}

.places {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 40%;
  background: linear-gradient(180deg, #2ba77b, #10e1a2);
  color: #fff;
  width: 100%;
  max-width: 135px;
  padding: 15px;
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.places p {
  font-size: 1em;
  line-height: 1.2;
}

.places p span#qntyPlaces {
  font-size: 2em;
  line-height: 1;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .places {
    padding: 15px 0px;
  }
}

@media screen and (max-width: 767px) {
  .places {
    max-width: 85px;
  left: 17% !important;
  }
}

.section--hero-cert {
  background: linear-gradient(rgba(13, 59, 102, 0.9), rgba(13, 59, 102, 0.9));
  background-size: cover;
  color: #fff;
  padding: 100px 0;
}

.container-about{
  padding-top: 30px;
}

.section--hero-cert {
  padding: 100px 0 20px ;
  position: relative;
  background-image: url(../img/fon.png);
  background-position: top;
  background-size: cover;
}

.hero-cert__badges {
  text-align: center;
  margin-bottom: 40px;
}

.badge-halal--white {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
  margin-bottom: 10px;
}

.badge-halal--gold {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
  border-color: var(--gold);
}

.hero-cert__title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
}

.hero-cert__subtitle {
  position: relative;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
}

.hero-cert__subtitle::before,
.hero-cert__subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
}

.hero-cert__subtitle::before {
  left: -100px;
  /* background-image: url("../img/image-left.png"); */
}

.hero-cert__subtitle::after {
  right: -90px;
  /* background-image: url("../img/image-right.png"); */
}

@media (max-width: 1000px) {
  .hero-cert__subtitle::before,
  .hero-cert__subtitle::after {
    display: none;
  }
}

.hero-cert__title-accent {
  color: var(--gold);
}

.hero-cert__subtitle {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.hero-cert__grid {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
  gap: 40px;
  margin: 60px 0;
}

.hero-cert__certificate,
.hero-cert__cta {
  flex: 1;
  min-width: 300px;
}

.certificate-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 5px;
}

.certificate__body {
  background: var(--gray-light);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-right: 4px solid var(--green-halal);
}

.certificate__intro {
  text-align: center;
  margin-bottom: 20px;
}

.certificate__intro-title {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.certificate__intro-text {
  color: var(--gray);
  font-size: 0.9rem;
}

.certificate__content {
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}

.certificate__company {
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.certificate__desc {
  margin-bottom: 15px;
  line-height: 1.6;
  color: gray;
}

.certificate__confirm {
  color: var(--green-halal);
  font-weight: 600;
  line-height: 1.6;
  padding: 15px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 8px;
}

.certificate__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.feature {
  display: flex;
  align-items: center;
}

.feature__icon {
  background: var(--green-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  flex-shrink: 0;
}

.feature__check {
  color: var(--green-halal);
  font-size: 0.9rem;
}

.feature__text {
  font-size: 0.9rem;
  color: gray;
}

.certificate__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.meta__label {
  font-size: 0.9rem;
  color: var(--gray);
}

.meta__value {
  font-weight: 600;
  margin-top: 5px;
  color: var(--gray);
}

.certificate__qr {
  text-align: center;
  margin-top: 25px;
}

.qr-box {
  display: inline-block;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid var(--green-light);
}

.qr-box__img {
  width: 150px;
  height: 150px;
}

.qr-box__text {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 10px;
}

.cta-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-card__title {
  color: var(--blue-dark);
  margin-bottom: 20px;
  text-align: center;
}

.cta-card__list {
  margin-bottom: 30px;
}

.cta-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.cta-item__icon {
  background: var(--green-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  flex-shrink: 0;
}

.cta-item__check {
  color: var(--green-halal);
  font-weight: bold;
}

.cta-item__text {
  color: var(--blue-dark);
}

.btn--lg {
  font-size: 1.3rem;
  padding: 18px 50px;
}

.btn__icon {
  margin-left: 10px;
}

.cta-card__bottom {
  text-align: center;
}

.cta-card__note {
  color: var(--gray);
  margin-top: 15px;
  font-size: 0.9rem;
}

/* --- Responsive: hero-cert --- */

/* чтобы большие слова/цифры не разрывали лэйаут */
.hero-cert__title,
.hero-cert__subtitle,
.certificate__desc,
.certificate__company,
.cta-item__text {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .section--hero-cert {
    padding: 90px 0;
  }

  .hero-cert__title {
    font-size: 2.8rem;
  }

  .hero-cert__subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
  }

  .hero-cert__grid {
    margin: 40px 0;
    gap: 28px;
  }

  .cta-card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .section--hero-cert {
    /* padding: 60px 0; */
    background-position: center;
  }

  .hero-cert__badges {
    margin-bottom: 25px;
  }

  /* заголовки меньше + безопасные отступы */
  .hero-cert__title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-cert__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 10px;
  }

  /* одна колонка (CTA сверху/снизу решает wrap-reverse) */
  .hero-cert__grid {
    flex-direction: column-reverse;
    /* CTA ниже сертификата? поменяй на column */
    margin: 28px 0;
    gap: 20px;
  }

  .hero-cert__certificate,
  .hero-cert__cta {
    min-width: 100%;
  }

  /* сертификат — меньше паддинги */
  .certificate__body {
    padding: 18px;
  }

  .certificate__features {
    grid-template-columns: 1fr;
    /* чтобы не пихать 2 в ряд на узких */
    gap: 12px;
    margin: 18px 0;
  }

  /* meta: вместо "в ряд" → сетка 2 колонки */
  .certificate__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    text-align: center;
  }

  /* если нужно, чтобы третий элемент занимал всю ширину */
  .certificate__meta .meta:nth-child(3) {
    grid-column: 1 / -1;
  }

  .qr-box__img {
    width: 120px;
    height: 120px;
  }

  .cta-card {
    padding: 22px;
  }

  .cta-card__title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .cta-item__icon {
    width: 36px;
    height: 36px;
    margin-left: 12px;
  }

  .btn--lg {
    width: 100%;
    padding: 16px 18px;
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .section--hero-cert {
    /* padding: 48px 0; */
  }

  .hero-cert__title {
    font-size: 1.6rem;
  }

  .hero-cert__subtitle {
    font-size: 1rem;
    padding: 0;
  }

  .certificate__body {
    padding: 16px;
  }

  .cta-card {
    padding: 18px;
  }

  /* meta на самых маленьких — в одну колонку */
  .certificate__meta {
    grid-template-columns: 1fr;
  }

  .certificate__meta .meta:nth-child(3) {
    grid-column: auto;
  }
}

.section--white {
  background-color: var(--white);
}

.sharia-team__subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto 50px;
}

.sharia-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.expert-card {
  background: var(--gray-light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(0 0 0 / 18%);
  transition: transform 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-4px);
}

.expert-card__media {
  height: 200px;
  overflow: hidden;
}

.expert-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-card__body {
  padding: 25px;
  text-align: center;
}

.expert-card__name {
  color: var(--blue-dark);
  margin-bottom: 5px;
}

.expert-card__role {
  color: var(--green-halal);
  font-weight: 600;
  margin-bottom: 10px;
}

.expert-card__desc {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.expert-card__tags {
  margin-top: 15px;
}

.tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-block;
  margin: 2px;
}

.tag--green {
  background: var(--green-light);
  color: var(--green-halal);
}

.sharia-team__cta {
  text-align: center;
  margin-top: 50px;
}

.btn--with-icon .btn__icon {
  margin-left: 10px;
}

.section--investor-stories {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--white) 100%);
}

.section-title--maroon {
  color: var(--maroon);
}

.stories__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.stories__media,
.stories__details {
  flex: 1;
  min-width: 300px;
}

.stories__media-wrap {
  position: relative;
}

.stories__img {
  width: 100%;
  /* max-height: 400px;
      object-fit: cover; */
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stories__img-caption {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 250px;
}

.stories__img-title {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.stories__img-text {
  color: var(--gray);
  font-size: 0.9rem;
}

.stories-card {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stories-card__headline {
  color: var(--blue-dark);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.stories-card__profit {
  color: var(--green-halal);
}

.stats {
  margin-bottom: 30px;
}

.stats__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.stats__row--no-border {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.stats__label {
  color: var(--gray);
}

.stats__value {
  color: var(--blue-dark);
  font-weight: 600;
}

.stats__value--green {
  color: var(--green-halal);
}

.stats__value--gold {
  color: var(--gold);
}

.quote-box {
  background: var(--green-light);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  border-right: 4px solid var(--green-halal);
}

.quote-box__text {
  color: var(--blue-dark);
  font-style: italic;
  line-height: 1.8;
}

.quote-box__author {
  color: var(--gray);
  text-align: left;
  margin-top: 10px;
  font-size: 0.9rem;
}

.mini-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.mini-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  border: 2px solid var(--gold-light);
}

.mini-stat__num {
  font-size: 1.5rem;
  color: var(--green-halal);
  font-weight: bold;
}

.mini-stat__label {
  font-size: 0.9rem;
  color: var(--gray);
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.story-tile {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.story-tile__icon {
  width: 60px;
  height: 60px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.story-tile__emoji {
  font-size: 1.5rem;
}

.story-tile__title {
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.story-tile__text {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.section--white {
  background-color: var(--white);
}

.calculator {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blue-dark), #1a4d80);
  border-radius: 20px;
  padding: 50px;
  color: #fff;
  box-shadow: 0 15px 40px rgba(13, 59, 102, 0.2);
}

.calculator__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.calc-field__label {
  display: block;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.calc-field__range {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.calc-field__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.calc-field__value {
  font-weight: bold;
  color: var(--gold);
  font-size: 1.2rem;
}

.calculator__results {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.results-grid__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

.results-grid__value {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.results-grid__value--green {
  color: var(--green-halal);
}

.results-grid__value--gold {
  color: var(--gold);
}

.calculator__zakat {
  text-align: center;
  margin-top: 20px;
}

.zakat-pill {
  display: inline-block;
  background: rgba(40, 167, 69, 0.2);
  color: var(--green-halal);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.zakat-pill__value {
  font-weight: bold;
}

.calculator__cta {
  text-align: center;
}

.btn--calc {
  font-size: 1.3rem;
  padding: 18px 50px;
  background: linear-gradient(135deg, var(--gold), #ffc107);
}

.btn--calc .btn__icon {
  margin-left: 10px;
}

.btn__start-amount {
  color: var(--blue-dark);
}

.calculator__note {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  font-size: 0.9rem;
}

.notice {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 20px;
  background: var(--green-light);
  border-radius: 10px;
  border-right: 4px solid var(--green-halal);
}

.notice__title {
  color: var(--blue-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.notice__icon {
  margin-left: 10px;
}

.notice__text {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.section--register {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--white) 100%);
}

.register-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.register-card__decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.register-card__decor--top {
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--green-halal);
}

.register-card__decor--bottom {
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: var(--gold);
}

.register-card__header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.register-card__title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.register-card__subtitle {
  color: var(--gray);
}

.register-form {
  position: relative;
  z-index: 1;
}

.form-field {
  margin-bottom: 25px;
}

.form-field__label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-weight: 600;
}

.form-field__input,
.form-field__select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
}

.form-field__input {
  transition: border-color 0.3s ease;
}

.phone-field {
  display: flex;
}

.phone-field__code {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px 0 0 10px;
  background: var(--gray-light);
  width: 100px;
  border-left: none;
}

.phone-field__number {
  flex: 1;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
}

.form-agreements {
  margin-bottom: 30px;
}

.agreements-box {
  background: var(--green-light);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.check-row {
  display: flex;
  align-items: flex-start;
}

.check-row + .check-row {
  margin-top: 15px;
}

.check-row__input {
  margin-left: 10px;
  margin-top: 5px;
}

.check-row__label {
  color: var(--blue-dark);
  line-height: 1.6;
}

.check-row--small .check-row__label {
  font-size: 0.9rem;
}

.btn--register {
  width: 100%;
  font-size: 1.3rem;
  padding: 20px;
}

.btn--register .btn__icon {
  margin-left: 10px;
}

.register-form__note {
  text-align: center;
  color: var(--gray);
  margin-top: 20px;
  font-size: 0.9rem;
}

.register-card__footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  position: relative;
  z-index: 1;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  background: var(--gray-light);
  padding: 10px 20px;
  border-radius: 25px;
  color: var(--gray);
}

.contact-pill__icon {
  margin-left: 10px;
}

.contact-pill__phone {
  color: var(--blue-dark);
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lander-form-wrapper {
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
  border: 0;
  border-radius: 6px;
}

.lander-form-header {
  font-size: 20px;
  margin: 0;
  padding: 30px 20px;
  letter-spacing: 1px;
  text-align: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.lander-form {
  padding: 20px;
  position: relative;
}

.lander-form .lander-form-loading-overlay,
.lander-form .lander-form-success-overlay {
  display: none;
}

.lander-form.lander-form-loading .lander-form-loading-overlay,
.lander-form.lander-form-success .lander-form-success-overlay {
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1000;
}

.lander-form-loading-overlay .lds-dual-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -80px;
  margin-left: -40px;
}

.lander-form-success-overlay .animated-check-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -45px;
  margin-left: -120px;
}

.lander-form-field {
  margin-bottom: 15px;
  width: 100%;
  box-sizing: initial;
  position: relative;
}

.lander-form-field label {
  display: block;
}

.lander-form-field input {
  color: #000;
  font-size: 16px;
  line-height: 42px;
  box-sizing: border-box !important;
  margin: 0 !important;
  font-weight: 400;
  transition: 0.3s;
  display: block;
  width: 100%;
  height: 50px !important;
  background-color: #fff;
  border: 1px solid #ced4da;
  padding: 10px;
  outline: 0;
  box-sizing: initial;
  position: relative;
  border-radius: 10px;
}

.lander-form-wrapper,
.lander-form-field .lander-submit {
  box-shadow: 0 4px 20.9px 3.1px rgb(13 13 13 / 43%);
}

.lander-form-field .lander-submit {
  box-shadow: #1e7e34 0 0 0 0;
  animation: 2s ease 0s infinite normal none running pulsing;
}

.lander-form-steps {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 25px;
}

.lander-form-steps .lander-form-step {
  border-radius: 5px;
  background: #e7e7e7;
  height: 7px;
  width: 100%;
  margin-left: 5px;
  margin-right: 5px;
}

.lander-form-steps .lander-form-step.lander-form-step-active {
  background: #1e7e34;
}

@keyframes pulsing {
  100% {
    box-shadow: transparent 0 0 0 10px;
  }
}

.lander-form-header,
.lander-form-field .lander-submit {
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--green-halal), #1e7e34);
  text-transform: uppercase;
  color: #fff;
}

.lander-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  transition: all 0.3s ease;
}

.lander-form-field .lander-submit {
  margin: 15px auto 0 !important;
  display: block;
  font-size: 20px;
  position: relative;
  padding: 0;
  width: 90%;
  min-height: 60px;
  cursor: pointer;
  white-space: normal;
  border: none;
  /* transition: 50ms ease-out; */
  transition: all 0.3s ease;
}

.lander-form-field span.error {
  background: #dc3545;
  font-size: 16px;
  padding: 3px 7px;
  color: #fff;
  box-sizing: initial;
  top: 50%;
  position: absolute;
  width: auto;
  right: 37px;
  z-index: 100;
  font-size: 14px;
  line-height: 1.5;
  height: 24px;
  margin-top: -15px;
  font-weight: 400;

  display: none !important;
  cursor: pointer;
}

.lander-form-field span.error.tooltip-error {
  display: block !important;
}

.lander-form-field-validation-ok span.error.tooltip-error {
  display: none !important;
}

.lander-form-field input.error {
  /*border-color: #dc3545;*/
}

.lander-form-field-validation-icon::after {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  line-height: 1;
  font-size: 20px;
}

.lander-form-field-validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  box-sizing: initial;
  font-size: 20px;
  line-height: 1;
}

.lander-form-field-validation.lander-form-field-validation-ok input {
  outline: 2px solid #198754;
}

.lander-form-field-validation.lander-form-field-validation-ok .lander-form-field-validation-icon:after {
  display: block;
  content: "\f058";
  color: #198754;
}

.lander-form-field-validation-error input {
  outline: 2px solid #dc3545;
}

.lander-form-field-validation.lander-form-field-validation-error .lander-form-field-validation-icon:after {
  content: "\f06a";
  color: #dc3545;
  cursor: pointer;
}

.footer {
  background: var(--blue-dark);
  color: #fff;
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  margin-bottom: 20px;
  color: var(--gold);
}

.footer__text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__title {
  margin-bottom: 20px;
  color: var(--gold);
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

.license-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.license-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 100px;
}

.license-card__name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.license-card__desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-list {
  color: rgba(255, 255, 255, 0.7);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-item__icon {
  margin-left: 10px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer__note {
  margin-top: 10px;
  line-height: 1.6;
}

@media (max-width: 500px) {
  .certificate {
    padding: 10px;
  }
  .section--hero-cert {
    padding-bottom: 30px;
  }
  .section {
    padding: 40px 0;
  }
  .stories-card {
    padding: 15px;
  }
  .calculator {
    padding: 20px;
  }
  .register-card {
    padding: 10px;
  }
  .section--hero-cert {
    padding-top: 90px;
  }
}

/* About page: flag left, text right (independent of page RTL) */
.about-layout__split {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin: 2.5rem 0;
}

.about-layout__figure {
  flex: 0 0 auto;
  margin: 0;
  max-width: min(100%, 380px);
}

.about-layout__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-layout__text {
  flex: 1 1 280px;
  min-width: 0;
}

@media (max-width: 767px) {
  .about-layout__split {
    flex-direction: column;
    align-items: stretch;
  }

  .about-layout__figure {
    max-width: 100%;
  }
}

/* Contact page: contact info left, form right (grid uses LTR; cards use RTL for Arabic) */
.contact-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-grid .contact-card {
  flex: 1 1 300px;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-grid .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.contact-grid .social-row a {
  color: #067342;
  font-weight: 600;
}

@media (max-width: 767px) {
  .contact-grid {
    flex-direction: column;
  }
}
.contact-info a{
  text-decoration: none !important;
color: #067342 !important;
}
.header-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1001;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.header-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: #134640;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

.header-burger:hover {
  background: rgba(19, 70, 64, 0.08);
}

.header-burger:focus-visible {
  outline: 2px solid #067342;
  outline-offset: 2px;
}

.header-burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-burger__line + .header-burger__line {
  margin-top: 6px;
}

.header.is-menu-open .header-burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header.is-menu-open .header-burger__line:nth-child(2) {
  opacity: 0;
}

.header.is-menu-open .header-burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(19, 70, 64, 0.4);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header.is-menu-open {
  z-index: 1000;
}

.header.is-menu-open .header-nav-backdrop {
  display: block;
}

body.is-header-menu-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .header-burger {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(80px + env(safe-area-inset-top, 0px)) 1.25rem 1.5rem;
    padding-left: calc(1.25rem + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    background: #fff;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .header.is-menu-open .header-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(19, 70, 64, 0.12);
    width: 100%;
    text-align: center; 
  }

  .nav-list li a {
    display: block;
    padding: 14px 4px;
    font-size: 1.125rem;
  }

  .header-nav .change-lang {
    align-self: stretch;
    justify-content: stretch;
    margin-top: auto;
  }

  .header-nav .change-lang__btn {
    flex: 1;
  }

  .logo-name {
    font-size: clamp(1.15rem, 4.2vw, 1.65rem);
  }

  .logo-image {
    width: 52px;
  }

  .places {
    left: 7%;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .header-nav {
    gap: 32px;
  }

  .nav-list li a {
    font-size: 18px;
  }
}

.nav-list{
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li a{
  font-size: 22px;
  text-decoration: none;
  color: #134640;
}

.change-lang {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
  border: 1px solid #134640;
  border-radius: 999px;
  background: #fff;
  /* одна маска скругления на обёртке: без «зазоров» белого фона у углов сегментов */
  overflow: hidden;
}

.change-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-width: 4.25rem;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: #134640;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.change-lang__btn + .change-lang__btn {
  border-inline-start: 1px solid #134640;
}

.change-lang__btn:hover {
  background: rgba(19, 70, 64, 0.08);
}

.change-lang__btn:focus-visible {
  outline: 2px solid #067342;
  outline-offset: 2px;
  z-index: 1;
}

.change-lang__btn--active {
  background: #134640;
  color: #fff;
}

.change-lang__btn--active:hover {
  background: #0d332f;
  color: #fff;
}

@media (max-width: 767px) {
  .change-lang__btn {
    padding: 6px 10px;
    min-width: 3.75rem;
    font-size: 13px;
  }
}

/* Contact page: branch tabs (PR / CR) */
.branch-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.13);
}

.branch-tab {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", Times, serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: clamp(10px, 2.4vw, 15px);
  line-height: 1.2;
  padding: 14px 10px;
  min-height: 52px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #d0180d;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 0 0 1px rgba(208, 24, 13, 0.18);
}

.branch-tab:hover:not(.branch-tab--active) {
  background: #fff5f3;
}

.branch-tab:focus-visible {
  outline: 3px solid #d0180d;
  outline-offset: 3px;
}

.branch-tab--active {
  background: #d0180d;
  color: #fff;
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.13);
}

.branch-tab--active:hover {
  background: #b8140b;
  color: #fff;
}

.branch-tabs .branch-tab:not(:last-child) {
  margin-right: 12px;
}

@supports (gap: 12px) {
  .branch-tabs .branch-tab:not(:last-child) {
    margin-right: 0;
  }
}