* {
  touch-action: manipulation; /* масштабирование при двойном тапе не происходит */
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
/*  font-family: 'Segoe UI', system-ui, sans-serif;*/
}

html {
  background: #f8fafc;
}

.button {
  user-select: none;
  -webkit-user-select: none;
}

.none_select {
  user-select: none;
  -webkit-user-select: none;
}

a {
  text-decoration: none;
/*  pointer-events: none*/
}

input {
  outline: none;
}

.def_input {
  position: relative;
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 0 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding-left: 0rem;
  padding-right: 0rem;
}

.def_input > input {
  box-sizing: border-box;
  width: 100%;
  padding: 1.4rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}
.def_input > textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 1.4rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}
.def_input > input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6366f1;
  background: rgba(99, 102, 241, 0.05);
}
.def_input > textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

textarea {
  outline: none;resize: none;
}

.tooltip {
  position: relative;
  cursor: help;
}
.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.div_svg > svg {
  height: inherit !important;
  width: inherit !important;
}

.div_svg {
  display: flex;
  align-items: center;
}

.a_c {
  position: relative;
  overflow: hidden;
}

span.ripple {
  position: absolute; /* The absolute position we mentioned earlier */
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 1000ms 1;
  background-color: #00000045;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

::-webkit-contacts-auto-fill-button {
    opacity: 0;
}






.scroll {
  overflow: auto;-ms-overflow-style: none;scrollbar-width: none;
  overflow: auto;
  -ms-overflow-style: none;*/
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.scroll::-webkit-scrollbar {
  width: 0; height: 0;
}

.preloader {
  height: calc(100%);
  width: 100%;
  position: fixed;
  left: 0px;
  z-index: 100003;
  top: 0px;
}

.preloader > :nth-child(1 of div) {
  opacity: 0.1;
  background: #000;
  height: 100%;
}

.hide_preloader {
  display: none;
}


.loader {
/*  height: 34px;*/
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #93db2a;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}
@keyframes l20-1{
   0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
   12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
   25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
   50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
   100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
  0%    {transform:scaleY(1)  rotate(0deg)}
  49.99%{transform:scaleY(1)  rotate(135deg)}
  50%   {transform:scaleY(-1) rotate(0deg)}
  100%  {transform:scaleY(-1) rotate(-135deg)}
}

.mouse {
  transition: background 200ms, color 200ms, fill 200ms;
}



/*select*/
.wrapper_select {
  position: relative;
}

.wrapper_select_title {
  font-weight: 600;margin-bottom: 10px;font-size: 17px;
}

.wrapper_select_selected {
  align-items: center;gap: 5px;padding: 15px;border-width: 2px;border-style: solid;border-radius: 5px;border-color: #aeaeae;color: #555;display: flex; justify-content: space-between;
}

[for=select].active > .wrapper_select_selected {
  border-color: #7cc440;
}

.select_ico {
  width: 17px;height: 17px; transition: transform 100ms linear;
}

[for=select].active > .wrapper_select_selected > .select_ico {
  transform: rotate(180deg);
}

[for=select].active + .select_list {
  display: block;
}

.select_list {
  display: none;min-width: max-content;
  width: 100%; position: absolute;z-index: 1; overflow: hidden;box-shadow: 0 2px 16px rgba(0, 0, 0, 0.21);margin-top: 5px;border-radius: 5px;background: white;color: #646464;
}

.select_list > div {
  padding: 20px;border-bottom-width: 1px; border-bottom-style: solid; border-color: #b9b9b930;padding-bottom: 17px; padding-top: 17px;
}

.select_list > :last-child {
  border-bottom-width: 0px;
}

.checkbox {
  display: flex;
}
.checkbox_location {
  min-width: 16px;
  min-height: 16px;
  width: 16px;
  height: 16px;
  border-style: solid;
  border-radius: 5px;
  border-color: #a0a0a0;
  border-width: 3px;
}
.checkbox_mark {
  display: flex;display: none;
}
.checkbox_mark > svg {
  width: 10px;height: 10px;
}
.checkbox_label {
  color: inherit !important;
  display: flex;
  align-items: center;font-size: 14px;margin-left: 10px;position: relative;-webkit-touch-callout: none;  -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}

.checkbox.active > .checkbox_location {
  border-color: #7cc440;
  background: #7cc440;
}
.checkbox.active > .checkbox_location > .checkbox_mark {
  display: flex;
  fill: white;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/*toggle*/

.toggle {
  display: flex;justify-content: space-between;align-items: center;
  padding: 15px;padding-bottom: 10px;padding-top: 10px;
  padding-left: 25px;position: relative;
}

.toggle_wrapper {
  width: 40px;
  min-width: 40px;
background: #dbdbdb;
border-radius: 30px;
height: 15px;
position: relative;
display: flex;
align-items: center;
}

.toggle_btn {
  position: absolute;
z-index: 1;
transition: left 500ms ease 0s, right 500ms ease 0s, background 500ms ease 0s;
background: rgb(174, 174, 174);
border-radius: 50px;
padding: 2px;
height: 15px;
width: 15px;
right: calc(100% - 20px);
}

.toggle_btn_active {
  right: 0px;
background: #5152d5;
}


/*выпадающее меню*/
.menu-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.menu-btn:hover { background: #F1F5F9; }

.menu-btn svg {
  width: 24px;
  height: 24px;
  fill: #64748B;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 1;
  min-width: 150px;
  transform-origin: top right;
  animation: scaleIn 0.15s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dropdown-menu button {
  width: 100%;
  padding: 0.5rem;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-menu button:hover { background: #F1F5F9; }


/*select*/
.select_input {
  cursor: context-menu;
}

.select_dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
  background: white;
  border: 2px solid #6366f1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.select_dropdown.show {
  display: block;
}


[for^="select_ok"] {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

[for^="select_ok"]:hover {
  background: #f5f5f5;
}

[for^="select_ok"].selected {
  background: #2196F3;
  color: white;
}








































/* Стили для поля ввода номера */
.phone-field {
  font-family: system-ui, sans-serif;
}

.input-container {
  position: relative;
  border-radius: 8px;
  transition: border-color 0.2s;
  border: 2px solid #e2e8f0;
}

.input-container:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-container.error {
  border-color: #dc2626;
  animation: shake 0.4s;
}

.phone-input {
  width: 100%;
  padding: 14px 16px;
  padding-left: 48px;
  font-size: 16px;
  border: none;
  background: none;
  outline: none;
  color: #1e293b;
}

.country-code {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.status-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.error-message {
  margin-top: 8px;
  color: #dc2626;
  font-size: 14px;
  height: 0;
  opacity: 0;
  transition: all 0.2s;
}

.error-message.visible {
  opacity: 1;
  height: 20px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}



/*toast*/
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: grid;
  gap: 1.5rem;
  z-index: 1000;
}

.toast {
  position: relative;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  width: 320px;
  transform: perspective(1000px) rotateY(90deg) translateX(50%);
  opacity: 0;
  transition: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        rgba(168, 85, 247, 0.1),
        transparent
    );
    transition: 0.6s;
}

.toast:hover::before {
    left: 100%;
}

.toast.show {
    transform: perspective(1000px) rotateY(0deg) translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: perspective(1000px) rotateY(-90deg) translateX(50%);
    opacity: 0;
}

.holographic-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 4s linear infinite;
    background: linear-gradient(
        45deg,
        #6366f1,
        #a855f7,
        #6366f1
    );
    opacity: 0.3;
}

.toast-content {
    position: relative;
    display: grid;
    gap: 0.8rem;
}

.toast-icon {
    font-size: 1.8rem;
    color: #6366f1;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.toast-title {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
}

.toast-message {
    color: #64748b;
    line-height: 1.4;
    font-size: 0.95rem;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(#6366f1, transparent);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: float 3s infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-100px) scale(0); }
}

.toast-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.3s;
}

.toast-close:hover {
    color: #a855f7;
    transform: rotate(90deg);
}

.cyber-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cyber-progress::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    animation: cyberProgress 5s linear forwards;
    opacity: 0.5;
}

@keyframes cyberProgress {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

