:root {
  color-scheme: light;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #e4e7ec;
  --text: #0f172a;
  --muted: #475467;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --ink: #111827;
  --shadow: 0 24px 60px rgb(15 23 42 / 10%);
  --shadow-soft: 0 8px 30px rgb(0 0 0 / 8%);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0a0c10;
  color: #ff6c2f;
  box-shadow: var(--shadow-soft);
}

.header__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  position: relative;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header__inner .nav {
  justify-content: flex-start;
}

.header__inner .brand {
  justify-self: center;
}

.header__actions {
  display: flex;
  gap: 10px;
  justify-self: end;
  align-items: center;
}

.header__actions a {
  display: flex;
  align-items: center;
  color: #ff6c2f;
  transition: color 0.15s ease;
}

.header__actions a:hover {
  color: #ffd7c2;
}

.header__actions .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer__logo-img {
  height: 50px;
}

.brand__tagline {
  font-size: 0.85rem;
  color: #ffb892;
}

.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.98rem;
}

.menu-toggle {
  display: none;
  border: 1px solid rgb(255 108 47 / 30%);
  background: transparent;
  color: #ff6c2f;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.menu-toggle:hover {
  border-color: rgb(255 108 47 / 55%);
  background: rgb(255 108 47 / 10%);
  color: #ffd7c2;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle.is-open {
  color: #0a0c10;
  background: #ffffff;
  border-color: rgb(255 108 47 / 45%);
}

.menu-toggle.is-open .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.menu-toggle.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

.menu-toggle.is-open .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.15s ease, background-color 0.15s ease;
  color: #ff6c2f;
}

.nav a:hover {
  color: #ffd7c2;
  background: rgb(255 108 47 / 10%);
}

.page {
  width: 100%;
  max-width: 960px;
  margin: 48px auto 56px;
  padding: 0 24px;
}

.page__intro {
  margin-bottom: 18px;
}

.page__lead {
  text-align: center;
}

.page__lead h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.page__lead p {
  margin: 0;
  color: var(--muted);
}

.card > h2 {
  text-align: center;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 650;
  color: var(--text);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(249 115 22 / 18%);
}

.primary-btn {
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: #0b0f19;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgb(249 115 22 / 30%);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(1px);
}

.state-message {
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.state-message.error {
  color: #dc2626;
}

.state-message.success {
  color: #16a34a;
}

.footer {
  background: #0a0c10;
  color: #e2e8f0;
  padding: 48px 0 32px;
}

.footer__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__main-content {
  display: grid;
  grid-template-columns: 3fr auto;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(226 232 240 / 18%);
  align-items: center;
}

.footer__brand {
  justify-self: end;
  text-align: right;
  max-width: 220px;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.footer__col h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #f8fafc;
}

.footer__col a {
  display: block;
  color: #cbd5e1;
  margin: 6px 0;
  font-size: 0.95rem;
}

.footer__col a:hover {
  color: #ffffff;
}

.footer__note {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer__subscribe {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__subscribe input {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 8%);
  color: #f8fafc;
}

.footer__subscribe input::placeholder {
  color: #cbd5e1;
}

.footer__subscribe button {
  border: none;
  background: #f97316;
  color: #0b0f19;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.footer__subscribe button:hover {
  background: #ea580c;
}

.footer__bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer__payments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__payments span {
  width: 52px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 6px;
  background: rgb(255 255 255 / 8%);
}

.footer__payments span svg {
  width: 72px;
  height: auto;
}

@media (max-width: 960px) {
  .header__container {
    padding: 12px 16px;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu brand actions"
      "nav nav nav";
    align-items: center;
    gap: 10px 12px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    grid-area: menu;
    z-index: 110;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    grid-area: nav;
    width: 100%;
    height: 100%;
    flex-direction: column;
    gap: 0;
    padding: 96px 20px 32px;
    background: #ffffff;
    color: #ff6c2f;
    box-shadow: none;
  }

  .nav::before {
    content: "";
    display: block;
    height: 1px;
    transform: scaleY(0.2);
    background: #000;
    margin: -10px -24px 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 1rem;
    color: #ff6c2f;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid #000;
  }
  
  .nav a:last-child {
    border-bottom: 1px solid #000;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
  }

  .brand__logo-img {
    height: 28px;
  }

  .header__actions {
    grid-area: actions;
    justify-self: end;
    gap: 12px;
  }

  .header__actions a {
    padding: 4px 0;
  }

  .page {
    margin: 28px auto 40px;
    padding: 0 16px;
  }
  
  .card {
    padding: 24px 20px;
  }

  .footer {
    padding: 40px 0 24px;
  }

  .footer__container {
    padding: 0 16px;
  }

  .footer__main-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__brand {
    grid-row: 1;
    justify-self: start;
    text-align: left;
    max-width: 100%;
  }
  
  .footer__columns {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px 12px;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
  }
  
  .footer__payments {
    justify-content: center;
    align-self: center;
  }

  .footer__payments span {
    width: 48px;
    height: 30px;
  }

  .footer__payments span svg {
    width: 56px;
  }
}

