:root {
  --bg-primary: #0b1224;
  --bg-secondary: #0f1a33;
  --bg-card: #0f1830;
  --text-primary: #f5f7ff;
  --text-secondary: #b9c4ff;
  --accent: #d07232;
  --border: rgba(208, 114, 50, 0.5);
  --blue-accent: #5aa8ff;
  --blue-soft: rgba(90, 168, 255, 0.18);
  --shadow: 0 20px 50px rgba(8, 12, 26, 0.5);
  --header-h: 76px;

}
html { scroll-padding-top: var(--header-h); }
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
section[id] { scroll-margin-top: var(--header-h); }

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #081028 0%, #0e1b3c 55%, #101f44 100%);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 76px; /* если шапка выше/ниже — подгони число */
  padding-top: var(--header-h)
  margin: 0;
  padding: 0;
}


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

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: min(1140px, 90%);
  margin: 0 auto;
}

.header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(7, 13, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.6px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #1d0f00;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(208, 114, 50, 0.35);
}

.button--ghost {
  background: transparent;
  color: var(--text-primary);
}

.hero {
  padding: 80px 0 60px;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.hero__note {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(208, 114, 50, 0.15);
  border: 1px solid rgba(208, 114, 50, 0.6);
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero__visual {
  position: relative;
}

.hero__image {
  height: 320px;
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(18,31,63,0.55) 0%, rgba(20,41,81,0.35) 60%, rgba(22,47,99,0.55) 100%),
    url("assets/glav1.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero__accent {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent);
  color: #1d0f00;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(208, 114, 50, 0.4);
}

.section {
  padding: 70px 0;
  position: relative;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
  opacity: 0.4;
}

.section--alt {
  background: rgba(11, 18, 36, 0.6);
}

.section__title {
  margin-bottom: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(90, 168, 255, 0.2);
  background: linear-gradient(120deg, rgba(90, 168, 255, 0.12), rgba(15, 26, 51, 0.2));
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.section__title:hover {
  border-color: rgba(90, 168, 255, 0.5);
  background: linear-gradient(120deg, rgba(90, 168, 255, 0.2), rgba(15, 26, 51, 0.3));
}

.section__title h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.section__title p {
  color: var(--text-secondary);
}

.section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section__chevron {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.section.is-open .section__chevron {
  transform: rotate(180deg);
}

.section__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.section.is-open .section__body {
  max-height: 5000px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 24px;
}

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

.card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 35px rgba(9, 13, 28, 0.6);
}

.card__image {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card__price {
  font-weight: 700;
  color: var(--accent);
}

.card__description {
  color: var(--text-secondary);
  flex-grow: 1;
}

.footer {
  padding: 40px 0;
  background: rgba(7, 12, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__content {
  display: grid;
  gap: 24px;
}

.footer__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.footer__subtitle,
.footer__contacts {
  color: var(--text-secondary);
}

.footer__year {
  color: var(--text-secondary);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 12, 24, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__content {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 30px;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  display: grid;
  gap: 18px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal__text {
  color: var(--text-secondary);
}

.modal__actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 820px) {
  .header__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
  }

  .header__content {
    gap: 16px;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }
  
}

