.fem {
  --sc-blue: #0098d4;
  --sc-blue-dark: #007db0;
  --sc-navy: #011c36;
  --sc-text: #17223b;
  --sc-muted: #5f6677;
  --sc-line: #d8dde8;
  --sc-danger: #d64242;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 54px 24px 74px;
  background: var(--sc-navy);
  color: var(--sc-text);
  font-family: Inter, Arial, sans-serif;
}

.fem * {
  box-sizing: border-box;
}

.fem__brand {
  display: flex;
  justify-content: center;
  width: min(1040px, 100%);
  margin: 0 auto 36px;
}

.fem__brand img {
  width: min(320px, 74vw);
  height: auto;
  display: block;
}

.fem__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1040px, 100%);
  margin: 0 auto 22px;
}

.fem__header h2,
.fem h3,
.fem h4 {
  margin: 0;
  color: var(--sc-blue);
  font-weight: 800;
  letter-spacing: 0;
}

.fem__header h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  color: #fff;
}

.fem__counter {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.fem__progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: min(1040px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.fem__progress span {
  height: 4px;
  border-radius: 999px;
  background: #cbd3df;
}

.fem__progress span.is-active {
  background: var(--sc-blue);
}

.fem form {
  display: block;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.fem__step {
  display: none;
  padding: 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 29, 48, .12);
}

.fem__step.is-active {
  display: grid;
  gap: 24px;
  animation: fem-in .22s ease;
}

.fem__step > p {
  margin: -8px 0 0;
  color: var(--sc-muted);
  font-size: 17px;
  line-height: 1.55;
}

.fem h3 {
  font-size: 26px;
  line-height: 1.15;
}

.fem h4 {
  font-size: 22px;
  line-height: 1.18;
}

.fem__grid,
.fem__socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
}

.fem label,
.fem legend {
  display: block;
  color: var(--sc-blue);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.fem input,
.fem select,
.fem textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #bfc6d3;
  border-radius: 0;
  background: #fff;
  color: var(--sc-text);
  font: inherit;
}

.fem textarea {
  min-height: 132px;
  resize: vertical;
}

.fem input:focus,
.fem select:focus,
.fem textarea:focus {
  border-color: var(--sc-blue);
  outline: 3px solid rgba(0, 152, 212, .16);
}

.fem fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fem__choice,
.fem__switch {
  display: inline-flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 24px 0 0;
  color: var(--sc-text) !important;
  font-weight: 500 !important;
  text-transform: none !important;
}

.fem__choice input,
.fem__switch input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--sc-blue);
}

.fem__switch a,
.fem__spaceonly a {
  color: var(--sc-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fem__phone {
  display: grid;
  grid-template-columns: minmax(180px, 40%) 1fr;
}

.fem__phone select {
  border-right: 0;
}

.fem__check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.fem__check-grid .fem__choice {
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--sc-line);
}

.fem__search {
  max-width: 420px;
}

.fem__models {
  display: grid;
  gap: 24px;
}

.fem__model-card,
.fem__pack {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) 1fr;
  gap: 28px;
  padding: 26px 0 0;
  border-top: 1px solid var(--sc-line);
}

.fem__model-card[hidden] {
  display: none !important;
}

.fem__model-image {
  align-self: start;
  background: #f6f7fa;
}

.fem__model-image img {
  display: block;
  width: 100%;
  height: auto;
}

.fem__model-card ul,
.fem__pack ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--sc-text);
  font-size: 15px;
  line-height: 1.55;
}

.fem__model-card li + li,
.fem__pack li + li {
  margin-top: 6px;
}

.fem__model-card strong,
.fem__pack strong {
  display: block;
  margin-top: 18px;
  color: var(--sc-blue);
  font-size: 20px;
  font-weight: 900;
}

.fem__spaceonly {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.fem__spaceonly input[type="number"] {
  width: 120px;
}

.fem__spaceonly p,
.fem__pack p {
  margin: 0;
  color: var(--sc-muted);
  line-height: 1.55;
}

.fem__pack {
  grid-template-columns: 1fr;
}

.fem__pack--premium {
  border-top-color: rgba(0, 152, 212, .4);
}

.fem__actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.fem__actions--end {
  justify-content: flex-end;
}

.fem button {
  min-width: 150px;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid var(--sc-blue);
  border-radius: 3px;
  background: var(--sc-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.fem button:hover {
  background: var(--sc-blue-dark);
  border-color: var(--sc-blue-dark);
}

.fem button.fem__secondary {
  background: #fff;
  color: var(--sc-blue);
}

.fem button.fem__secondary:hover {
  background: rgba(0, 152, 212, .08);
}

.fem__notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 6px;
  font-weight: 700;
}

.fem__notice--success {
  background: #dff7e8;
  color: #135c2d;
}

.fem__notice--error {
  background: #ffe0e0;
  color: #8b1717;
}

.fem__honeypot {
  position: absolute;
  left: -9999px;
}

.fem [hidden] {
  display: none !important;
}

@keyframes fem-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .fem {
    width: 100vw;
    padding: 34px 16px 50px;
  }

  .fem__header {
    align-items: flex-start;
  }

  .fem__header h2 {
    font-size: 30px;
  }

  .fem__step {
    padding: 28px 18px;
  }

  .fem__grid,
  .fem__socials,
  .fem__check-grid,
  .fem__model-card {
    grid-template-columns: 1fr;
  }

  .fem__phone {
    grid-template-columns: 132px 1fr;
  }

  .fem__actions button {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }
}
