:root {
  --bg: #f7f7f9;
  --panel: rgba(255, 255, 255, 0.82);
  --line: #e3e3e8;
  --text: #22242a;
  --muted: #666a73;
  --accent: #c80055;
  --accent-soft: #ffe8f1;
  --shadow: 0 10px 30px rgba(30, 35, 45, 0.08);
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 244, 235, 0.9), transparent 34%),
    radial-gradient(circle at 72% 0%, rgba(237, 241, 255, 0.95), transparent 36%),
    linear-gradient(135deg, #fafafa, #f3f3f7 48%, #fbf4f0);
  overflow: hidden;
}

button, select, input, textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app {
  display: grid;
  grid-template-rows: 38px 132px 1fr 44px;
  height: 100vh;
  min-width: 960px;
}

.titlebar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 6px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-user-select: none;
  user-select: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.paint-icon {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 45% 45%;
  background: conic-gradient(#2792ff, #1ec07a, #ffcf25, #ff6b4a, #7e55d9, #2792ff);
  position: relative;
}

.paint-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.window-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.window-actions span {
  width: 11px;
  height: 11px;
  border: 1px solid #222;
}

.window-actions span:first-child {
  height: 1px;
  border-width: 0 0 1px;
}

.window-actions span:last-child {
  border: 0;
  position: relative;
}

.window-actions span:last-child::before,
.window-actions span:last-child::after {
  content: "";
  position: absolute;
  inset: 5px 0 auto 0;
  height: 1px;
  background: #222;
}

.window-actions span:last-child::before { transform: rotate(45deg); }
.window-actions span:last-child::after { transform: rotate(-45deg); }

.menubar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(253, 253, 253, 0.96);
  border-bottom: 1px solid var(--line);
}

.menubar > button:not(.icon-btn) {
  padding: 7px 9px;
  border-radius: 5px;
}

.menubar > button:hover,
.nav-link:hover,
.icon-btn:hover,
.large-tool:hover,
.shape-btn:hover,
.dropdown button:hover {
  background: #eef2f8;
}

.nav-link {
  color: inherit;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.quick-actions {
  display: flex;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.menu-spacer,
.status-spacer { flex: 1; }

.language-select {
  height: 30px;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  padding: 0 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border-radius: 6px;
  font-size: 16px;
}

.ribbon {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 7px 14px 5px;
  background: rgba(251, 251, 252, 0.95);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.ribbon-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  position: relative;
}

.ribbon-group:first-child { padding-left: 0; }

.text-toolbar {
  position: absolute;
  z-index: 20;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 20px;
  border: 1px solid rgba(225, 225, 230, 0.9);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 24px rgba(30, 35, 45, 0.12);
}

.text-toolbar.open {
  display: flex;
}

.text-toolbar select,
.text-toolbar input[type="number"] {
  height: 38px;
  min-width: 92px;
  padding: 0 14px;
  border: 1px solid #d8dbe2;
  border-radius: 6px;
  background: #fff;
}

#textFont {
  min-width: 238px;
}

#textSize {
  width: 92px;
}

.text-format {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.text-format.slanted {
  font-style: italic;
}

.text-format.underline {
  text-decoration: underline;
}

.text-format.strike {
  text-decoration: line-through;
}

.text-separator {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.text-bg-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 18px;
}

.text-bg-toggle input {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
}

.group-label {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.large-tool {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  width: 50px;
  height: 78px;
  border-radius: 7px;
  font-size: 12px;
  position: relative;
}

.active,
.selected {
  outline: 1px solid var(--accent);
  background: var(--accent-soft);
}

.tool-glyph {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.tool-glyph.dashed {
  border: 2px dashed #20242b;
}

.tool-glyph.sparkle {
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #ccf6ff 40%, #ffd8e7);
  position: relative;
}

.tool-glyph.sparkle::after {
  content: "✦";
  position: absolute;
  inset: 1px 0 auto 0;
  text-align: center;
}

.tool-glyph.copilot {
  border-radius: 8px;
  background: conic-gradient(#01a6ff, #9c55ff, #ff4aa5, #ffc52f, #28c76f, #01a6ff);
}

.tool-glyph.layers {
  background:
    linear-gradient(150deg, transparent 32%, #234 33% 38%, transparent 39%),
    linear-gradient(#e9f5ff, #fff);
  border: 1px solid #456;
  transform: skewY(-16deg);
  box-shadow: 0 6px 0 -2px #fff, 0 7px 0 -2px #456, 0 12px 0 -5px #fff, 0 13px 0 -5px #456;
}

.paint-svg {
  width: 22px;
  height: 22px;
  color: #111827;
  display: block;
}

.paint-svg.navy {
  color: #26345f;
}

.paint-svg.blue-accent path:last-child,
.paint-svg.blue-accent path:nth-last-child(2) {
  stroke: #0067c0;
}

.paint-svg.text-icon {
  width: 24px;
  height: 24px;
}

.shape-svg {
  width: 20px;
  height: 20px;
  color: #111827;
  display: block;
}

.shape-svg path,
.shape-svg rect,
.shape-svg circle,
.shape-svg polygon {
  vector-effect: non-scaling-stroke;
}

.paint-select-icon {
  width: 28px;
  height: 28px;
  border: 1.8px dashed #1f2933;
  display: block;
}

.split-caret {
  position: absolute;
  bottom: 4px;
  font-size: 13px;
  line-height: 1;
  color: #4b5563;
}

.hidden-paint-controls {
  display: none;
}

.brush-ribbon-group {
  min-width: 80px;
}

.brush-drop .paint-svg {
  width: 28px;
  height: 28px;
}

.select-dropdown {
  min-width: 292px;
  padding: 6px;
  border-radius: 8px;
}

.select-dropdown button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #202124;
}

.select-dropdown button:disabled {
  color: #9aa0a6;
  opacity: 1;
}

.select-dropdown button:first-child {
  background: #f3f3f3;
}

.select-dropdown button:first-child::before {
  content: "";
  position: absolute;
  left: 7px;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--accent);
}

.select-dropdown kbd {
  font: inherit;
  color: #777;
}

.menu-icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  position: relative;
}

.select-rect {
  border: 1.5px dashed #111;
}

.select-free::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.5px dashed #111;
  border-radius: 48% 42% 55% 38%;
}

.select-all {
  border: 1.5px dashed #111;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px #111;
}

.select-invert {
  border: 1.5px dashed #aaa;
  background:
    linear-gradient(45deg, transparent 40%, #aaa 40% 60%, transparent 60%);
}

.select-delete::before,
.select-delete::after {
  content: "";
  position: absolute;
  background: #888;
}

.select-delete::before {
  left: 5px;
  top: 6px;
  width: 12px;
  height: 13px;
  border: 1px solid #888;
  background: transparent;
}

.select-delete::after {
  left: 4px;
  top: 3px;
  width: 14px;
  height: 2px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 4px;
  padding-bottom: 22px;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(7, 25px);
  gap: 4px;
  padding-bottom: 22px;
}

.shape-btn {
  width: 25px;
  height: 21px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.mini-label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mini-label input[type="range"] {
  width: 98px;
  accent-color: var(--accent);
}

select,
input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
}

.colors {
  gap: 10px;
}

.current-colors {
  position: relative;
  width: 62px;
  height: 58px;
}

.color-current {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #bbb;
  background: #000;
}

.color-current.secondary {
  left: 18px;
  top: 20px;
  background: #fff;
}

.palette {
  display: grid;
  grid-template-columns: repeat(10, 19px);
  gap: 6px;
  padding-bottom: 22px;
}

.swatch {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.color-picker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  position: relative;
}

.color-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.color-picker span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
}

.workspace {
  display: grid;
  grid-template-columns: 92px 1fr 320px;
  min-height: 0;
}

.side-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
}

.vertical-control {
  width: 50px;
  height: 450px;
  max-height: 72%;
  display: grid;
  grid-template-rows: 40px 1fr;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
}

.vertical-control input {
  writing-mode: bt-lr;
  appearance: slider-vertical;
  width: 28px;
  height: 382px;
  accent-color: #888;
}

.vertical-control.accent input {
  accent-color: var(--accent);
}

.canvas-stage {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 36px 26px 70px;
}

.canvas-shell {
  position: relative;
  width: 1080px;
  height: 648px;
  background:
    linear-gradient(45deg, #e7e7e7 25%, transparent 25%),
    linear-gradient(-45deg, #e7e7e7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7e7e7 75%),
    linear-gradient(-45deg, transparent 75%, #e7e7e7 75%),
    #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  box-shadow: var(--shadow);
  transform-origin: top left;
}

.canvas-shell.solid-bg {
  background: #fff;
}

canvas {
  position: absolute;
  inset: 0;
  image-rendering: auto;
}

.pixelated canvas {
  image-rendering: pixelated;
}

#overlayCanvas {
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
}

#brushPreview {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.22);
  pointer-events: none;
  display: none;
  transform: translate(-9999px, -9999px);
  will-change: transform, width, height, background-color, opacity;
}

#textEditor {
  display: none;
  position: absolute;
  z-index: 6;
  min-width: 80px;
  min-height: 36px;
  border: 1px dashed #222;
  background: transparent;
  resize: both;
  outline: none;
  padding: 8px;
  color: #000;
  overflow: hidden;
  line-height: 1.25;
}

.resize-handles span {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid #111;
  pointer-events: auto;
  touch-action: none;
}

.resize-handles span:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 0, 85, 0.14);
}

.resize-handles [data-handle="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.resize-handles [data-handle="n"] { left: 50%; top: -9px; cursor: ns-resize; }
.resize-handles [data-handle="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.resize-handles [data-handle="w"] { left: -9px; top: 50%; cursor: ew-resize; }
.resize-handles [data-handle="e"] { right: -9px; top: 50%; cursor: ew-resize; }
.resize-handles [data-handle="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.resize-handles [data-handle="s"] { left: 50%; bottom: -9px; cursor: ns-resize; }
.resize-handles [data-handle="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }

.panel {
  min-height: 0;
  border-left: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  padding: 12px;
  overflow: auto;
}

.layers-panel.hidden {
  display: none;
}

.workspace:has(.layers-panel.hidden) {
  grid-template-columns: 92px 1fr 0;
}

.panel-head,
.layer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.layer-actions button {
  width: 42px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.82);
}

.layer-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.layer-item {
  display: grid;
  grid-template-columns: 28px 52px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
}

.layer-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.layer-thumb {
  width: 52px;
  height: 34px;
  border: 1px solid #ccd1d8;
  background: #fff;
  object-fit: contain;
}

.layer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  color: #27303a;
  font-size: 13px;
}

#zoomSlider {
  width: 160px;
  accent-color: var(--accent);
}

.dropdown {
  display: none;
  position: fixed;
  z-index: 20;
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}

.dropdown.open {
  display: grid;
}

.dropdown button {
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
}

.brush-dropdown {
  width: 302px;
  padding: 10px 12px;
  gap: 2px;
}

.brush-dropdown button {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  min-height: 54px;
  gap: 16px;
  font-size: 18px;
}

.brush-dropdown button.active {
  outline: 1px solid var(--accent);
  background: var(--accent-soft);
}

.brush-stroke {
  height: 34px;
  position: relative;
  display: block;
}

.brush-stroke::before,
.brush-stroke::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-3deg);
}

.brush-stroke::before {
  height: 8px;
  background: #3f3f3f;
  clip-path: polygon(0 52%, 10% 32%, 23% 18%, 38% 28%, 54% 58%, 70% 66%, 86% 48%, 100% 27%, 100% 66%, 84% 83%, 68% 91%, 49% 78%, 33% 47%, 18% 43%, 0 70%);
}

.stroke-calligraphy::before {
  height: 5px;
  background: #050505;
  clip-path: polygon(0 52%, 13% 26%, 26% 21%, 43% 49%, 58% 68%, 77% 66%, 100% 18%, 96% 50%, 78% 82%, 55% 87%, 36% 61%, 22% 42%, 8% 55%, 0 72%);
}

.stroke-calligraphy-pen::before {
  height: 12px;
  background: #030303;
  clip-path: polygon(0 55%, 12% 19%, 26% 12%, 43% 34%, 60% 62%, 80% 67%, 100% 25%, 100% 55%, 82% 86%, 58% 84%, 40% 61%, 27% 43%, 10% 56%, 0 83%);
}

.stroke-airbrush::before {
  height: 18px;
  background:
    radial-gradient(circle, rgba(0,0,0,.52) 0 1px, transparent 1.5px) 0 0 / 6px 5px,
    radial-gradient(circle, rgba(0,0,0,.28) 0 1px, transparent 1.5px) 3px 2px / 7px 6px;
  filter: blur(.25px);
}

.stroke-oil::before {
  height: 13px;
  background: repeating-linear-gradient(165deg, #1f1f1f 0 5px, #4a4a4a 5px 8px, #111 8px 12px);
  clip-path: polygon(0 56%, 13% 34%, 30% 25%, 46% 42%, 62% 64%, 84% 67%, 100% 35%, 100% 66%, 82% 89%, 61% 84%, 45% 63%, 29% 50%, 11% 62%, 0 80%);
}

.stroke-crayon::before {
  height: 11px;
  background:
    radial-gradient(circle, rgba(0,0,0,.68) 0 1px, transparent 1.5px) 0 0 / 8px 5px,
    linear-gradient(#171717, #171717);
  clip-path: polygon(0 58%, 14% 29%, 28% 20%, 44% 42%, 61% 66%, 78% 70%, 100% 38%, 96% 65%, 78% 87%, 58% 78%, 42% 60%, 24% 50%, 10% 66%, 0 82%);
}

.stroke-marker::before {
  height: 14px;
  background: #606060;
  clip-path: polygon(0 54%, 16% 27%, 32% 25%, 50% 51%, 67% 69%, 86% 62%, 100% 32%, 100% 65%, 84% 88%, 65% 91%, 47% 69%, 31% 50%, 15% 57%, 0 75%);
}

.stroke-pencil::before {
  height: 5px;
  background:
    radial-gradient(circle, rgba(0,0,0,.52) 0 1px, transparent 1.5px) 0 0 / 7px 3px,
    linear-gradient(#222, #222);
  opacity: .84;
}

.stroke-watercolor::before {
  height: 12px;
  background: rgba(20,20,20,.62);
  filter: blur(.75px);
  clip-path: polygon(0 56%, 13% 34%, 31% 27%, 47% 44%, 65% 64%, 83% 65%, 100% 39%, 100% 64%, 82% 84%, 63% 84%, 47% 65%, 30% 52%, 11% 61%, 0 78%);
}

dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.dialog-body {
  display: grid;
  gap: 12px;
  min-width: 300px;
}

.dialog-body h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-body label {
  display: grid;
  gap: 5px;
}

.dialog-body menu {
  display: flex;
  justify-content: end;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.dialog-body button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
}

@media (max-width: 1100px) {
  .app { min-width: 760px; }
  .workspace { grid-template-columns: 72px 1fr 280px; }
  .ribbon { padding-left: 10px; }
  .side-controls { padding-left: 8px; }
  .vertical-control { width: 42px; }
}

.info-page {
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 238, 244, 0.95), transparent 26%),
    radial-gradient(circle at 82% 0%, rgba(232, 241, 255, 0.92), transparent 32%),
    linear-gradient(180deg, #fbfbfd 0%, #f2f3f6 100%);
}

.info-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(218, 221, 228, 0.9);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
}

.info-nav {
  max-width: 1160px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.info-brand,
.info-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-brand,
.info-nav a {
  color: inherit;
  text-decoration: none;
}

.info-brand strong {
  font-size: 18px;
}

.info-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.info-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #4a4f59;
  font-size: 14px;
}

.info-links a:hover {
  background: #eef2f8;
  color: #1f2329;
}

.info-lang-select {
  height: 34px;
  min-width: 116px;
  border: 1px solid #d7dbe3;
  border-radius: 6px;
  background: rgba(255,255,255,0.92);
  color: #2c3138;
  padding: 0 10px;
}

.info-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 58px 24px 84px;
}

.info-hero {
  max-width: 820px;
  padding: 26px 0 34px;
}

.info-hero.compact {
  max-width: 900px;
}

.info-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  color: #181b20;
}

.info-hero p {
  margin: 18px 0 0;
  max-width: 760px;
  color: #4d5561;
  font-size: 18px;
  line-height: 1.75;
}

.info-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.info-primary,
.info-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
}

.info-primary {
  background: var(--accent);
  color: #fff;
}

.info-secondary {
  border: 1px solid #d7dbe3;
  color: #272b31;
  background: rgba(255,255,255,0.74);
}

.info-grid,
.info-two-col {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-panel,
.info-section {
  border: 1px solid rgba(221, 224, 231, 0.95);
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(31, 36, 48, 0.07);
}

.info-panel {
  padding: 24px;
}

.info-section {
  margin-top: 18px;
  padding: 30px;
}

.info-panel h2,
.info-section h2 {
  margin: 0 0 12px;
  color: #1e2228;
  font-size: 22px;
}

.info-panel h3,
.info-section h3 {
  margin: 0 0 8px;
  color: #252a31;
  font-size: 17px;
}

.info-panel p,
.info-section p,
.info-panel li,
.info-section li {
  color: #4d5561;
  line-height: 1.74;
}

.info-panel p,
.info-section p {
  margin: 0;
}

.info-section a {
  color: #a40046;
}

.info-checks {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  margin: 14px 0 0;
}

.policy-list {
  display: grid;
  gap: 16px;
}

.policy-list article {
  padding-bottom: 16px;
  border-bottom: 1px solid #eceef3;
}

.policy-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feedback-form label {
  display: grid;
  gap: 7px;
  color: #333842;
  font-weight: 600;
}

.feedback-form label:last-of-type {
  grid-column: 1 / -1;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  border: 1px solid #d7dbe3;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  color: #20242a;
}

.feedback-form textarea {
  min-height: 170px;
  resize: vertical;
}

.feedback-form button {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 11px 17px;
}

.info-note {
  margin-top: 16px;
  color: #68707c;
  font-size: 14px;
}

.info-disclaimer {
  margin-top: 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(218, 221, 228, 0.9);
  color: #68707c;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .info-nav {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .info-links {
    justify-content: flex-start;
  }

  .info-lang-select {
    width: 100%;
    max-width: 220px;
  }

  .info-shell {
    padding: 38px 18px 64px;
  }

  .info-grid,
  .info-two-col,
  .feedback-form {
    grid-template-columns: 1fr;
  }
}
