/* =============================
CSS VARIABLES
============================= */
:root {
  --color-primary: #2560d8;
  --color-yellow: #e2ee4d;
  --color-red: #ef5311;
  --color-tomato: #ff4f00;
  --color-bg: #fafafa;

  --color-text: #272928;
  --color-subtext: #505251;
  --color-light-text: #7f7f7f;

  --container-width: 1600px;

      --padding-section: clamp(20px, 6vw, 70px);

  --shadow: 0 4px 10px #00000036;
}

/* BUSINESS — refined layout like on the design */
.section--business {
  padding-top: 48px;
  padding-bottom: 60px;
  position: relative;
}
.section--business .business-backgroung-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.section--business .section__subtitle {
  text-align: left;
  color: #6b6f76;
  margin-top: 8px;
  margin-bottom: 22px;
  font-size: 14px;
}
.section--business .main-bages {
  position: absolute;
  right: 0;
  top: -20px;
  z-index: -1;
}
.business-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 8rem;
}
.business-modules .card__title {
  font-size: 22px;
  background-color: var(--color-yellow);
  padding: 10px 16px;
  border-radius: 10px;
  width: fit-content;
}
.business-modules .card {
  transition: 0.3s ease-in-out;
  box-shadow: 0 6px 13px 0px #0000000a;
}
.business-modules .card:hover {
  transform: translateY(-6px);
}

/* big rounded white container that holds all inner cards */
.business-card {
 /*  background: #fff;
 border-radius: 20px;
 padding: 32px; */
/*   box-shadow: 0px 2px 5px 1px rgb(21 30 46 / 6%),
  inset 0 1px 0 rgb(255 255 255 / 43%); */
  /* display: grid;
  grid-template-columns: 1fr 50%;
  gap: 20px; */
  align-items: start;
  position: relative;
}
.business-card__top {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.business-card__top .card--big {
  flex: 1;
}
.business-card__main .top-side {
  margin-bottom: -27px;
}
.business-card__main .card__body{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.business-card__bg-image {
  position: absolute;
  bottom: 0;
  height: 100%;
  z-index: -1;
}
/* card base */
.card {
  background: transparent;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* large left card: content + illustration */
.card--big {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18, 32, 56, 0.05);
  padding: 23px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card--big .card__body {
  flex: 1 1 auto;
  padding-right: 16px;
  z-index: 1;
}
/* .card__body.for-managers .card__list--dots li:before {
  background: var(--color-red);
}
.card__body.for-self-employed .card__list--dots li:before {
  background: var(--color-yellow);
} */
.card__list--dots li .icon {
    background: #ef5311;
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 100px;
    margin-right: 5px;
}
.card__title {
  margin-bottom: 12px;
  font-weight: 600;
  color: #111;
}

.card__list {
  list-style: none;
  padding-left: 0;
  color: #5a5f66;
  line-height: 1.6;
  font-size: 14px;
}

.img-placeholder--portrait img {
  width: auto;
  height: 100%;
}

.business-card__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0;
  min-width: 45%;
}
.business-card__side .right-side {
  margin-bottom: -20px;
}

.card--small {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(18, 32, 56, 0.05);
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  justify-content: space-between;

}
.card--small .left-side{
   display: flex;
   flex-direction:column;
    height: 100%;
    justify-content: flex-start;
}

.card__meta {
  font-weight: 600;
  color: #1a1f27;
  margin-bottom: 8px;
}

/* dotted bullets like in design for small cards */
.card__list--dots {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__list--dots li {
  position: relative;
  /* display: flex; */
  color: #55606a;
  font-size: 14px;
}


/* bottom stripe inside same outer container */
.business-card__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eceff6;
  border-radius: 12px;
  padding: 24px;
  margin-top: 18px;
      box-shadow: var(--shadow);
}
.business-card__bottom-text{
    max-width: 65%;
}
.business-card__bottom-text p {
  margin: 10px 0 0 0;
  color: #5f6670;
  font-size: 14px;
}

/* small variant of primary button */
.btn--small {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* =============================
BANNER
============================= */
.section--banner {
  padding: 40px 0 60px;
}

.banner {
  width: 100%;
  background: linear-gradient(90deg, #295acc, #2561da);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.banner__content {
  color: #fff;
  width: 75%;
}

.banner__title {
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.banner__subtitle {
  font-size: 16px;
  margin-bottom: 22px;
  line-height: 1.45;
  opacity: 0.9;
}

.banner__image {
    width: 300px;
    position: absolute;
    bottom: 12px;
    right: 35px;
    z-index: 0;
}
.banner__image img {
  width: 100%;
  height: auto;
}

.section--domesticplatform .banner__image{
    position: inherit;
}
/* MOBILE */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .banner__content {
    max-width: 100%;
    text-align: left;
    width: 100%;
  }
  .banner__image {
    width: auto;
    margin-bottom: -34px;
    position: relative;
    bottom: 0;
    right: 0;

  }
  .banner__image img {
    width: auto;
  }
  .business-card__bottom-text{
    max-width: 100%;
  }
}

/* =============================
Section--cloud
============================= */

.section--cloud__title {
  text-align: center;
  margin-bottom: 24px;
}
.section--cloud__articles {
  display: flex;
  background-image: url("../image/index/cloud-mask.png");
  width: 100%;
  min-height: 370px;
  background-position: top;
  background-size: cover;
  box-shadow: var(--shadow);
  border-radius: 20px;
}
.section--cloud__articles .left {
  width: 45%;
  position: relative;
  padding: 2rem;
}
.section--cloud__articles .left .card__body {
  max-width: 80%;
}
.section--cloud__articles .left .card__illustration {
  position: absolute;
  right: 25px;
  bottom: -4px;
  z-index: -1;
}

.section--cloud__articles .right {
  width: 55%;
  padding: 2rem;
}
.section--cloud__articles .right .card__illustration {
  margin-bottom: -139px;
}

/* section--webapp */
.section--webapp {
  position: relative;
}
.business-backgroung-image {
  position: absolute;
  right: 0;
  bottom: -170px;
  width: 100%;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
}
.business-backgroung-image img {
  width: 100%;
  height: 99%;
}
.section--webapp .section--webapp__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  gap: 3rem;
}
.section--webapp .section--webapp__wrap .section--webapp__title {
  margin-bottom: 16px;
}
.section--webapp .section--webapp__wrap .section--webapp__text p {
  letter-spacing: 0.5px;
  font-size: 14px;
  color: var(--color-subtext);
  line-height: 140%;
}
.section--webapp .section--webapp__wrap .section--webapp__subtitle p {
    letter-spacing: 0.5px;
    font-size: 14px;
    color: var(--color-subtext);
    line-height: 140%;
}
.section--webapp .section--webapp__wrap .section--webapp__subtitle {
  margin-bottom: 5px;
}
.section--webapp .section--webapp__wrap .section--webapp__buttons {
  display: flex;
  gap: 32px;
  margin-top:30px;
  flex-wrap: wrap;
}
.section--webapp .section--webapp__wrap .section--webapp__buttons a {
  transition: 0.3s ease-in-out;
}
.section--webapp .section--webapp__wrap .section--webapp__buttons a:hover {
  transform: translateY(-6px);
}

/* =========================== domestic platform ============================= */
.section--domesticplatform{
  z-index: 2;
  position: relative;
}
.section--domesticplatform .banner {
  background: #fffffb;
  box-shadow: none;
  justify-content: normal;
  gap: 3rem;
}
.section--domesticplatform .banner__image {
  width: auto;
  margin-bottom: 0;
}
.section--domesticplatform .banner__content {
  color: var(--color-subtext);
  flex: 1 1 0;
}
.section--domesticplatform .banner__title {
  color: #272928;
  margin-bottom: 8px;
}
.section--domesticplatform .banner__subtitle {
  opacity: 1;
  color: var(--color-subtext);
}
.section--domesticplatform .baner__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.section--domesticplatform .baner__steps .baner__step--tiltle {
  color: var(--color-tomato);
  font-size: 18px;
}
.section--domesticplatform .baner__steps .baner__step--subtiltle {
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section--domesticplatform .baner__steps .baner__step--subtiltle a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =============================
MEDIA QUERIES
============================= */

/* >= 768px */
@media (min-width: 768px) {
  .nav--desktop {
    display: block;
  }

  .header__login {
    display: inline-block;
  }

  #burgerBtn {
    display: none;
  }
}
/* >= 1200px */
@media (min-width: 1200px) {
}
@media (max-width: 1024px) {
  .business-card {
    grid-template-columns: 1fr 300px;
  }
}
/* <= 768px */
@media (max-width: 958px) {
   .business-card__side{
       min-width: 100%;
   }
   .card--small .left-side{
       height: auto;
   }
}
@media (max-width: 768px) {
  .section--business {
    padding: 28px 0;
  }
  .section__title {
    font-size: 20px;
  }
  .section__subtitle {
    text-align: center;
    margin-bottom: 18px;
  }
  .business-modules {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 4rem;
  }
  .business-modules .card__title {
    font-size: 19px;
  }
  .business-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .section--business .main-bages {
    opacity: 0.34;
  }
  .card--big {
    align-items: flex-start;
    position: relative;
  }
  .card--big .card__body {
    padding: 0;
  }
  .card__illustration {
    position: absolute;
    right: 0;
    opacity: 0.14;
    z-index: 0;
    top: 22px;
  }
  .card--big .top-side {
    margin-bottom: -26px;
  }
  .card--small .right-side {
    margin-bottom: -20px;
  }
  .business-card__side {
    flex-direction: column;
    width: 100%;
  }
  .business-card__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .business-card__bottom-cta {
    display: flex;
  }
  .section--cloud__articles {
    flex-direction: column;
  }
  .section--cloud__articles .card {
    width: 100%;
  }
  .section--cloud__articles .left .card__illustration {
    position: absolute;
    transform: rotate(-90deg);
    z-index: 0;
    opacity: 1;
    top: 0;
    right: 0;
    height: auto;
  }
  .section--cloud__articles .left .card__illustration img {
    width: 100%;
    border-radius: 0;
    opacity: .7;
  }
  .section--cloud__articles .right .card__illustration {
    display: none;
  }
  .section--cloud__articles .left .card__body {
    max-width: 100%;
  }
  .section--webapp .section--webapp__wrap{
    flex-direction: column;
  }
  .section--webapp .section--webapp__wrap .section--webapp__subtitle p {
    max-width: 100%;
  }

  .section--webapp .section--webapp__wrap .section--webapp__buttons {
    gap: 10px;
  }
  .section--webapp .section--webapp__wrap .section--webapp__buttons img {
    width: 100%;
    max-width: 155px;
    height: auto;
    border: 1px solid #dddddd;
    border-radius: 12px;
  }
  .section--webapp .section--webapp__image img {
    width: 100%;
  }
  .section--domesticplatform .baner__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* <= 560px */
@media (max-width: 540px) {
  .card--big {
    flex-direction: column;
    align-items: center;
  }
  .card--small {
    justify-content: center;
    flex-wrap: wrap;
  }
  .main-bages {
    display: none;
  }
  .hero__image {
    min-height: 290px;
  }
  .section--domesticplatform .baner__steps {
    grid-template-columns: repeat(1, 1fr);
  }
  .section--domesticplatform .baner__steps .baner__step--subtiltle {
    max-width: inherit;
    display: block;
  }
}
