    @font-face {
      font-family: "Sol Kol";
      src: url("fonts/ofont.ru_Sol Kol.ttf") format("truetype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background-color: #19142f;
      color: white;
      font-family: Arial, sans-serif;
    }

    .page {
      max-width: 1100px;
      width: calc(100% - 40px);
      margin: 30px auto;
      background-color: #302651;
      border-radius: 16px;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr 300px;
      grid-template-areas:
        "header header"
        "nav nav"
        "main aside"
        "footer footer";
    }

    header {
      grid-area: header;
      position: relative;
      min-height: 360px;
      padding: 40px;
      overflow: hidden;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #3a3e55;
    }

    .fhoto {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.8);
      z-index: 0;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        45deg,
        rgba(85, 0, 119, 0.2),
        rgba(0, 0, 0, 0.2),
        rgba(255, 51, 0, 0.2)
      );
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 560px;
    }

    header h1 {
      margin: 0;
      color: #f8c57e;
      font-family: "Sol Kol", Arial, Helvetica, sans-serif;
      font-size: 42px;
      line-height: 1.1;
      letter-spacing: 10px;
      text-shadow: 4px 0px 18px rgb(238, 196, 132);
    }

    header p {
      margin: 12px 0 0 0;
      color: white;
      font-size: 18px;
    }

    .hero-button {
      display: inline-block;
      margin-top: 22px;
      padding: 12px 18px;
      background-color: #f8c57e;
      color: #19142f;
      text-decoration: none;
      font-weight: bold;
      border-radius: 8px;
      transition: background-color 5s, transform 5s, opacity 5s;
    }

    .hero-button:hover {
      background-color: white;
      transform: translate(20px, -10px);
      opacity: 0.5;
    }

    .site-nav {
      grid-area: nav;
      padding: 0 30px;
      background-color: #3a2e65;
      border-bottom: 1px solid #3a3e55;
    }

    .menu-check {
      display: none;
    }

    .burger {
      display: none;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .nav-menu a {
      display: block;
      padding: 15px 0;
      color: white;
      text-decoration: none;
      font-weight: bold;
      transition: color 1s;
    }

    .nav-menu a:hover {
      color: #f8c57e;
    }

    .nav-item {
      position: relative;
    }

    .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 210px;
      padding: 8px 0;
      background-color: #3a2e65;
      border: 1px solid #3a3e55;
      border-radius: 10px;
      z-index: 10;
    }

    .submenu a {
      padding: 10px 16px;
      color: white;
      white-space: nowrap;
    }

    .submenu a:hover {
      background-color: #3a3e55;
      color: #f8c57e;
    }

    .nav-item:hover .submenu {
      display: block;
    }

    main {
      grid-area: main;
      padding: 30px;
    }

    .directions h2 {
      margin: 0 0 12px 0;
      color: #f8c57e;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    .directions-text,
    .effects-text {
      margin: 0 0 20px 0;
      color: #c9c9d6;
    }

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

    .card {
      flex: 1 1 260px;
      padding: 20px;
      background-color: #3a2e65;
      border: 1px solid #3a3e55;
      border-radius: 14px;
      transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    }

    .card:hover {
      border-color: #f8c57e;
      transform: translateY(-6px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    .card-top {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .number {
      width: 42px;
      height: 42px;
      flex-shrink: 0;
      background-color: #7b2cbf;
      color: white;
      border-radius: 50%;
      text-align: center;
      line-height: 42px;
      font-weight: bold;
    }

    .card h3 {
      margin: 0;
      font-size: 20px;
    }

    .card p {
      margin: 0;
      color: #d6d6e0;
    }

    .tag {
      margin-top: 15px;
      color: #f8c57e;
      font-weight: bold;
    }

    .publications{
      margin-top: 30px;
    }

    .publications h2 {
      margin: 0 0 18px 0;
      color: #f8c57e;
      font-size: 26px;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    .caption {
      margin-top: 15px;
      font-size: 16px;
      font-weight: bold;
      color:white;
    }

    .counter {
      margin-top: 10px;
      color: white;
    }

    .buttons {
      margin-top: 20px;
    }

    button {
      margin: 5px;
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      background-color:#f8c57e;
      color: #19142f;
      border-radius: 10px;
    }

    button:hover {
      background-color: #7b2cbf;
    }

    .hint {
      margin-top: 15px;
      color: rgb(158, 157, 157);
    }

    img {
      width: 100%;
      max-height: 100%;
      box-shadow: 1px 1px 5px rgb(36, 35, 35);
    }

    .home h2{
      margin: 0 0 18px 0;
      color: #f8c57e;
      font-size: 26px;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    .home ul {
      margin: 0;
      padding-left: 20px;
      color: #d6d6e0;
    }

    .home li {
      margin-bottom: 8px;
      margin-top: 8px;
    }

    .effects {
      margin-top: 30px;
    }

    .effects h2 {
      margin: 0 0 18px 0;
      color: #f8c57e;
      font-size: 26px;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    .effect-gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }

    .effect-card {
      flex: 1 1 220px;
      min-height: 190px;
      padding: 22px;
      border-radius: 16px;
      border: 1px solid #3a3e55;
      transition: transform 0.3s, filter 0.3s, opacity 0.3s;
    }

    .effect-card:hover {
      transform: translateY(-8px);
      filter: brightness(1.1);
    }

    .effect-card span {
      display: inline-block;
      margin-bottom: 18px;
      color: white;
      font-size: 34px;
      font-weight: bold;
      opacity: 0.35;
    }

    .effect-card h3 {
      margin: 0 0 10px 0;
      color: white;
      font-size: 21px;
      text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    }

    .effect-card p {
      margin: 0;
      color: #f2f2f5;
    }

    .effect-card-1 {
      background: linear-gradient(135deg, #19142f, #f8c57e);
    }

    .effect-card-2 {
      background: linear-gradient(135deg, #19142f, #7425ba);
    }

    .effect-card-3 {
      background: linear-gradient(135deg, #7b4b07, #f8c57e);
    }

    .schedule {
      margin-top: 30px;
      padding: 20px;
      background-color: #3a2e65;
      border: 1px solid #3a3e55;
      border-radius: 14px;
    }

    .schedule h2 {
      margin: 0 0 12px 0;
      color: #f8c57e;
      font-size: 24px;
       text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    .schedule ul {
      margin: 0;
      padding-left: 20px;
      color: #d6d6e0;
    }

    .schedule li {
      margin-bottom: 8px;
    }

    aside {
      grid-area: aside;
      margin: 30px 30px 30px 0;
      padding: 20px;
      background-color: #3a2e65;
      border: 1px solid #3a3e55;
      border-radius: 14px;
      align-self: start;
    }

    aside h2 {
      margin: 0 0 12px 0;
      color: #f8c57e;
      font-size: 24px;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    aside ul {
      margin: 0;
      padding-left: 20px;
      color: #d6d6e0;
    }
  
    aside li {
      margin-bottom: 8px;
    }

    aside a,
    .home a,
    .card a {
      text-decoration: none;
      color: #7b4b07;
    }

    .contacts {
      margin-top: 30px;
      padding: 20px;
      background-color: #3a2e65;
      border: 1px solid #3a3e55;
      border-radius: 14px;
    }

    .contacts h2 {
      margin: 0 0 12px 0;
      color: #f8c57e;
      font-size: 24px;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    }

    .back-top {
      position: fixed;
      right: 25px;
      bottom: 25px;
      width: 48px;
      height: 48px;
      background-color: #7b2cbf;
      color: white;
      border-radius: 50%;
      text-align: center;
      line-height: 42px;
      text-decoration: none;
      font-size: 24px;
      font-weight: 900;
      box-shadow: 0 4px 12px gray;
    }

    .back-top:hover {
      text-decoration: none;
      background-color: #7b4b07;
      color: white;
    }

    #notice h3 {
      margin-top: 0;
      margin-bottom: 10px;
    }

    #notice label {
      display: block;
      margin-top: 8px;
      font-size: 14px;
      font-weight: bold;
    }

    #notice input,
    #notice select,
    #notice textarea {
      width: 100%;
      box-sizing: border-box;
      padding: 7px;
      margin-top: 4px;
      border: 1px solid #b0b0b0;
      border-radius: 6px;
      font-family: Arial, Helvetica, sans-serif;
      font-size: 14px;
    }

    #notice input:focus,
    #notice select:focus,
    #notice textarea:focus {
      background-color: #d9e9f8;
      border-color: #0f2a52;
      outline: none;
    }

    #notice textarea {
      height: 55px;
    }

    .agreement {
      margin: 10px 0 0;
      font-size: 13px;
      line-height: 1.3;
    }

    #notice.agreement input {
      width: auto;
      margin: 0 5px 0 0;
      vertical-align: middle;
    }

    #notice.agreement label {
      display: inline;
      margin: 0;
      font-size: 13px;
      vertical-align: middle;
    }

    #notice button {
      width: 100%;
      padding: 9px;
      background-color: #f8c57e;
      color: #19142f;
      border: none;
      border-radius: 6px;
      font-weight: bold;
    }

    #notice button:hover {
      background-color: #7b2cbf;
    }

    footer {
      grid-area: footer;
      padding: 20px 30px;
      background-color: #3a2e65;
      border-top: 1px solid #3a3e55;
      color: #c9c9d6;
      text-align: center;
      font-size: 14px;
    }

    .theme-control {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      color: white;
      font-weight: bold;
      cursor: pointer;
    }

    .theme-control input {
      width: 18px;
      height: 18px;
      accent-color: #f8c57e;
      cursor: pointer;
    }

    .page,
    nav,
    .card,
    .schedule,
    aside,
    footer {
      transition:
        background-color 0.5s,
        color 0.5s,
        border-color 0.5s;
    }

    body:has(.theme-check:checked) {
      background-color: #f2f3f7;
      color: #19142f;
    }

    body:has(.theme-check:checked) .page {
      background-color: #ffffff;
    }

    body:has(.theme-check:checked) .site-nav,
    body:has(.theme-check:checked) footer {
      background-color: #eef0f5;
      border-color: #d5d9e4;
    }

    body:has(.theme-check:checked) .nav-menu a,
    body:has(.theme-check:checked) .theme-control {
      color: #19142f;
    }

    body:has(.theme-check:checked) .nav-menu a:hover {
      color: #7b2cbf;
    }

    body:has(.theme-check:checked) .submenu {
      background-color: #ffffff;
      border-color: #d5d9e4;
    }

    body:has(.theme-check:checked) .submenu a:hover {
      background-color: #eef0f5;
      color: #7b2cbf;
    }

    body:has(.theme-check:checked) .directions-text,
    body:has(.theme-check:checked) .effects-text,
    body:has(.theme-check:checked) .card p,
    body:has(.theme-check:checked) .hero-content p,
    body:has(.theme-check:checked) .schedule ul,
    body:has(.theme-check:checked) aside ul,
    body:has(.theme-check:checked) .home ul,
    body:has(.theme-check:checked) footer {
      color: #33384a;
    }

    body:has(.theme-check:checked) .card,
    body:has(.theme-check:checked) .schedule,
    body:has(.theme-check:checked) .contacts,
    body:has(.theme-check:checked) aside {
      background-color: #f7f8fb;
      border-color: #d5d9e4;
    }

    body:has(.theme-check:checked) .card:hover {
      border-color: #7b2cbf;
    }

    body:has(.theme-check:checked) .number {
      background-color: #f8c57e;
      color: #11121a;
    }

    body:has(.theme-check:checked) .tag,
    body:has(.theme-check:checked) .directions h2,
    body:has(.theme-check:checked) .effects h2,
    body:has(.theme-check:checked) .schedule h2,
    body:has(.theme-check:checked) .contacts h2,
    body:has(.theme-check:checked) .home h2,
    body:has(.theme-check:checked) .publications h2,
    body:has(.theme-check:checked) .hero-content h1,
    body:has(.theme-check:checked) aside h2 {
      color: #7b2cbf;
    }

    @media (max-width: 900px) {
      .page {
        grid-template-columns: 1fr;
        grid-template-areas:
          "header"
          "nav"
          "main"
          "aside"
          "footer";
      }

       aside {
        margin: 0 30px 30px 30px;
      }

      .card {
        min-width: 220px;
      }
    }

    @media (max-width: 600px) {
      .page {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
      }

      header,
      main,
      aside,
      footer {
        padding: 20px;
      }

      header {
        min-height: 420px;
        padding: 24px 20px;
      }

      header h1 {
        font-size: 32px;
        letter-spacing: 0.5px;
      }

      header p {
        font-size: 16px;
      }

      .site-nav {
        padding: 15px 20px;
      }

      .burger {
        display: flex;
        width: 34px;
        height: 28px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
      }

      .burger span {
        height: 4px;
        background-color: white;
        border-radius: 4px;
      }

      body:has(.theme-check:checked) .burger span {
        background-color: #11121a;
      }

      .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 15px;
      }

      .menu-check:checked ~ .nav-menu {
        display: flex;
      }

      .nav-menu a {
        padding: 0;
      }

      .nav-item {
        width: 100%;
      }

      .submenu {
        display: block;
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 10px 0 0 15px;
        background-color: transparent;
        border: none;
        border-radius: 0;
      }

      .submenu a {
        padding: 6px 0;
        white-space: normal;
        font-size: 14px;
        color: #c9c9d6;
      }

      body:has(.theme-check:checked) .submenu {
        background-color: transparent;
        border: none;
      }

      body:has(.theme-check:checked) .submenu a {
        color: #33384a;
      }

      .theme-control {
        margin-left: 0;
        align-self: flex-start;
      }

      aside {
        margin: 30px;
        border-left: none;
        border-right: none;
        border-radius: 0;
      }

      .cards {
        gap: 15px;
      }

      .card {
        flex-basis: 100%;
        min-width: 0;
      }

      .directions h2,
      .schedule h2,
      .effects h2, 
      .publications h2,
      .home h2
      .contacts h2 {
        font-size: 22px;
      }

      .effect-gallery {
        gap: 15px;
      }

      .effect-card {
        flex-basis: 100%;
        min-height: 170px;
      }

    }
 