.loader-box {
  position: fixed;
  z-index: 3000;
  display: flex;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: var(--accent-pale);
  animation: l15 1s infinite linear;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}

.loader::after {
  margin: 8px;
  animation-duration: 3s;
}

@keyframes l15 {
  100% {
    transform: rotate(1turn)
  }
}

.stop-animations * {
  animation: none !important;
  transition: none !important;
}

.loader-box.hide {
  opacity: 0;
  pointer-events: none;
}

.dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
}

/**
  Нормализация блочной модели
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/**
  Убираем внутренние отступы слева тегам списков,
  у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
  padding-left: 0;
}

/**
  Убираем внешние отступы body и двум другим тегам,
  у которых есть атрибут class
 */
body,
:where(blockquote, figure):where([class]) {
  margin: 0;
}

/**
  Убираем внешние отступы вертикали нужным тегам,
  у которых есть атрибут class
 */
:where(h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  dl):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

/**
  Убираем стандартный маркер маркированному списку,
  у которого есть атрибут class
 */
:where(ul[class]) {
  list-style: none;
}

/**
  Упрощаем работу с изображениями
 */
img {
  display: block;
  max-width: 100%;
}

/**
  Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
  font: inherit;
}

html {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  height: 100%;
  /**
    Плавный скролл
   */
  scroll-behavior: smooth;
}

body {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  min-height: 100%;
  /**
    Унифицированный интерлиньяж
   */
  line-height: 1.5;
}

/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --body-bg: white;
  --accent: #ffc100;
  --accent-pale: #f9e093;
  --hit-new-gradient: #ffb000db;
  --bg: #ececec;
  --section-bg: #ebebeb;
  --card-bg: #ffffff;
  --muted: #6b6b6b;
  --price: #2ba600;
  --header-text: #000;
  --prod-page-sc-bg: #eaeaea;
  --wh-color: black;
  --link-color: black;
  --filter-section-bg: var(--card-bg);
  --menu-after-bg-color: white;
  --radius: 14px;
  --shadow: 0 8px 26px rgba(17, 17, 17, 0.3);
  --duration: 320ms;
  --grid-gap: 22px;
  --prod-list-gradient: linear-gradient(180deg, #fafafa, #fff);
  --prod-card-gradient: linear-gradient(180deg, var(--card-bg), #fbfbfb);
  --menu-img-filter: drop-shadow(2px 4px 15px white);
}

:root[data-theme="dark"] {
  --wh-color: rgb(222, 222, 222);
  --body-bg: #414141;
  --bg: #2e2e2e;
  --section-bg: var(--bg);
  --card-bg: #2a2a2a;
  --link-color: var(--wh-color);
  --header-text: #b6b6b6;
  --accent-pale: var(--section-bg);
  --prod-list-gradient: none;
  --menu-after-bg-color: #595959;
  --filter-section-bg: var(--body-bg);
  --prod-card-gradient: linear-gradient(180deg, var(--card-bg), #484848);
  --prod-page-sc-bg: #363636;
  --muted: #b5b5b5;
  --price: #33cc55;
  
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

body{
  background-color: var(--body-bg);
  color: var(--wh-color);
}
/*------------------------------ header ------------------------------*/
#themeToggle{
  border: none;
  height: min-content;
  border-radius: 10px;
  background-color: var(--accent-pale);
  color: var(--link-color);
  cursor: pointer;
}
#themeToggle:focus{
  outline: none;
}
.header {
  width: 100px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}

.header-box {
  display: flex;
  flex-direction: column;
  width: 80%;
  gap: 10px;
}

.header-box-top-section {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.header-box-top-section-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 600;
}

.header-box-top-section-info a {
  color: var(--link-color);
  text-decoration: none;
}

.menu-min-logo-link {
  display: none;
}
.menu-logo-link img{
  filter: var(--menu-img-filter);
}
.header-box-bottom-section {
  background-color: var(--accent-pale);
  padding: 0 7px;
  border-radius: 10px;
}

.header-menu-ul {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
}

.header-menu-link {
  cursor: pointer;
  position: relative;
  transition: .3s;
  padding: 7px 0;
  /* font-weight: 500; */
  z-index: 1000;
}

.header-menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 7px;
  height: 2px;
  width: 0;
  transition: .3s;
  background-color: white;
  z-index: -1;
  border-radius: 15px;
}

.header-menu-link:hover {
  scale: 1;
}

.header-menu-link:hover::after {
  width: 100%;
}

.header-menu-link a {
  display: block;
  width: 100%;
  color: var(--link-color);
  text-decoration: none;
}

.header-menu-link i {
  opacity: 0;
  transform: rotate(-90deg);
  transition: .3s;
}

.header-menu-link:hover i {
  opacity: 1;
  transform: rotate(0deg);
  margin-left: 10px;
}

.header-menu-link-dropdown-menu {
  display: none;
  position: absolute;
  top: 95%;
  left: 0;
  background-color: var(--accent-pale);
  width: max-content;
  padding: 10px;
  padding-right: 30px;
  padding-left: 0;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.header-menu-link-dropdown-menu.right {
  left: auto;
  right: 0;
}

.header-menu-link:hover .header-menu-link-dropdown-menu {
  display: block;
  animation: dorpdown-menu-anim linear .1s 1 forwards;
}

@keyframes dorpdown-menu-anim {
  0% {
    opacity: 0;
    transform: rotateX(90deg);

  }

  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

.header-menu-link-dropdown-link {
  line-height: 30px;
  position: relative;
  padding: 0 7px;
}

.header-phone {
  font-size: 20px;
}

.header-adress,
.header-mail {
  font-size: 15px;
}

.header-menu-link-dropdown-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  transition: .3s;
  background-color: var(--menu-after-bg-color);
  z-index: -1;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;

}

.header-menu-link-dropdown-link:hover::after {
  width: 100%;
}

.header-mobile-menu {
  display: none;
  width: 100%;
  flex-direction: row-reverse;
}

.header-mobile-menu-but {
  border: none;
  border-radius: 5px;
  background-color: #fff5d5;
  /* box-shadow: rgba(255, 255, 255, 0.1) -2px -2px 4px inset, rgba(0, 0, 0, 0.35) 2px 2px 4px inset; */
}

.header-mobile-menu-box {
  position: fixed;
  z-index: 2000;
  width: 100vw;
  height: 100vh;
  background-color: white;
  left: 0;
  top: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
}

.mobile-menu-active {
  display: flex;
}

.header-mobile-menu-top-section {
  display: flex;
  flex-direction: row-reverse;
}

.close-header-mobile-menu {
  border: none;
  background-color: #efefef;
  border-radius: 8px;
  font-size: 30px;
}

.mobile-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
}

.mobile-menu a {
  color: black;
  list-style: none;
}
#themeMobileToggle{
  border: none;
  border-radius: 5px;
  background-color: #fff5d5;
}
#themeMobileToggle:focus{
  outline: none;
}
.mobile-menu-ul {
  line-height: 40px;
  font-size: 25px;
  font-weight: 600;
  width: max-content;
}

.mobile-collapse a {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.652);
}

.mobile-collapse .header-menu-link-dropdown-link {
  border-bottom: 1px solid silver;
}

@media (max-width: 1400px) {
  .header-box {
    width: 95%;
  }
}

@media (max-width: 1250px) {
  .header-menu-ul {
    display: none;
  }

  .header-mobile-menu {
    display: flex;
    justify-content: space-between;
  }

  .header-box-bottom-section {
    padding: 7px;
  }
}

@media (max-width: 850px) {
  .menu-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .menu-logo-link {
    width: 50%;
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .header-box-top-section-info {
    font-size: 13px;
  }

  .menu-logo-link {
    width: 30%;
  }
}

@media (max-width: 777px) {
  .mobile-menu-ul {
    font-size: 15px;
  }
}

.section-line {
  width: 200px;
  height: 3px;
  border-radius: 5px;
  background-color: var(--accent-pale);
  margin: 40px auto;
  border: none;
}

.order {
  padding: 40px;
}

.order-container {
  max-width: 1700px;
  margin: 0 auto;
  background: var(--bg);
  padding: 24px;
  border-radius: 14px;
}


.order-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.order-field label {
  margin-bottom: 6px;
  font-size: 14px;
}

.order-field input,
.order-field textarea {
  border: 2px solid var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  transition: 0.15s;
}

.order-field.error input,
.order-field.error textarea {
  border-color: #ff4d4d;
  background: #ffecec;
}


.order-error {
  font-size: 13px;
  color: #ff0000;
  margin-top: 4px;
  display: none;
}

.order-field.error .order-error {
  display: block;
}


button#orderSubmit {
  padding: 12px 18px;
  background: var(--accent);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: 0.15s;
}

button#orderSubmit:hover {
  opacity: 0.9;
}

button#orderSubmit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.order-result {
  margin-top: 16px;
  font-size: 14px;
  display: none;
}

.order-result.ok {
  color: #1e8b20;
}

.order-result.err {
  color: #d10000;
}

.order-container-title {
  color: var(--accent);
}

/* --- FOOTER --- */

.site-footer {
  background: var(--bg);
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 240px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--wh-color);
}

.footer-section p,
.footer-section a {
  font-size: 15px;
  line-height: 1.5;
  color: var(--header-text);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

/* ЛОГОБЛОК */
.footer-logo-img {
  width: 220px;
  height: 60px;
  color: var(--header-text);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: #555;
}

/* Нижняя линия */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #dcdcdc;
}

.section-center {
  display: flex;
  justify-content: center;
}

.base-title {
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 1400px) {
  .order {
    padding: 40px 0;
  }
}

@media (max-width: 1150px) {
  .base-title {
    font-size: 30px;
  }
}

@media (max-width: 800px) {
  .base-title {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .menu-logo-link {
    display: none;
  }

  .menu-min-logo-link {
    display: block;
  }
}

@media (max-width: 400px) {
  .base-title {
    font-size: 17px;
  }
}

.section-container {
  width: min(2200px, 80%);
}

@media (max-width: 1400px) {
  .section-container {
    width: 95%;
  }
}

.base-text-section {
  background: var(--bg);
  padding: 20px 0;
  color: var(--wh-color);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.base-text-section .section-container {
  margin: 0 auto;
  background: var(--body-bg);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.base-text-section .section-container.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.base-title {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--wh-color);
}

@media (max-width: 768px) {
  .base-title {
    font-size: 24px;
  }

  .section-text p {
    font-size: 15px;
  }
}

p {
  margin: 0;
}

.base-all-center {
  display: flex;
  justify-content: center;
}