/* lilars styles */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #f3f4f6; /* светлый серый фон */
  color: #0f172a;
  line-height: 1.6;
}

/* Ссылки */

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

a:hover {
  text-decoration: none;
}

/* Контейнер */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #111827;
}

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

.nav a {
  position: relative;
  padding-bottom: 0.15rem;
  color: #4b5563;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #111827;
}

.nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, #e5f3fb 0%, #f3f4f6 50%);
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #0f172a;
}

.hero-text p {
  margin: 0 0 1.4rem;
  color: #4b5563;
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #f9fafb;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
  border-color: #cbd5f5;
  background: #ffffff;
  color: #1f2937;
}

.btn.ghost:hover {
  border-color: #0ea5e9;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.hero-list li::before {
  content: "• ";
  color: #0ea5e9;
}

/* Hero card */

.hero-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.25);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: #0f172a;
}

.hero-card ul {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Секции */

.section {
  padding: 3rem 0;
  background: #f3f4f6;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.section-lead {
  max-width: 40rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Две колонки */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Карточки */

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

.card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.15rem 1.15rem 1.3rem;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.18);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #111827;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Инфо-блок */

.info-block {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.18);
}

.info-block h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  color: #0f172a;
}

.info-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.info-note {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  color: #6b7280;
}

/* Чек-лист */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: #4b5563;
}

.checklist li {
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.3rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
  color: #16a34a;
}

/* Проекты */

.project-meta {
  font-size: 0.86rem;
  color: #6b7280;
}

/* Контакты */

.contact-section {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: #374151;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

/* Форма */

.contact-form {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  padding: 1.3rem 1.3rem 1.5rem;
  box-shadow: 0 12px 26px rgba(148, 163, 184, 0.22);
}

.field {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: #4b5563;
}

input,
textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4);
  background: #ffffff;
}

/* Статус формы */

.form-status {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.form-status--hidden {
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.55);
  color: #166534;
}

.form-status--error {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.75);
  color: #b91c1c;
}

/* Футер */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.9rem 0 1.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Адаптивность */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
