/* :root {
  --red: #ff0033;
  --redopas: #ff003370;
  --dark: #000;
  --bbb: #242424;
  --bbb2: #1f1f1f;
  --darklite: #333;
  --ddark: #121212;
  --white: #cccccc;
  --pink: #da7d9b;
  --dark2: #242424;
  --gradient-color: rgba(0, 0, 0, 0.8);
  --gc2: rgba(71, 71, 71, 0.3);
  --ds: #3e47b1;
  --dslite: #6572fa;
  --arrow: #ffffff;
  --ten: rgba(0, 0, 0, 0.3);
  --font-main: 'Inter', sans-serif;
} */

:root {
  --red: #ff0033;
  --redopas: #ff003370;
  --bbb: #1a1a1a;
  --bbb2: #101010;
  --dark: #000;
  --dark2: #191919;
  --darklite: #2e2e2e;
  --ddark: #0a0a0a;
  --white: #cccccc;
  --pink: #da7d9b;
  --gradient-color: rgba(0, 0, 0, 0.8);
  --gc2: rgba(71, 71, 71, 0.3);
  --ds: #3e47b1;
  --dslite: #6572fa;
  --arrow: #ffffff;
  --ten: rgba(0, 0, 0, 0.3);
  --font-main: 'Noto Sans Mono Variable', 'Noto Sans Mono', Consolas, 'IBM Plex Mono', Inter, monospace;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM/IBMPlexMono-Regular.woff2') format('woff2'),
       url('/assets/fonts/IBM/IBMPlexMono-Regular.woff') format('woff'),
       url('/assets/fonts/IBM/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBM/IBMPlexMono-Bold.woff2') format('woff2'),
       url('/assets/fonts/IBM/IBMPlexMono-Bold.woff') format('woff'),
       url('/assets/fonts/IBM/IBMPlexMono-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Подключаем Noto Sans Mono */
@font-face {
  font-family: 'Noto Sans Mono';
  src: url('/assets/fonts/Noto-Sans-Mono/NotoSansMono-Regular.woff2') format('woff2'),
       url('/assets/fonts/Noto-Sans-Mono/NotoSansMono-Regular.woff') format('woff'),
       url('/assets/fonts/Noto-Sans-Mono/NotoSansMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Noto Sans Mono';
  src: url('/assets/fonts/Noto-Sans-Mono/NotoSansMono-Bold.woff2') format('woff2'),
       url('/assets/fonts/Noto-Sans-Mono/NotoSansMono-Bold.woff') format('woff'),
       url('/assets/fonts/Noto-Sans-Mono/NotoSansMono-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Подключаем Noto Sans Mono Variable */
@font-face {
  font-family: 'Noto Sans Mono Variable';
  src: url('/assets/fonts/Noto-Sans-Mono-Variable/NotoSansMono-VariableFont_wdth,wght.woff2') format('woff2'),
       url('/assets/fonts/Noto-Sans-Mono-Variable/NotoSansMono-VariableFont_wdth,wght.woff') format('woff'),
       url('/assets/fonts/Noto-Sans-Mono-Variable/NotoSansMono-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


::-webkit-scrollbar-track {
  background: transparent;
  /* цвет дорожки */
  border-radius: 100px;
}

::-webkit-scrollbar-thumb {
  background-color: #c2c2c2;
  /* цвет плашки */
  border-radius: 20px;
  /* закругления плашки */
  /* border: 4px solid var(--bbb); */
}

::-webkit-scrollbar {
  width: 6px;
  /* ширина scrollbar */
}

::selection {
  background-color: rgba(255, 0, 51, 0.4);
  border-radius: 5px;
  /* Округление углов */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.fullscreen-main {
  min-height: calc(100vh - 300px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 150px;
  padding-top: 50px;
  flex-direction: column;
  gap: 2rem;
}


body {
  font-family: var(--font-main) !important;
  background-color: var(--bbb);
  color: var(--white);
  min-height: 100vh;
  font-weight: 400;
  font-size: 0.95rem; /* уменьшает чуть-чуть высоту */
  letter-spacing: -0.2px; /* уменьшает ширину визуально */
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

input,
button,
select,
textarea {
  font-family: inherit;
}

.glass-background {
  position: fixed;
  inset: 0;
  background: transparent;
  filter: blur(20px) brightness(0.4);
  z-index: -1;
}

header {
  text-align: center;
  padding: 2rem 1rem 2rem;
}

.column {
  flex-direction: column;
}

.logo {
  color: var(--red);
  font-size: 2rem;
  font-weight: 800;
}

.sitlogo {
  width: 250px;
  user-select: none;
}

/* Навигация */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 2rem;
  backdrop-filter: blur(16px) saturate(160%);
  background: rgba(36, 36, 36, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  height: 40px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--dslite);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.hero-inner {
  text-align: center;
  padding: 2rem;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.break {
  display: block;
  margin-top: 0.3em;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.service-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.service-header-r {
  display: flex;
  gap: 10px;
  align-items: center;
}

.service-logo {
  width: 40px;
  height: 40px;
}

.title {
  font-size: 1.5rem;
  color: var(--pink);
}

.titleH2 {
  text-align: center;
}

.domain {
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--darklite);
  transition: all 0.2s ease-in-out;
}

.domain:hover {
  background: var(--dark2);
}

.domain.copied {
  box-shadow: 0 0 0 2px var(--redopas), 0 0 8px var(--redopas);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer {
  position: fixed;
  bottom: 15px;
  z-index: 10;
  pointer-events: none;
  margin: 0 auto;
  width: calc(100% - 30px);
  left: 15px;
}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.copy-text {
  background-color: #000000;
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  user-select: none;
  position: relative;
  margin: 0 auto;
  cursor: pointer;
  width: fit-content;
}

.footer-box {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  padding: .5rem;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-box a {
  color: var(--dslite);
  text-decoration: none;
  font-weight: 600;
}

.footer-box a:hover {
  color: var(--ds);
}

.glass {
  border-radius: 1rem;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  padding: 1rem;
}

/* Новый стиль для хедера */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: wrap;
  text-align: left;
  flex-direction: row;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
  align-items: center;
}

.main-logo.small {
  width: 45px;
  height: 45px;
}

.logo {
  font-size: 2.2rem;
  color: var(--red);
  font-weight: 800;
  margin: 0;
}

.tagline {
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.6;
  margin-top: 0;
}

.status-ok i {
  color: #00e676;
}

.status-error i {
  color: #ff5252;
}

.status-wait i {
  color: var(--dslite);
  /* или любой твой мягкий нейтральный оттенок */
}

.status-indicator {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}

/* Контейнер по центру */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-f {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Делаем header закреплённым */
header {
  position: sticky;
  top: 15px;
  z-index: 20;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Секция преимуществ */
.benefits {
  margin: 3rem auto;
  padding: 2rem;
}

.benefits h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--red);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.benefit {
  text-align: center;
  font-size: 1rem;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit img {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.nickname-display {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0;
}

/* Совместимость */
.compatibility {
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.compatibility h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--red);
}

.compatibility .icons i {
  font-size: 2rem;
  margin: 0 1rem;
  color: var(--dslite);
  transition: transform 0.3s;
}

.compatibility .icons i:hover {
  transform: scale(1.2);
  color: var(--ds);
}

/* НИКИ */

.nickname-generator {
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.nick-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.nick-settings {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nick-output {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: flex-start;
}

.form-row {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  user-select: none;
}

.form-group label,
.form-group input,
.form-group button,
.form-group select {
  cursor: pointer;
}

/* Слайдеры */
input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: #444;
  border-radius: 2px;
  outline: none;
  transition: background 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: #2196f3;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  background: #2196f3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Select */
select#lang-select,
select#ai-model {
  background-color: #1c1c1c;
  color: white;
  border: 1px solid #444;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" fill="%23aaa" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
}

#keyword-input {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #2a2a2e;
  border: none;
  color: white;
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  height: 25px;
}

.tag {
  background: #3a3a3e;
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.tag-close {
  margin-left: 6px;
  cursor: pointer;
  color: #ff5555;
  font-weight: bold;
}

input[type="range"] {
  width: 100%;
  accent-color: #2196f3;
}

/* Радиокнопки */
.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-group input[type="radio"] {
  accent-color: #2196f3;
}

/* Тумблер */
.switch-group {
  display: flex;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.switch-label input[type="checkbox"] {
  display: none;
}

.switch-label .slider {
  width: 40px;
  height: 20px;
  background: #555;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.switch-label .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.switch-label input:checked+.slider::before {
  transform: translateX(20px);
  background: #00c853;
}

.switch-label input:checked+.slider {
  background: #333;
}

/* Результат */
.nickname-results {
  background: #121212;
  border-radius: 8px;
  padding: 1rem;
  min-height: 176px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.nick-block {
  background: #2c2c2c;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  height: max-content;
  text-overflow: ellipsis;
  text-align: center;
}

.nick-block:hover {
  background: #383838;
}

.nick-block.copied {
  background: #4caf50 !important;
  color: #fff;
}

.output-gr {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Кнопка */
.btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  background: #222;
  text-decoration: none;
  color: white;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  width: fit-content;
  user-select: none;
}

.btn:hover {
  background: #2a2a2a;
  border-color: #555;
}


.pixel-art {
  margin-top: 3rem;
}

.pixel-layout {
  display: flex;
  gap: 2rem;
  align-items: start;
}

#pixelCanvas {
  border: 1px solid #aaa;
  image-rendering: pixelated;
  cursor: crosshair;
}

.pixel-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Универсальные Tooltips */
[title] {
  position: relative;
  cursor: help;
}

[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--darklite);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: pre;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

[title]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.breadcrumb-nav ul {
  list-style: none;
  padding: 10px;
  display: flex;
  gap: 10px;
  font-size: 14px;
}