:root {
  --bg-page: #050507;
  --bg-block: #141419;
  --bg-block-alt: #191922;
  --accent: #ffcc00;
  --accent-soft: rgba(255, 204, 0, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #8b8b92;
  --border: #262631;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #1b1b23 0, #050507 40%, #050507 100%);
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  padding-bottom: 0.15rem;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link--active {
  color: var(--accent);
}

.nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

/* Hero */

.hero {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-content {
  padding: 2.25rem 2.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #1b1b23, #111119);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.25), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content::after {
  background: radial-gradient(circle at bottom right, rgba(255, 204, 0, 0.18), transparent 55%);
  opacity: 0.4;
}

.hero-kicker {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
  max-width: 700px;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 0 1.4rem;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.06s ease, box-shadow 0.18s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #181818;
  box-shadow: 0 12px 40px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
  background: #e6b800;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost {
  background: rgba(20, 20, 26, 0.85);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(32, 32, 40, 0.95);
}

/* Sections */

.section {
  margin-bottom: 2.75rem;
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 640px;
}

/* Cards (services) */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--bg-block);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.card-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.btn-secondary {
  background: rgba(255, 204, 0, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 204, 0, 0.2);
}

/* Journal */

.section-journal .journal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.journal-item {
  display: block;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-block-alt);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

a.journal-item:hover {
  border-color: rgba(255, 204, 0, 0.3);
  background: var(--bg-block);
}

.journal-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.journal-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.journal-link-all {
  color: var(--accent);
  font-weight: 600;
}

.journal-link-all:hover {
  text-decoration: underline;
}

/* Contacts */

.section-contacts .contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.contacts-block {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-block);
  border: 1px solid var(--border);
}

.contacts-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.contacts-list li + li {
  margin-top: 0.25rem;
}

.contacts-list a {
  color: var(--accent);
}

.contacts-text {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Страница поста журнала */

.journal-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.journal-back:hover {
  text-decoration: underline;
}

.article-head {
  margin-bottom: 1.5rem;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.article-body {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.sample-box {
  background: var(--bg-block);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--text-secondary);
}

.article-body .sample-box + p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.download-sample {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 204, 0, 0.15);
  color: var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.download-sample:hover {
  background: rgba(255, 204, 0, 0.25);
}

/* Журнал — страница блога */

.blog-nav {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-hero {
  margin-bottom: 2rem;
  padding: 1.75rem 0;
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.blog-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 600px;
}

.blog-section {
  margin-bottom: 2.5rem;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}

.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-block);
  border: 1px solid var(--border);
  color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

a.blog-card:hover {
  border-color: rgba(255, 204, 0, 0.35);
  background: var(--bg-block-alt);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.blog-card-cat {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 204, 0, 0.12);
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.blog-card-cat--news {
  background: rgba(100, 180, 255, 0.15);
  color: #7eb8f0;
}

.blog-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-content {
    padding: 1.6rem 1.4rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}
