:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #16221a;
  --muted: #5c6d62;
  --accent: #1ea55c;
  --accent-dark: #13834a;
  --accent-soft: rgba(30, 165, 92, 0.1);
  --line: #e2e9e4;
  --footer-bg: #0d1e14;
  --footer-text: #b9cfbf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 34, 26, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

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

.main-nav a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 10px;
  border-bottom: none !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch .on {
  color: var(--accent-dark);
}

.lang-switch span {
  color: var(--line);
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(600px 300px at 15% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 640px;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 16px;
}

.prose sub {
  font-size: 0.7em;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  height: 190px;
  overflow: hidden;
  background: #f0f4f1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.card-body p {
  font-size: 0.93rem;
  color: var(--muted);
  flex: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.93rem;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.spec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.spec h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.spec ul {
  list-style: none;
}

.spec li {
  font-size: 0.95rem;
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--text);
}

.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.cta-row {
  margin-top: 36px;
}

.btn-down {
  position: relative;
  top: 0.5em;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 36px;
  width: auto;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.site-footer p,
.site-footer a {
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--footer-text);
  display: block;
  padding: 4px 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 0.85rem;
}

@media (max-width: 880px) {
  .hero--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 32px;
  }
}

@media (max-width: 720px) {
  .burger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .header-inner {
    justify-content: space-between;
  }

  .brand {
    margin-right: 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .section {
    padding: 40px 0;
  }
}

/* Контентные страницы */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 15px;
}

.breadcrumb a {
  text-decoration: none;
}

.prose time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 10px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  background: var(--accent-soft);
}

.prose ul,
.prose ol {
  margin: 12px 0 12px 24px;
}

.prose li {
  margin-bottom: 6px;
}

/* Достижения */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.ach-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ach-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 16px;
  background: var(--surface);
}

.ach-item figcaption {
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.ach-item figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

/* Пресса о нас */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.press-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.press-item time {
  color: var(--muted);
  font-size: 14px;
}

.press-item h2 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.press-item a {
  text-decoration: none;
}

.press-item p {
  color: var(--muted);
  font-size: 15px;
}

/* Новости */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.news-item-media {
  flex-shrink: 0;
}

.news-item-media img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.news-item-body time {
  color: var(--muted);
  font-size: 14px;
}

.news-item-body h2 {
  margin: 4px 0 6px;
  font-size: 19px;
  line-height: 1.35;
}

.news-item-body a {
  text-decoration: none;
}

.news-item-body p {
  color: var(--muted);
  font-size: 15px;
}

.news-post h1 {
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.25;
}

.news-post-image {
  max-width: 480px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.pagination a {
  text-decoration: none;
}

.pagination span {
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.link-more {
  font-weight: 600;
  text-decoration: none;
}

.all-news-link {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .news-item-media img {
    width: 100%;
    height: 180px;
  }
}

/* Кристаллы: применения, примечания, схемы */
.app-block {
  display: flow-root;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.app-block h3 {
  font-size: 1.05rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.app-block ul {
  margin: 12px 0 12px 24px;
}

.app-block ul ul {
  margin: 6px 0 6px 24px;
}

.app-block img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  margin: 8px 0 14px;
}

img.scheme-img {
  max-width: min(500px, 100%);
  height: auto;
  max-height: none;
}

.app-block li > img.fan-img {
  float: right;
  max-width: 180px;
  margin: -4px 0 10px 16px;
}

.app-block li:has(.fan-link:hover) .fan-img {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0;
  scroll-margin-top: 96px;
}
