/***
 * CSS Reset
 * A modern CSS reset that removes default browser styles
 * Version: 1.11.3 (2024-08-25)
 * Source: https://github.com/elad2412/the-new-css-reset
 */

/* Base reset - removes all styles except display */
*:where( :not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Typography */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
}

/* Interactive elements */
a,
button {
  cursor: revert;
}

/* Lists */
ol,
ul,
menu,
summary {
  list-style: none;
}

ol {
  counter-reset: revert;
}

/* Media */
img {
  max-inline-size: 100%;
  max-block-size: 100%;
  loading: lazy;
}

/* Tables */
table {
  border-collapse: collapse;
}

/* Form elements */
input,
textarea {
  -webkit-user-select: auto;
}

textarea {
  white-space: revert;
}

meter {
  -webkit-appearance: revert;
  appearance: revert;
}

/* Preformatted text */
:where(pre) {
  all: revert;
  box-sizing: border-box;
}

/* Placeholders */
::placeholder {
  color: unset;
}

/* Hidden elements */
:where([hidden]) {
  display: none;
}

/* Content editable */
:where([contenteditable]:not([contenteditable="false"])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

/* Draggable elements */
:where([draggable="true"]) {
  -webkit-user-drag: element;
}

/* Modal dialogs */
:where(dialog:modal) {
  all: revert;
  box-sizing: border-box;
}

/* Details summary */
::-webkit-details-marker {
  display: none;
}

/* Base styles */
html {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  overflow: hidden;
}

body {
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  margin: auto;
  max-width: 375px;
  min-height: 100vh;
}

/* Layout components */
.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
}

.nav__btn {
  background-color: #13183f;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  height: 59px;
  padding: 16px 32px;
  width: 168px;
}

.header-container {
  padding: 64px 20px 0;
}

/* Image visibility */
.header-section__img-tablet,
.header-section__img-desktop {
  display: none;
}

/* Typography */
.header-section__article h1 {
  color: #13183f;
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 24px;
}

.header-section__article p {
  color: #83869a;
  font-size: 18px;
  font-weight: medium;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Buttons */
.header-section__btn {
  background: linear-gradient(to bottom, #ff6f48, #f02aa6);
  border-radius: 50px;
  color: #fff;
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  height: 59px;
  margin-bottom: 40px;
  padding: 16px 32px;
  width: 168px;
}

/* Main content */
.main-content {
  background: linear-gradient(to bottom, #fff, #f0f1ff);
  padding: 64px 20px 80px;
}

.section-title {
  background: linear-gradient(to bottom, #ff6f48, #f02aa6);
  border-radius: 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
  padding: 32px;
}

/* Course cards */
.section-courses__article-img {
  margin-left: 32px;
}

.section-courses__article {
  background-color: #fff;
  border-radius: 15px;
  margin-top: -28px;
  padding: 64px 32px 40px;
}

.section-courses {
  margin-bottom: 32px;
}

.section-courses:last-child {
  margin-bottom: 0;
}

.section-courses__article-title {
  color: #13183f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-courses__article-description {
  color: #83869a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

.section-courses__article-btn {
  color: #f74780;
  font-size: 18px;
  font-weight: 700;
}

/* Footer */
.footer-container {
  align-items: center;
  background-color: #13183f;
  display: flex;
  justify-content: space-between;
  padding: 24px 20px;
}

.footer__btn {
  background: linear-gradient(to bottom, #4851ff, #f02aa6);
  border-radius: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  padding: 12px 24px;
  width: 152px;
}

/* Tablet styles */
@media (min-width: 768px) {
  body {
    position: relative;
    overflow: hidden;
    max-width: 768px;
  }

  .nav {
    padding: 24px 44px;
  }

  .nav__btn {
    width: 152px;
    height: 48px;
    padding: 12px 24px;
  }

  .header-section__img-mobile {
    display: none;
  }

  .header-container {
    padding: 64px 44px;
  }

  .header-section {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    padding: 41.5px 0;
  }

  .header-section__btn {
    height: 48px;
    margin-bottom: 0;
    padding: 12px 24px;
    width: 152px;
  }

  .header-section__img-tablet {
    display: block;
    left: 365px;
    position: absolute;
    top: -90px;
    width: auto;
  }

  .main-content {
    display: grid;
    row-gap: 32px;
    column-gap: 24px;
    grid-template-columns: repeat(2, 1fr);
    padding: 64px 44px 144px;
  }

  .section-title {
    padding: 64px 32px 40px;
    margin-top: 28px;
    margin-bottom: 0;
  }

  .section-courses {
    margin-bottom: 0;
  }

  .section-courses__article-description {
    font-size: 18px;
    font-weight: 500;
  }

  .design-description {
    margin-bottom: 50px;
  }

  .footer-container {
    padding: 24px 44px;
  }
}

/* Desktop styles */
@media (min-width: 1440px) {
  body {
    max-width: 1440px;
    padding: 0 80px;
    background: linear-gradient(to bottom, #fff, #f0f1ff);
  }

  .nav {
    padding: 24px 0;
  }

  .nav__btn {
    width: 168px;
    height: 59px;
    padding: 16px 32px;
  }

  .nav__btn:hover {
    background-color: #666ca3;
    cursor: pointer;
  }

  .nav-header-container {
    max-width: 1120px;
    margin: auto;
  }

  .nav__logo-dark-img {
    width: 111px;
    height: 28px;
  }

  .header-section__img-tablet {
    display: none;
  }

  .header-container {
    padding: 64px 0;
  }

  .header-section {
    align-items: center;
    height: 560px;
    padding: 0;
    width: 1120px;
  }

  .header-section__article h1 {
    font-size: 56px;
  }

  .header-section__article p {
    width: 457px;
  }

  br {
    display: none;
  }

  .header-section__btn {
    width: 168px;
    height: 59px;
    padding: 16px 32px;
  }

  .header-section__btn:hover {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), linear-gradient(to bottom, #FF6F48 0%, #F02AA6 100%);
    cursor: pointer;
  }

  .header-section__img-desktop {
    display: block;
    position: absolute;
    right: -340px;
    top: -140px;
    width: auto;
    z-index: -1;
  }

  .main-content {
    background: none;
    column-gap: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: auto;
    padding: 64px 0 144px;
    row-gap: 56px;
    width: 1120px;
  }

  .section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
  }

  .section-courses__article-title {
    font-size: 24px;
  }

  .photography-description {
    margin-bottom: 50px;
  }

  .footer-container {
    margin: 0 -80px;
    padding: 24px 160px;
  }

  .footer__logo-light-img {
    width: 111px;
    height: 28px;
  }

  .footer__btn {
    width: 168px;
    height: 59px;
    padding: 16px 32px;
  }

  .footer__btn:hover {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), linear-gradient(to bottom, #4851ff 0%, #f02aa6 100%);
    cursor: pointer;
  }
}