*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text-primary: #405965;
  --text-muted: #7e8586;
  --text-secondary: #4b4e4f;
  --link: #0066b3;
  --link-hover: #f15a22;
  --blue-button: #0066b3;
  --blue-button-hover: #008ad9;
  --blue-dark: #00427a;
  --blue-header: #1b559e;
  --orange-active: #f15a22;
  --border: #caddf2;
  --border-gray: #ccc;
  --bg-gray: #e9ebf0;
  --bg-light: #f4f7fc;
  --white: #fff;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'PF Din Text Cond Pro', sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--white);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top-bar {
  background: var(--blue-header);
  color: var(--white);
  font-size: 0.875rem;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.top-bar__links {
  display: flex;
  gap: 24px;
}

.top-bar__links a {
  color: var(--white);
  text-decoration: none;
}

.top-bar__links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.top-bar__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.top-bar__lang a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.top-bar__lang a:hover {
  color: var(--white);
}

.top-bar__lang a.active {
  color: var(--white);
  font-weight: 600;
}

.top-bar__lang span {
  opacity: 0.45;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo__image {
  display: block;
  height: 55px;
  width: auto;
  max-width: 100%;
}

.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  min-width: 280px;
}

.search input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.search input::placeholder {
  color: var(--text-muted);
}

.search button {
  background: var(--bg-gray);
  border: none;
  border-left: 1px solid var(--border);
  padding: 9px 12px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Main nav */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
}

.main-nav__list {
  display: flex;
  list-style: none;
  overflow-x: auto;
}

.main-nav__list a {
  display: block;
  padding: 17px 20px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s;
}

.main-nav__list a:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.main-nav__list a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* News banner */
.news-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.news-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.news-banner__badge {
  background: var(--link);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.news-banner__text {
  flex: 1;
  color: var(--text-primary);
  text-decoration: none;
}

.news-banner__text:hover {
  color: var(--link-hover);
}

.news-banner__date {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Layout */
.main-content {
  padding: 32px 0 48px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Content */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--link);
}

.breadcrumbs a:hover {
  color: var(--link-hover);
}

.breadcrumbs span:last-child {
  color: var(--text-primary);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.page-description {
  font-size: 1rem;
  color: var(--text-primary);
  max-width: 640px;
  margin-bottom: 28px;
  line-height: 1.4;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue-button);
  border: 1px solid var(--blue-button);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 2px;
  text-decoration: none;
  margin-bottom: 40px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.cta-button:hover:not(:disabled) {
  background: var(--blue-button-hover);
  border-color: var(--blue-button-hover);
}

.cta-button:disabled {
  cursor: default;
}

.cta-button--loading {
  display: flex;
  width: 100%;
  max-width: 640px;
  font-size: 1.125rem;
  font-weight: 600;
  min-height: 56px;
}

/* Service cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--white);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.07);
  transition: border-radius 0.3s, box-shadow 0.3s, padding 0.3s, color 0.3s;
}

.service-card:hover {
  border-radius: 8px;
  padding-left: 19px;
  padding-right: 11px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--link);
}

.service-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 2px;
}

.service-card span {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Sidebar */
.sidebar-block {
  margin-bottom: 24px;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
  padding: 15px 15px 20px;
}

.sidebar-block__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--link);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  border-bottom: 1px dotted rgba(64, 89, 101, 0.25);
}

.sidebar-links a {
  display: block;
  padding: 10px 0 10px 16px;
  color: var(--link);
  font-size: 0.95rem;
  position: relative;
  text-decoration: none;
}

.sidebar-links a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--link);
  font-weight: 700;
}

.sidebar-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.sidebar-block--notice {
  background: var(--bg-light);
  box-shadow: none;
  border: 1px solid var(--border);
}

.sidebar-block--notice .sidebar-block__title {
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.sidebar-block--notice p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.sidebar-block--notice a {
  color: var(--link);
}

.sidebar-block--notice a:hover {
  color: var(--link-hover);
}

/* Footer */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .top-bar__links {
    display: none;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

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

  .news-banner__inner {
    flex-wrap: wrap;
  }
}

/* Verify page */
.verify-page {
  min-height: 100vh;
  background: #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-main {
  width: 100%;
  padding: 32px 16px;
}

.verify-container {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.code-notice {
  position: relative;
  border: 1px solid #ef7029;
  border-radius: 12px;
  background: #ffffff;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
}

.code-notice__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef7029;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  padding: 7px 24px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.code-notice__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.4;
}

.code-notice__box {
  background: #fffbf0;
  border: 2px dotted #f0a060;
  border-radius: 8px;
  padding: 16px 10px 14px;
}

.code-notice__code {
  display: block;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.48em;
  margin-left: 0.48em;
  color: #1a4a8a;
  user-select: all;
  line-height: 1;
}

.verify-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 36px 32px 32px;
}

.verify-card__title {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1b5196;
  text-align: center;
  margin-bottom: 28px;
}

.verify-form__input {
  width: 100%;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 1.5rem;
  letter-spacing: 0.55em;
  padding-left: calc(16px + 0.55em);
  text-align: center;
  color: #2f4f66;
  background: var(--white);
  margin-bottom: 10px;
}

.verify-form__input::placeholder {
  color: #b8c2cc;
  letter-spacing: 0.55em;
}

.verify-form__input:focus {
  outline: none;
  border-color: #1b5196;
  box-shadow: 0 0 0 2px rgba(27, 81, 150, 0.12);
}

.verify-form__input--error {
  border-color: #e74c3c;
}

.verify-form__hint {
  font-size: 0.875rem;
  color: #8a96a3;
  text-align: center;
  margin-bottom: 24px;
}

.verify-form__submit {
  display: block;
  width: 100%;
  background: #1b5196;
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.verify-form__submit:hover {
  background: #0066b3;
}

/* Success modal */
body.modal-open {
  overflow: hidden;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.success-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 53, 0.55);
  backdrop-filter: blur(2px);
}

.success-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 28px 28px 24px;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #8a96a3;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.success-modal__close:hover {
  color: #405965;
}

.success-modal__title {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 700;
  color: #1b5196;
  margin-bottom: 16px;
  padding-right: 24px;
}

.success-modal__body {
  color: #405965;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.success-modal__body p + p {
  margin-top: 12px;
}

.success-modal__button {
  display: block;
  width: 100%;
  background: #1b5196;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.success-modal__button:hover {
  background: #0066b3;
}

.alert-page {
  min-height: 100vh;
  background: linear-gradient(to bottom, #1d5fc9 0%, #1d5fc9 55%, #e1e5ea 55%, #e1e5ea 100%);
}

.alert-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.alert-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(10, 30, 60, 0.28);
  padding: 30px 28px 28px;
}

.alert-logo {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #2864b8;
}

.alert-logo__gos {
  color: #2864b8;
}

.alert-logo__slugi {
  color: #ef2854;
}

.alert-logo__line {
  height: 3px;
  background: #ef2854;
  border-radius: 2px;
  margin: 14px 0 20px;
}

.alert-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #e8193c;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.alert-banner__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-banner__title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 6px;
}

.alert-banner__subtitle {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
  margin: 0;
}

.alert-notice {
  background: #f9f6f7;
  border-radius: 12px;
  padding: 20px 18px 22px;
}

.alert-notice__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.alert-notice__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-notice__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #3c4650;
}

.alert-notice__code-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2b3540;
  margin: 0 0 12px;
}

.alert-notice__code-box {
  background: var(--white);
  border: 1px solid #d9dde2;
  border-radius: 10px;
  padding: 16px 10px;
  margin-bottom: 20px;
}

.alert-notice__code {
  display: block;
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #e8193c;
}

.alert-notice__divider {
  height: 1px;
  background: #e2e5e9;
  margin-bottom: 18px;
}

.alert-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert-meta__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-meta__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-meta__label {
  display: block;
  font-size: 0.8rem;
  color: #6b7683;
  margin-bottom: 2px;
}

.alert-meta__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #222b34;
}

.alert-footer {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: #2b3540;
  margin: 20px 4px 16px;
}

.alert-phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-phone {
  border: 1.5px solid #1b5196;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  background: var(--white);
}

.alert-phone__label {
  display: block;
  font-size: 0.8rem;
  color: #8b95a1;
  margin-bottom: 4px;
}

.alert-phone__number {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1b5196;
  text-decoration: none;
}

.alert-phone__number:hover {
  color: #0d3c78;
  text-decoration: none;
}

@media (max-width: 400px) {
  .alert-card {
    padding: 24px 18px 20px;
  }

  .alert-notice__code {
    font-size: 1.8rem;
  }
}

