:root {
  --bg: rgb(13, 17, 23);
  --text: rgb(252, 224, 155);
  --card: rgb(96, 92, 65);
  --border: rgba(252, 224, 155, 0.9);
  --shadow: rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 50% 30%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%),
    var(--bg);
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  height: 270px;
  background-size: cover;
  background-position: center;
  /*border-bottom: 1px solid rgba(255, 255, 255, 0.05);*/
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.05), rgba(13, 17, 23, 0.86));
  /**/
}

.hero__content {
  position: relative;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 18px;
}

.welcome {
  max-width: 540px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 18px 26px;
  box-shadow: 0 14px 30px var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}

.navigation {
  position: absolute;

  bottom: 0;
  width: 100%; /* чтобы занимать всю ширину */
}
.column button.bt__nav:last-child {
  margin-top: auto; /* сдвинет кнопку вниз */
}
.button {
  max-width: 540px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: 0 14px 30px var(--shadow);
  font-size: 18px;
  color: var(--text);
  transition: transform 0.3s ease;
}
.button:hover {
  transform: scale(1.05); /* увеличение на 5% */
}

/* Анимация уменьшения и возврата */
@keyframes clickShrink {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
.button.animate-click {
  animation: clickShrink 0.3s ease forwards;
}

.bt__nav {
  max-width: 540px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 20px;
  margin: 8px;
  box-shadow: 0 14px 30px var(--shadow);
  font-size: 18px;
  color: var(--text);
  transition: transform 0.3s ease;
}
.bt__nav:hover {
  transform: scale(1.05); /* увеличение на 5% */
}

.bt__nav.animate-click {
  animation: clickShrink 0.3s ease forwards;
}

.welcome__line {
  font-size: 18px;
  line-height: 1.25;
}

.hero__badge {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 36px var(--shadow);
  overflow: hidden;
}

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

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 42px;
  padding: 18px 0 28px;
}

.card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 36px var(--shadow);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  min-height: 150px;
}

.card:focus-visible {
  box-shadow: 0 0 0 3px rgba(252, 224, 155, 0.35), 0 18px 36px var(--shadow);
}

.card:hover {
  transform: scale(1.03);
  filter: brightness(1.03);
}

.card__header {
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background: rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.card__body {
  padding: 14px 16px 44px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.card__bullet {
  line-height: 1;
  font-size: 18px;
  opacity: 0.9;
}

.card__desc {
  font-family: "Arial";
  font-size: 16px;
  opacity: 0.95;
  white-space: pre-wrap;
}

.card__logo {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.contacts {
  margin-top: 22px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 36px var(--shadow);
  padding: 16px 18px;
}

.contacts__title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.contacts__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.contacts__item {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.contacts__label {
  opacity: 0.9;
}

.contacts__value {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(252, 224, 155, 0.45);
}

.contacts__value:hover {
  border-bottom-color: rgba(252, 224, 155, 0.9);
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 240px;
  }

  .welcome {
    border-radius: 20px;
    padding: 14px 16px;
  }

  .welcome__line {
    font-size: 16px;
  }

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