/* Общие стили */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #181818;
}

h1, h2, h3, p {
  margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================== */
/*          HERO SECTION          */
/* ============================== */

.hero {
    min-height: 100vh;
    background-color: #E2E2E2;
    background-image: url('../img/vector_first-area-1.svg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;

    display: flex;
    justify-content: center;
}

.hero__container {
    max-width: 900px;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
}

.hero__title {
    font-size: 64px;
    margin: 60px 0 40px 0;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(
    50deg,
    #9988ff 0%,
    #9988ff 10%,
    #f57cd3 70%,
    #ff4db8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.hero__input {
    border: 1px solid #8A77FF;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 400;
    padding: 10px;
    flex: 1 1 300px;
    min-width: 0;
}

.hero__button {
    flex: 0 0 220px;
    min-height: 60px;
    font-size: 24px;
    text-transform: uppercase;
    color: #fff;
    border: none;
    border-radius: 10px;
    background: linear-gradient(72.73deg, #9988ff, #f57cd3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero__button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}


.hero__tasks{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero__task {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;

    border-bottom: 1px solid transparent;
    border-image: linear-gradient(89.84deg, #9988ff, #f57cd3) 1;
    padding-bottom: 5px;
}

/* прячем нативный чекбокс, но он остаётся доступным */
.task__check{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* “иконка” чекбокса */
.task__check-icon {
  width:40px;
  height:40px;
  flex: 0 0 40px;
  cursor:pointer;

  background: url("../img/chek_icon.svg") center/contain no-repeat;
}

/* состояние checked — Заменить на иконку "НАЖАТО" */
.task__check:checked + .task__check-icon{
  background-image: url("../img/cheked_icon.png");
  transform: rotate(90deg);
}

.task__check:checked ~ .task__content .hero__text {
    text-decoration: line-through;
    opacity: 0.6;
}

.hero__text {
    font-size: 22px;
    font-weight: 300;
}

/* кнопка удаления вместо img */
.task__delete {
  margin-left:auto;
  width:40px;
  height:40px;
  border:0;
  background: url("../img/delete_icon.svg") center/contain no-repeat;
  cursor:pointer;
}


.task__date {
    font-size: 12px;
    background: #8A77FF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__empty {
    margin-top: 20px;
    font-size: 18px;
    color: #999;
    text-align: center;
}



@media (max-width: 768px) {
    .hero__title {
    font-size: 48px;
    }

    .hero__input {
    font-size: 20px;
    }

    .hero__text {
    font-size: 20px;
    }

    .hero__button {
    width: 200px;
    height: 50px;
    font-size: 20px;
    }

    .task__check-icon, .task__delete {
    width:30px;
    height:30px;
    }   
}

@media (max-width: 480px) {

    .hero__title {
        font-size: 32px;
    }

    .hero__form {
        flex-direction: column;
    }

    /* .hero__input {
        font-size: 18px;
        max-width: 450px;
    } */

    .hero__text {
        font-size: 18px;
    }

    /* .hero__button {
        width: 200px;
        height: 40px;
        font-size: 18px;
    } */

    .task__check-icon, .task__delete {
        width:20px;
        height:20px;
    }
    
    .hero__input,
    .hero__button {
        width: 100%;
        max-width: none;
        flex: none;
        min-height: 50px;
        font-size: 18px;
    }
}



/* ============================== */
/*       ЧЕРНОВИК                 */
/* ============================== */




@media (max-width: 1200px) {}

@media (max-width: 1024px) {}

@media (max-width: 768px) {}

@media (max-width: 480px) {}