@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700;900&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --accent: #2d7dff;
  --accent-glow: rgba(45, 125, 255, 0.15);
  --text: #f0f0f0;
  --text-muted: #999;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.6rem 1rem;
  position: relative;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 16vw, 10rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
  position: relative;
  padding-top: 0.6rem;
}

.hero-tagline::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 0.6rem;
  border-radius: 2px;
}

.hero-tagline .accent {
  color: var(--accent);
  font-weight: 600;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding-top: 1rem;
}

.hero-photo {
  width: clamp(140px, 42vw, 260px);
  height: auto;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.hero-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.2;
}

.hero-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.hero-phone {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.hero-phone:hover {
  color: var(--text);
}

/* ========== SECTIONS COMMON ========== */

.section {
  padding: 1.1rem 1rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 4.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--accent);
  border-radius: 2px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.7rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--accent);
}

/* ========== BADGES (краткие факты о Даниле, без описания брендов) ========== */

.section--badges {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
  width: calc(50% - 0.3rem);
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}

.badge:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.badge-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* ========== ALFA CONFERENCE ========== */

.alfa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.alfa-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.alfa-legend {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.alfa-legend .highlight {
  color: var(--accent);
}

.alfa-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.alfa-gallery img {
  width: calc((100% - 2 * 0.4rem) / 3);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.alfa-gallery img:hover {
  border-color: var(--accent);
}

/* ========== CONTACTS ========== */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.55rem 0.35rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.contact-link .contact-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
}

.contact-link .contact-icon--img {
  width: 28px;
  height: 28px;
  font-size: 0;
  border-radius: 4px;
}

.contact-link .contact-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */

.footer {
  text-align: center;
  padding: 1rem 1rem 1.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ========== ANIMATIONS ========== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE: TABLET+ ========== */

@media (min-width: 640px) {
  .hero {
    padding: 1rem 1.5rem;
  }

  .hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
  }

  .hero-photo {
    width: clamp(220px, 30vw, 320px);
  }

  .hero-name {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  }

  .alfa-gallery img {
    width: calc((100% - 3 * 0.4rem) / 4);
  }

  .badge {
    width: calc(25% - 0.45rem);
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }

  .badge-icon {
    width: 92px;
    height: 92px;
  }

  .badge-label {
    font-size: 0.92rem;
  }

  .contacts-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== RESPONSIVE: DESKTOP ========== */

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero-top {
    flex: none;
    width: 50%;
    align-items: flex-start;
  }

  .hero-title {
    text-align: left;
    font-size: clamp(5rem, 9vw, 10rem);
  }

  .hero-tagline {
    align-self: center;
    text-align: center;
  }

  .hero-tagline::before {
    margin: 0 auto 0.6rem;
  }

  .hero-bottom {
    flex: none;
    width: 50%;
    justify-content: flex-end;
    padding-top: 0;
  }

  .hero-name {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  }

  .section {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
  }

  .alfa-gallery img {
    width: calc((100% - 4 * 0.5rem) / 5);
  }

  .alfa-gallery {
    gap: 0.5rem;
  }
}
