@layer components;

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --color-green-500: oklch(72.3% .219 149.579);
    --color-white: #fff;
    --spacing: .25rem;
    --container-xl: 36rem;
    --container-2xl: 42rem;
    --container-3xl: 48rem;
    --container-6xl: 72rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-widest: .1em;
    --leading-relaxed: 1.625;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --animate-bounce: bounce 1s infinite;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --font-display: "Barlow Condensed", sans-serif;
    --font-body: "Open Sans", sans-serif;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::placeholder {
    opacity: 1;
    color: currentColor;
  }

  @supports (color: color-mix(in lab, red, red)) {
    ::placeholder {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }

  textarea {
    resize: vertical;
  }

  button, input:where([type=button], [type=reset], [type=submit]) {
    appearance: button;
  }

  [hidden]:where(:not([hidden=until-found])) {
    display: none !important;
  }
}

@layer utilities {
  .pointer-events-none { pointer-events: none; }
  .absolute { position: absolute; }
  .fixed { position: fixed; }
  .relative { position: relative; }
  .sticky { position: sticky; }
  .inset-0 { inset: calc(var(--spacing) * 0); }
  .top-0 { top: calc(var(--spacing) * 0); }
  .right-0 { right: calc(var(--spacing) * 0); }
  .right-6 { right: calc(var(--spacing) * 6); }
  .bottom-0 { bottom: calc(var(--spacing) * 0); }
  .bottom-6 { bottom: calc(var(--spacing) * 6); }
  .bottom-8 { bottom: calc(var(--spacing) * 8); }
  .left-1\/2 { left: 50%; }
  .z-50 { z-index: 50; }
  
  .mx-auto { margin-inline: auto; }
  .my-2 { margin-block: calc(var(--spacing) * 2); }
  .-mt-8 { margin-top: calc(var(--spacing) * -8); }
  .mt-0\.5 { margin-top: calc(var(--spacing) * .5); }
  .mt-2 { margin-top: calc(var(--spacing) * 2); }
  .mt-5 { margin-top: calc(var(--spacing) * 5);}
  .mt-8 { margin-top: calc(var(--spacing) * 8); }
  .mt-12 { margin-top: calc(var(--spacing) * 12);}
  .mb-1 { margin-bottom: calc(var(--spacing) * 1); }
  .mb-2 { margin-bottom: calc(var(--spacing) * 2); }
  .mb-3 { margin-bottom: calc(var(--spacing) * 3); }
  .mb-4 { margin-bottom: calc(var(--spacing) * 4); }
  .mb-5 { margin-bottom: calc(var(--spacing) * 5); }
  .mb-6 { margin-bottom: calc(var(--spacing) * 6); }
  .mb-8 { margin-bottom: calc(var(--spacing) * 8); }
  .mb-10 { margin-bottom: calc(var(--spacing) * 10); }
  .mb-12 { margin-bottom: calc(var(--spacing) * 12); }
  
  .flex { display: flex; }
  .grid { display: grid; }
  .hidden { display: none; }
  .inline { display: inline; }
  .inline-flex { display: inline-flex; }
  
  .h-2 { height: calc(var(--spacing) * 2); }
  .h-5 { height: calc(var(--spacing) * 5); }
  .h-12 { height: calc(var(--spacing) * 12); }
  .h-16 { height: calc(var(--spacing) * 16); }
  .h-56 { height: calc(var(--spacing) * 56); }
  .h-full { height: 100%; }
  .h-px { height: 1px; }
  .min-h-\[90vh\] { min-height: 90vh; }
  .min-h-screen { min-height: 100vh; }
  
  .w-1\/2 { width: 50%; }
  .w-2 { width: calc(var(--spacing) * 2); }
  .w-5 { width: calc(var(--spacing) * 5); }
  .w-12 { width: calc(var(--spacing) * 12); }
  .w-16 { width: calc(var(--spacing) * 16); }
  .w-auto { width: auto; }
  .w-full { width: 100%; }
  
  .max-w-2xl { max-width: var(--container-2xl); }
  .max-w-3xl { max-width: var(--container-3xl); }
  .max-w-6xl { max-width: var(--container-6xl); }
  .max-w-xl { max-width: var(--container-xl); }
  
  .flex-1 { flex: 1; }
  .flex-shrink-0 { flex-shrink: 0; }
  .-translate-x-1\/2 { translate: calc(calc(1 / 2 * 100%) * -1) 0; }
  .animate-bounce { animation: var(--animate-bounce); }
  .cursor-default { cursor: default; }
  .resize-none { resize: none; }
  
  .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flex-col { flex-direction: column; }
  .flex-wrap { flex-wrap: wrap; }
  .items-center { align-items: center; }
  .items-start { align-items: flex-start; }
  .justify-between { justify-content: space-between; }
  .justify-center { justify-content: center; }
  .gap-2 { gap: calc(var(--spacing) * 2); }
  .gap-3 { gap: calc(var(--spacing) * 3); }
  .gap-4 { gap: calc(var(--spacing) * 4); }
  .gap-5 { gap: calc(var(--spacing) * 5); }
  .gap-6 { gap: calc(var(--spacing) * 6); }
  .gap-8 { gap: calc(var(--spacing) * 8); }
  .gap-10 { gap: calc(var(--spacing) * 10); }
  .gap-12 { gap: calc(var(--spacing) * 12); }
  
  .overflow-hidden { overflow: hidden; }
  .rounded { border-radius: .25rem; }
  .rounded-2xl { border-radius: var(--radius-2xl); }
  .rounded-full { border-radius: 9999px; }
  .rounded-lg { border-radius: var(--radius-lg); }
  .rounded-xl { border-radius: var(--radius-xl); }
  .border { border-style: solid; border-width: 1px; }
  
  .object-contain { object-fit: contain; }
  .object-cover { object-fit: cover; }
  
  .p-1 { padding: calc(var(--spacing) * 1); }
  .p-5 { padding: calc(var(--spacing) * 5); }
  .p-6 { padding: calc(var(--spacing) * 6); }
  .p-8 { padding: calc(var(--spacing) * 8); }
  .p-12 { padding: calc(var(--spacing) * 12); }
  .px-3 { padding-inline: calc(var(--spacing) * 3); }
  .px-4 { padding-inline: calc(var(--spacing) * 4); }
  .px-5 { padding-inline: calc(var(--spacing) * 5); }
  .px-6 { padding-inline: calc(var(--spacing) * 6); }
  .px-8 { padding-inline: calc(var(--spacing) * 8); }
  .py-1\.5 { padding-block: calc(var(--spacing) * 1.5); }
  .py-2 { padding-block: calc(var(--spacing) * 2); }
  .py-3 { padding-block: calc(var(--spacing) * 3); }
  .py-4 { padding-block: calc(var(--spacing) * 4); }
  .py-8 { padding-block: calc(var(--spacing) * 8); }
  .py-12 { padding-block: calc(var(--spacing) * 12); }
  .py-20 { padding-block: calc(var(--spacing) * 20); }
  .pt-2 { padding-top: calc(var(--spacing) * 2); }
  .pt-4 { padding-top: calc(var(--spacing) * 4);}
  .pt-8 { padding-top: calc(var(--spacing) * 8); }
  .pb-4 { padding-bottom: calc(var(--spacing) * 4); }
  
  .text-center { text-align: center; }
  .text-2xl { font-size: var(--text-2xl); line-height: var(--text-2xl--line-height); }
  .text-3xl { font-size: var(--text-3xl); line-height: var(--text-3xl--line-height); }
  .text-6xl { font-size: var(--text-6xl); line-height: var(--text-6xl--line-height); }
  .text-lg { font-size: var(--text-lg); line-height: var(--text-lg--line-height); }
  .text-sm { font-size: var(--text-sm); line-height: var(--text-sm--line-height); }
  .text-xl { font-size: var(--text-xl); line-height: var(--text-xl--line-height); }
  .text-xs { font-size: var(--text-xs); line-height: var(--text-xs--line-height); }
  
  .leading-none { line-height: 1; }
  .leading-relaxed { line-height: var(--leading-relaxed); }
  .font-bold { font-weight: var(--font-weight-bold); }
  .font-semibold { font-weight: var(--font-weight-semibold); }
  .tracking-widest { letter-spacing: var(--tracking-widest); }
  .text-white { color: var(--color-white); }
  .uppercase { text-transform: uppercase; }
  .underline { text-decoration-line: underline; }
  .opacity-10 { opacity: .1; }
  .opacity-30 { opacity: .3; }
  
  .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  }
  
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }
  .transition-colors {
    transition-property: color, background-color, border-color, fill, stroke;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }
  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }
}

.glowing-box {
    /* Запуск анимации */
  animation: glow 2s infinite alternate;
}

/* Описание анимации */
@keyframes glow {
  0% {
    box-shadow: 0 0 1px rgb(179 101 22), 0 0 5px rgb(169 110 0 / 30%);
  }
  100% {
    box-shadow: 0 0 10px rgb(191 111 0 / 80%), 0 0 15px rgb(151 97 0 / 60%);
  }
}

@media (hover: hover) {
  .hover\:scale-105:hover { scale: 1.05; }
  .hover\:scale-110:hover { scale: 1.1; }
  .hover\:scale-\[1\.02\]:hover { scale: 1.02; }
  .hover\:text-white:hover { color: var(--color-white); }
  .hover\:opacity-80:hover { opacity: .8; }
  .hover\:opacity-90:hover { opacity: .9; }
  .hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  .hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  }
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 calc(2px + 0px) currentColor;
}

.active\:scale-\[0\.98\]:active { scale: .98; }

@media (width >= 40rem) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width >= 48rem) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:p-10 { padding: calc(var(--spacing) * 10); }
}

@media (width >= 64rem) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Custom Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #f8f7f5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: .01em;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #253552;
  border-radius: 3px;
}

@keyframes bounce {
  0%, to {
    animation-timing-function: cubic-bezier(.8, 0, 1, 1);
    transform: translateY(-25%);
  }
  50% {
    animation-timing-function: cubic-bezier(0, 0, .2, 1);
    transform: none;
  }
}
/* Адаптивное переключение фона/блоков (Mobile / Desktop) */
.d-mb-bg { display: none; }

@media (max-width: 767px) {
  .d-pk-bg { display: none; }
  .d-mb-bg { display: block; }
  .min-h-\[90vh\] { min-height: 75vh; }
}

@media (max-width: 475px) {
.glowing-box {width:100%; justify-content: center;}
}