/* Блок «Онлайн перевірка сертифіката відповідності» на головній.
   Свій префікс awg-cc-, щоб не перетинатися зі стилями Weblium. */
.awg-cc {
  --awg-cc-ink: #21243D;
  --awg-cc-accent: #88E1F2;
  --awg-cc-muted: #6b6e85;
  --awg-cc-line: #e1e4ec;
  --awg-cc-bg: #f7f8fa;
  --awg-cc-error: #D9534C;

  background: var(--awg-cc-bg);
  color: var(--awg-cc-ink);
  font-family: 'Montserrat', sans-serif;
  padding: 64px 16px;
}

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

.awg-cc__inner {
  max-width: 960px;
  margin: 0 auto;
}

.awg-cc__title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

.awg-cc__lead {
  margin: 0 0 32px;
  color: var(--awg-cc-muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.awg-cc__form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--awg-cc-line);
  border-radius: 12px;
}

.awg-cc__field {
  flex: 1 1 0;
  min-width: 0;
}

.awg-cc__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.awg-cc__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--awg-cc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--awg-cc-ink);
  font: inherit;
  font-size: 16px;
}

.awg-cc__input:focus {
  outline: none;
  border-color: var(--awg-cc-ink);
  box-shadow: 0 0 0 3px rgba(136, 225, 242, .6);
}

.awg-cc__or {
  flex: 0 0 auto;
  height: 48px;
  line-height: 48px;
  color: var(--awg-cc-muted);
  font-size: 14px;
}

.awg-cc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--awg-cc-ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.awg-cc__btn:hover {
  background: #33375a;
}

.awg-cc__btn:focus-visible {
  outline: 3px solid var(--awg-cc-accent);
  outline-offset: 2px;
}

.awg-cc__btn[disabled] {
  opacity: .6;
  cursor: progress;
}

.awg-cc__btn--ghost {
  background: #fff;
  color: var(--awg-cc-ink);
  border: 1px solid var(--awg-cc-ink);
}

.awg-cc__btn--ghost:hover {
  background: var(--awg-cc-bg);
}

.awg-cc__message {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.awg-cc__message--error {
  color: var(--awg-cc-error);
}

.awg-cc__result {
  margin-top: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--awg-cc-line);
  border-left: 4px solid var(--awg-cc-accent);
  border-radius: 12px;
}

.awg-cc__result-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.awg-cc__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 24px;
}

.awg-cc__fact dt {
  margin: 0 0 4px;
  color: var(--awg-cc-muted);
  font-size: 13px;
}

.awg-cc__fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.awg-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.awg-cc__note {
  color: var(--awg-cc-muted);
  font-size: 14px;
}

@media (max-width: 767px) {
  .awg-cc {
    padding: 40px 16px;
  }

  .awg-cc__title {
    font-size: 24px;
  }

  .awg-cc__form {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .awg-cc__or {
    height: auto;
    line-height: 1;
    text-align: center;
  }

  .awg-cc__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .awg-cc__actions .awg-cc__btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.awg-cc [hidden] {
  display: none !important;
}
