/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: century-gothic, sans-serif;
  background-color: #111;
  color: #fff;
  line-height: 1.6;
  padding: 1rem;
}

header, main, footer {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffc107;
}

.slogan {
  color: #ddd;
  font-size: 1rem;
  margin-top: 0.5rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

h3{
  color: #ffc107;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

li:not(:last-child) {
  margin-bottom: 8px;
}

li {
  display: flex;
  align-items: center;
}

li::before {
  content: url(icons/done.svg);
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

li span {
  flex: 1;
  font-size: 1rem;
  word-break: break-word;
}

.btn {
  display: flex;
  align-items: center;
  background-color: #ffc107;
  color: #111;
  text-align: left;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  gap: 0.75rem;
  font-size: 1rem;
}

.btn:hover {
  background-color: #e0ac00;
}

.btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.services ul {
  list-style: none;
  padding-left: 0;
}

.services li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  background: none;
}

.services li span {
  flex: 1;
  margin-right: 0.5rem;
  font-size: 1rem;
}

.delete-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: #ffc107;
}

.delete-btn:hover {
  opacity: 0.7;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.75rem;
  }
}

/* Стили для подложки */

.overlay {

   /* Скрываем подложку  */
   opacity: 0;
   visibility: hidden;

   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, .5);
   z-index: 20;
   transition: .3s all;
}


/* Стили для модальных окон */

.modal {

   /* Скрываем окна  */
   opacity: 0;
   visibility: hidden;


   /*  Установаем ширину окна  */
   width: 100%;
   max-width: 500px;

   /*  Центрируем и задаем z-index */
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 30; /* Должен быть выше чем у подложки*/

   /*  Побочные стили   */
   box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2);
   text-align: center;
   padding: 30px;
   border-radius: 3px;
   background-color: #111;
   transition: 0.3s all;
}

/* Стили для кнопки закрытия */

.modal__cross {
   width: 15px;
   height: 15px;
   position: absolute;
   top: 20px;
   right: 20px;
   fill: #444;
   cursor: pointer;
}


/* Стили для кнопок. Мы ведь порядочные разработчики, негоже простые ссылки оставлять */

a {
   padding: 20px;
   display: inline-block;
   text-decoration: none;
   background-color: #414b52;
   margin: 10px;
   color: #111;
   border-radius: 3px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}