:root {
  --sy-navy: #123553;
  --sy-navy-btn: #074974;
  --sy-magenta: #E82C6E;
  --sy-link: #0466A6;
  --sy-page: #F6F7F9;
  --sy-card: #FFFFFF;
  --sy-border: #D8DBE0;
  --sy-border-soft: rgba(18, 53, 83, 0.10);
  --sy-text: #1A2733;
  --sy-muted: #5B6875;
  --sy-accent: #074974;
  --sy-accent-ring: rgba(7, 73, 116, 0.18);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--sy-page);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--sy-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lang-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--sy-border);
  border-radius: 6px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--sy-text);
  box-shadow: 0 1px 2px rgba(18, 53, 83, 0.06);
}

.lang-trigger .globe {
  color: var(--sy-accent);
  flex: 0 0 auto;
}

.lang-chevron {
  transition: transform .15s ease;
}

.lang-switch[data-open="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--sy-border);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(18, 53, 83, 0.14);
  overflow: hidden;
  padding: 4px;
  display: none;
}

.lang-switch[data-open="true"] .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--sy-text);
  text-align: left;
}

.lang-option:hover {
  background: #F7F9FB;
}

.lang-option[aria-selected="true"] {
  background: #F2F5F8;
  font-weight: 600;
}

.lang-option .check {
  color: var(--sy-accent);
  flex: 0 0 auto;
}

.card {
  width: 404px;
  max-width: 100%;
  background: var(--sy-card);
  border-radius: 6px;
  border: 1px solid var(--sy-border-soft);
  box-shadow: 0 1px 2px rgba(18, 53, 83, 0.05), 0 12px 32px rgba(18, 53, 83, 0.06);
  overflow: hidden;
}

.card-accent {
  height: 4px;
  background: var(--sy-accent);
}

.card-body {
  padding: 52px 56px 44px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-box {
  width: 236px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.logo-img.is-symbol {
  max-height: 56px;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  opacity: 0.85;
}

.powered-by[hidden] {
  display: none;
}

.powered-by-text {
  font-size: 12px;
  color: var(--sy-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.powered-by-logo {
  height: 13px;
  display: block;
}

.subtitle {
  text-align: center;
  margin: 34px 0 26px;
  font-size: 15px;
  color: var(--sy-muted);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--sy-border);
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--sy-navy);
  transition: background .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.google-btn:hover {
  background: #F7F9FB;
}

.google-btn:focus-visible {
  outline: none;
  border-color: var(--sy-accent);
  box-shadow: 0 0 0 3px var(--sy-accent-ring);
}

.google-btn .google-g {
  flex: 0 0 auto;
}

.google-btn span {
  white-space: nowrap;
}

.help {
  text-align: center;
  margin-top: 24px;
}

.help-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--sy-accent);
  text-decoration: none;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 53, 83, 0.45);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 380px;
  max-width: 100%;
  background: var(--sy-card);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(18, 53, 83, 0.22);
  padding: 28px 28px 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  color: var(--sy-muted);
  cursor: pointer;
}

.modal-close:hover {
  background: #F2F5F8;
  color: var(--sy-text);
}

.modal-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--sy-navy);
}

.modal-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sy-muted);
}

.modal-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--sy-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--sy-text);
  transition: border-color .12s ease, background .12s ease;
}

.modal-contact:hover {
  border-color: var(--sy-accent);
  background: #F7F9FB;
}

.modal-contact-label {
  font-size: 12px;
  color: var(--sy-muted);
}

.modal-contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--sy-accent);
}

.logo-link {
  display: contents;
}

.powered-by-link {
  display: inline-flex;
  align-items: center;
}
