:root {
  --font1: 'Comfortaa', sans-serif;
  --font2: 'Roboto', sans-serif;
  --main-color: #AF1536;
  --backgroung-color: #F6F6F6;
  --menu-text-color: #767676;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font2);
  background-color: var(--backgroung-color);
  margin: 0;
}

.wrap {
  margin: 0% 5%;
}

/* меню */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0 5%;
  box-sizing: border-box;

}

.logo {
  font-family: var(--font1);
  font-size: 24px;
  font-weight: bold;
  color: var(--menu-text-color);
}

.header nav {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.header nav a {
  position: relative;
  font-family: var(--font2);
  font-size: 24px;
  text-decoration: none;
  color: var(--menu-text-color);
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: var(--main-color);
}

.header nav a:hover::after {
  width: 100%;
}

.header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 30px;
  height: 3px;
  background: var(--menu-text-color);
  transition: 0.3s;
}

/* Меню скрыто */
@media (max-width: 800px) {
  .nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    transition: 0.3s ease;
    justify-content: flex-start !important;
  }

  .nav.active {
    right: 0;
  }

  .burger {
    display: flex;
  }
}

/* Анимация бургера */
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* тортик фотка */
.hero {
  height: 90vh;
  background-image: url("../img/cake_lending.avif");
  background-repeat: no-repeat;
  background-size: cover;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 40px;

  background-position: left center;
  /* по умолчанию торт слева */
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0% 5%;
}

.hero h1 {
  font-family: var(--font1);
  font-size: 32px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: -5px;
  font-size: clamp(26px, 4.5vw + 0.5rem, 36px);
}

.hero p {
  font-size: clamp(17px, 1.8vw + 0.4rem, 24px);
  font-family: var(--font2);
}



.buy-button {
  align-self: center;
  background-color: var(--main-color);
  font-size: 20px;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.buy-button:hover {
  background-color: #f0214e;
}

#order-button {
  padding: 20px 50px;
  max-width: 40%;
}


@media (max-width: 1000px) {
  .hero-content {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    border-radius: 12px;
  }

}

@media (max-width: 600px) {
  #order-button {
    width: 100%;
    max-width: 100%;
  }

}

/* галерея */

h2 {
  font-family: var(--font1);
  color: var(--main-color);
  font-size: clamp(22px, 4vw, 32px);
  margin-top: 80px;
  margin-bottom: 25px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  /* пусть занимает всю доступную колонку */
}

/* А вот сама картинка — да, она держит нужный аспект */
.card-content {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 2 карточки */
@media (max-width: 900px) {
  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 карточка */
@media (max-width: 600px) {
  .catalog {
    grid-template-columns: 1fr;
  }
}

.img1 {
  background-image: url('../img/snikers.avif');
}

.img2 {
  background-image: url('../img/strawberry.avif');
}

.img3 {
  background-image: url('../img/pistachio.avif');
}

.card-caption {
  margin-top: 25px;
  text-align: center;
  font-size: 20px;
  color: var(--menu-text-color);
  padding-bottom: 80px;
}

/* отзывы и контакты */
/* Контейнер "Карта + Контакты" */
.info {
  display: flex;
  gap: 8%;
  padding: 40px 0;
  min-height: 600px;
}

.info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-title {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--main-color);
  font-family: var(--font1);
  margin-bottom: 16px;
}

.info-title-left {
  text-align: left;
  margin-left: 12px;
}

.info-title-right {
  text-align: right;
  margin-right: 12px;
}

.info-block {
  background-color: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.07);

}

.contact-details p {
  font-size: 22px;
  margin-bottom: 12px;
}

.map-container {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 📱 Адаптация */
@media (max-width: 768px) {
  .info {
    flex-direction: column;
    gap: 40px;
  }
}



/* каталоооогггг */
.sort-wrapper {
  position: relative;
  display: inline-block;
  margin: 100px 0 0px;
}

.sort-wrapper.sort-left {
  text-align: left;
}

.sort-wrapper.sort-center {
  text-align: center;
}

.sort-wrapper.sort-right {
  text-align: right;
}

.sort-button {
  background-color: white;
  border: 2px solid var(--menu-text-color);
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 17px;
  font-family: var(--font2);
  color: var(--menu-text-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  justify-content: space-between;
  transition: all 0.25s ease;
  font-weight: 500;
}

.sort-button:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: 0 4px 12px rgba(175, 21, 54, 0.1);
}

.sort-button .arrow {
  transition: transform 0.3s ease;
  color: #999;
}

.sort-button.active .arrow {
  transform: rotate(180deg);
  color: var(--main-color);
}

.sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: white;
  border: 2px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  overflow: hidden;
}

.sort-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  width: 100%;
  padding: 14px 20px;
  text-align: left;
  background: none;
  border: none;
  font-size: 17px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.sort-option:hover {
  background: #fdf2f5;
}

.sort-option.active {
  background: var(--main-color);
  color: white;
  font-weight: 600;
}

.sort-option:first-child {
  border-radius: 12px 12px 0 0;
}

.sort-option:last-child {
  border-radius: 0 0 12px 12px;
}

/* Каталог */
.catalog1 {
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding-bottom: 50px;
}

/* Карточки */
/* Каталог — адаптивная сетка */
.catalog1 {
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding-bottom: 50px;
}

/* Карточка */
.card1 {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  /* ← пусть растёт */
  box-sizing: border-box;
}

/* Фото */
.card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  margin-bottom: 20px;
}

/* Заголовок */
.card1 h3 {
  margin: 0 0 10px;
  font-size: 18px;
  width: 100%;
  font-family: var(--font1);
}

/* Описание */
.card1 p {
  font-size: 14px;
  margin-bottom: 12px;
  flex-grow: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Цена */
.price {
  font-family: var(--font1);
  margin-bottom: 15px;
  font-size: 18px;
}

/* Кнопки */
.card-footer {
  width: 100%;
}

/* ------------------------------- */
/*      АДАПТИВНЫЕ МЕДИА-ЗАПРОСЫ   */
/* ------------------------------- */

/* Планшеты */
@media (max-width: 900px) {
  .catalog1 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .card-img {
    height: 180px;
  }
}

/* Телефоны */
@media (max-width: 600px) {
  .catalog1 {
    grid-template-columns: 1fr;
    /* одна карточка в ряд */
    gap: 20px;
  }

  .card1 {
    max-width: 420px;
    margin: 0 auto;
  }

  .card-img {
    height: 200px;
  }

  .add-to-cart {
    width: 100%;
    text-align: center;
    padding: 14px;
  }
}

/*кнопка*/

.card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.add-to-cart {
  padding: 15px 40px;
  border-radius: 15px;
  background-color: var(--main-color);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  text-decoration: none;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity-wrapper.hidden {
  display: none;
}

.quantity-wrapper button {
  all: unset;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
}

/* Контейнер с +, − и числом */
.first-but {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: 3px solid var(--main-color);
  border-radius: 15px;
  gap: 30px;
  color: var(--main-color);
}

/* Кнопка с иконкой корзины */
.cart-icon-button i {
  padding: 11px 12px;
  border: 2px solid var(--main-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
}

.card-img.im3 {
  background-image: url("../img/im3.avif");
}

.card-img.im4 {
  background-image: url("../img/im4.avif");
}

.card-img.im5 {
  background-image: url("../img/im5.avif");
}

.card-img.im6 {
  background-image: url("../img/im6.avif");
}

.card-img.im7 {
  background-image: url("../img/im7.avif");
}

.card-img.im8 {
  background-image: url("../img/im8.avif");
}

/* Корзина */
/* Общий контейнер корзины */
.basket-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5%;
  padding: clamp(50px, 10vw, 110px) 2%;
}

@media (max-width: 900px) {
  .basket-area {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 30px;
  }
}

/* Левая колонка - товары */
.left-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(15px, 3vw, 25px);
}

/* Карточка товара */
.selected-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s;
  max-height: 420px;
  /* ограничиваем высоту */
}

.selected-card:hover {
  transform: translateY(-3px);
}

/* Изображение товара */
.selected-card .card-img {
  width: 100%;
  aspect-ratio: 1/1;
  /* квадрат */
  background-color: var(--menu-text-color);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Контент карточки */
.card-cont {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(10px, 2vw, 15px);
  position: relative;
  flex: 1;
}

/* Кнопка удаления */
.delete-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: clamp(20px, 2.5vw, 25px);
  color: var(--menu-text-color);
  cursor: pointer;
}

/* Заголовок */
.card-cont h3 {
  font-family: var(--font1);
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 8px 0;
}

/* Цена за штуку */
.per-item-price {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--menu-text-color);
  margin-bottom: 5px;
}

/* Нижняя часть карточки */
.bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
}

.price {
  font-weight: bold;
  font-size: clamp(16px, 2vw, 20px);
}

/* Счётчик */
.quantity-wrapper {
  display: flex;
  align-items: center;
}

.first-but {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5px, 1vw, 10px) clamp(15px, 2vw, 30px);
  border: 2px solid var(--main-color);
  border-radius: 15px;
  gap: clamp(10px, 2vw, 30px);
  color: var(--main-color);
  font-size: clamp(14px, 1.5vw, 16px);
}

/* Правая колонка - оплата */
.payment-card {
  background-color: white;
  padding: clamp(15px, 3vw, 25px);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2vw, 25px);
}

.payment-card h1 {
  font-size: clamp(18px, 2.5vw, 20px);
  color: var(--main-color);
  font-family: var(--font1);
  margin-bottom: clamp(20px, 3vw, 30px);
}

.payment-card h2 {
  font-size: clamp(16px, 2.5vw, 20px);
  font-family: var(--font1);
  margin: clamp(10px, 2vw, 20px) 0 clamp(5px, 1.5vw, 10px) 0;
}

/* Строки цены */
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: clamp(14px, 2vw, 16px);
  margin: clamp(5px, 1.5vw, 8px) 0;
}

.price-row.total {
  font-weight: bold;
  font-size: clamp(16px, 2.2vw, 18px);
}

/* Комментарии */
.comments {
  border-radius: 15px;
  background-color: #EAEAEA;
  color: var(--menu-text-color);
  padding: clamp(15px, 2vw, 20px);
  font-size: clamp(14px, 1.5vw, 16px);
  font-family: inherit;
  resize: none;
  width: 100%;
  height: clamp(120px, 15vw, 150px);
  border: none;
}

/* Кнопки */
.buy-button {
  width: 100%;
  padding: clamp(15px, 3vw, 20px);
  border-radius: 15px;
  font-size: clamp(14px, 2vw, 16px);
  cursor: pointer;
  margin-top: clamp(10px, 2vw, 20px);
}

.back-button {
  background-color: white;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  text-align: center;
  text-decoration: none;
  padding: clamp(12px, 2vw, 15px);
  border-radius: 15px;
  font-size: clamp(14px, 2vw, 16px);
  margin-top: clamp(10px, 2vw, 20px);
  /* отступ от кнопки оформить заказ */
  width: 100%;
}

/* Inputs */
input[type="date"],
input[type="time"] {
  font-family: var(--font1);
  font-size: clamp(14px, 1.5vw, 16px);
  background-color: #E0E0E0;
  border: none;
  border-radius: 12px;
  padding: clamp(8px, 1.5vw, 10px);
  width: clamp(120px, 25%, 150px);
  cursor: pointer;
}

/* Модалки */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: white;
  padding: clamp(20px, 5vw, 30px);
  border-radius: 20px;
  max-width: clamp(300px, 90%, 1100px);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-content button {
  display: block;
  margin: 10px auto;
  padding: clamp(8px, 2vw, 12px) clamp(15px, 4vw, 20px);
  font-size: clamp(14px, 2vw, 16px);
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: clamp(25px, 4vw, 40px);
  cursor: pointer;
  color: #888;
}

.choice-btn {
  background-color: white;
  color: var(--main-color);
  font-size: clamp(16px, 2vw, 20px);
  padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
  border: 2px solid var(--main-color);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
}

/* ============================================= */
/*        КОНСТРУКТОР ТОРТА — ФИНАЛЬНАЯ ВЕРСИЯ    */
/* ============================================= */

.cake-and-text {
  display: grid;
  gap: 16px 32px;
  align-items: center;
  font-family: 'Comfortaa', sans-serif;
  padding-top: clamp(70px, 10vw, 110px);
  margin-bottom: 50px;
}

/* Десктоп: торт слева, текст справа */
@media (min-width: 900px) {
  .cake-and-text {
    grid-template-columns: minmax(340px, 800px) 1fr;
    justify-content: center;
    gap: 18px 40px;
  }

  .candles,
  .layer {
    grid-column: 1;
    justify-self: end;
    width: 100%;
  }

  .label,
  .text.layer0,
  .text.layer1,
  .text.layer2,
  .text.layer3 {
    grid-column: 2;
    justify-self: start;
  }
}

/* Мобильные: одна колонка по центру */
@media (max-width: 899px) {
  .cake-and-text {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .candles,
  .layer,
  .label,
  .text.layer0,
  .text.layer1,
  .text.layer2,
  .text.layer3 {
    grid-column: 1;
    justify-self: center;
  }
}

/* Подписи */
.label {
  font-weight: 700;
  font-size: clamp(18px, 4vw, 22px);
  color: #666;
  margin: 0;
}

.text.layer0,
.text.layer1,
.text.layer2,
.text.layer3 {
  font-weight: 700;
  font-size: clamp(19px, 4.8vw, 26px);
  color: var(--main-color);
  margin: 6px 0;
}

/* Коржи */
.layer {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Увеличенная высота коржей на маленьких экранах */
@media (max-width: 899px) {
  .layer {
    aspect-ratio: 800 / 200;
    /* выше на мобильных */
  }
}

@media (min-width: 900px) {
  .layer {
    aspect-ratio: 800 / 145;
    /* стандарт на десктопе */
  }
}

/* Свечи */
.candles {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.candles img {
  width: clamp(20px, 7vw, 50px);
  /* уменьшены на маленьких экранах */
  height: auto;
}

/* ============================================= */
/*                ОПЦИИ (пропитка и т.д.)       */
/* ============================================= */

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  margin: 50px 0 70px;
}

.option-group {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.option-group h4 {
  margin: 0 0 18px 0;
  font-family: var(--font1);
  font-size: clamp(19px, 4vw, 23px);
  color: var(--main-color);
}

.option-group label {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: clamp(15px, 3.6vw, 17px);
  cursor: pointer;
}

.option-group input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  margin-right: 12px;
  background: white;
  position: relative;
  flex-shrink: 0;
}

.option-group input[type="radio"]::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--main-color);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s;
}

.option-group input[type="radio"]:checked::before {
  transform: scale(1);
}

/* ============================================= */
/*                   КОРЗИНА СПРАВА              */
/* ============================================= */

.com-and-pay {
  display: grid;
  gap: 40px;
  margin-top: 50px;
}

@media (min-width: 900px) {
  .com-and-pay {
    grid-template-columns: 2fr 1fr;
  }
}

.payment-card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  align-self: start;
}

.payment-card h1 {
  font-family: var(--font1);
  font-size: clamp(24px, 5vw, 30px);
  color: var(--main-color);
  text-align: center;
  margin: 0 0 24px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: clamp(16px, 4vw, 18px);
  border-bottom: 1px solid #f0f0f0;
}

.price-row.total {
  font-weight: 700;
  font-size: clamp(20px, 5vw, 24px);
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
  padding-top: 16px;
}

#buy-button-in-custom {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: clamp(18px, 4vw, 21px);
  font-weight: 600;
  cursor: pointer;
}

#buy-button-in-custom:hover {
  background: #c4163f;
}

/* ============================================= */
/*                МОДАЛЬНЫЕ ОКНА                 */
/* ============================================= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: clamp(20px, 5vw, 30px);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #333;
}

.modal-content h2 {
  text-align: center;
  font-size: clamp(20px, 5vw, 26px);
  margin-bottom: 20px;
  color: var(--main-color);
}

.options-grid {
  display: grid;
  /* максимум 3 колонки, каждая минимум 200px, растягивается */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* расстояние между карточками */
}

.option {
  border: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.option img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.option p {
  font-size: clamp(13px, 3.5vw, 15px);
  color: var(--menu-text-color);
}

.option.selected {
  border-color: var(--main-color);
}

#confirm-layer-btn,
#confirm-layer-btn-cake1,
#confirm-layer-btn-cake2,
#confirm-design-btn {
  width: 100%;
  padding: 12px;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: clamp(15px, 4vw, 18px);
  cursor: pointer;
  margin-top: 20px;
}

.layer.clickable,
.text.clickable,
.candles.clickable {
  cursor: pointer;
}







.profile-section {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.profile-left {
  flex: 1;
  min-width: 280px;
}

.profile-right {
  flex: 2;
  min-width: 300px;
}

.profile-info p {
  font-size: 16px;
  color: var(--menu-text-color);
  margin-bottom: 8px;
}

.no-orders-text {
  font-size: 16px;
  color: var(--menu-text-color);
  margin-bottom: 20px;
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
  .profile-section {
    flex-direction: column;
    gap: 30px;
  }

  .profile-left,
  .profile-right {
    min-width: 100%;
  }
}



.chat-icon {
  position: fixed;
  bottom: 5%;
  right: 3%;
  width: 90px;
  height: 90px;
  background-color: var(--main-color);
  border-radius: 50%;
  /* идеально круглая форма */
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 35px;
  text-decoration: none;
  border: 4px solid white;
  /* белая обводка */
}

#secret-button {
  background-color: white;
  color: var(--menu-text-color);
  padding: 10px 20px;
  font-size: 18px;
  border: 2px solid var(--menu-text-color);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
}