@import url(variables.css);

/* LAPTOP */
@media (max-width: 1440px) {
  /* NAVBAR */
  .header__content {
    max-width: 1120px;
  }

  /* HERO */
  .hero__content {
    max-width: 1120px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: var(--fs-8xl);
  }

  .hero__body p {
    font-size: var(--fs-l);
  }

  .btn-primary {
    font-size: var(--fs-l);
  }

  .hero__img-container {
    max-width: 544px;
  }

  /* CONTACT */
  .contact__form {
    max-width: 1120px;
  }

  .contact__form__title {
    font-size: var(--fs-6xl);
  }

  .contact__form__body {
    font-size: var(--fs-ml);
  }

  /* COURSES */
  .news {
    padding: 100px 40px 100px 40px;
    gap: 52px;
  }

  .slider {
    width: 100%;
    max-width: 1120px;
    max-height: 480px;
  }

  .item {
    max-width: 544px;
  }

  .card-news__tags {
    gap: 8px;
  }

  .card-news__type,
  .card-news__level {
    gap: 4px;
  }

  .categories {
    padding: 100px 40px;
    gap: 52px;
  }

  .categories__cards {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 32px;
    align-self: stretch;
    flex-wrap: wrap;
  }

  .courses__content {
    max-width: 1120px;
  }

  .card-category {
    border-radius: var(--radius-l);
    background-color: var(--neutral-pure-white);
    border: var(--border-xs) solid var(--global-secondary);
    display: flex;
    min-width: 364px;
    max-width: 458px;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    flex: 1 0 0;
  }

  .card-category__icon {
    width: 44px;
    height: 44px;
  }

  .card-category__title {
    font-size: var(--fs-2xl);
  }

  .card-category__body {
    font-size: var(--fs-m);
  }

  .courses__search {
    min-width: 368px;
  }

  .courses__search input {
    width: 100%;
  }

  .courses__category select,
  .courses__difficulty select {
    width: 220px;
  }

  .card-courses__info {
    flex-direction: column-reverse;
    align-items: start;
  }

  .card-courses__access {
    gap: 8px;
    width: 100%;
  }

  .card-courses__tags {
    display: flex;
    gap: 16px;
  }

  /* SECTIONS */
  .post-hero__content {
    padding: 80px 160px 0 160px;
  }

  .post-hero__title {
    padding: 0 0 391px 0;
  }

  .post__img__container {
    max-height: 622px;
  }

  .post-img {
    padding: 0px 160px;
    margin-top: -311px;
  }

  .bg__post-text {
    margin-top: -489px;
  }

  .post__writing {
    padding: 0 160px 180px;
    padding-top: 537px;
  }

  .title-positive {
    font-size: var(--fs-5xl);
  }

  .title-negative {
    font-size: var(--fs-5xl);
  }

  /* DOWNLOADS */
  .news {
    padding: 100px 40px;
  }

  .btn-news-downloads__buttons a {
    width: 164px;
    height: 164px;
  }

  .btn-news-downloads__buttons {
    gap: 72px;
  }

  .downloads__content {
    margin-top: 72px;
  }

  .btn-news-downloads {
    width: 70%;
  }

  .btn-news-downloads.prev {
    transform: translateX(-93%) scale(0.8);
  }

  .btn-news-downloads.next {
    transform: translateX(93%) scale(0.8);
  }

  .downloads {
    padding: 100px 40px;
  }

  .downloads__cards {
    max-width: 1200px;
  }

  .card-downloads {
    flex-direction: column;
  }

  .card-downloads__img {
    width: 100%;
    max-height: 264px;
  }

  .card-downloads__txt {
    max-width: 100%;
  }

  /* R4FICA */
  .r4fica-content {
    padding: 100px 40px;
  }

  .about__content {
    margin-bottom: 140px;
    max-width: 1120px;
  }

  .about__block {
    height: 432px;
  }

  .about__block__img {
    max-width: 692px;
  }

  .about__block-txt {
    gap: 12px;
    max-width: 544px;
  }

  .about__block-txt__title {
    font-size: var(--fs-5xl);
  }

  .about__block-txt__body {
    font-size: var(--fs-ml);
  }

  .history__video {
    max-width: 928px;
  }

  /* POLITICS */
  .politics__content {
    max-width: 1120px;
  }

  .politics__img {
    max-width: 447px;
  }

  .writing {
    padding: 0 40px 220px 40px;
  }

  .writing__content {
    max-width: 1120px;
  }

  /* SOON */
  .hero-soon__content {
    max-width: 1120px;
  }

  .hero-soon__img {
    max-width: 492px;
  }

  .hero-soon__text {
    gap: 16px;
  }

  .hero-soon__text__h1 {
    font-size: var(--fs-8xl);
  }

  .hero-soon__text__p,
  .backlink {
    font-size: var(--fs-l);
  }

  /* INDEX */
  .hero-index__caricature {
    width: 508px;
    height: 704px;
  }

  .dark-branch-left,
  .dark-branch-right {
    max-width: 444px;
  }

  .hero-index__title h1 {
    font-size: 260px;
    font-weight: var(--fw-black);
  }

  .black-bubble-1 {
    height: 98px;
  }

  .tech {
    padding: 80px 0;
    height: 280px;
  }

  .tech__content img {
    width: 120px;
    height: 120px;
  }

  .presentation {
    padding: 40px 40px 100px 40px;
  }

  .presentation__content {
    max-width: 1120px;
    gap: 56px;
  }

  .presentation__txt {
    gap: 16px;
  }

  .presentation__title {
    font-size: var(--fs-7xl);
  }

  .presentation__body {
    font-size: var(--fs-l);
  }

  .r4fica-yt-channel {
    max-width: 736px;
  }

  .section-index__content {
    max-width: 1120px;
  }

  .section-index__title {
    font-size: var(--fs-6xl);
  }

  .section-link p {
    font-size: var(--fs-ml);
  }

  .section-index img {
    max-width: 448px;
  }
}

/* TABLET */
@media (max-width: 992px) {
  /* NAVBAR */
  .header {
    padding: 0 24px;
  }

  .header__content {
    max-width: 832px;
  }

  .icons {
    display: inline-flex;
  }

  #check:checked ~ .icons #menu-icon {
    display: none;
  }

  .icons #close-icon {
    display: none;
  }

  #check:checked ~ .icons #close-icon {
    display: block;
  }

  .header__navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: rgb(255, 255, 255);
    transition: 0.5s ease;
    border-bottom: var(--border-s, 2px) solid var(--neutral-pure-black);
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.15);
    display: block;
  }

  #check:checked ~ .header__navbar {
    height: 283.2px;
  }

  .header__navbar a {
    display: block;
    font-size: var(--fs-m);
    margin: 24px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(-50px);
    transition: 0.3s ease;
  }

  #check:checked ~ .header__navbar a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--i));
  }

  /* HERO */
  .hero {
    padding: 80px 24px;
  }

  .hero__content {
    flex-direction: column;
    max-width: 832px;
  }

  .hero__text {
    max-width: 100%;
  }

  .contact__form {
    margin: -80px 0 70px 0;
  }

  .hero__title {
    font-size: var(--fs-7xl);
    max-width: 832px;
  }

  .hero__body {
    padding: 0 40px;
    max-width: 832px;
  }

  .hero__body p {
    font-size: var(--fs-ml);
  }

  .btn-primary {
    font-size: var(--fs-ml);
  }

  /* CONTACT */
  .bg-contact {
    padding: 60px 40px 148px 40px;
  }

  .contact__form {
    max-width: 832px;
    padding: 48px;
    margin: 0 auto;
  }

  .contact__form__title {
    font-size: var(--fs-5xl);
  }

  .contact__form__body {
    font-size: var(--fs-m);
  }

  .input-field label {
    font-size: var(--fs-m);
  }

  .input-field input::placeholder,
  textarea::placeholder {
    font-size: var(--fs-sm);
  }

  .contact__form__accept label {
    font-size: var(--fs-sm);
  }

  .contact__form__accept input[type="checkbox"] {
    transform: scale(1.2);
  }

  .btn-contact-form {
    font-size: var(--fs-m);
  }

  /* MODAL */
  .modal-content h3 {
    font-size: var(--fs-2xl);
  }

  .modal-content p {
    font-size: var(--fs-m);
  }

  .modal-content button {
    width: 100%;
    max-width: none;
    font-size: var(--fs-m);
  }

  /* SECTIONS */
  .post-hero__link-text {
    font-size: var(--fs-l);
  }

  .post-hero__h1 {
    font-size: var(--fs-5xl);
  }

  .post-hero__content {
    padding: 80px 80px 0 80px;
  }

  .post-hero__title {
    padding: 0 0 311px 0;
  }

  .post__img__container {
    max-height: 462px;
  }

  .post-img {
    padding: 0px 80px;
    margin-top: -231px;
  }

  .btn-yt-acceder {
    border-radius: var(--radius-round);
    background-color: var(--neutral-pure-white);
    border: var(--border-xs) solid var(--neutral-pure-black);
    padding: 8px 8px;
    transition-duration: 0.2s;
    z-index: 10;
    right: 32px;
    bottom: 32px;
  }

  .btn-yt-acceder:hover {
    background-color: var(--extra-youtube-200);
    border: var(--border-xs) solid var(--extra-youtube-100);
    box-shadow: 5px 8px 0px -3px var(--neutral-pure-black);
    transform: translate(-5px, -5px);
  }

  .btn-yt-acceder b {
    display: none;
  }

  .bg__post-text {
    margin-top: -569px;
  }

  .post__writing {
    padding: 0 80px 180px;
    padding-top: 617px;
  }

  .post__text-title {
    font-size: var(--fs-3xl);
  }

  .post__writing-p {
    font-size: var(--fs-l);
  }

  .title-positive {
    font-size: var(--fs-4xl);
  }

  .title-negative {
    font-size: var(--fs-4xl);
  }

  /* SOON */
  .hero-soon {
    padding: 80px 24px;
  }

  .hero-soon__content {
    max-width: 832px;
  }

  .hero-soon__img {
    max-width: 468px;
  }

  .hero-soon__text {
    gap: 12px;
  }

  .hero-soon__text__h1 {
    font-size: var(--fs-7xl);
  }

  .hero-soon__text__p,
  .backlink {
    font-size: var(--fs-ml);
    padding: 0;
  }

  /* COURSES */
  .news {
    padding: 80px 24px;
    gap: 44px;
  }

  .item {
    max-width: 406px;
    width: 100%;
    height: auto;
  }

  .card-news__headline {
    flex-direction: column;
  }

  .card-news__info {
    gap: 16px;
  }

  .slider {
    position: relative;
    max-height: 100%;
  }

  #next,
  #prev {
    position: static;
    transform: none;
    margin: 11px 10px 0;
  }

  .slider-arrows {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .categories {
    gap: 48px;
  }

  .categories__cards {
    flex-direction: column;
    width: 100%;
  }

  .card-category {
    min-width: 100%;
    max-width: 100%;
  }

  .card-category__headline {
    gap: 24px;
  }

  .card-category__count p {
    font-size: var(--fs-sm);
  }

  .courses {
    padding: 80px 40px 170px 40px;
    gap: 60px;
  }

  .courses__bar {
    flex-direction: column;
    gap: 28px;
    width: 100%;
  }

  .courses__search input {
    width: 100%;
    max-width: none;
  }

  .courses__tags {
    width: 100%;
  }

  .courses__category,
  .courses__difficulty,
  .courses__category select,
  .courses__difficulty select {
    width: 100%;
  }

  .courses__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
  }

  .card-courses {
    gap: 12px;
    max-width: none;
    width: 100%;
  }

  .card-courses__title {
    font-size: var(--fs-l);
  }

  .card-courses__body {
    font-size: var(--fs-sm);
  }

  .card-courses__info {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap-reverse;
  }

  .card-courses__access {
    width: auto;
  }

  .card-courses__tags {
    justify-content: start;
    flex-wrap: wrap;
    gap: 4px 16px;
    flex: 1 0 0;
  }

  .btn-yutube--mini {
    padding: 8px;
    border-radius: var(--radius-round);
    width: 48px;
  }

  .btn-yutube--mini p {
    display: none;
  }

  /* DOWNLOADS */
  .news {
    padding: 120px 24px;
  }

  .slider-downloads {
    height: 400px;
  }

  .btn-news-downloads__buttons a {
    width: 144px;
    height: 144px;
  }

  .btn-news-downloads__buttons {
    gap: 64px;
  }

  .downloads {
    padding: 80px 40px;
  }

  .downloads__cards {
    display: flex;
    flex-wrap: wrap;
  }

  .downloads__content {
    gap: 48px;
    margin-top: 56px;
  }

  .card-downloads {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .card-downloads__img {
    min-width: 272px;
    flex: 1 0 0;
  }

  .card-downloads__txt {
    min-width: 272px;
    flex: 1 0 0;
  }

  .downloads__category-group h3 {
    font-size: var(--fs-l);
  }

  /* R4FICA */
  .r4fica-content {
    padding: 80px 40px;
  }

  .about__content {
    margin-bottom: 120px;
    max-width: 832px;
  }

  .about__block {
    height: 352px;
  }

  .about__block__img {
    max-width: 556px;
  }

  .about__block-txt {
    gap: 12px;
    max-width: 406px;
  }

  .about__block-txt__title {
    font-size: var(--fs-4xl);
  }

  .about__block-txt__body {
    font-size: var(--fs-sm);
  }

  .history__video {
    max-width: 620px;
  }

  /* POLITICS */
  .politics__content {
    flex-direction: column-reverse;
    max-width: 832px;
  }

  .politics__img {
    max-width: 432px;
  }

  .writing {
    padding: 0 24px 170px 24px;
  }

  .writing__content {
    max-width: 832px;
  }

  .post__text-block > ul,
  .post__text-block > ol {
    padding-left: 22px;
  }

  .post__text-block > ul > li,
  .post__text-block > ol > li {
    font-size: var(--fs-l);
  }

  ul ul {
    margin-left: 22px;
  }

  /* INDEX */
  .hero-index__caricature {
    width: min(508px, 90vw);
    height: auto;
    aspect-ratio: 508/704;
  }

  .dark-branch-left,
  .dark-branch-right {
    max-width: 368px;
  }

  .hero-index__title h1 {
    font-size: 188px;
  }

  .black-bubble-1 {
    height: 86px;
  }

  .tech {
    padding: 48px 40px;
    height: 176px;
  }

  .tech__content img {
    width: 100px;
    height: 100px;
  }

  .presentation {
    padding: 20px 24px 80px 24px;
  }

  .presentation__content,
  .section-index__content {
    max-width: 832px;
  }

  .presentation__title {
    font-size: var(--fs-6xl);
  }

  .presentation__body {
    font-size: var(--fs-ml);
  }

  .r4fica-yt-channel {
    max-width: 528px;
  }

  .section-index__content {
    flex-wrap: wrap;
  }

  .reverse--wrap {
    flex-wrap: wrap-reverse;
  }

  .section-index__title {
    font-size: var(--fs-5xl);
  }

  .section-index__body p {
    line-height: var(--lh-m);
  }

  .section-link p {
    font-size: var(--fs-m);
  }

  .section-link img {
    width: 12px;
    height: 9px;
  }
}

/* MOBILE */
@media (max-width: 576px) {
  /* NAVBAR */
  .header__content {
    max-width: 528px;
  }

  .header__navbar {
    border-bottom: var(--border-s, 2px) solid var(--neutral-pure-black);
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.15);
    transition: 0.5s ease;
  }

  /* HERO */
  .hero__content {
    flex-direction: column;
    max-width: 528px;
  }

  .hero__title {
    font-size: var(--fs-6xl);
  }

  .hero__body {
    padding: 0;
  }

  .hero__body p {
    font-size: var(--fs-m);
  }

  .hero__img-container {
    max-width: 480px;
  }

  /* SLIDER LOGO */
  .tech__content img {
    width: 80px;
    height: 80px;
  }

  /* CONTACT */
  .bg-contact {
    padding: 24px 12px 124px 12px;
  }

  .contact__form {
    padding: 28px;
    max-width: 100%;
    min-width: 10px;
  }

  .contact__form__title {
    font-size: var(--fs-4xl);
  }

  .contact__form__body {
    font-size: var(--fs-sm);
  }

  .contact__form__accept input[type="checkbox"] {
    transform: scale(1.2);
  }

  /* MODAL */
  .modal-content {
    padding: 28px 40px;
  }

  /* SECTIONS */
  .post-hero__text {
    gap: 20px;
  }

  .post-hero__link-text {
    font-size: var(--fs-l);
  }

  .post-hero__h1 {
    font-size: var(--fs-5xl);
  }

  .post-hero__content {
    padding: 48px 24px 0 24px;
  }

  .post-hero__title {
    padding: 0 0 195px 0;
  }

  .post__img__container {
    max-height: 294px;
  }

  .post-img {
    padding: 0px 24px;
    margin-top: -147px;
  }

  .btn-yt-acceder {
    border-radius: var(--radius-round);
    background-color: var(--neutral-pure-white);
    border: var(--border-xs) solid var(--neutral-pure-black);
    padding: 8px 8px;
    transition-duration: 0.2s;
    z-index: 10;
    right: 32px;
    bottom: 32px;
  }

  .btn-yt-acceder:hover {
    background-color: var(--extra-youtube-200);
    border: var(--border-xs) solid var(--extra-youtube-100);
    box-shadow: 5px 8px 0px -3px var(--neutral-pure-black);
    transform: translate(-10px, -10px);
  }

  .btn-yt-acceder b {
    display: none;
  }

  .bg__post-text {
    margin-top: -653px;
  }

  .post__writing {
    padding: 0 24px 180px;
    padding-top: 701px;
  }

  .title-negative {
    font-size: var(--fs-3xl);
  }

  /* SOON */
  .hero-soon__content {
    max-width: 528px;
  }

  .hero-soon__img {
    max-width: 440px;
  }

  .hero-soon__text {
    gap: 8px;
  }

  .hero-soon__text__h1 {
    font-size: var(--fs-6xl);
  }

  .hero-soon__text__p,
  .backlink {
    font-size: var(--fs-m);
  }

  /* SLIDER */
  .slider {
    max-width: 528px;
  }

  .item {
    width: 100%;
    max-width: 80%;
  }

  .title-positive {
    font-size: var(--fs-3xl);
  }

  .categories {
    gap: 44px;
  }

  .card-category__headline {
    gap: 20px;
  }

  .card-category__icon {
    width: 42px;
    height: 42px;
  }

  .card-category__title {
    font-size: var(--fs-xl);
  }

  .card-category__body {
    font-size: var(--fs-sm);
  }

  .card-category__count {
    gap: 4px;
  }

  .courses {
    padding: 80px 24px 170px 24px;
  }

  .courses__bar {
    align-items: center;
    flex-direction: column;
    gap: 16px;
  }

  .courses__search {
    min-width: 100%;
    width: 100%;
  }

  .courses__search input::placeholder {
    font-size: var(--fs-sm);
    position: relative;
    top: 50%;
    transform: translateY(-110%);
  }

  .courses__tags {
    flex-direction: column;
    gap: 16px;
  }

  .courses__category select,
  .courses__difficulty select {
    font-size: var(--fs-sm);
  }

  .courses__cards {
    grid-template-columns: repeat(1, 1fr);
    gap: 28px;
    max-width: 100%;
  }

  .card-courses__info {
    flex-direction: column-reverse;
    align-items: start;
    gap: 12px;
  }

  .card-courses__access {
    width: 100%;
  }

  .btn-yutube--mini {
    display: none;
  }

  .btn-yutube p {
    display: block;
  }

  .btn-yutube {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background-color: var(--neutral-pure-white);
    color: var(--neutral-pure-black);
    font-weight: var(--fw-bold);
    font-size: var(--fs-m);
    border: var(--border-xs) solid var(--neutral-pure-black);
    border-radius: var(--radius-xl);
    padding: 8px 18px;
    transition: 0.2s;
    width: 100%;
  }

  /* DOWNLOADS */
  .news {
    padding: 80px 0;
  }

  .slider-downloads {
    height: 216px;
  }

  .btn-news-downloads__buttons a {
    width: 88px;
    height: 88px;
  }

  .btn-news-downloads__buttons {
    gap: 48px;
  }

  .downloads__content {
    margin-top: 48px;
  }

  .slider-container {
    margin: 0;
  }

  .card-downloads__acces {
    flex-direction: column;
  }

  .btn-buymeacoffee--downloads-mobile {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    padding: 8px;
    justify-content: center;
  }

  .btn-yt--downloads {
    width: 100%;
    justify-content: center;
  }

  .btn-yt--downloads p {
    display: block;
  }

  .card-downloads {
    flex-direction: column;
  }

  .card-downloads__img,
  .card-downloads__txt {
    min-width: 100%;
    width: 100%;
    flex: none;
  }

  /* R4FICA */
  .r4fica-content {
    padding: 80px 24px;
  }

  .about__content {
    margin-bottom: 64px;
    max-width: 528px;
  }

  .about__block {
    height: 100%;
    gap: 24px;
  }

  .about__block:first-child {
    flex-direction: column-reverse;
  }

  .about__block:nth-child(2) {
    flex-direction: column;
  }

  .about__block:last-child {
    flex-direction: column-reverse;
  }

  .about__block__img--right,
  .about__block__img--left {
    position: static;
  }

  .about__block__img--right {
    margin-right: -24px;
  }

  .about__block__img--left {
    margin-left: -24px;
  }

  .about__block-txt {
    max-width: 100%;
    padding: 0 16px;
  }

  .about__block:first-child .about__block-txt,
  .about__block:last-child .about__block-txt {
    margin-left: 0;
  }

  .about__block-txt__title {
    font-size: var(--fs-3xl);
  }

  .about__block-txt__body {
    font-size: var(--fs-sm);
  }

  /* POLITICS */
  .politics__content {
    max-width: 528px;
  }

  .politics__img {
    max-width: 396px;
  }

  .writing__content {
    max-width: 528px;
  }

  .post__text-block > ul > li,
  .post__text-block > ol > li {
    text-align: start;
  }

  /* INDEX */
  .hero-index__caricature {
    width: min(450px, 90vw);
    height: auto;
    aspect-ratio: 450/624;
  }

  .dark-branch-left,
  .dark-branch-right {
    max-width: 288px;
  }

  .hero-index__title h1 {
    font-size: 120px;
  }

  .black-bubble-1 {
    height: 90px;
  }

  .low-smoke-left,
  .low-smoke-right {
    max-height: 340px;
    max-width: 1200px;
  }

  .low-smoke {
    max-height: 282px;
  }

  .presentation__content,
  .section-index__content {
    max-width: 528px;
  }

  .section-index {
    padding: 80px 24px;
  }

  .section-index img {
    max-width: 448px;
  }

  .btn-buymeacoffee__icon {
    width: 24px;
    height: 24px;
  }
}
