/* TRIKS — стили сайта */
/* План: .cursor/plans/site-gotorm.md */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAFAFA;
  --color-bg-section: #F8FAFC;
  --color-text: #1A1A1A;
  --color-text-muted: #475467;
  --color-accent: #4F46E5;
  --color-accent-hover: #6366F1;
  --color-footer: #1E293B;
  --color-footer-text: rgba(255, 255, 255, 0.85);
  --gradient-hero: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-header: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius-card: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

b, strong {
  font-weight: 700;
  color: #0F3A64;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-header);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  background: var(--gradient-hero);
}

.hero__content {
  max-width: var(--max-width);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

/* Секции */
.section {
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 2rem auto;
}

.section--alt {
  background: var(--color-bg-section);
  border-radius: var(--radius-card);
}

/* Разделение hero и section--alt при одинаковых по тону фонах */
.hero + .section.section--alt {
  margin-top: 4rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 2rem;
  color: var(--color-text);
}

.section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.section p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

/* Что такое GOTORM */
.what-is {
  padding-top: 6rem;
}

.what-is__points {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.what-is__point {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Для кого */
.for-whom__chain {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.for-whom__chain span {
  padding: 0.25rem 0.75rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.for-whom__chain .arrow {
  color: var(--color-accent);
  font-weight: 700;
}

/* Как я работаю */
.how-work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .how-work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1160px) {
  .how-work__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-work__step {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.how-work__step-num {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Кейсы */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.case-item {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.case-item h3 {
  margin: 0 0 0.5rem;
  color: var(--color-text);
  font-size: 1.25rem;
}

.case-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Манифест */
.manifest {
  background: var(--color-bg-section);
  border-radius: var(--radius-card);
}

.manifest__block {
  max-width: 48rem;
  font-size: 1.25rem;
  line-height: 1.7;
}

.manifest__block strong {
  color: var(--color-text);
}

/* Чего точно не будет (нет рисков) */
.no-risks {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.no-risks h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.no-risks__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.no-risks__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.no-risks__item i {
  color: #dc2626;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.service-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card--static {
  cursor: default;
}

.service-card--static:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.service-card h3 {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
}

.service-card__link {
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card:hover .service-card__link {
  text-decoration: underline;
}

/* CTA (следующий шаг) */
.cta {
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta__content {
  max-width: 36rem;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.cta p:last-of-type {
  margin-bottom: 2rem;
}

/* Контакты */
.contacts {
  padding-bottom: 0,1rem;
}

.contacts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0 2rem 0;
}

.contacts__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.contacts__links a:hover {
  background: var(--color-accent);
  color: white;
}

/* Footer */
.footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 2rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Страница услуги */
.page-service {
  padding-top: 6rem;
  min-height: 100vh;
}

.page-service .hero-small {
  min-height: auto;
  padding: 4rem 1.5rem 3rem;
  background: var(--gradient-hero);
}

.page-service .hero-small h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.page-service .content {
  padding: 3rem 1.5rem 4rem;
}

.page-service .content ul {
  margin: 1rem 0 2rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.page-service .content li {
  margin-bottom: 0.5rem;
}

/* Мобильное меню */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

/* Анимации при скролле */
.animate-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  .for-whom__chain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0.5rem;
  }

  .for-whom__chain span:last-child {
    grid-column: 1 / -1;
  }

  .for-whom__chain .arrow {
    text-align: center;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow-header);
    gap: 1rem;
  }

  .nav-toggle {
    display: block;
  }
}
