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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #252525;
  color: #e8eaf0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* ── Sidebar ── */

.sidebar {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 254px;
  height: auto;
  max-height: calc(100vh - 36px);
  background: #363636;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 18px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 100;
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-logo-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-icon svg {
  width: 24px;
  height: 24px;
}

.sidebar-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.08);
}

.sidebar-link.active {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

/* Color-coded hover per destination */
.sidebar-link[data-color="studio"]:hover { background: rgba(255,255,255,.15); }
.sidebar-link[data-color="dataset"]:hover { background: rgba(224,168,75,.25); }
.sidebar-link[data-color="dataset"].active { background: rgba(224,168,75,.2); border-color: rgba(224,168,75,.4); }
.sidebar-link[data-color="voice"]:hover { background: rgba(195,71,157,.25); }
.sidebar-link[data-color="voice"].active { background: rgba(195,71,157,.2); border-color: rgba(195,71,157,.4); }
.sidebar-link[data-color="home"]:hover { background: rgba(99,102,241,.2); }
.sidebar-link[data-color="home"].active { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.35); }
.sidebar-link[data-color="news"]:hover { background: rgba(99,102,241,.2); }
.sidebar-link[data-color="news"].active { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.35); }
.sidebar-link[data-color="contacts"]:hover { background: rgba(255,255,255,.12); }

.sidebar-link svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-section-label {
  padding: 4px 14px 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(199,199,199,.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-link.disabled {
  opacity: .45;
  pointer-events: none;
}

.sidebar-spacer {
  display: none;
}

/* ── Main Content Area ── */

.main-content {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin-left: 290px;
  padding: 20px 40px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: flex-start;
}

/* ── Section Card ── */

.section-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 29px;
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
}

/* ── Hero Section ── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 !important;
  min-height: 400px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 29px;
}

.hero-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 400;
}

.hero-logo {
  height: 92px;
  max-width: 100%;
  object-fit: contain;
  align-self: flex-start;
}

.hero-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 0.96;
  max-width: 1100px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 52px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .15s;
  align-self: flex-start;
}

.hero-cta:hover { opacity: .8; }

/* ── Section Heading ── */

.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.32px;
  line-height: 1;
}

.section-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 0.96;
}

/* ── Cards Grid ── */

.cards-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cards-row > * {
  flex: 1 1 200px;
  min-width: 0;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.info-card {
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 136px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
}

.info-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.info-card-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  opacity: .7;
}

/* ── Article Card ── */

.article-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-card-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  opacity: .2;
}

.article-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.article-card-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  opacity: .7;
}

/* ── Contact Card ── */

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  height: 108px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.contact-card:hover {
  background: rgba(255,255,255,.1);
}

.contact-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contact-text {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

/* ── CTA Banner ── */

.cta-banner {
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 136px;
  background: #2b2b2b;
  border-radius: 24px;
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
}

.cta-banner-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

/* ── Footer ── */

.footer {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(199,199,199,1);
  padding: 0 0 20px;
}

/* ── Mobile menu toggle ── */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  z-index: 101;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sidebar-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}

/* ── Responsive ── */

/* Centered content when sidebar fits */
@media (min-width: 1025px) {
  body {
    padding-left: 290px;
  }
  .main-content {
    margin-left: 0;
    padding: 20px 40px 40px 40px;
    align-self: center;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .sidebar-toggle { display: flex; }

  .sidebar {
    transform: translateX(calc(-100% - 20px));
    transition: transform .3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 80px 24px 40px;
    align-self: center;
  }

  .section-heading { font-size: 36px; }
  .hero { min-height: 300px; padding: 28px; }
  .hero-label { font-size: 26px !important; }
  .hero-description { font-size: 26px !important; }
  .cta-banner-text { font-size: 36px; }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .main-content { padding: 76px 16px 32px; gap: 16px; }

  .section-heading { font-size: 28px; }
  .section-card { padding: 22px; }
  .hero { min-height: 240px; padding: 22px; }
  .hero-label { font-size: 22px !important; }
  .hero-description { font-size: 22px !important; }

  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-2 { grid-template-columns: 1fr; }

  .info-card { height: 110px; padding: 0 16px; border-radius: 18px; }
  .article-card { border-radius: 18px; padding: 18px; }

  .contact-card { height: 80px; padding: 0 16px; border-radius: 18px; }
  .contact-text { font-size: 15px; }
  .contact-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 14px; }
  .contact-icon svg { width: 22px; height: 22px; }

  .cta-banner { height: 100px; border-radius: 18px; }
  .cta-banner-text { font-size: 28px; }

  .footer { font-size: 14px; }
}

/* Phone */
@media (max-width: 480px) {
  .main-content { padding: 72px 12px 24px; gap: 12px; }

  .section-card { padding: 16px; border-radius: 16px; }
  .section-heading { font-size: 24px; letter-spacing: -.5px; }

  .hero { min-height: 180px; padding: 16px; border-radius: 16px; }
  .hero-label { font-size: 18px !important; }
  .hero-description { font-size: 18px !important; line-height: 1.2 !important; }
  .hero-cta { height: 44px; font-size: 14px; border-radius: 12px; }

  .cards-grid-3 { grid-template-columns: 1fr; }
  .info-card { height: 80px; border-radius: 14px; }
  .info-card-title { font-size: 16px; }
  .article-card { border-radius: 14px; padding: 14px; gap: 12px; }
  .article-card-title { font-size: 18px; }
  .article-card-text { font-size: 14px; }

  .contact-card { border-radius: 14px; height: 64px; padding: 0 12px; gap: 10px; }
  .contact-text { font-size: 13px; }
  .contact-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; }
  .contact-icon svg { width: 18px; height: 18px; }

  .cta-banner { border-radius: 14px; height: 72px; }
  .cta-banner-text { font-size: 20px; }

  .footer { font-size: 13px; }
}
