/* StaffLine Agency — design tokens */
:root {
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-text: #1a2342;
  --color-muted: #5c6478;
  --color-border: #e2e6ef;
  --color-primary: #1e3a5f;
  --color-primary-hover: #152a45;
  --color-accent: #c9a227;
  --color-accent-hover: #b08f1f;
  --color-dark: #0f1729;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 41, 0.12);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.logo__img {
  display: block;
  height: clamp(44px, 8vw, 56px);
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.logo__img--footer {
  height: clamp(40px, 6vw, 48px);
  max-width: min(180px, 55vw);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-primary);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__cta {
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
  }

  .nav a:hover {
    background: var(--color-bg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: rgba(30, 58, 95, 0.06);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-dark);
  width: 100%;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(30, 58, 95, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(201, 162, 39, 0.1), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
}

.hero__label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.hero__stats li {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 200px;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section__head--left {
  text-align: left;
  margin-left: 0;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.section--alt .card {
  background: var(--color-bg);
  box-shadow: none;
}

.card:hover {
  border-color: rgba(30, 58, 95, 0.25);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.steps__num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  line-height: 1.4;
}

.steps__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.steps__item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* About */
.about {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 7fr 5fr;
    gap: 3.5rem;
  }
}

.about__content p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

.about__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text);
}

.about__list li {
  margin-bottom: 0.5rem;
}

.about__list li::marker {
  color: var(--color-primary);
}

.about__panel {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.quote {
  margin: 0;
  padding: 2rem;
  background: linear-gradient(145deg, var(--color-primary), #2a4a73);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.quote p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
}

.quote footer {
  font-size: 0.875rem;
  opacity: 0.85;
}

.container--narrow {
  max-width: 720px;
}

/* Reviews */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.reviews-summary__score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.reviews-summary__number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1;
}

.reviews-summary__meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-align: center;
  max-width: 28rem;
}

.reviews-summary__meta strong {
  color: var(--color-text);
}

.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--color-accent);
  font-size: 0.95rem;
  line-height: 1;
}

.stars--lg {
  font-size: 1.25rem;
}

.stars__half {
  position: relative;
  display: inline-block;
  color: rgba(90, 100, 120, 0.35);
}

.stars__half::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: var(--color-accent);
}

.stars__muted {
  color: rgba(90, 100, 120, 0.35);
}

.reviews-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 2.5rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.section--alt .review-card {
  background: var(--color-bg);
  box-shadow: none;
}

.review-card:hover {
  border-color: rgba(30, 58, 95, 0.22);
  transform: translateY(-2px);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.review-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.09);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.review-card__quote {
  margin: 0 0 1.25rem;
  flex: 1;
}

.review-card__quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.review-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(30, 58, 95, 0.1);
}

.review-card__name {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9375rem;
  display: block;
}

.review-card__role {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Trust strip */
.trust-strip {
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.trust-strip__label {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.trust-strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-logo {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.section--alt .trust-logo {
  background: #fff;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}

.faq__item[open] .faq__question::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq__question:hover {
  background: rgba(30, 58, 95, 0.04);
}

.faq__answer {
  padding: 0 1.25rem 1.15rem;
}

.faq__answer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Contact */
.section--dark {
  background: linear-gradient(160deg, var(--color-dark) 0%, #162036 100%);
  color: #fff;
}

.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact__text {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 28rem;
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact__link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.0625rem;
}

.contact__link:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

.contact__hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem;
}

.form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form__row {
  margin-bottom: 1rem;
}

.form__row--2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form__field input,
.form__field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 41, 0.5);
  color: #fff;
  transition: border-color 0.2s;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form__submit {
  margin-top: 0.5rem;
}

.form__note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.form__note--ok {
  color: #7dd87d;
}

.form__note--err {
  color: #ff9b9b;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
