:root {
  --dark-900: #0F0F13;
  --dark-800: #151519;
  --dark-700: #1B1B21;
  --dark-600: #24242B;
  --dark-500: #2A2A33;
  --gold-400: #F2C94C;
  --gold-500: #F2B94C;
  --gold-600: #E6A938;
  --white: #FFFFFF;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--white);
  background-color: var(--dark-900);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

.button {
  display: inline-block;
  background-color: var(--gold-500);
  color: var(--dark-900);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background-color 0.3s;
  margin-right: 10px;
  margin-bottom: 10px;
}

.button:hover {
  background-color: var(--gold-600);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
}

.navbar.scrolled {
  background-color: rgba(42, 42, 51, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--gold-400);
  font-size: 24px;
  font-weight: 700;
}

.logo svg {
  height: 48px;
  width: auto;
  fill: var(--gold-400);
  transition: fill 0.3s;
}

.logo svg:hover {
  fill: var(--white);
}

.navbar.scrolled .logo svg {
  fill: var(--gold-500);
}

@media (max-width: 768px) {
  .logo svg {
    height: 32px;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
  background-image: url(https://openthebeer.ru/assets/beernik.jpg);
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 15, 19, 0.7), rgba(42, 42, 51, 0.9));
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero-text p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 500px;
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
}

.hero-text .button {
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}

.accent {
  color: var(--gold-400);
}

.hero-image {
  position: relative;
  transition: transform 0.5s ease-out;
  transform-style: preserve-3d;
  perspective: 1000px;
  display: none;
}

@media (min-width: 992px) {
  .hero-image {
    display: block;
  }
}

.image-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-25%);
  width: 288px;
  height: 288px;
  background-color: rgba(242, 185, 76, 0.2);
  border-radius: 50%;
  filter: blur(48px);
  z-index: -1;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: translateZ(50px);
}

.stat-card {
  position: absolute;
  background-color: var(--dark-800);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  background-color: rgba(27, 27, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-right {
  bottom: -24px;
  right: -24px;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: translateZ(80px);
}

.card-left {
  top: -16px;
  left: -24px;
  transform: translateZ(30px);
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gold-500);
  color: var(--dark-900);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-text {
  text-align: left;
}

.stat-title {
  font-size: 14px;
  font-weight: 500;
}

.stat-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.stat-label {
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 500;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.stars {
  color: var(--gold-500);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
}

.mouse-wheel {
  width: 6px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  margin-top: 8px;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

/* Features Section */
.features {
  padding: 96px 0;
  background-color: var(--dark-600);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  background-color: var(--dark-700);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.feature-card:nth-child(1)::before {
  background-image: url('https://openthebeer.ru/assets/learn_1.png');
}

.feature-card:nth-child(2)::before {
  background-image: url('https://openthebeer.ru/assets/learn_2.png');
}

.feature-card:nth-child(3)::before {
  background-image: url('https://openthebeer.ru/assets/learn_3.png');
}

.feature-card:nth-child(4)::before {
  background-image: url('https://openthebeer.ru/assets/learn_4.png');
}

.feature-card:hover::before {
  opacity: 0.25;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(242, 185, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  flex-grow: 1;
}

.certificate-card {
  margin-top: 80px;
  padding: 32px;
  border-radius: 16px;
  background-color: var(--dark-700);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .certificate-card {
    flex-direction: row;
  }
}

.certificate-icon {
  background-color: rgba(242, 185, 76, 0.1);
  padding: 24px;
  border-radius: 12px;
  color: var(--gold-400);
}

.certificate-content {
  flex-grow: 1;
}

.certificate-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.certificate-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.certificate-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.file-check-icon {
  color: var(--gold-400);
}

.cta-card {
  margin-top: 64px;
  padding: 32px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

@media (min-width: 768px) {
  .cta-card {
    flex-direction: row;
  }
}

.cta-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
  background-color: var(--dark-900);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  color: var(--gold-400);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--white);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
}

.footer-contact svg {
  margin-right: 12px;
  margin-top: 4px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
} 
