/**
 * Лендинг index.html — на токенах tokens.css
 */

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
}

.container {
  width: min(var(--container-content), 100% - 2.5rem);
  margin-inline: auto;
}

.header {
  padding: 1.2rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary);
}

main {
  flex: 1;
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.hero__lead {
  max-width: 42rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.landing .btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.landing .btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.section {
  padding: 3rem 0;
}

.section__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.55rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  margin-bottom: 1.6rem;
}

.section-panel {
  background: var(--color-primary-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.4rem;
  border: 1px solid var(--color-border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--color-surface);
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.stat__text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stat--wide {
  grid-column: 1 / -1;
  text-align: left;
  padding: 1rem 1.2rem;
}

.stat--wide .stat__value {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.marquee {
  overflow: hidden;
  padding: 0.6rem 0;
  background: transparent;
}

.services__title {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: landing-slide 38s linear infinite;
  gap: 1rem;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.tool-card {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  border: 1px solid var(--border);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
  color: var(--text);
  min-width: 250px;
  min-height: 140px;
  transition: transform var(--ease-default);
}

.tool-card:hover {
  transform: translateY(-1px);
}

.tool-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tool-card__name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary);
}

.tool-card__rating-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-card__stars {
  display: flex;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.tool-card__star {
  font-size: 1rem;
  line-height: 1;
  color: rgba(31, 31, 31, 0.18);
}

.tool-card__star.is-filled {
  color: var(--color-primary);
}

.tool-card__level {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes landing-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.contact {
  padding: 3rem 0 4rem;
}

.contact p {
  max-width: 38rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 2.4rem 0;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.footer__role {
  opacity: 0.9;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer__contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer__contacts a {
  color: var(--text-light);
}

.footer__meta {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(250, 246, 240, 0.25);
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.7;
}
