:root {
  --ak-red: #dc0005;
  --ak-white: #fff;
  --ak-black: #202020;
  --ak-gray: #787878;
  --ak-bg: #f5f4f6;
  --header-shadow: 0 4px 4px rgba(0, 0, 0, 0.14);
  --container: min(1140px, 100% - 32px);
  --mobile-header: 56px;
  --mobile-actions: 48px;
}

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

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ak-black);
  background: var(--ak-white);
}

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ak-white);
}

.header-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--ak-red) 0%, #a80004 50%, var(--ak-red) 100%);
}

.header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--mobile-header);
  padding-inline: 16px;
}

.header-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--mobile-actions);
}

.btn-account,
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ak-white);
}

.btn-account {
  background: var(--ak-red);
}

.btn-login {
  background: var(--ak-black);
}

.header-top,
.header-nav {
  display: none;
}

.icon-btn {
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ak-black);
  border-radius: 1px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.mobile-drawer {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--ak-white);
  border-top: 1px solid #ebebf0;
  box-shadow: var(--header-shadow);
  padding: 16px 24px 24px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid #ebebf0;
}

@media (min-width: 992px) {
  .header-mobile,
  .header-mobile-actions,
  .mobile-drawer {
    display: none !important;
  }

  .header-top {
    display: block;
    background: var(--ak-bg);
    border-bottom: 1px solid #e8e8ec;
  }

  .header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    max-width: min(1240px, 100% - 48px);
    margin-inline: auto;
  }

  .header-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .header-lang {
    font-weight: 700;
    font-size: 13px;
    color: var(--ak-red);
    text-decoration: none;
    padding: 8px 4px;
    margin-left: 4px;
  }

  .header-lang:hover {
    text-decoration: underline;
  }

  .header-search {
    position: relative;
    display: flex;
    align-items: center;
  }

  .header-search input {
    width: 240px;
    height: 35px;
    padding: 0 40px 0 16px;
    border: 1px solid #c0c0c0;
    border-radius: 28px;
    font-family: inherit;
    font-size: 13px;
    background: var(--ak-white);
    color: var(--ak-black);
  }

  .header-search img {
    position: absolute;
    right: 14px;
    pointer-events: none;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 127px;
    height: 35px;
    padding-inline: 20px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
  }

  .btn-red {
    background: var(--ak-red);
    color: var(--ak-white);
    border: 1px solid var(--ak-red);
  }

  .btn-red:hover {
    background: var(--ak-white);
    color: var(--ak-red);
  }

  .btn-white {
    background: var(--ak-white);
    color: var(--ak-black);
    border: 1px solid #b8b8b8;
  }

  .btn-white:hover {
    border-color: var(--ak-red);
    color: var(--ak-red);
    background: var(--ak-white);
  }

  .header-nav {
    display: block;
    background: var(--ak-white);
    box-shadow: var(--header-shadow);
  }

  .header-nav .container {
    max-width: min(1240px, 100% - 48px);
  }

  .nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    gap: 8px;
  }

  .nav-list a {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: var(--ak-black);
    padding: 10px 6px;
    position: relative;
    white-space: nowrap;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--ak-red);
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--ak-red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }

  .nav-list a:hover::after,
  .nav-list a:focus-visible::after {
    transform: scaleX(1);
  }
}

/* ——— Lead form ——— */

.lead-section {
  position: relative;
  padding: 36px 0 56px;
  background: var(--ak-bg);
  min-height: calc(100vh - var(--mobile-header) - var(--mobile-actions) - 120px);
  overflow: hidden;
}

.lead-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(220, 0, 5, 0.09), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(220, 0, 5, 0.06), transparent 45%),
    linear-gradient(180deg, #faf9fb 0%, var(--ak-bg) 100%);
  pointer-events: none;
}

.lead-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: start;
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ak-gray);
  letter-spacing: 0.02em;
}

.lead-badge span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 28px;
  background: var(--ak-red);
  color: var(--ak-white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ak-black);
  max-width: 14ch;
}

.lead-intro h1 em {
  font-style: normal;
  color: var(--ak-red);
}

.lead-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ak-gray);
  max-width: 38ch;
}

.lead-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.lead-features li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ak-black);
}

.lead-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(220, 0, 5, 0.12);
  border: 2px solid var(--ak-red);
  box-sizing: border-box;
}

.lead-features li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--ak-red);
  border-bottom: 2px solid var(--ak-red);
  transform: rotate(-45deg);
}

.lead-form {
  background: var(--ak-white);
  border-radius: 20px;
  padding: 0 24px 32px;
  box-shadow: 0 12px 40px rgba(32, 32, 32, 0.1);
  border: 1px solid #ebebf0;
  overflow: hidden;
}

.lead-form__head {
  margin: 0 -24px 24px;
  padding: 20px 24px 18px;
  background: linear-gradient(135deg, var(--ak-red) 0%, #b80004 100%);
  color: var(--ak-white);
}

.lead-form__head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.lead-form__head p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

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

.form-field label,
.form-field legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ak-black);
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #c0c0c0;
  border-radius: 28px;
  font: inherit;
  font-size: 15px;
  color: var(--ak-black);
  background: var(--ak-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--ak-red);
  box-shadow: 0 0 0 3px rgba(220, 0, 5, 0.12);
}

.form-field input.invalid {
  border-color: var(--ak-red);
}

.form-field--radios {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

.radio-grid {
  display: grid;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #c0c0c0;
  border-radius: 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ak-black);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.radio-card input {
  accent-color: var(--ak-red);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-card:has(input:checked) {
  border-color: var(--ak-red);
  background: rgba(220, 0, 5, 0.04);
}

.btn-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 28px;
  background: var(--ak-red);
  color: var(--ak-white);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
  background: #b80004;
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-message {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form-message.success {
  color: #0a7a32;
}

.form-message.error {
  color: var(--ak-red);
}

@media (min-width: 992px) {
  .lead-section {
    padding: 56px 0 88px;
  }

  .lead-layout {
    grid-template-columns: 1fr min(480px, 44%);
    gap: 56px;
    align-items: center;
  }

  .lead-form {
    padding: 0 32px 40px;
  }

  .lead-form__head {
    margin-inline: -32px;
    padding: 24px 32px 20px;
  }

  .lead-intro h1 {
    max-width: 16ch;
  }
}

/* ——— Footer ——— */

.site-footer {
  background: var(--ak-bg);
  padding-top: 48px;
}

.footer-columns {
  display: grid;
  gap: 32px;
  padding-bottom: 48px;
}

@media (min-width: 992px) {
  .footer-columns {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

.footer-heading {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 14px;
}

.footer-heading--spaced {
  margin-top: 36px;
}

.footer-col ul li {
  padding-bottom: 14px;
}

.footer-col a {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ak-gray);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ak-red);
}

.footer-mid {
  border-top: 1px solid silver;
  border-bottom: 1px solid silver;
}

.footer-mid-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 20px;
}

@media (min-width: 992px) {
  .footer-mid-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links-row--right {
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .footer-links-row--right {
    justify-content: flex-end;
    max-width: 55%;
  }
}

.footer-links-row a {
  font-weight: 600;
  font-size: 13px;
  color: var(--ak-gray);
  text-decoration: none;
}

.footer-trademark {
  padding-block: 20px 12px;
}

.footer-trademark p {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--ak-gray);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

@media (min-width: 992px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.copyright {
  font-size: 13px;
  color: var(--ak-gray);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    gap: 24px;
  }
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: #000;
}
