@font-face {
  font-family: "Golos";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Golos-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Golos";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Golos-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Golos";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Golos-Bold.woff2") format("woff2");
}

:root {
  --dark: #1d1e21;
  --orange: #d14e15;
  --white: #ffffff;
  --bg: #ffffff;
  --text: #1d1d1d;
  --muted: #5e6279;
  --border: #d8d8d8;
  --error: #c30508;
  --error-bg: #fff2f2;
  --footer-link: #ffffff;
  --footer-border: rgba(221, 218, 218, 0.4);
  --content-max: 1280px;
  --header-max: 1920px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Golos", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.50)),
    url("../img/form-image.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER ===== */

.header-top {
  background: var(--dark);
  color: var(--white);
  padding: 8px 48px 10px;
}

.header-row {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  flex-shrink: 0;
  margin-right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img img {
  width: 80px;
  height: auto;
  display: block;
}

.logo-desc {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--white);
}

.logo-subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin-top: 8px;
  color: var(--white);
  opacity: 0.85;
}

.header-content {
  display: flex;
  align-items: center;
}

.header-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
}

.header-link-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.header-link-icon svg {
  width: 24px;
  height: 24px;
}

.header-items {
  display: flex;
  align-items: center;
  margin-left: 48px;
}

.header-item {
  display: inline-flex;
  align-items: center;
  color: var(--white);
}

.header-item-flag {
  margin-right: 24px;
}

.lang-selected {
  display: inline-flex;
  align-items: center;
}

.lang-selected img {
  margin-right: 6px;
}

.lang-selected svg {
  width: 24px;
  height: 24px;
}

.header-item-icon {
  margin-right: 24px;
}

.header-item-icon svg {
  width: 24px;
  height: 24px;
}

.header-item + .header-link {
  margin-left: 24px;
}

.header-bottom {
  background: var(--orange);
  color: var(--white);
  padding: 8px 48px 10px;
}

.header-nav-row {
  max-width: none;
}

.header-nav {
  display: block;
}

.nav-more-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-item + .nav-item {
  margin-left: 24px;
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  height: 24px;
}

.nav-more a svg {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

/* ===== MAIN / LAYOUT ===== */

.main {
  flex: 1;
  width: 100%;
}

.form-page {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 48px;
}

.page-heading h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}

.page-heading .subtitle {
  margin: 0 0 20px;
  color: var(--text);
  font-weight: 700;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label,
.form-row .label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.req {
  color: var(--error);
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(209, 78, 21, 0.15);
}

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

.radio-group {
  display: flex;
  gap: 24px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.nis-address-row {
  background: #fafafa;
  border-left: 3px solid var(--orange);
  padding: 14px 16px;
  border-radius: 4px;
}

.form-actions {
  margin-top: 28px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

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

.btn-primary:hover {
  background: #b54411;
}

.alert {
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 15px;
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-error ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.success-card {
  text-align: center;
  max-width: 560px;
  margin: 24px auto;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 40px;
  margin-bottom: 8px;
}

.success-card h1 {
  margin: 0 0 8px;
  color: var(--dark);
}

.success-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ===== FOOTER ===== */

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 48px;
  margin-top: auto;
}

.footer-columns {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  margin-left: -24px;
}

.footer-copyright {
  flex: 1 1 33.3333%;
  max-width: calc(33.3333% - 24px);
  margin-left: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo .logo-img {
  margin-right: 24px;
}

.footer-logo .logo-img img {
  width: 80px;
}

.footer-logo-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.footer-logo-subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  margin-top: 8px;
  opacity: 0.85;
}

.footer-text {
  margin-top: 32px;
  max-width: 300px;
}

.footer-copy {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.footer-copy a {
  color: var(--white);
  text-decoration: underline;
}

.footer-social {
  margin-top: 24px;
}

.social-list {
  display: flex;
  align-items: center;
}

.social-item {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.social-item:first-child {
  margin-left: 0;
}

.social-item img {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-col {
  flex: 1 1 16.6667%;
  max-width: calc(16.6667% - 24px);
  margin-left: 24px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--footer-border);
  margin-bottom: 24px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
}

.footer-col-links a {
  font-size: 14px;
  line-height: 21px;
  margin-bottom: 16px;
  color: var(--footer-link);
}

.footer-col-links a:hover {
  opacity: 0.8;
}

.footer-utility {
  flex: 1 1 20.8333%;
  max-width: calc(20.8333% - 24px);
}

.footer-utility .footer-col-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.footer-search {
  margin-bottom: 24px;
}

.footer-search form {
  display: flex;
}

.footer-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px 0 0 4px;
  color: var(--white);
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.footer-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-search button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  border-radius: 0 4px 4px 0;
  color: var(--white);
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.footer-search button svg {
  width: 18px;
  height: 18px;
}

.footer-utility-links {
  display: flex;
  flex-direction: column;
}

.footer-utility-links a {
  font-size: 14px;
  line-height: 21px;
  margin-bottom: 16px;
  color: var(--footer-link);
  text-transform: uppercase;
}

.footer-bug-report {
  display: inline-block;
  font-size: 14px;
  line-height: 21px;
  color: var(--footer-link);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .header-top,
  .header-bottom,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-content {
    display: none;
  }

  .footer-copyright,
  .footer-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-card {
    padding: 20px 16px;
  }
}
