:root {
  --color-bg: #feda00;
  --color-dark: #282b3d;
  --color-text: #333333;
  --color-link: #d84a4a;
  --color-white: #ffffff;
  --font-heading: "Unbounded", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --shadow-card: 0 4px 20px rgba(40, 43, 61, 0.12);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header,
.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 48px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-dark);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-section {
  margin-bottom: 48px;
}

.logo {
  height: 77px;
  width: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  width: 100%;
  margin-bottom: 48px;
}

.card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 244px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(40, 43, 61, 0.18);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 16px;
  flex: 1;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.card-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.card-links a:hover {
  opacity: 0.8;
}

.contact-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-icon {
  width: 50px;
  height: 50px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.btn-icon-telegram {
  border-radius: 50%;
}

.btn-icon-vk {
  border-radius: 12px;
}

.btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-primary {
  height: 50px;
  min-width: 220px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header,
  .footer {
    padding: 16px 24px;
    font-size: 12px;
  }

  .main {
    padding: 24px 16px 40px;
  }

  .logo {
    height: 56px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .card {
    padding: 20px;
  }

  .card-title {
    font-size: 16px;
  }

  .contact-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .btn-icon {
    width: 50px;
    height: 50px;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
  }
}
