:root {
  /* Colors tuned to feel closer to cacak.rs, but still original */
  --color-primary: #204f87;
  --color-primary-dark: #183a63;
  --color-primary-light: #e5edf8;
  --color-accent: #f3b52c;
  --color-bg: #f4f6fb;
  --color-bg-alt: #edf1f8;
  --color-text: black;
  --color-muted: #666;
  --color-border: #d5d9e3;

  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1180px;

  --z-header: 1000;
  --z-cookie: 2000;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-appearance: none; /* For older Webkit/Blink browsers (Chrome, Safari, Opera) */
  -moz-appearance: none; /* For Firefox */
  appearance: none; /* Standard property */
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

body {
  font-family: "Geologica-cyrillic", "Geologica-latin";
  color: var(--color-text);
  background-color: #ffffff;
}




  .inner {
    max-width: 1536px;
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    background-color: #21409a;

    @media only screen and (max-width: 1024px) {
      grid-template-columns: auto;
      max-width: 768px;
    }

    .left-side {
      position: relative;
      color: white;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      background-color: #21409a;
      background-image: linear-gradient(
          145deg,
          rgba(33, 64, 154, 0) 0%,
          rgba(33, 64, 154, 0.75) 100%
        ),
        url("/assets/images/hero-img.webp");
      background-size: cover;
      background-position: center;
      padding: 90px 50px 50px 50px;
      @media only screen and (max-width: 640px) {
        padding: 112px 20px 50px 20px;
      }
      &.is-fading {
        h1 {
          opacity: 0;
        }
        p {
          &:nth-of-type(2) {
            opacity: 0;
          }
          &:nth-of-type(3) {
            opacity: 0;
          }
        }
      }
      h1 {
        position: relative;
        font-size: 40px;
        text-wrap: balance;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
        @media only screen and (max-width: 768px) {
          font-size: 36px;
          @media only screen and (max-width: 640px) {
            font-size: 28px;
          }
        }
        &::after {
          content: "";
          position: absolute;
          top: calc(100% + 24px);
          left: 0;
          width: 100%;
          height: 2px;
          background-color: white;
        }
      }
      p {
        &:nth-of-type(1) {
          position: absolute;
          font-size: 20px;
          margin-bottom: 24px;
          left: 0;
          padding: 8px 16px;
          top: 24px;
          background-color: #ed1c24;
          @media only screen and (max-width: 640px) {
            font-size: 18px;
            top: 48px;
          }
        }
        &:nth-of-type(2) {
          font-size: 18px;
          margin-bottom: 24px;
          display: flex;
          align-items: center;
          gap: 16px;
          opacity: 1;
          transition: opacity 0.3s ease-in-out;
          @media only screen and (max-width: 640px) {
            font-size: 16px;
          }
        }
        &:nth-of-type(3) {
          font-size: 20px;
          font-weight: 200;
          margin-top: 48px;
          line-height: 1.4;
          text-wrap: pretty;
          overflow: hidden;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          opacity: 1;
          transition: opacity 0.3s ease-in-out;
          @media only screen and (max-width: 640px) {
            font-size: 16px;
          }
        }
      }
      button {
        position: relative;
        display: flex;
        align-items: center;
        border: 2px solid #fff;
        margin-top: 48px;
        padding-right: 56px;
        background-color: transparent;
        backdrop-filter: blur(4px);
        font-weight: 500;
        background-color: white;

        padding: 12px 22px 12px 22px;
        font-size: 20px;
        transition: color 0.25s ease, background-color 0.25s ease;
        &:hover {
          background-color: transparent;
          color: white;
        }
        @media only screen and (max-width: 640px) {
          font-size: 18px;
          padding: 10px 18px;
          margin-top: 36px;
        }
        /* input {
          font-family: "Geologica-cyrillic", "Geologica-latin";
          background: transparent;
          color: #fff;
          padding: 12px 22px 12px 22px;
          font-size: 17px;
          &::placeholder {
            color: white;
          }
        }
        button {
          position: absolute;
          right: 0;
          width: 56px;
          background-color: white;
          height: 100%;
          img {
            right: 16px;
            width: 24px;
          }
        } */
      }
    }
    .right-side {
      position: relative;
      background-color: white;
      color: white;
      width: 100%;
      height: 100%;
      min-height: 560px;
      display: flex;
      justify-content: center;
      @media only screen and (max-width: 1024px) {
        min-height: 400px;
        @media only screen and (max-width: 640px) {
          min-height: 320px;
        }
      }
      .slider-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
        &.is-fading {
          opacity: 0;
        }
      }
      .slider-arrow {
        position: absolute;
        border: none;
        background: white;
        width: 48px;
        height: 48px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        right: 24px;
        top: 24px;
        transition: color 0.25s ease, background-color 0.25s ease;
        img {
          transition: filter 0.25s ease;
        }
        &:hover {
          background-color: #21409a;
          color: white;
          img {
            filter: invert(100%);
          }
        }
        &.prev {
          right: 92px;
        }
      }
    }
  }
}

main {
  .quick-links {
    width: 100%;
    padding: 75px 20px;
    display: flex;
    justify-content: center;
    @media only screen and (max-width: 768px) {
      padding: 50px 20px;
    }
    .inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      max-width: 1280px;
      @media only screen and (max-width: 1280px) {
        max-width: 1024px;
        @media only screen and (max-width: 1024px) {
          max-width: 768px;
        }
      }
      h2 {
        font-size: 30px;
        margin-bottom: 16px;
      }
      p {
        padding-top: 16px;
        font-size: 18px;
        margin-bottom: 40px;
        border-top: 1px solid black;
      }
      .grid {
        width: 100%;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        @media only screen and (max-width: 1280px) {
          grid-template-columns: repeat(4, 1fr);
          grid-template-rows: repeat(3, 1fr);
          @media only screen and (max-width: 1024px) {
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(4, 1fr);
            @media only screen and (max-width: 768px) {
              grid-template-columns: repeat(2, 1fr);
              grid-template-rows: repeat(5, 1fr);
            }
          }
        }
        a {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          gap: 12px;
          background-color: rgba(0, 64, 255, 0.15);
          padding: 20px;
          transition: background-color 0.25s ease, color 0.25s ease;
          &:nth-of-type(odd) {
            background-color: rgba(0, 64, 255, 0.075);
          }
          &:hover {
            background-color: #21409a;
            color: white;
            img {
              filter: invert(100%);
            }
          }
          img {
            height: 56px;
            width: auto;
            margin-left: 12px;
            transition: filter 0.25s ease;
            @media only screen and (max-width: 640px) {
              height: 48px;
            }
          }
          h3 {
            font-size: 20px;
            text-wrap: balance;
            @media only screen and (max-width: 768px) {
              font-size: 18px;
              @media only screen and (max-width: 640px) {
                font-size: 16px;
              }
            }
          }
        }
      }
    }
  }
  .news {
    width: 100%;
    padding: 75px 20px;
    display: flex;
    justify-content: center;
    background-color: rgba(0, 64, 255, 0.075);
    @media only screen and (max-width: 768px) {
      padding: 50px 20px;
    }
    .inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      max-width: 1536px;
      @media only screen and (max-width: 1280px) {
        max-width: 1024px;
        @media only screen and (max-width: 1024px) {
          max-width: 768px;
        }
      }

      h2 {
        font-size: 30px;
        margin-bottom: 60px;
        @media only screen and (max-width: 640px) {
          margin-bottom: 48px;
        }
      }

      & > a {
        margin-top: 60px;
        position: relative;
        display: flex;
        align-items: center;
        border: 2px solid black;
        padding-right: 56px;
        font-weight: 500;
        background-color: transparent;

        padding: 12px 22px 12px 22px;
        font-size: 20px;
        transition: color 0.25s ease, background-color 0.25s ease;
        &:hover {
          background-color: #21409a;
          color: white;
        }
        @media only screen and (max-width: 640px) {
          font-size: 18px;
          padding: 10px 18px;
          margin-top: 48px;
        }
      }

      .grid {
        width: 100%;
        display: grid;
        gap: 24px;
        grid-template-columns: repeat(4, 1fr);
        @media only screen and (max-width: 1536px) {
          grid-template-columns: repeat(3, 1fr);
          @media only screen and (max-width: 1024px) {
            grid-template-columns: repeat(2, 1fr);
            @media only screen and (max-width: 640px) {
              grid-template-columns: repeat(1, 1fr);
            }
          }
        }
        a {
          position: relative;
          width: 100%;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          transition: transform 0.25s ease;
          box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1),
            0 1px 2px -1px rgb(0 0 0 / 0.1);
          &:hover {
            transform: translateY(-6px);
          }
          img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            object-position: center;
          }
          & > p {
            position: absolute;
            font-size: 14px;
            background-color: #ed1c24;
            color: white;
            top: 20px;
            left: 0;
            line-height: 1.6;
            padding: 2px 8px;
          }
          h3 {
            background-color: white;
            width: 100%;
            height: 100%;
            padding: 20px;
            font-size: 20px;
            text-wrap: balance;
            &:hover {
              color: rgba(0, 0, 0, 0.8);
            }
            p {
              overflow: hidden;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
            }
            @media only screen and (max-width: 768px) {
              font-size: 18px;
              @media only screen and (max-width: 640px) {
                font-size: 16px;
              }
            }
          }
        }
      }
    }
  }
}

.site-footer {
  background: #21409a;
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  font-size: 14px;

  a {
    color: #ffffff;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  .inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
  }

  .footer-column {
    flex: 1 1 200px;
    min-width: 220px;
  }

  /* Brand block */
  .footer-brand {
    .footer-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;

      img {
        width: 56px;
        height: auto;
      }

      .footer-site-name {
        display: block;
        font-weight: 700;
        font-size: 16px;
      }

      .footer-site-desc {
        display: block;
        font-size: 13px;
        opacity: 0.8;
      }
    }

    .footer-address,
    .footer-email {
      margin: 4px 0;
      line-height: 1.4;
    }
  }

  /* Links */
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;

    li + li {
      margin-top: 4px;
    }

    a {
      opacity: 0.9;

      &:hover {
        opacity: 1;
      }
    }
  }

  /* Contact form */
  .footer-contact {
    .footer-contact-form {
      margin-top: 8px;

      .form-row {
        margin-bottom: 8px;

        label {
          display: block;
          margin-bottom: 4px;
          font-size: 13px;
        }

        input,
        textarea {
          width: 100%;
          padding: 8px 10px;
          border: 1px solid rgba(255, 255, 255, 0.25);
          background: rgba(255, 255, 255, 0.05);
          color: #ffffff;
          font-family: inherit;
          font-size: 13px;

          &::placeholder {
            color: rgba(255, 255, 255, 0.6);
          }

          &:focus {
            outline: none;
            border-color: #ffffff;
          }
        }
      }

      .footer-submit-btn {
        display: inline-block;
        padding: 8px 16px;
        border: none;
        background: white;
        color: black;
        font-weight: 600;
        cursor: pointer;
        margin-top: 4px;
        border: 2px solid white;
        transition: background-color 0.25s ease, color 0.25s ease;

        &:hover {
          background-color: transparent;
          color: white;
        }

        &:hover {
          filter: brightness(1.05);
        }
      }
    }

    .footer-socials {
      margin-top: 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;

      span {
        margin-right: 4px;
        font-size: 13px;
      }

      a {
        font-size: 13px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        padding: 4px 10px;
      }
    }
  }

  /* Bottom area */
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 24px;
    padding-top: 12px;
    text-align: center;
    font-size: 12px;
    opacity: 0.85;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
    }

    .footer-column {
      min-width: 100%;
    }
  }
}

@font-face {
  font-family: "Geologica-cyrillic";
  src: url("assets/fonts/Geologica-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-display: swap; /* optional but recommended */
}

@font-face {
  font-family: "Geologica-latin";
  src: url("assets/fonts/Geologica-latin.woff2") format("woff2");
  font-style: normal;
  font-display: swap; /* optional but recommended */
}
