@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&family=Poppins:wght@400;500;600&display=swap');


:root {
  --primary-color: #450493;
  --text-dark: #2c2724;
  --white: #ffffff;
  --max-width: 1200px;
  --background-color: #212121;
}
body{
    background-color: var(--background-color);
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.btn {
  outline: none;
  border: none;
  transition: 0.3s;
  cursor: pointer;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

body {
  font-family: "Montserrat", sans-serif;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 2rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--background-color);
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-weight: 600;
  color: var(--white);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__btns {
  display: none;
}

.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 0;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  overflow: hidden;
}

.container__left {
  padding-inline: 1rem;
  text-align: center;
}

.container__left h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 4.5rem;
  color: var(--white);
}

.container__left .btn {
  padding: 1rem 2rem;
  letter-spacing: 2px;
  color: var(--text-dark);
  background-color: var(--white);
  border-radius: 5rem;
}

.container__left .btn:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.container__right {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
}

.container__right::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  transform-origin: left;
  height: 80%;
  background-color: var(--primary-color);
  border-radius: 1rem;
  z-index: -1;

  animation: show 0.75s 1.25s ease-in-out forwards;
}

@keyframes show {
  0% {
    width: 0;
  }
  100% {
    width: calc(100% - 2rem);
  }
}

.images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tent-1 {
  max-width: 300px;
  transform: translateX(1rem);
  border-radius: 1rem;
}

.tent-2 {
  max-width: 180px;
  transform: translateX(-1rem);
  border-radius: 1rem;
}

.content {
  padding-block: 0 5rem;
  padding-inline: 2rem;
  text-align: center;
}

.content h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.content h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
}

.content h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.content p {
  line-height: 1.75rem;
  color: var(--white);
}




@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a {
    color: var(--white);
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none;
  }

  .nav__links a,
  .nav__links a:hover {
    color: var(--white);
  }

  .nav__btns {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav__btns .btn {
    font-size: 1.5rem;
    color: var(--white);
    background-color: transparent;
  }

  .container {
    grid-template-columns: 2fr 3fr;
    align-items: center;
    padding: 2rem 0;
  }

  .container__left {
    text-align: left;
  }
}

@media (width > 1024px) {
  .container__right {
    grid-template-columns: 1fr 2fr;
    align-items: center;
  }

  .container__right::before {
    bottom: unset;
    top: 0;
    height: 90%;
  }

  .images {
    flex-direction: column;
  }

  .tent-1 {
    width: calc(100% + 10rem);
    max-width: 325px;
    transform: translate(-2rem, 2rem);
  }

  .tent-2 {
    max-width: 200px;
    transform: translate(4rem, -1rem);
  }

  .content {
    padding-block: 5rem;
    text-align: left;
    max-width: 400px;
    margin-inline-start: unset;
  }
}
.plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out both;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.wrapper {
    width: 55%;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
    animation: scaleIn 0.6s ease-out 5s both; /* Задержка 0.2s */
    background-color: #2E2E2E;
    color: var(--white);
}
.wrapper header{
    height: 55px;
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    position: relative;
}

header label{
    height: 100%;
    z-index: 2;
    width: 16.66%;
    display: flex;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    color: var(--white);
}

#tab-1:checked ~ header .tab-1,
#tab-2:checked ~ header .tab-2,
#tab-3:checked ~ header .tab-3,
#tab-4:checked ~ header .tab-4,
#tab-5:checked ~ header .tab-5,
#tab-6:checked ~ header .tab-6{
    font-weight: bolder;
}

header .slider{
    position: absolute;
    height: 85%;
    border-radius: inherit;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

#tab-1:checked ~ header .slider{
    left: 0%;
    width: 16.66%;
    transform: translateX(0%);
}
#tab-2:checked ~ header .slider{
    left: 16.66%;
    width: 16.66%;
    transform: translateX(0%);
}
#tab-3:checked ~ header .slider{
    left: 33.32%;
    width: 16.66%;
    transform: translateX(0%);
}
#tab-4:checked ~ header .slider{
    left: 49.98%;
    width: 16.66%;
    transform: translateX(0%);
}
#tab-5:checked ~ header .slider{
    left: 66.64%;
    width: 16.66%;
    transform: translateX(0%);
}
#tab-6:checked ~ header .slider{
    left: 83.3%;
    width: 16.66%;
    transform: translateX(0%);
}

.wrapper input[type="radio"]{
    display: none;
}
.card-area{
    overflow: hidden;
}
.card-area .cards{
    display: flex;
    width: 600%;
}
.cards .row{
    width: 16.66%;
}

#tab-1:checked ~ .card-area .cards .row-1{
    margin-left: 0%;
}
#tab-2:checked ~ .card-area .cards .row-1{
    margin-left: -16.66%;
}
#tab-3:checked ~ .card-area .cards .row-1{
    margin-left: -33.32%;
}
#tab-4:checked ~ .card-area .cards .row-1{
    margin-left: -49.98%;
}
#tab-5:checked ~ .card-area .cards .row-1{
    margin-left: -66.64%;
}
#tab-6:checked ~ .card-area .cards .row-1{
    margin-left: -83.3%;
}

.row .price-details{
    margin: 20px 0;
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e6e6e6;
}
.price-details .price{
    font-size: 65px;
    font-weight: 600;
    position: relative;
    font-family: "Noto Sans" , sans-serif;
}
.price-details .price::after{
    content: "/руб. в месяц";
    right: -33px;
    bottom: 17px;
    font-size: 13px;
}
.price-details p{
    font-size: 18px;
    margin-top: 5px;
}
.row .features li{
    display: flex;
    font-size: 15px;
    list-style: none;
    margin-bottom: 10px;
    align-items: center;
}
.features li i{
    background: var(--primary-color);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.features li span{
    margin-left: 10px;
}
.wrapper button{
    width: 100%;
    border-radius: 25px;
    border: none;
    outline: none;
    height: 50px;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    margin-top: 20px;
    background: var(--primary-color);
    transition: transform 5s ease;
}
.wrapper button:hover{
    transform: scale(0.98);
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

header label {
    animation: fadeIn 0.5s ease-out 5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-area {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.wrapper button {
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

@media (max-width: 768px) {
    .plan {
        padding: 10px;
        animation: fadeInUp 0.6s ease-out both;
    }
    
    .wrapper {
        width: 95%;
        padding: 20px 15px;
        animation: scaleIn 0.5s ease-out 0.2s both;
    }
    
    .wrapper header {
        height: 45px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0 10px;
    }
    
    .wrapper header::-webkit-scrollbar {
        display: none;
    }
    
    header label {
        min-width: 100px;
        font-size: 14px;
        padding: 0 10px;
        animation: fadeIn 0.4s ease-out 0.3s both;
    }
    
    header .slider {
        display: none;
    }
    
    #tab-1:checked ~ header .tab-1,
    #tab-2:checked ~ header .tab-2,
    #tab-3:checked ~ header .tab-3,
    #tab-4:checked ~ header .tab-4,
    #tab-5:checked ~ header .tab-5,
    #tab-6:checked ~ header .tab-6 {
        color: #77a5f8;
        font-weight: bold;
    }
    
    .card-area {
        animation: fadeIn 0.5s ease-out 0.4s both;
    }
    
    .price-details .price {
        font-size: 48px;
    }
    
    .price-details .price::after {
        right: -28px;
        bottom: 12px;
        font-size: 11px;
    }
    
    .price-details p {
        font-size: 16px;
    }
    
    .row .features li {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .wrapper button {
        height: 45px;
        font-size: 16px;
        margin-top: 15px;
        animation: fadeInUp 0.4s ease-out 0.5s both;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.98);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

@media (max-width: 480px) {
    header label {
        min-width: 80px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .price-details .price {
        font-size: 40px;
    }
    
    .price-details p {
        font-size: 15px;
    }
    
    .row .features li {
        font-size: 13px;
    }
    
    .wrapper button {
        height: 42px;
        font-size: 15px;
    }
}