/* ========= БАЗА ========= */

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151923 0, #05070b 55%, #020309 100%);
  color: #f5f5f5;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}

/* ========= ШАПКА ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 6, 10, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 11px;
  opacity: 0.7;
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.main-nav a {
  color: rgba(230, 233, 242, 0.84);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f6e27a, #c0c8e0);
  transition: width 0.2s ease;
}

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

/* Бургер */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f5f5;
}

/* ========= КНОПКИ ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ffd659, #f3c533);
  color: #151824;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn.ghost {
  border-color: rgba(206, 213, 233, 0.4);
  background: rgba(10, 13, 20, 0.6);
  color: #e6e9f2;
}

.btn.ghost:hover {
  background: rgba(19, 23, 35, 0.9);
}

.btn.full {
  width: 100%;
}

/* ========= СЕКЦИИ ========= */

.section {
  padding: 72px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #181c27 0, #05070b 50%, #020309 100%);
}

.section h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.section-lead {
  margin: 0 0 32px;
  max-width: 640px;
  font-size: 15px;
  color: rgba(216, 221, 236, 0.86);
}

/* ========= HERO ========= */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: #05070b url("assets/img/hero-grom.png") left center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 7, 11, 0.05) 0%,
    rgba(5, 7, 11, 0.25) 35%,
    rgba(5, 7, 11, 0.60) 70%,
    rgba(5, 7, 11, 0.88) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-content {
  max-width: 540px;
  text-align: left;
  padding-right: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  text-transform: none;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(227, 232, 247, 0.88);
  margin: 0 0 18px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.hero-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: rgba(216, 221, 236, 0.9);
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd659 0, #f3c533 55%, #8b6b26 100%);
  box-shadow: 0 0 0 3px rgba(255, 214, 89, 0.15);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========= СЕТКИ ========= */

.grid.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: flex-start;
}

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

/* ========= КАРТОЧКИ ========= */

.card {
  position: relative;
  border-radius: 18px;
  padding: 20px 20px 18px;
  background: linear-gradient(145deg, #0d1018, #090b12);
  border: 1px solid rgba(133, 142, 170, 0.35);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.85);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border-top: 3px solid transparent;
  background:
    linear-gradient(90deg, #ffd659, #c0c8e0, #ffd659) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0.7;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  font-size: 14px;
  color: rgba(220, 225, 240, 0.9);
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
}

.card.mini {
  padding: 16px;
}

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

/* ========= БОКОВЫЕ КАРТОЧКИ ========= */

.about-card,
.gbr-card,
.contact-form-card {
  background: radial-gradient(circle at top, #181b27 0, #070910 60%, #05070b 100%);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(126, 135, 162, 0.55);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.9);
}

.about-highlight {
  margin-top: 12px;
  font-size: 14px;
  color: #ffd659;
}

/* ========= СПИСКИ ========= */

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.meta-list li + li {
  margin-top: 8px;
}

.meta-list span {
  display: inline-block;
  opacity: 0.7;
  margin-right: 4px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 14px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  font-size: 12px;
  color: #ffd659;
}

/* ========= ЛИЦЕНЗИИ ========= */

.licenses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.license-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.license-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(137, 146, 176, 0.6);
  background: radial-gradient(circle at top, #202534 0, #060811 70%);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.license-thumb.placeholder span {
  font-size: 14px;
  opacity: 0.65;
  padding: 16px;
  text-align: center;
}

.license-caption {
  font-size: 13px;
  color: rgba(220, 225, 240, 0.9);
}

/* ========= КОНТАКТЫ ========= */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 32px;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.contacts-list li + li {
  margin-top: 8px;
}

.contacts-list span {
  display: inline-block;
  opacity: 0.7;
  margin-right: 6px;
}

.contacts-list a {
  color: #ffd659;
  text-decoration: none;
}

/* ========= ФОРМА ========= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form input,
.contact-form textarea {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(143, 154, 187, 0.6);
  background: rgba(6, 8, 14, 0.95);
  color: #f5f5f5;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid #ffd659;
}

.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.form-status {
  min-height: 18px;
  font-size: 12px;
  color: #ffd659;
}

/* ========= ФУТЕР ========= */

.site-footer {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #04060a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(214, 219, 235, 0.78);
}

.to-top {
  text-decoration: none;
  color: rgba(214, 219, 235, 0.85);
}

/* ========= АДАПТИВ ========= */

@media (max-width: 960px) {
  .grid.two-cols,
  .cards-grid,
  .advantages-grid,
  .licenses-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .main-nav {
    position: absolute;
    inset: 64px 0 auto;
    background: rgba(4, 6, 11, 0.98);
    flex-direction: column;
    padding: 12px 16px 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav a {
    padding: 6px 0;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: #05070b url("assets/img/hero-grom.png") left center/cover no-repeat;
}

  .hero h1 {
    font-size: 26px;
  }

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

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .hero-actions {
    flex-direction: column;
  }
}
