* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: #fff;
min-height: 100vh;
padding: 20px;
line-height: 1.5;
position: relative;
overflow-x: hidden;
}

/* Основной фон с полупрозрачными квадратами */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -2;
background-color: #fff;
background-image: 
linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
pointer-events: none;
}

/* Цветной слой поверх квадратов */
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background-color: #66ff00;
transition: background-color 0.3s ease;
pointer-events: none;
}

.container {
max-width: 1400px;
margin: 0 auto;
width: 100%;
}

.header-container {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 30px;
position: relative;
}

h1 {
text-align: center;
margin-bottom: 10px;
color: #fff;
font-size: 2.2rem;
font-weight: 600;
}

.subtitle {
text-align: center;
color: rgba(255, 255, 255, 0.8);
font-size: 1.1rem;
}

.settings-btn {
position: absolute;
top: 30px;
right: 30px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
}

.settings-btn:hover {
background: rgba(255, 255, 255, 0.2);
}

.settings-btn svg {
width: 20px;
height: 20px;
fill: #fff;
}

.main-grid {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
}

@media (min-width: 768px) {
.main-grid {
grid-template-columns: 1fr 1fr;
}

/* Фиксированный цветовой пикер для десктопа */
.section:first-child {
position: sticky;
top: 30px;
align-self: start;
max-height: calc(100vh - 60px);
overflow-y: auto;
}
}

@media (min-width: 1200px) {
.main-grid {
grid-template-columns: 1fr 1fr;
}
}

.section {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
font-size: 1.4rem;
margin-bottom: 25px;
color: #fff;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
}

/* Color picker */
.color-picker-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
min-height: 300px;
max-width: 100%;
}

.color-picker-wrapper {
width: 100%;
max-width: 400px;
margin: 0 auto;
}

/* Inputs section */
.inputs-grid {
display: grid;
grid-template-columns: 1fr;
gap: 25px;
}

.input-group {
display: flex;
flex-direction: column;
}

.input-label {
font-size: 1rem;
margin-bottom: 10px;
color: #aaa;
display: flex;
justify-content: space-between;
align-items: center;
}

.oklch-indicator {
display: inline-block;
width: 24px;
height: 24px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.3);
margin-left: 10px;
vertical-align: middle;
position: relative;
overflow: hidden;
}

.oklch-indicator::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #fff;
background-image: 
linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
background-size: 8px 8px;
background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.oklch-indicator::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--indicator-color, transparent);
}

.input-wrapper {
position: relative;
display: flex;
align-items: center;
}

/* Кнопки копирования */
.copy-buttons {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
display: flex;
gap: 5px;
}

.copy-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 6px;
color: #ccc;
padding: 8px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
}

.copy-btn:hover {
background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
background: #2d7d46;
color: white;
border-color: #2d7d46;
}

.copy-btn svg {
width: 16px;
height: 16px;
fill: currentColor;
}

.copy-btn.css {
width: 50px;
}

/* Sliders - ИСПРАВЛЕНО: ползунки доходят до края */
.slider-container {
margin-top: 10px;
}

.oklch-controls {
margin-top: 30px;
display: flex;
flex-direction: column;
gap: 20px;
}

.oklch-control {
display: flex;
align-items: center;
gap: 15px;
}

.oklch-control-label {
min-width: 80px;
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.9);
}

.oklch-slider {
flex: 1;
height: 6px;
-webkit-appearance: none;
appearance: none;
background: linear-gradient(90deg, 
rgba(255, 255, 255, 0.1) 0%,
rgba(255, 255, 255, 0.3) 100%);
border-radius: 3px;
outline: none;
margin: 0;
width: 100%;
cursor: pointer;
}

.oklch-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
cursor: pointer;
border: 2px solid #333;
box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.oklch-slider::-moz-range-thumb {
width: 22px;
height: 22px;
border-radius: 50%;
background: #fff;
cursor: pointer;
border: 2px solid #333;
box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.oklch-slider::-webkit-slider-runnable-track {
width: 100%;
height: 6px;
cursor: pointer;
background: linear-gradient(90deg, 
rgba(255, 255, 255, 0.1) 0%,
rgba(255, 255, 255, 0.3) 100%);
border-radius: 3px;
}

.oklch-slider::-moz-range-track {
width: 100%;
height: 6px;
cursor: pointer;
background: linear-gradient(90deg, 
rgba(255, 255, 255, 0.1) 0%,
rgba(255, 255, 255, 0.3) 100%);
border-radius: 3px;
}

.oklch-value {
min-width: 70px;
text-align: center;
font-family: 'Monaco', 'Consolas', monospace;
font-size: 0.95rem;
background: rgba(255, 255, 255, 0.08);
padding: 5px 10px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.2);
flex-shrink: 0;
}

input {
width: 100%;
padding: 16px 120px 16px 16px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
color: #fff;
font-size: 1.1rem;
outline: none;
transition: all 0.3s ease;
font-family: 'Monaco', 'Consolas', monospace;
cursor: text;
}

input:focus {
border-color: rgba(74, 158, 255, 0.5);
box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* Выделение текста при фокусе - ИСПРАВЛЕНО */
input::selection {
background-color: var(--current-color, rgba(74, 158, 255, 0.5));
color: white;
}

/* Error */
.error {
color: #ff6b6b;
margin-top: 10px;
font-size: 0.9rem;
min-height: 1.2em;
padding: 8px;
background: rgba(255, 107, 107, 0.1);
border-radius: 6px;
border: 1px solid rgba(255, 107, 107, 0.2);
display: none;
}

.error.show {
display: block;
}

/* Footer */
.footer {
margin-top: 40px;
text-align: center;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 10px;
padding: 15px 20px;
display: inline-block;
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
}

/* Новые секции для палитр и контраста */
.features-grid {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
margin-top: 30px;
}

@media (min-width: 992px) {
.features-grid {
grid-template-columns: 1fr 1fr;
}
}

.harmony-section, .contrast-section, .tokens-section {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Палитры цветовых гармоний */
.harmonies-container {
display: flex;
flex-direction: column;
gap: 20px;
}

.harmony-types {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 15px;
}

.harmony-type-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #ccc;
padding: 8px 16px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s ease;
}

.harmony-type-btn.active {
background: rgba(74, 158, 255, 0.2);
border-color: rgba(74, 158, 255, 0.5);
color: white;
}

.harmony-type-btn:hover {
background: rgba(255, 255, 255, 0.1);
}

.color-palette {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 10px;
margin-top: 15px;
}

@media (max-width: 768px) {
.color-palette {
grid-template-columns: repeat(3, 1fr);
}
}

.palette-color {
aspect-ratio: 1;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.1);
cursor: pointer;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}

.palette-color:hover {
transform: scale(1.05);
border-color: rgba(255, 255, 255, 0.3);
}

.palette-color::after {
content: attr(data-hex);
position: absolute;
bottom: 5px;
left: 5px;
right: 5px;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 0.7rem;
text-align: center;
padding: 2px 4px;
border-radius: 4px;
opacity: 0;
transition: opacity 0.2s ease;
}

.palette-color:hover::after {
opacity: 1;
}

/* Контрастность */
.contrast-results {
display: flex;
flex-direction: column;
gap: 20px;
}

.wcag-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 500;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
}

.wcag-badge.pass {
background: rgba(45, 125, 70, 0.2);
border-color: rgba(45, 125, 70, 0.5);
color: #4ade80;
}

.wcag-badge.fail {
background: rgba(220, 38, 38, 0.2);
border-color: rgba(220, 38, 38, 0.5);
color: #f87171;
}

.contrast-examples {
display: flex;
flex-direction: column;
gap: 15px;
}

.contrast-example {
padding: 15px;
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.05);
}

.contrast-example .text {
font-size: 1.1rem;
margin-bottom: 8px;
}

.contrast-example .ratio {
font-size: 0.9rem;
color: #aaa;
font-family: 'Monaco', 'Consolas', monospace;
}

/* Дизайн-токены */
.tokens-container {
display: flex;
flex-direction: column;
gap: 20px;
}

.tokens-preview {
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
padding: 20px;
font-family: 'Monaco', 'Consolas', monospace;
font-size: 0.9rem;
line-height: 1.6;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 200px;
overflow-y: auto;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.tokens-preview::-webkit-scrollbar {
width: 8px;
}

.tokens-preview::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}

.tokens-preview::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
}

.tokens-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}

.token-action-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #ccc;
padding: 10px 16px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}

.token-action-btn:hover {
background: rgba(255, 255, 255, 0.1);
}

.token-action-btn svg {
width: 16px;
height: 16px;
fill: currentColor;
}

/* Figma секция */
.figma-section {
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);

}

.figma-preview {
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
padding: 20px;
font-family: 'Monaco', 'Consolas', monospace;
font-size: 0.9rem;
line-height: 1.6;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 200px;
overflow-y: auto;
border: 1px solid rgba(255, 255, 255, 0.1);

}

.figma-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 20px;
}

.figma-action-btn {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #ccc;
padding: 10px 16px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
}

.figma-action-btn:hover {
background: rgba(255, 255, 255, 0.1);
}

.figma-action-btn svg {
width: 16px;
height: 16px;
fill: currentColor;
}

/* Mobile optimizations */
@media (max-width: 768px) {
body {
padding: 15px;
}

.header-container, .section, .harmony-section, .contrast-section, .tokens-section, .figma-section {
padding: 25px 20px;
}

h1 {
font-size: 1.8rem;
padding-right: 40px;
}

.subtitle {
padding-right: 40px;
}

input {
padding: 18px 120px 18px 18px;
font-size: 16px;
}

.color-picker-container {
min-height: 250px;
}

.color-picker-wrapper {
max-width: 300px;
}

.oklch-control-label {
min-width: 70px;
font-size: 0.9rem;
}

.oklch-value {
min-width: 60px;
font-size: 0.9rem;
padding: 4px 8px;
}

.settings-btn {
top: 20px;
right: 20px;
}

.oklch-control {
gap: 10px;
}

.oklch-slider::-webkit-slider-thumb {
width: 20px;
height: 20px;
}

.oklch-slider::-moz-range-thumb {
width: 20px;
height: 20px;
}

.harmony-types {
flex-direction: column;
}

.harmony-type-btn {
width: 100%;
}
}

@media (max-width: 480px) {
.header-container, .section, .harmony-section, .contrast-section, .tokens-section, .figma-section {
padding: 20px 15px;
}

h1 {
font-size: 1.6rem;
padding-right: 35px;
}

.subtitle {
font-size: 1rem;
padding-right: 35px;
}

.copy-btn {
width: 32px;
height: 32px;
padding: 6px;
}

.copy-btn.css {
width: 40px;
}

.oklch-control {
gap: 8px;
}

.oklch-control-label {
min-width: 60px;
font-size: 0.85rem;
}

.oklch-value {
min-width: 50px;
font-size: 0.85rem;
padding: 3px 6px;
}

.color-picker-wrapper {
max-width: 280px;
}

input {
padding: 16px 100px 16px 16px;
}

.oklch-slider::-webkit-slider-thumb {
width: 18px;
height: 18px;
}

.oklch-slider::-moz-range-thumb {
width: 18px;
height: 18px;
}
}

/* Меню настроек */
.settings-menu {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(20, 20, 20, 0.98);
backdrop-filter: blur(20px);
border-radius: 16px;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.2);
z-index: 1000;
max-width: 500px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.settings-menu.active {
display: block;
}

.settings-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(5px);
z-index: 999;
}

.settings-overlay.active {
display: block;
}

.settings-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-title {
font-size: 1.5rem;
font-weight: 600;
}

.settings-close {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
color: #fff;
font-size: 1.5rem;
cursor: pointer;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
line-height: 1;
padding: 0;
}

.settings-close:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1);
}

.formats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
margin-bottom: 25px;
}

.format-item {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 15px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
cursor: pointer;
transition: all 0.2s ease;
user-select: none;
}

.format-item:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-1px);
}

.format-item.disabled {
opacity: 0.6;
cursor: not-allowed;
background: rgba(255, 255, 255, 0.02);
}

.format-item.disabled:hover {
background: rgba(255, 255, 255, 0.02);
transform: none;
}

/* Кастомные чекбоксы */
.format-checkbox {
position: relative;
width: 20px;
height: 20px;
flex-shrink: 0;
pointer-events: none;
}

.format-checkbox input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
pointer-events: none;
}

.checkbox-custom {
position: relative;
display: block;
width: 20px;
height: 20px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 4px;
transition: all 0.2s ease;
pointer-events: none;
}

.format-checkbox input:checked + .checkbox-custom {
background: #4a9eff;
border-color: #4a9eff;
}

.format-checkbox input:checked + .checkbox-custom::after {
content: '';
position: absolute;
top: 3px;
left: 6px;
width: 6px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}

.format-checkbox input:disabled + .checkbox-custom {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
cursor: not-allowed;
}

.format-label {
font-size: 0.95rem;
color: #fff;
flex: 1;
pointer-events: none;
}

/* Кнопка подтверждения */
.settings-confirm-btn {
width: 100%;
background: #2d7d46;
color: white;
border: none;
border-radius: 10px;
padding: 15px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 20px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}

.settings-confirm-btn:hover {
background: #3a9557;
transform: translateY(-2px);
}

.settings-confirm-btn:active {
transform: translateY(0);
}

/* Кастомный скроллбар */
.settings-menu::-webkit-scrollbar {
width: 8px;
}

.settings-menu::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}

.settings-menu::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
}

.settings-menu::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Убираем растягивание Figma на всю ширину */
.figma-section {
/* Убираем эти свойства если они есть: */
/* grid-column: 1 / -1; */
/* width: 100%; */
}

/* Делаем чтобы Figma тоже была в колонках */
@media (min-width: 992px) {
.features-grid {
grid-template-columns: 1fr 1fr; /* Оставляем 2 колонки */
}

/* Убираем растягивание Figma */
.figma-section {
grid-column: unset; /* Сбрасываем растягивание */
width: unset; /* Сбрасываем ширину */
}
}
/* НОВЫЙ БЛОК: Шарик с плашками */
.color-preview-container {
position: absolute;
top: 20px;
right: 20px;
left: 20px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
z-index: 10;
}

.color-preview-box {
width: 80px;
height: 80px;
border-radius: 50%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
background-color: #66ff00;
flex-shrink: 0;
order: 2;
cursor: pointer;
transition: all 0.2s ease;
}

.color-preview-box:hover {
transform: scale(1.05);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.color-values {
display: flex;
flex-direction: column;
gap: 5px;
order: 1;
}

.color-value-card {
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 8px 10px;
user-select: none;
width: max-content;
max-width: 100%;
cursor: pointer;
transition: all 0.2s ease;
}

.color-value-card:hover {
background: rgba(0, 0, 0, 0.8);
transform: translateY(-1px);
}

.color-label {
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.5);
margin-bottom: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 500;
}

.color-code {
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
font-size: 0.8rem;
color: #fff;
line-height: 1.3;
white-space: nowrap;
}

/* Мобильная версия - всё так же, только меньше */
@media (max-width: 768px) {
.color-preview-container {
top: 15px;
right: 15px;
left: 15px;
gap: 15px;
}

.color-preview-box {
width: 65px;
height: 65px;
}

.color-values {
gap: 10px;
}

.color-value-card {
padding: 12px 14px;
}

.color-code {
font-size: 0.85rem;
}

.color-label {
font-size: 0.7rem;
}
}

@media (max-width: 480px) {
.color-preview-container {
top: 10px;
right: 10px;
left: 10px;
gap: 5px;
}

.color-preview-box {
width: 55px;
height: 55px;
}

.color-value-card {
padding: 10px 12px;
}

.color-code {
font-size: 0.6rem;
}

.color-label {
font-size: 0.6rem;
}
}
.color-value-card.copied {
background: rgba(45, 125, 70, 0.5);
}

.simple-footer {
margin-top: 30px;
}

.footer-inner {
max-width: 1400px;
margin: 0 auto;
width: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 20px 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}

.copyright {
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.7);
font-weight: 500;
}

.language-selector {
position: relative;
}

.lang-select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 10px;
color: #fff;
font-size: 0.95rem;
padding: 10px 40px 10px 16px;
cursor: pointer;
outline: none;
min-width: 100px;
transition: all 0.2s ease;
font-weight: 500;
}

.lang-select:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.3);
}

.lang-select:focus {
border-color: rgba(74, 158, 255, 0.5);
box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}
.copyright a { color:white;}

/* Стрелочка для селекта */
.language-selector::after {
content: '';
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid rgba(255, 255, 255, 0.7);
pointer-events: none;
}

/* Опции селекта */
.lang-select option {
background: rgba(20, 20, 20, 0.98);
color: #fff;
padding: 10px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
.simple-footer {
padding: 0 15px 15px;
margin-top: 30px;
}

.footer-inner {
padding: 18px 20px;
flex-direction: column;
gap: 20px;
text-align: center;
}

.lang-select {
width: 100%;
max-width: 120px;
}
}

@media (max-width: 480px) {
.footer-inner {
padding: 16px 18px;
}

.copyright {
font-size: 0.85rem;
}

.lang-select {
padding: 8px 35px 8px 14px;
font-size: 0.9rem;
}
}


/* Информационный блок про OKLCH */
.info-block {
margin-top: 40px;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 40px;
border: 1px solid rgba(255, 255, 255, 0.1);
grid-column: 1 / -1;
}

.info-block-title {
font-size: 1.8rem;
margin-bottom: 25px;
color: #fff;
font-weight: 600;
text-align: center;
line-height: 1.3;
}

.info-block-content {
font-size: 1.1rem;
line-height: 1.7;
color: rgba(255, 255, 255, 0.9);
}

.info-block-content p {
margin-bottom: 20px;
}

.info-block-content ul {
margin: 25px 0;
padding-left: 20px;
}

.info-block-content li {
margin-bottom: 12px;
position: relative;
padding-left: 10px;
}

.info-block-content li::before {
content: '';
position: absolute;
left: -20px;
top: 0.8em;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--current-color, #66ff00);
}

.info-block-content strong {
color: #fff;
font-weight: 600;
}

.info-block-footer {
margin-top: 30px;
padding-top: 25px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
text-align: center;
font-style: italic;
color: rgba(255, 255, 255, 0.7);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
.info-block {
padding: 30px 20px;
margin-top: 30px;
}

.info-block-title {
font-size: 1.5rem;
margin-bottom: 20px;
}

.info-block-content {
font-size: 1rem;
}
}

@media (max-width: 480px) {
.info-block {
padding: 25px 18px;
}

.info-block-title {
font-size: 1.3rem;
}
}