/* === BASE STYLES === */:root {
      --primary: #FF2D55;
      --secondary: #0A84FF;
      --accent: #FFD60A;
      --dark: #0D0D0F;
      --light: #F5F5F7;
      --text: #1D1D1F;
      --text-secondary: #86868B;
      --gradient-primary: linear-gradient(135deg, #FF2D55 0%, #FF6B88 100%);
      --gradient-secondary: linear-gradient(135deg, #0A84FF 0%, #4DA8FF 100%);
      --gradient-accent: linear-gradient(135deg, #FFD60A 0%, #FFE55C 100%);
      --shadow-sm: 0 2px 8px rgba(255, 45, 85, 0.1);
      --shadow-md: 0 4px 16px rgba(255, 45, 85, 0.15);
      --shadow-lg: 0 8px 32px rgba(255, 45, 85, 0.2);
      --shadow-xl: 0 16px 48px rgba(255, 45, 85, 0.25);
    }

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

    html, body {
      overflow-x: hidden;
      max-width: 100vw;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      color: var(--text);
      background: var(--dark);
      line-height: 1.6;
      font-size: 16px;
    }

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

    h1, h2, h3, h4 {
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 1rem;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 4.5rem);
      letter-spacing: -0.02em;
    }

    h2 {
      font-size: clamp(1.75rem, 4vw, 3.5rem);
      letter-spacing: -0.02em;
    }

    h3 {
      font-size: clamp(1.5rem, 3vw, 2.5rem);
      letter-spacing: -0.01em;
    }

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

    h5 {
      font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    }

    h6 {
      font-size: clamp(1rem, 1.25vw, 1.25rem);
    }

    /* Белый цвет для всех заголовков на главной странице */
    main h1,
    main h2,
    main h3,
    main h4,
    main h5,
    main h6,
    main section h1,
    main section h2,
    main section h3,
    main section h4,
    main section h5,
    main section h6,
    main .container h1,
    main .container h2,
    main .container h3,
    main .container h4,
    main .container h5,
    main .container h6 {
      color: #ffffff !important;
    }

    /* Белый цвет для всех заголовков на дополнительных страницах */
    section.container h1,
    section.container h2,
    section.container h3,
    section.container h4,
    section.container h5,
    section.container h6,
    section.container .row h1,
    section.container .row h2,
    section.container .row h3,
    section.container .row h4,
    section.container .row h5,
    section.container .row h6,
    section.container .col-lg-12 h1,
    section.container .col-lg-12 h2,
    section.container .col-lg-12 h3,
    section.container .col-lg-12 h4,
    section.container .col-lg-12 h5,
    section.container .col-lg-12 h6,
    section.container .card h1,
    section.container .card h2,
    section.container .card h3,
    section.container .card h4,
    section.container .card h5,
    section.container .card h6 {
      color: #ffffff !important;
    }

    p {
      margin-bottom: 1rem;
      color: var(--text-secondary);
    }

    a {
      color: var(--secondary);
      text-decoration: none;
      transition: all 0.3s ease;
    }

    a:hover {
      color: var(--primary);
    }

    .btn {
      display: inline-block;
      padding: 16px 32px;
      font-size: 1.125rem;
      font-weight: 600;
      border-radius: 12px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      cursor: pointer;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      min-width: 160px;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .btn:hover::before {
      width: 300px;
      height: 300px;
    }

    .btn-primary {
      background: var(--gradient-primary);
      color: white;
      box-shadow: var(--shadow-md);
      padding: 0.75rem 2rem;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
      color: white;
    }

    .btn-secondary {
      background: var(--gradient-secondary);
      color: white;
      box-shadow: var(--shadow-md);
    }

    .btn-secondary:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
      color: white;
    }

    .card {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 2rem;
      margin-bottom: 1.5rem;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: var(--shadow-sm);
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary);
    }

    .card p {
      color: var(--light);
    }

    .content-image {
      max-width: 100%;
      margin: 1.5rem auto;
      text-align: center;
    }

    .content-image img {
      max-width: 100%;
      height: auto;
      max-height: 400px;
      object-fit: contain;
      border-radius: 16px;
      box-shadow: var(--shadow-lg);
    }

    .content-image.portrait img {
      max-height: 350px;
      max-width: 300px;
    }

    .content-image.wide img {
      max-height: 300px;
      max-width: 100%;
    }

    .content-image figcaption {
      margin-top: 0.5rem;
      font-size: 0.875rem;
      opacity: 0.8;
      color: var(--text-secondary);
    }

    .table-responsive {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin: 2rem 0;
      border-radius: 16px;
      box-shadow: var(--shadow-md);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px);
    }

    thead {
      background: var(--gradient-primary);
    }

    th {
      padding: 1rem;
      text-align: left;
      font-weight: 600;
      color: white;
      white-space: nowrap;
    }

    td {
      padding: 1rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--light);
    }

    tbody tr:hover {
      background: rgba(255, 45, 85, 0.1);
    }

    /* === LAYOUT STYLES === */
    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(13, 13, 15, 0.9);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1rem 0;
    }

    header .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.1rem;
    }

    .logo img {
      height: 50px;
      max-height: 50px;
      width: auto;
      transition: transform 0.3s ease;
    }

    .logo:hover img {
      transform: scale(1.05);
    }

    header nav {
      display: flex;
      align-items: center;
      gap: 2rem;
      padding-left: 0;
      margin-bottom: 0;
      flex: 0 1 auto;
    }

    header .nav-menu {
      display: flex;
      list-style: none;
      gap: 2rem;
      margin: 0;
      padding: 0;
    }

    header .nav-menu a {
      color: var(--light);
      font-weight: 500;
      font-size: 1rem;
      position: relative;
    }

    header .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gradient-primary);
      transition: width 0.3s ease;
    }

    header .nav-menu a:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 4px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
    }

    .hamburger span {
      display: block;
      width: 28px;
      height: 3px;
      background: var(--light);
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }

    footer {
      background: rgba(13, 13, 15, 0.95);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 3rem 0 1rem;
      margin-top: 4rem;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .footer-section h4 {
      color: var(--light);
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }

    .footer-section p,
    .footer-section a {
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
    }

    .footer-section li {
      margin-bottom: 0.5rem;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom p {
      color: var(--text-secondary);
      font-size: 0.875rem;
    }

    @media (max-width: 767px) {
      header .container {
        flex-wrap: wrap;
      }

      header .logo {
        flex: 0 0 auto;
      }

      header .hamburger {
        display: flex;
        flex: 0 0 auto;
      }

      header nav {
        width: 100%;
        margin: 0;
        padding: 0;
      }

      header .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: rgba(13, 13, 15, 0.98);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
      }

      header .nav-menu.active {
        display: flex;
      }

      header .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      header .nav-menu li:last-child {
        border-bottom: none;
      }

      header .cta-button {
        width: 100%;
        margin-top: 1rem;
        max-width: 100%;
      }
    }

@media (max-width: 767px) {
      section {
        padding: 3rem 0;
      }

      .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
      }

      .hero-section::before,
      .hero-section::after {
        width: 80%;
      }

      .contents-nav ul {
        grid-template-columns: 1fr;
      }

      .footer-content {
        grid-template-columns: 1fr;
      }

      .cta-section {
        padding: 4rem 0;
      }

      .btn {
        padding: 14px 24px;
        font-size: 1rem;
      }
    }