:root {
  --bg: #b8d8c8;
  --surface: #f6efe7;
  --surface-2: #fff9f2;
  --line: #1c1930;

  --orange: #ef6a3c;
  --yellow: #efbc38;
  --blue: #2ca4e8;
  --pink: #f29cab;
  --mint: #b6d8c7;
  --paper: #f7f1ea;

  --shadow-window: 6px 6px 0 0 var(--line);
  --shadow-soft: 3px 3px 0 0 var(--line);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
  font-family: "Fredoka", "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--line);
  user-select: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 20px 20px 84px;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
}

/* Wallpaper */

.wallpaper-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
  padding: 40px;
}

.wallpaper-title-inner {
  transform: translateY(-24px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wallpaper-logo {
  margin-bottom: 18px;
}

.wallpaper-logo img {
  display: block;
  width: clamp(120px, 16vw, 220px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(6px 6px 0 rgba(28, 25, 48, 0.18));
  opacity: 0;
  animation: logo-fade-in 2s ease-out forwards;
}

.wallpaper-title small {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.wallpaper-title h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.95;
  color: #fff7ef;
  -webkit-text-stroke: 4px var(--line);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 rgba(28, 25, 48, 0.16);
}

.wallpaper-title p {
  margin: 40px auto 0;
  max-width: 640px;
  padding: 10px 14px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 249, 242, 0.9);
  box-shadow: var(--shadow-soft);
  font-size: 18px;
  line-height: 1.35;
}

/* Desktop icons */

.icon-grid {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(2, 104px);
  gap: 20px;
  z-index: 2;
}

.desktop-icon {
  width: 104px;
  text-align: center;
  cursor: default;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--line);
}

.desktop-icon .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #f4c54f;
  transition: transform 120ms ease;
}

.desktop-icon:hover .icon {
  transform: translateY(-2px);
}

.desktop-icon .icon.blue { background: #66c4ef; }
.desktop-icon .icon.white { background: #fffdf8; }
.desktop-icon .icon.pink { background: #f6c2d0; }
.desktop-icon .icon.yellow { background: #f2c84f; }
.desktop-icon .icon.green { background: #cde7b6; }
.desktop-icon .icon.orange { background: #f3b087; }
.desktop-icon .icon.purple { background: #8b7cf6; }

.desktop-icon span {
  display: inline-block;
  background: var(--surface-2);
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--line);
  padding: 4px 8px;
  font-size: 15px;
  line-height: 1.1;
}

/* Windows */

.window {
  position: absolute;
  width: min(920px, calc(100vw - 180px));
  height: min(620px, calc(100vh - 150px));
  min-width: 340px;
  min-height: 320px;
  overflow: hidden;
  z-index: 5;
  background: var(--surface);
  border: 4px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
}

.window.hidden {
  display: none;
}

.window.dragging {
  box-shadow: 10px 10px 0 0 var(--line);
}

.window.active {
  filter: saturate(1.02);
}

.window-windowed {
  top: 70px;
  left: 240px;
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px 0 14px;
  border-bottom: 4px solid var(--line);
  cursor: grab;
  touch-action: none;
  font-size: 22px;
  font-weight: 500;
}

.titlebar.orange { background: var(--orange); }
.titlebar.blue { background: var(--blue); }
.titlebar.yellow { background: var(--yellow); }
.titlebar.pink { background: var(--pink); }
.titlebar.green { background: var(--mint); }

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.control-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--line);
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}

.control-btn:hover,
.task-btn:hover,
.start-btn:hover,
.btn:hover,
.cta-btn:hover,
.start-menu-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}

.window-body {
  height: calc(100% - 48px);
  overflow: auto;
  padding: 24px;
  background: linear-gradient(to bottom, #f8f1ea 0%, #f5ede4 100%);
}

.window-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  min-height: 100%;
}

.window-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.window-sidebar .badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff8ef;
  box-shadow: 2px 2px 0 var(--line);
  font-size: 14px;
}

.window-sidebar h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1;
}

.window-sidebar p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.window-content {
  display: grid;
  gap: 18px;
  align-content: start;
}

.content-card {
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.content-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.content-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

/* Shared blocks */

.bullet-list,
.faq-list,
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li,
.faq-item,
.offer-card,
.contact-item,
.step {
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff9f3;
  box-shadow: 2px 2px 0 var(--line);
}

.offer-grid,
.contact-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offer-card strong,
.contact-item strong,
.faq-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--yellow);
  font-size: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cta-btn {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-decoration: none;
  color: var(--line);
}

.cta-btn.alt {
  background: var(--surface-2);
}

/* Start / taskbar */

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  gap: 12px;
  align-items: center;
  height: 68px;
  padding: 10px 12px;
  border-top: 4px solid var(--line);
  background: #8fb5a3;
}

.start-area {
  position: relative;
}

.start-btn,
.task-btn,
.clock-box {
  height: 46px;
  border: 3px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.start-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  font-size: 24px;
  cursor: pointer;
}

.start-btn.is-open {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
  background: var(--mint);
}

.taskbar-windows {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.taskbar-windows::-webkit-scrollbar {
  display: none;
}

.task-btn {
  min-width: 150px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface-2);
  cursor: pointer;
}

.task-btn.active {
  background: var(--mint);
}

.task-btn.hidden-task {
  display: none;
}

.clock-box {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 20px;
}

.start-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 260px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 4px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-window);
  z-index: 60;
}

.start-menu.hidden {
  display: none;
}

.start-menu-header {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.start-menu-header strong {
  font-size: 22px;
  line-height: 1;
}

.start-menu-header span {
  font-size: 14px;
  line-height: 1.2;
}

.start-menu-link {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff9f3;
  box-shadow: var(--shadow-soft);
  color: var(--line);
  text-decoration: none;
}

.start-menu-link span:first-child {
  font-size: 22px;
  line-height: 1;
}

/* Partner showcase */

.partner-showcase {
  overflow: hidden;
}

.partner-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.partner-showcase-head strong {
  font-size: 22px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: partner-marquee 26s linear infinite;
}

.logo-marquee.is-paused .logo-track,
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  min-width: 180px;
  height: 92px;
  padding: 14px 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.logo-item span {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  color: var(--line);
  opacity: 0.78;
}

.partner-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

/* Images */

.sidebar-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 10px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.sidebar-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.service-photo {
  margin: 18px 0 22px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-photo img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

/* Weather */

.weather-widget {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 249, 242, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
}

.weather-widget-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--blue);
  font-size: 24px;
}

.weather-widget-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.weather-widget-content strong {
  font-size: 24px;
  line-height: 1;
}

.weather-widget-content span {
  font-size: 14px;
  line-height: 1.2;
}

/* Animations */

@keyframes partner-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@keyframes logo-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .desktop {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }

  .window {
    width: min(760px, calc(100vw - 48px));
    left: 24px !important;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
    user-select: auto;
  }

  .desktop {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    padding: 16px 16px 92px;
    overflow: visible;
  }

  .wallpaper-title {
    position: relative;
    inset: auto;
    padding: 16px 8px 20px;
    margin: 0 auto 18px;
  }

  .wallpaper-title-inner {
    transform: none;
  }

  .wallpaper-logo img {
    width: clamp(100px, 28vw, 160px);
  }

  .wallpaper-title h1 {
    font-size: clamp(34px, 12vw, 56px);
    -webkit-text-stroke: 3px var(--line);
  }

  .wallpaper-title p {
    margin-top: 18px;
    font-size: 16px;
  }

  .weather-widget {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 16px;
  }

  .icon-grid {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .desktop-icon {
    width: 100%;
  }

  .desktop-icon .icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .desktop-icon span {
    font-size: 14px;
  }

  .window {
    position: fixed;
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto;
    height: calc(100dvh - 88px);
    min-width: 0;
    min-height: 0;
    border-width: 3px;
    border-radius: 12px;
  }

  .titlebar {
    height: 52px;
    font-size: 18px;
    cursor: default;
  }

  .window-body {
    height: calc(100% - 52px);
    padding: 16px;
  }

  .window-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .window-sidebar {
    position: static;
    padding: 16px;
  }

  .window-sidebar h2 {
    font-size: 28px;
  }

  .content-card h3 {
    font-size: 21px;
  }

  .content-card p,
  .window-sidebar p,
  .bullet-list li,
  .faq-item,
  .offer-card,
  .contact-item,
  .step {
    font-size: 15px;
  }

  .offer-grid,
  .contact-boxes {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 44px 1fr;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .partner-showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-item {
    min-width: 150px;
    height: 82px;
  }

  .logo-item span {
    font-size: 20px;
  }

  .taskbar {
    position: fixed;
    grid-template-columns: 1fr auto;
    gap: 10px;
    height: 72px;
    padding: 10px 12px;
  }

  .taskbar-windows {
    display: none;
  }

  .start-btn {
    font-size: 20px;
  }

  .clock-box {
    min-width: 82px;
    font-size: 18px;
  }

  .start-menu {
    width: min(280px, calc(100vw - 24px));
    padding: 12px;
    bottom: calc(100% + 8px);
  }

  .start-menu-header strong {
    font-size: 20px;
  }

  .start-menu-link {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }

  .wallpaper-logo img {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  body,
  button,
  input,
  textarea,
  select,
  p,
  li,
  a,
  span {
    font-family: "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  }

  .wallpaper-title h1,
  .titlebar,
  .window-sidebar h2 {
    font-family: "Fredoka", "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  }
}
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  font-size: 15px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff9f3;
  color: var(--line);
  box-shadow: 2px 2px 0 var(--line);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.hidden-botcheck {
  display: none !important;
}
.form-status {
  display: none;
  margin-top: 8px;
  padding: 12px 14px;
  border: 3px solid var(--line);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--line);
  font-size: 15px;
  line-height: 1.4;
}

.form-status.is-loading,
.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-loading {
  background: #fff4cc;
}

.form-status.is-success {
  background: #dff3d7;
}

.form-status.is-error {
  background: #f8d7da;
}
.pong-wrap {
  display: grid;
  gap: 14px;
}

.pong-ui {
  display: grid;
  gap: 12px;
}

.pong-score {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

#pongCanvas {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 12 / 7;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #111;
  box-shadow: 3px 3px 0 var(--line);
  image-rendering: pixelated;
}

@media (max-width: 768px) {
  .pong-score {
    flex-direction: column;
    align-items: flex-start;
  }
}
