:root {
  --bg-blue-1: #0f4d8b;
  --bg-blue-2: #0d3f76;
  --panel: rgba(255,255,255,0.18);
  --panel-border: rgba(255,255,255,0.22);
  --text-dark: #14202c;
  --text-light: #ffffff;
  --muted: rgba(20, 32, 44, 0.75);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.18);
  --yellow-1: #ffd21f;
  --yellow-2: #f7b500;
  --green-1: #9bc97f;
  --green-2: #7bb45a;
  --blue-1: #1c84e7;
  --blue-2: #0c61bf;
  --orange-1: #ff920f;
  --orange-2: #ff6d00;
  --topbar-h: 72px;
  --footer-h: 58px;
  --sidebar-w: 120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text-light);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 18%),
    linear-gradient(180deg, var(--bg-blue-1), var(--bg-blue-2));
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #111;
  background: linear-gradient(180deg, rgba(228,237,246,0.96), rgba(205,217,229,0.94));
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.topbar-left,
.topbar-center,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.15);
}

.dot.red { background: #ff6259; }
.dot.yellow { background: #ffbd2f; }
.dot.green { background: #28c840; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: rgba(17, 17, 17, 0.95);
  white-space: nowrap;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(241, 188, 34, 0.95);
}

.searchbox {
  display: flex;
  align-items: center;
  width: 260px;
  max-width: 32vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
  color: #5a6670;
  font-size: 0.95rem;
}

.searchbox span { opacity: 0.82; }

.topbar-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: #404b57;
}

.lang-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.58;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  transform: translateY(-1px);
}

.page-shell {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--footer-h));
  padding: 22px 22px 28px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at right 20%, rgba(255,255,255,0.08), transparent 14%),
    radial-gradient(circle at left 35%, rgba(255,255,255,0.06), transparent 10%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  pointer-events: none;
}

.desktop {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  z-index: 1;
}

.sidebar {
  padding-top: 18px;
}

.dock {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.dock-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.dock-item:hover {
  transform: translateY(-2px);
}

.dock-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(220,233,245,0.78));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.6);
  color: #235180;
}

.dock-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.main-stage {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 4px;
  text-align: center;
}

.brand-title {
  margin: 8px 0 4px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8fbff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.brand-title .accent {
  color: #f6c02f;
}


.brand-subtitle {
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  font-weight: 800;
  color: rgba(6, 18, 30, 0.92);
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

.launcher-panel,
.content-panel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(239,245,250,0.95), rgba(214,225,234,0.92));
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.launcher-panel::before,
.launcher-panel::after,
.content-panel::before,
.content-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.launcher-panel::before,
.content-panel::before {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.65), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.3), transparent 22%);
}

.launcher-panel::after,
.content-panel::after {
  inset: 14px;
  border-radius: 20px;
  border: 3px solid rgba(139, 164, 185, 0.22);
}

.panel-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.panel-heading {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  color: #2a231d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.08;
  font-weight: 700;
}

.cards-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  min-height: 250px;
  border-radius: 30px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-card);
  border: 4px solid rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.2);
}

.card-yellow {
  background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2));
  color: #fffdf8;
}

.card-green {
  background: linear-gradient(180deg, var(--green-1), var(--green-2));
}

.card-blue {
  background: linear-gradient(180deg, var(--blue-1), var(--blue-2));
}

.card-orange {
  background: linear-gradient(180deg, var(--orange-1), var(--orange-2));
}

.card-emoji {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.16));
}

.card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.card-subtitle {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: clamp(1.1rem, 1.35vw, 1.5rem);
  font-weight: 500;
  opacity: 0.96;
  text-shadow: 0 2px 5px rgba(0,0,0,0.14);
}

.content-panel {
  text-align: left;
  color: var(--text-dark);
}

.content-kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 32, 44, 0.62);
}

.content-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #1b2530;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3vw, 3.35rem);
  line-height: 1.05;
}

.content-intro {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 14px 0 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(20, 32, 44, 0.84);
}

.content-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.content-section {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.content-section h2,
.info-card h2,
.info-card h3 {
  margin: 0 0 10px;
  color: #1e2d3b;
  font-size: 1.2rem;
}

.content-section p,
.info-card p,
.content-section li,
.info-card li {
  margin: 0 0 10px;
  color: rgba(20, 32, 44, 0.86);
  line-height: 1.7;
}

.content-section p:last-child,
.info-card p:last-child,
.content-section li:last-child,
.info-card li:last-child {
  margin-bottom: 0;
}

.content-section ul,
.info-card ul {
  margin: 0;
  padding-left: 18px;
}

.meta-list {
  display: grid;
  gap: 12px;
}

.meta-item strong {
  display: block;
  margin-bottom: 4px;
  color: #1b2530;
}

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

.contact-links a {
  color: #114f91;
  font-weight: 700;
}

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

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

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

.form-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2d39;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(72, 102, 130, 0.22);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: #17222d;
  background: rgba(255,255,255,0.88);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(28, 132, 231, 0.28);
  border-color: rgba(28, 132, 231, 0.45);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button-primary {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #1d86e8, #0f66c4);
  box-shadow: 0 10px 18px rgba(16, 89, 171, 0.22);
  cursor: pointer;
}

.button-primary:hover {
  transform: translateY(-1px);
}

.form-note,
.form-status {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(20, 32, 44, 0.74);
}

.form-status {
  font-weight: 700;
  color: #114f91;
}

.form-status.is-error {
  color: #b42318;
}

.footer {
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 20px;
  color: rgba(17,17,17,0.95);
  background: linear-gradient(180deg, rgba(231,238,245,0.97), rgba(214,223,232,0.95));
  border-top: 1px solid rgba(255,255,255,0.55);
  text-align: center;
  font-size: 0.97rem;
}

.footer-counter {
  width: 100%;
  color: rgba(17,17,17,0.84);
  font-size: 0.92rem;
}

.footer a { color: inherit; }

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 22px;
    font-size: 0.92rem;
  }

  .searchbox {
    width: 200px;
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-h: auto;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 16px;
  }

  .topbar-left,
  .topbar-right {
    flex: 1 1 auto;
  }

  .topbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .desktop {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-stage {
    padding-top: 8px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    gap: 16px;
    font-size: 0.82rem;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .searchbox {
    display: none;
  }

  .page-shell {
    padding: 18px 12px 24px;
  }

  .launcher-panel,
  .content-panel {
    padding: 16px 14px 18px;
  }

  .cards-grid,
  .content-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 220px;
    border-radius: 26px;
  }

  .card-emoji {
    font-size: 4.2rem;
  }

  .panel-heading {
    font-size: 1.95rem;
  }

  .footer {
    height: auto;
    padding: 14px 12px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 12px 10px;
  }

  .window-dots {
    margin-right: 0;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.78rem;
  }

  .brand-title {
    font-size: 2.25rem;
  }


  .brand-subtitle {
    font-size: 1rem;
  }

  .panel-heading,
  .content-title {
    font-size: 1.72rem;
  }

  .card-title {
    font-size: 2rem;
  }

  .card-subtitle {
    font-size: 1rem;
  }
}
