:root {
  --bg: #fff;
  --text: #202124cc;
  --subtle: #5f6368;
  --border: #dadce0;
  --ring: rgba(26, 115, 232, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08);
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a {
  color: #1a73e8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.hdr {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
}
.hdr-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hdr-link {
  color: var(--text);
}
.hdr-link:hover {
  text-decoration: underline;
}
.apps {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.apps:hover {
  background: #f1f3f4;
}
.apps svg {
  width: 18px;
  height: 18px;
  fill: #5f6368;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 600;
  cursor: pointer;
}
.avatar:hover {
  filter: brightness(0.98);
}

/* Main */
.main {
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 16px;
}
.brand {
  font-size: 60px;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.5px;
  font-weight: 500;
}

/* Search */
.search {
  width: 100%;
  max-width: 584px;
  text-align: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 14px;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}
.search-box:focus-within {
  border-color: #dfe1e5;
  box-shadow: var(--shadow);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  min-width: 0;
  padding: 4px 0;
}
.icon-left {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #5f6368;
}
.icon-btn {
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover {
  background: #f1f3f4;
}
.icon {
  width: 20px;
  height: 20px;
  color: #5f6368;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.btn {
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  color: #3c4043;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.langs {
  font-size: 13px;
  color: #3c4043;
  margin: 24px 0 0;
}
.langs a {
  margin-left: 6px;
}

.ftr {
  margin-top: auto;
  background: #f2f2f2;
  color: #70757a;
  font-size: 14px;
}
.ftr-row {
  padding: 12px 24px;
}
.ftr-geo {
  border-bottom: 1px solid #dadce0;
}
.ftr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.ftr-left,
.ftr-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ftr a {
  color: #70757a;
}
.ftr a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .brand {
    font-size: 48px;
  }
  .hdr {
    font-size: 13px;
  }
}
