@font-face {
  font-family: 'DeliusUnicase';
  src: url('fonts/DeliusUnicase-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffb6c1;
  --secondary-color: #ffb6c1;
  --background-color: #ffe4e1;
  --text-color: #333;
  --accent-color: #ff69b4;
  --white: #fff;
}

body {
  font-family: Arial, sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;   /* центр по горизонтали */
  justify-content: center; /* центр по вертикали при необходимости */
  min-height: 100vh;
  text-align: center; /* текст тоже будет по центру */
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 20px;
}

.header-left,
.header-right {
  flex: 0 0 50px;
}

.header-center {
  flex: 1;
  text-align: center;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-container h1 {
  white-space: nowrap;
}
.logo {
  height: 30px;
  width: 30px;
  object-fit: cover;
  border-radius: 50%;
}

h1 {
  font-family: 'DeliusUnicase', cursive;
  font-size: 1.4rem;
  color: var(--accent-color);
}

/* Hamburger menu */
.hamburger {
  font-size: 2rem;
  color: var(--accent-color);
  user-select: none;
  cursor: pointer;
  transition: color 0.3s;
}

.hamburger:hover {
  color: var(--secondary-color);
}

#menu-toggle {
  display: none;
}

/* Navigation */
nav {
  position: absolute;
  top: 70px;
  right: 0;
  width: 220px;
  background: var(--white);
  border: 2px dashed var(--accent-color);
  border-radius: 12px;
  padding: 10px;
  transform: translateX(110%);
  transition: transform 0.3s;
  z-index: 999;
}

#menu-toggle:checked~nav {
  transform: translateX(0%);
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  margin: 15px 0;
  text-align: center;
}

nav a {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
}

.category {
  margin-bottom: 40px;
}

.category h2 {
  font-family: 'DeliusUnicase', cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.item {
  background: var(--white);
  width: 250px;
  padding: 15px;
  border: 2px dashed var(--primary-color);
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 600px) {
  .item {
    width: 100%;
  }
}

.item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.item h3 {
  font-family: 'DeliusUnicase', cursive;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.item p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.item a {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-left,
  .header-right {
    flex: 0 0 50px;
  }

  .header-center {
    flex: 1;
    text-align: center;
  }

  .category-grid {
    flex-direction: column;
    align-items: center;
  }

  nav {
    width: 100%;
    top: 60px;
  }

  h1 {
    font-size: 1.4srem;
  }

  .hamburger {
    font-size: 1.4rem;
  }
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.footer-left,
.footer-right {
  flex: 0 0 50px;
}

.footer-center {
  flex: 1;
  text-align: center;
}

.footer-left a,
.footer-right a {
  font-size: 1.2rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-left a:hover,
.footer-right a:hover {
  color: var(--secondary-color);
}

.footer-center p {
  font-size: 1rem;
  color: var(--accent-color);
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  margin-right: 5px;
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    flex: none;
    margin: 5px 0;
  }

  .footer-center {
    margin: 10px 0;
  }
}
a.button {
  box-shadow: inset 0px 1px 0px 0px #ffd6df;
  background: linear-gradient(to bottom, #ffb6c1 5%, #ff69b4 100%);
  background-color: #ffb6c1;
  border-radius: 6px;
  border: 1px solid #ff69b4;
  width: 100%;
  box-sizing: border-box;
  margin: auto;
  display: block;
  text-align: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  padding: 9px 5px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #d37ba0;
}

a.button:hover {
  background: linear-gradient(to bottom, #ffc3cd 5%, #ff69b4 100%);
  background-color: #ff69b4;
  transition-duration: 500ms;
  transition-property: background-color, background;
}

a.button:active {
  position: relative;
  top: 1px;
}