@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root{
    --main-blue: #1A1091;
}
a{
    cursor: pointer;
}
html, body{
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    color: #1E1E1E;
}
.py-4{
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}
h1, h2, h3, h4, h5{
    color: #000000;
}
h1{
    font-size: 56px;
    font-weight: 700;
}
header{
    color: #ffffff;
    background-color: var(--main-blue);
    padding: 8px 0;
    font-size: 16px;
}
header a{
    text-decoration: none;
    color: #ffffff;
}
.nav-link:focus, .nav-link:hover{
    color: #ffffffc2;
}
.container{
    max-width: 1240px;
}
.nav-link{
    display: flex;
    align-items: center;
    color: #ffffff;
}
.button{
    border-radius: 24px;
    text-decoration: none;
    display: flex;
    gap: 8px;
    padding: 13.5px 16px;
    justify-content: center;
    align-items: center;
    border: 1px solid #ffffff;
    font-size: 16px;
}
.button.filled{
    background-color: #FFFFFF;
    color: #300FF0;
}
.btn.dropdown-toggle{
    border-radius: 24px;
}
.navbar-toggler{
    border: none;
}
.navbar-toggler-icon{
    background-image: url('../images/burger-menu.svg');
}
.btn-close{
    background: transparent url('../images/close.svg') center/1em auto no-repeat;
    width: 24px;
    height: 24px;
    font-size: 24px;
    opacity: 1;
}
.dropdown-toggle::after{
    border: none;
    background-image: url(../images/arrow-down.svg);
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    vertical-align: text-bottom;
}
.dropdown-item{
    display: flex;
    gap: 8px;
}
.dropdown-menu, .dropdown-item:focus, .dropdown-item:hover{
    border-radius: 24px;
}
.offcanvas .nav-link {
    font-size: 18px;
}

/* ===== OFFCANVAS BASE ===== */
.offcanvas-full {
    position: fixed;
    top: 0;
    left: 0; 
    width: 100vw;
    height: 100vh;
    max-width: none;
    border: none;
    background: var(--main-blue);
    color: #fff;
    transform: translate3d(-100%, 0, 0);
    opacity: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* ===== OPEN STATE ===== */
.offcanvas-full.show {
    transform: translate3d(0, 0, 0);
}

.offcanvas {
    transition: none !important;
}

.offcanvas-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.offcanvas-backdrop.show {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.offcanvas-full .offcanvas-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* ===== NAV ITEMS ANIMATION ===== */
.offcanvas-full .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.offcanvas-full.show .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.offcanvas-full.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
.offcanvas-full.show .nav-item:nth-child(2) { transition-delay: 0.15s; }
.offcanvas-full.show .nav-item:nth-child(3) { transition-delay: 0.2s; }

/* ===== LINKS ===== */
.offcanvas-full .nav-link {
    font-size: 22px;
}
.offcanvas-body .button,
.offcanvas-body .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.offcanvas-open {
    padding-right: 0 !important;
}

main{
    padding: 0 0 70px 0;
}
footer{
    background-color: var(--main-blue);
    font-size: 16px;
    color: #ffffff;
}
footer .logo{
    width: 128px;
}
footer .list{
    display: flex;
    flex-wrap: wrap;
    width: auto;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
}
footer a{
    color: #ffffff;
    text-decoration: none;
}
.copyright{
    font-weight: 300;
}
.banner{
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, .7),rgba(0, 0, 0, .1)), url(../images/main-banner.jpg) !important;
    background-size: cover;
    font-size: 24px;
}
.banner .button{
    margin-top: 40px;
    max-width: 400px;
    width: 100%;
}
.news{
    padding-bottom: 48px;
}
.article {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 20px;
}
.article img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.article.main{
    flex-direction: column;
    gap: 12px;
}
.article.main img{
  height: 477px;
}
.articles-block {
  display: grid;
  gap: 16px;
}
.article .title-article{
    font-size: 20px;
    font-weight: 700;
}
.article.main .title-article{
    font-size: 40px;
}
.chip{
    width: fit-content;
    height: auto;
    font-size: 14px;
    padding: 4px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
}
.chip.green{
    color: #008A37;
    background-color: #00FF6640;
}
.chip.pink{
    color: #FD00F4;
    background-color: #FFA9E740;
}
.chip.purpule{
    color: var(--main-blue);
    background-color: #B0A9FF40; 
}
.chip.orange{
    color: #FF7F00;
    background-color: #FF7F0040;
}
.chip.yellow{
    color: #9C7700;
    background-color: #FFD40040;
}
.news .col-md-5{
    padding: 0;
}
.news .col-md-7, .news .col-md-6{
    padding: 0 20px 0 0;
}
.news .flex-row-reverse .col-md-7{
    padding: 0 0 0 20px;
}
.form-title{
    font-size: 40px;
    font-weight: 700;
    text-align: center;
}
.form-title span{
    color: var(--main-blue);
}
button[type=submit]{
    background-color: var(--main-blue);
    color: #ffffff;
    width: 100%;
    margin-top: 24px;
}
.form-label{
    font-size: 14px;
    color: #1E1E1E;
    font-weight: 300;
}
.form-control{
    border: 1px solid #1A109126;
    padding: 16px;
    border-radius: 4px;
}
.form-control::placeholder{
    font-size: 16px;
    color: #1A109126;
}
.form-control#email::before{
    content: "";
    background: url(../images/mail.svg) no-repeat center/contain;
    width: 24px;
    height: 24px;
    display: block;
}
.form-input{
    margin-bottom: 16px;
}
.input-group-text{
    background-color: transparent;
}
.input-group-text.email{
    padding-right: 0;
    border-right: none;
}
.input-group-text.pass{
    padding-left: 0;
    border-left: none;
    cursor: pointer;
}
.form-control[type=email]{
    padding-left: 8px;
}
.form-control.pass{
    padding-right: 8px;
    border-right: none;
}
.modal-header{
    border: none;
}
.modal-body{
    padding: 40px;
}
.modal-dialog{
    max-width: 602px;
}
.modal-body .btn-close{
    margin-left: auto;
    display: block;
    background: transparent url(../images/close-btn.svg) center / 1em auto no-repeat;
}
.modal-dialog.merci{
    margin: inherit;
    height: auto;
    margin: var(--bs-modal-margin);
}
.modal-dialog.merci .modal-content{
    height: auto !important;
    border-radius: var(--bs-modal-border-radius) !important;
}
.modal-dialog.merci .btn-close{
    background: transparent url(../images/close-btn.svg) center / 1em auto no-repeat !important;
    margin-left: auto;
    margin-right: 0;
}
#tnx{
    display: none;
}
#tnx span{
    color: var(--main-blue);
}
.adv{
    background: linear-gradient(209.65deg, #688EFF 0%, var(--main-blue) 98.9%);
    color: #ffffff;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    font-size: 19px;
}
.adv h3{
    color: #ffffff;
}
h2{
    font-weight: 700;
}
.sidebar{
    top: 30px;
}
h3{
    font-size: 28px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plans {
  padding-inline: 16px;
  padding-bottom: 80px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #0B003880;
  border-radius: 16px;
  padding: 32px 24px 40px;
  cursor: pointer;
  transition: 0.3s;
  background: #E9EFFD;
  height: 100%;
}
.plan-card.active {
  background: var(--main-blue);
  border: 2px solid #1A109126;
  color: #fff;
}

.plan-desc {
  color: #787878;
  margin-bottom: 24px;
  text-align: left;
  font-size: 20px;
  font-weight: 400;
  font-family: "Lato", sans-serif;
}

.plan-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--main-blue);
}
.plan-card.active h2 {
  color: #DAE3FE;
}
.plan-card.active .plan-desc {
  color: #C8C7C7;
}

.plan-price {
  margin-bottom: 24px;
}

.price-main {
  font-size: 48px;
  font-weight: 700;
  color: var(--main-blue);
}

.plan-card.active .price-main {
  color: #DAE3FE;
}

.price-period {
  font-size: 20px;
  font-weight: 400;
  font-family: "Lato", sans-serif;
  color: #787878;
}

.plan-card.active .price-period {
  color: #C8C7C7;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  flex-grow: 1;
}

.plan-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}
.plan-card.active .plan-list li {
  color: #DAE3FE;
}
.plan-list svg {
  width: 24px;
  height: 24px;
}

.plan-btn {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  background: var(--main-blue);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-top: auto;
  font-weight: 400;
}

.plan-card.active .plan-btn {
  background: #FFFFFF;
  color: #300FF0;
}
.post-content{
    max-width: 610px;
    width: 100%;
}
.post-content h4{
    color: #1A1091;
    font-size: 20px;
    font-weight: 700;
}
.post-time{
    margin: 8px 0 16px;
    color: #787878;
    font-size: 14px;
    font-weight: 300;
}
