/* Neve-like: airy, clean, soft borders, subtle shadows. No external fonts. */
:root{
  --container-max: 1320px; /* Bootstrap container (xl/xxl) */
  --bg-soft: #f7f8fb;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);

  /* HERO image paths (local) */
  --hero-bg-url: url("../img/hero-bg.jpg");          /* основной фон */

  /* Section poster colors (subtle, stylish) */
  --sec-yellow: #f7e27a;
  --sec-lilac:  #d6d7e6;
  --sec-cyan:   #bfeaf0;
  --sec-gray:   #f2f3f5;
}

/* Base */
html{
  scroll-behavior: smooth;
}

html, body { height: 100%; }

body{
  color: var(--text);
  background: #fff;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus{ left: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
}
.brand-title{
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Soft backgrounds */
.bg-soft{
  background: var(--bg-soft);
}

/* Cards */
.card-soft{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer{
  background: #fff;
}

/* Slightly rounder form controls to match Neve vibe */
.form-control, .form-select{
  border-radius: 12px;
}
.btn{
  border-radius: 12px;
}

/* ===========================
   HERO SCIENCE BANNER (image)
=========================== */

.hero-banner {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 80% 45%, rgba(0,190,255,.20), transparent 56%),
    radial-gradient(circle at 15% 20%, rgba(40,120,255,.18), transparent 55%),
    var(--hero-bg-url);

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

/* optional network layer on the right like in screenshot */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-net-url);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: .55;
  pointer-events: none;
}

/* overlay for contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1,20,45,.55) 0%,
    rgba(1,20,45,.45) 45%,
    rgba(1,20,45,.25) 100%
  );
}

/* content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 84px 16px;
}

.hero-subtitle{
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-title{
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  text-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.hero-meta{
  color: rgba(255,255,255,.9);
  font-size: clamp(.95rem, 1.35vw, 1.05rem);
}

.btn-hero{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.btn-hero:hover{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================
   Sections: poster/tile layout
=========================== */

.section-grid{
  align-items: stretch;
}

.section-tile{
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px; /* gives the "poster" feeling */
  transition: transform .15s ease, box-shadow .15s ease;
}

.section-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

/* backgrounds */
.section-tile--yellow{ background: var(--sec-yellow); }
.section-tile--lilac { background: var(--sec-lilac); }
.section-tile--cyan  { background: var(--sec-cyan); }
.section-tile--gray  { background: var(--sec-gray); }

.section-tile__head{
  margin-bottom: 14px;
}

.section-tile__title{
  font-weight: 800;
  line-height: 1.08;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  margin: 0 0 18px 0;
}

.section-tile__label{
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px 0;
}

.section-tile__rule{
  height: 3px;
  width: 88%;
  background: rgba(0,0,0,.88);
  border-radius: 999px;
  margin: 0 0 10px 0;
}

/* list */
.section-tile__list{
  margin: 8px 0 0 0;
  padding-left: 18px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.section-tile__list li{
  margin-bottom: 12px;
}

/* make titles a bit smaller on mid screens */
@media (max-width: 1200px){
  .section-tile__title{ font-size: 1.4rem; }
}

/* On smaller screens allow auto height (no huge blank) */
@media (max-width: 992px) {
  .section-tile{ min-height: auto; }
}

/* ===========================
   Simple email registration
=========================== */

.reg-inputgroup{
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
}

.reg-addon{
  background: #fff;
  border: none;
  color: rgba(15, 23, 42, 0.55);
  padding-left: 16px;
  padding-right: 12px;
}

.reg-control{
  border: none;
  box-shadow: none !important;
}

.reg-inputgroup .btn{
  border-radius: 0;
}

/* Registration submit button */

.reg-submit-btn{
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.reg-submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* make the hero not too tall on small screens */
@media (max-width: 768px) {
  .hero-banner { min-height: 46vh; }
  .hero-content{ padding: 60px 14px; }
  .hero-banner::after{
    opacity: .35;
    background-position: 75% 50%;
 }
  
 /* Partners logos */
 .partner-logo {
  max-height: 70px;
  max-width: 100%;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.partner-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}
  
  
  
}

/* ===========================
   Partners (stable cards)
=========================== */

.partners-list{
  justify-content: center;
}

.partner-item{
  /* CARD */
  width: 200px;
  height: 150px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);

  padding: 12px 14px;
  text-align: center;

  /* IMPORTANT: hard layout */
  display: grid;
  grid-template-rows: 1fr 34px; /* top = logo, bottom = caption */
  gap: 8px;

  overflow: hidden; /* safety: nothing can visually spill out */
}

/* LOGO AREA */
.partner-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  /* allow grid item to shrink properly */
  min-width: 0;
  min-height: 0;
}

/* CAPTION AREA */
.partner-caption{
  height: 34px;            /* exactly matches grid second row */
  line-height: 17px;       /* 2 строки по 17px */
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* max 2 lines */
  -webkit-box-orient: vertical;

  /* keep it neat */
  padding: 0 6px;
}

/* Responsive tweak */
@media (max-width: 576px){
  .partner-item{
    width: 180px;
    height: 145px;
    grid-template-rows: 1fr 34px;
  }
}

/* ===========================
   Scroll to top button
=========================== */

.scroll-top-btn{
  position: fixed;
  bottom: 22px;
  z-index: 1040;
  
  right: max(
    22px,
    calc((100vw - var(--container-max)) / 2 + 12px)
  );

  width: 36px;
  height: 36px;
  border-radius: 999px;

  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.92);
  color: var(--muted);

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 600;
  line-height: 1;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);

  transition:
    opacity .18s ease,
    transform .18s ease,
    background .15s ease,
    color .15s ease;
}

.scroll-top-btn:hover{
  background: #ffffff;
  color: var(--text);
}

.scroll-top-btn.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile: как было — у края экрана */
@media (max-width: 576px){
  .scroll-top-btn{
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.note-divider {
  width: 20%;
  max-width: 240px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15, 23, 42, 0.25),
    transparent
  );
}

.navbar .nav-link.small {
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
}

.lang-switch {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.lang-link {
  text-decoration: none;
  opacity: 0.7;
}

.lang-link:hover {
  opacity: 1;
}

.lang-active {
  font-weight: 600;
}

.lang-sep {
  margin: 0 2px;
  opacity: 0.5;
}

