/* Базовые настройки и переменные */
:root {
  --color-pink: #f48fb1;
  --color-pink-dark: #e91e63;
  --color-cyan: #80deea;
  --color-bg: #f5fafd;
  --color-text: #333;
  --color-text-light: #777;
  --font-main: system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-pill: 50px;
  --shadow: 0 4px 15px rgba(0,0,0,0.05);
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--pink { background: var(--color-pink); color: white; }
.btn--pink:hover { background: var(--color-pink-dark); }
.btn--cyan { background: var(--color-cyan); color: white; }
.btn--outline { border: 2px solid var(--color-cyan); color: var(--color-cyan); }
.btn--outline:hover { background: var(--color-cyan); color: white; }
.btn--small { padding: 6px 16px; font-size: 0.9em; }
.btn--full { width: 100%; }

/* Верхняя плашка */
.top-bar {
  background: var(--color-cyan);
  color: white;
  text-align: center;
  font-size: 14px;
  position: relative;
}
.top-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}
.close-btn {
  position: absolute;
  right: 16px;
  color: white;
  font-size: 20px;
}

/* Шапка */
.header {
  background: white;
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
}
.header__logo h1 {
  color: var(--color-cyan);
  font-size: 24px;
  letter-spacing: 1px;
}
.header__logo p {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.header__contacts {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-item svg {
  width: 24px;
  height: 24px;
  fill: var(--color-cyan);
}
.contact-phone {
  font-weight: bold;
  font-size: 18px;
}
.contact-item p {
  font-size: 12px;
  color: var(--color-text-light);
}

/* Добавленный календарь */
.calendar-wrapper {
  border-left: 1px solid #eee;
  padding-left: 20px;
}
.calendar-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 2px;
}
.calendar-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: inherit;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}
.calendar-input:focus {
  border-color: var(--color-pink);
  box-shadow: 0 0 0 2px rgba(244, 143, 177, 0.2);
}

/* Навигация */
.nav {
  border-top: 1px solid #f0f0f0;
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.nav__list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.nav__list a {
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__list a:hover { color: var(--color-pink-dark); }
.nav__cabinet {
  color: var(--color-cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Основной контент */
.main-container { margin-top: 30px; }
.layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

/* Сайдбар */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.catalog-btn { font-size: 18px; padding: 15px; }
.catalog-list {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.catalog-list li { border-bottom: 1px solid #f5f5f5; }
.catalog-list a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  transition: background var(--transition);
}
.catalog-list a:hover { background: var(--color-bg); }

/* Поиск */
.search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-pill);
  padding: 5px 20px;
  box-shadow: var(--shadow);
}
.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
}
.search-submit {
  color: #ccc;
  font-size: 20px;
  transition: color var(--transition);
}
.search-submit:hover { color: var(--color-pink); }

/* Баннер */
.hero {
  display: flex;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  min-height: 350px;
}
.hero__content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.hero__content h2 { font-size: 36px; color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero__content p { font-size: 24px; color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); font-weight: bold; }
/* Плейсхолдер для картинки баннера */
.hero__image-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #a0a0a0, #707070);
  position: relative;
}

/* Популярные категории */
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '★';
  color: var(--color-cyan);
  font-size: 28px;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-5px); }
.card__img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
  border-radius: var(--radius);
}
.card__title {
  background: white;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 30px; }
.link-more {
  color: var(--color-cyan);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Адаптивность (Mobile First - переопределения для десктопа) */
@media (max-width: 1024px) {
  .header__inner { flex-direction: column; align-items: flex-start; }
  .header__contacts { width: 100%; justify-content: space-between; }
  .calendar-wrapper { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 10px; width: 100%; }
}

@media (max-width: 768px) {
  .layout-grid { grid-template-columns: 1fr; }
  .header__contacts { flex-direction: column; align-items: flex-start; gap: 15px; }
  .hero { flex-direction: column; }
  .hero__image-placeholder { min-height: 200px; }
  .hero__content { padding: 20px; align-items: center; text-align: center; }
  .nav__inner { flex-direction: column; gap: 10px; }
  .nav__list { justify-content: center; }
  .search-row { flex-direction: column; }
}

/* Фокус для доступности */
:focus-visible {
  outline: 2px solid var(--color-pink-dark);
  outline-offset: 2px;
}