/* ==========================================================================
   SOFTLINE CAPITAL — Design System
   "Precision Institutional" — Swiss design + Russian tech character
   Typography: Space Grotesk (display) + IBM Plex Sans (body)
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */

:root {
  /* Brand Colors */
  --platinate-blue: #1746EA;
  --sky-blue: #4576FF;
  --medium-blue: #01219c;
  --white: #FFFFFF;
  --black: #000000;

  /* Neutral Palette */
  --off-white: #F5F6FA;
  --gray-100: #E8EAF0;
  --gray-200: #C8CCD6;
  --gray-500: #6B7280;
  --gray-800: #1F2937;

  /* Blue Alphas */
  --blue-10: rgba(23, 70, 234, 0.08);
  --blue-20: rgba(23, 70, 234, 0.15);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --section-padding: 7rem 0;
  --section-padding-mobile: 4rem 0;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-blue: 0 4px 30px rgba(23, 70, 234, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

/* ==========================================================================
   2. BASE TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

h1 {
  font-size: 3rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: 2.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.5rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.section-subtitle,
.section__subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

.section__title {
  text-align: center;
}

.section__subtitle {
  text-align: center;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-padding);
}

.section--dark {
  background: linear-gradient(135deg, var(--medium-blue) 0%, var(--black) 100%);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--light {
  background: var(--off-white);
}

.section--blue {
  background: linear-gradient(135deg, var(--platinate-blue) 0%, var(--medium-blue) 100%);
  color: var(--white);
}

.section--blue h2,
.section--blue h3 {
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  background: transparent;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color var(--transition-base);
}

.nav__logo span {
  color: var(--sky-blue);
  transition: color var(--transition-base);
}

.nav--scrolled .nav__logo {
  color: var(--black);
}

.nav--scrolled .nav__logo span {
  color: var(--platinate-blue);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links > * + * {
  margin-left: 2rem;
}

@supports (gap: 2rem) {
  .nav__links > * + * {
    margin-left: 0;
  }
}

.nav__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav--scrolled .nav__link {
  color: var(--gray-500);
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--black);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__right > * + * {
  margin-left: 1rem;
}

@supports (gap: 1rem) {
  .nav__right > * + * {
    margin-left: 0;
  }
}

.nav__cta {
  background: var(--platinate-blue);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.nav__cta:hover {
  background: var(--sky-blue);
  box-shadow: var(--shadow-blue);
}

.nav__lang {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 500;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.nav__lang a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav__lang a.active,
.nav__lang a:hover {
  color: var(--white);
  font-weight: 700;
}

.nav--scrolled .nav__lang,
.nav--scrolled .nav__lang a {
  color: var(--gray-500);
}

.nav--scrolled .nav__lang a.active,
.nav--scrolled .nav__lang a:hover {
  color: var(--black);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all var(--transition-base);
  margin-top: 5px;
}

.nav__hamburger span:first-child {
  margin-top: 0;
}

@supports (gap: 5px) {
  .nav__hamburger span {
    margin-top: 0;
  }
}

/* Mobile navigation overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav__mobile > * + * {
  margin-top: 2rem;
}

@supports (gap: 2rem) {
  .nav__mobile > * + * {
    margin-top: 0;
  }
}

.nav__mobile--open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile .nav__link {
  font-size: 1.5rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav__mobile .nav__cta {
  font-size: 1rem;
  padding: 0.875rem 2rem;
  margin-top: 1rem;
}

.nav__mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--black);
  line-height: 1;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--medium-blue) 0%, #0a0e27 100%);
  color: var(--white);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: 2rem;
  border: 1px solid rgba(69, 118, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.hero__title {
  font-size: 3rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  color: var(--white);
}

.hero__text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.hero__stats > * + * {
  margin-left: 3rem;
}

@supports (gap: 3rem) {
  .hero__stats > * + * {
    margin-left: 0;
  }
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.hero__cta {
  display: inline-block;
  background: var(--white);
  color: var(--medium-blue);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  font-family: var(--font-display);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   6. FOCUS SECTION
   ========================================================================== */

.focus {
  background: var(--off-white);
}

.focus__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.focus__card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  cursor: default;
  text-align: center;
}

.focus__card:hover {
  border-color: var(--platinate-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.focus__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.focus__card:hover .focus__icon {
  background: var(--platinate-blue);
  color: var(--white);
}

.focus__card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* ==========================================================================
   7. TEAM SECTION — Horizontal Carousel
   ========================================================================== */

.team__carousel {
  position: relative;
  margin-top: 3rem;
}

.team__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0 2rem;
}

.team__track::-webkit-scrollbar {
  display: none;
}

.team__card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.team__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team__photo-wrap {
  overflow: hidden;
}

.team__photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(30%);
  transition: filter var(--transition-base), transform var(--transition-slow);
}

.team__card:hover .team__photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team__info {
  padding: 1.25rem;
}

.team__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--black);
}

.team__role {
  font-size: 0.8125rem;
  color: var(--platinate-blue);
  font-weight: 600;
  margin-bottom: 0;
}

/* Carousel arrows */
.team__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--gray-800);
}

.team__arrow:hover {
  border-color: var(--platinate-blue);
  color: var(--platinate-blue);
  box-shadow: var(--shadow-blue);
}

.team__arrow--prev {
  left: -24px;
}

.team__arrow--next {
  right: -24px;
}

/* Bio overlay */
.team__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.team__overlay-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.team__overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-800);
  transition: all var(--transition-fast);
}

.team__overlay-close:hover {
  background: var(--gray-100);
  color: var(--black);
}

.team__bio-panel {
  display: none;
  flex-direction: row;
  gap: 2.5rem;
  padding: 2.5rem;
}

.team__bio-photo {
  flex: 0 0 260px;
}

.team__bio-photo img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.team__bio-text {
  flex: 1;
}

.team__bio-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team__bio-full {
  font-size: 0.9375rem;
  color: var(--gray-800);
  line-height: 1.7;
  margin-top: 1rem;
}

.team__bio-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--platinate-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.team__bio-link:hover {
  color: var(--sky-blue);
}

/* ==========================================================================
   8. PARTNERS SECTION
   ========================================================================== */

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.partners__logo {
  filter: grayscale(100%) opacity(0.5);
  transition: all var(--transition-base);
  max-height: 48px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.partners__logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   9. PORTFOLIO SECTION
   ========================================================================== */

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}

.portfolio__logo {
  max-height: 56px;
  width: auto;
  margin: 0 auto;
  display: block;
  filter: grayscale(1) brightness(0) invert(1) opacity(0.75);
  transition: all var(--transition-base);
}

.portfolio__logo:hover {
  filter: grayscale(1) brightness(0) invert(1) opacity(1);
  transform: scale(1.05);
}

/* Logos with white/light backgrounds need special handling */
.portfolio__logo--has-bg {
  filter: none;
  opacity: 0.85;
  border-radius: var(--radius-sm);
}

.portfolio__logo--has-bg:hover {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   10. NEWS SECTION
   ========================================================================== */

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.news__card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.news__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.news__card-body {
  padding: 1.5rem;
}

.news__card-date {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news__card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}

.news__more {
  display: inline-block;
  margin-top: 2rem;
  color: var(--platinate-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.news__more:hover {
  color: var(--sky-blue);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.pagination__link,
.pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination__link {
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

.pagination__link:hover {
  color: var(--platinate-blue);
  border-color: var(--platinate-blue);
}

.pagination__current {
  background: var(--platinate-blue);
  color: var(--white);
  border: 1px solid var(--platinate-blue);
}

/* ==========================================================================
   11. CONTACTS SECTION
   ========================================================================== */

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contacts__info {
  font-size: 1rem;
}

.contacts__email {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--platinate-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contacts__email:hover {
  color: var(--sky-blue);
}

.contacts__address {
  color: var(--gray-500);
  line-height: 1.7;
  margin-top: 1.5rem;
}

.contacts__social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contacts__social > * + * {
  margin-left: 1rem;
}

@supports (gap: 1rem) {
  .contacts__social > * + * {
    margin-left: 0;
  }
}

.contacts__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 0.75rem;
  font-weight: 600;
}

.contacts__social-link:hover {
  border-color: var(--platinate-blue);
  color: var(--platinate-blue);
  background: var(--blue-10);
}

/* ==========================================================================
   12. APPLICATION FORM
   ========================================================================== */

.apply {
  background: var(--off-white);
  padding: var(--section-padding);
}

.apply__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.apply__requirements {
  list-style: none;
  padding: 0;
}

.apply__requirements li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
  position: relative;
  padding-left: 1.5rem;
}

.apply__requirements li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--platinate-blue);
  font-weight: 700;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form__input,
.form__select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--white);
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus,
.form__select:focus {
  outline: none;
  border-color: var(--platinate-blue);
  box-shadow: 0 0 0 3px var(--blue-10);
}

.form__input--error {
  border-color: #EF4444;
}

.form__error {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.form__checkbox > * + * {
  margin-left: 0.75rem;
}

@supports (gap: 0.75rem) {
  .form__checkbox > * + * {
    margin-left: 0;
  }
}

.form__checkbox input {
  margin-top: 0.25rem;
  accent-color: var(--platinate-blue);
}

.form__file {
  border: 2px dashed var(--gray-200);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  font-size: 0.875rem;
  color: var(--gray-500);
}

.form__file:hover {
  border-color: var(--platinate-blue);
}

.form__submit {
  background: var(--platinate-blue);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
  letter-spacing: 0.02em;
}

.form__submit:hover {
  background: var(--sky-blue);
  box-shadow: var(--shadow-blue);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__success {
  background: #10B981;
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Select arrow indicator */
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0;
}

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

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links > * + * {
  margin-left: 2rem;
}

@supports (gap: 2rem) {
  .footer__links > * + * {
    margin-left: 0;
  }
}

.footer__link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Hero load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge  { animation: fadeInUp 0.6s ease 0.2s both; }
.hero__title  { animation: fadeInUp 0.6s ease 0.4s both; }
.hero__text   { animation: fadeInUp 0.6s ease 0.6s both; }
.hero__cta    { animation: fadeInUp 0.6s ease 0.8s both; }
.hero__stats  { animation: fadeInUp 0.6s ease 1s both; }

/* ==========================================================================
   15. NEWS PAGE STYLES
   ========================================================================== */

.news-page {
  padding: var(--section-padding);
  padding-top: calc(72px + 4rem);
}

.news-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.news-article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-padding);
  padding-top: calc(72px + 4rem);
}

.news-article__title {
  font-size: 2.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.news-article__meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.news-article__body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-800);
}

.news-article__body p {
  margin-bottom: 1.5rem;
}

.news-article__body h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.news-article__body h3 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.news-article__body a {
  color: var(--platinate-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.news-article__body a:hover {
  color: var(--sky-blue);
}

.news-article__body img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.news-article__body blockquote {
  border-left: 3px solid var(--platinate-blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--gray-500);
  font-style: italic;
}

.news-article__body ul,
.news-article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}

.news-article__body ol {
  list-style: decimal;
}

.news-article__body li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   16. ADMIN STYLES
   ========================================================================== */

.admin__header {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
}

.admin__header-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--black);
  text-decoration: none;
}

.admin__nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.admin__nav > * + * {
  margin-left: 1.5rem;
}

@supports (gap: 1.5rem) {
  .admin__nav > * + * {
    margin-left: 0;
  }
}

.admin__nav a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.admin__nav a:hover,
.admin__nav a.active {
  color: var(--platinate-blue);
}

.admin__content {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.admin__content h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Admin Tables */
.admin table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.admin table th,
.admin table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.admin table th {
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  background: var(--off-white);
}

.admin table tr:hover td {
  background: var(--off-white);
}

/* Admin Buttons */
.admin__btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.admin__btn--primary {
  background: var(--platinate-blue);
  color: var(--white);
}

.admin__btn--primary:hover {
  background: var(--sky-blue);
}

.admin__btn--secondary {
  background: var(--off-white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}

.admin__btn--secondary:hover {
  border-color: var(--gray-500);
}

.admin__btn--danger {
  background: #FEE2E2;
  color: #DC2626;
}

.admin__btn--danger:hover {
  background: #DC2626;
  color: var(--white);
}

.admin__btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Admin Forms */
.admin .form__group {
  margin-bottom: 1.25rem;
}

.admin .form__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.admin .form__actions > * + * {
  margin-left: 0.75rem;
}

@supports (gap: 0.75rem) {
  .admin .form__actions > * + * {
    margin-left: 0;
  }
}

/* Flash Messages */
.flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.flash--notice,
.flash--success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.flash--alert,
.flash--error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.flash--info {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

/* ==========================================================================
   17. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .focus__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__stats {
    gap: 2rem;
  }

  .team__arrow {
    display: none;
  }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  /* Section spacing */
  .section {
    padding: var(--section-padding-mobile);
  }

  .apply {
    padding: var(--section-padding-mobile);
  }

  /* Navigation — mobile */
  .nav__links {
    display: none;
  }

  .nav__right {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: none;
  }

  .nav__mobile--open {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(72px + 3rem);
    padding-bottom: 3rem;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero__stats > * + * {
    margin-left: 0;
    margin-top: 1.5rem;
  }

  @supports (gap: 1.5rem) {
    .hero__stats > * + * {
      margin-top: 0;
    }
  }

  .hero__stat-value {
    font-size: 2rem;
  }

  /* Focus */
  .focus__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* News */
  .news__grid,
  .news-page__grid {
    grid-template-columns: 1fr;
  }

  /* Contacts */
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Application form */
  .apply__wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Team overlay */
  .team__bio-panel {
    flex-direction: column;
    gap: 1.5rem;
  }

  .team__bio-photo {
    flex: none;
    max-width: 200px;
  }

  .team__card {
    flex: 0 0 220px;
  }

  .team__photo {
    height: 240px;
  }

  /* News article */
  .news-article {
    padding-top: calc(72px + 2rem);
  }

  .news-page {
    padding-top: calc(72px + 2rem);
  }

  /* Container */
  .container {
    padding: 0 1.25rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .focus__grid {
    grid-template-columns: 1fr;
  }

  .partners__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__text {
    font-size: 1.0625rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   LEGAL DISCLAIMER BAR
   ========================================================================== */

.disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  border-top: 1px solid var(--gray-100);
  padding: 0.75rem 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.disclaimer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.disclaimer__text {
  font-size: 0.6875rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

.disclaimer__close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.disclaimer__close:hover {
  color: var(--black);
}

@media (max-width: 768px) {
  .disclaimer {
    padding: 0.625rem 0;
  }

  .disclaimer__text {
    font-size: 0.625rem;
  }
}
