@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #eef1f7;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --brand-dark: #0f172a;
  --brand-primary: #2563eb;
  --line: #dbe4f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -20%, #dfe9ff 0%, transparent 60%),
    radial-gradient(900px 450px at 100% -10%, #e7f2ff 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

.topbar {
  background: var(--brand-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.dropbtn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  color: #0f172a;
  background: #e2e8f0;
}

.nav a.active,
.dropbtn.active {
  background: var(--brand-primary);
  color: #fff;
}

.dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  padding: 8px;
}

.lang-switch .dropdown-menu {
  min-width: 150px;
}

.dropdown-menu a {
  display: block;
  border-radius: 8px;
  padding: 10px 12px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

.dropdown-menu a.active {
  background: #e8f0ff;
  color: var(--brand-primary);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.card {
  background: var(--card);
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.08);
  margin-bottom: 16px;
}

h1 {
  font-size: 50px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
}

h2 {
  font-size: 34px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

h3 {
  font-size: 29px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
  margin: 0 0 10px;
}

p {
  margin: 10px 0;
  font-size: 21px;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid article {
  background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.grid article:hover {
  transform: translateY(-2px);
  border-color: #bcd0ec;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff 0%, #eff4ff 100%);
  padding: 18px;
}

.list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.list li {
  margin: 10px 0;
  font-size: 20px;
  line-height: 1.4;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 7px 12px;
  background: #e8f0ff;
  color: #1e40af;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 17px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  font-size: 17px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.small {
  font-size: 15px;
}

.notice {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 14px;
}

.notice.ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.notice.err {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.site-footer {
  margin-top: 18px;
  background: #0f172a;
  color: #cbd5e1;
}

.site-footer .inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .topbar-inner,
  .container,
  .site-footer .inner {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 26px;
  }

  p,
  .list li {
    font-size: 19px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .brand {
    font-size: 26px;
  }

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

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

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  p,
  .list li {
    font-size: 18px;
  }
}
