/* =========================
   FONTS
========================= */

@font-face {
  font-family: 'Consolas';
  src: url('fonts/consolas.ttf');
  font-weight: auto;
}

@font-face {
  font-family: 'SofiaSans';
  src: url('fonts/SofiaSans-VariableFont_wght.ttf');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'FingerPaint';
  src: url('fonts/FingerPaint-Regular.ttf');
  font-weight: auto;
}


/* =========================
   BASE LAYOUT
========================= */

body {
  font-family: 'Consolas', monospace;
  color: white;
  background: url('images/background.png') no-repeat;
  background-size: 100% auto;
  background-color: black;
}

main {
  margin-top: 0;
}

.main-padding {
  padding-top: clamp(80px, calc(9.49vw + 7.09px), 140px);
}

.main-padding-cards {
  padding-top: clamp(60px, calc(12.66vw - 37.22px), 140px);
}


.main-block {
  margin-top: clamp(30px, 3vw, 100px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* =========================
   NAVBAR / FOOTER
========================= */

.navbar-blur {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-icons {
  height: clamp(38px, calc(1.58vw + 25.85px), 48px);
  margin: 0;
  padding: 0;
}

.footbar {
  background-color: #1B1B1B;
}

/* =========================
   TYPOGRAPHY - TITLES
========================= */

.big-title {
  font-family: 'SofiaSans', sans-serif;
  font-feature-settings: 'locl' 0;
  font-size: clamp(25px, calc(3.96vw - 5.38px), 50px);
  font-weight: 700;
}

.sub-title {
  font-family: 'Consolas', monospace;
  font-feature-settings: 'locl' 0;
  font-size: clamp(15px, calc(1.90vw + 0.43px), 27px);
  font-weight: normal;
}

.title {
  font-family: 'SofiaSans';
  font-feature-settings: 'locl' 0;
  font-size: clamp(30px, calc(4.75vw - 6.45px), 60px);
  font-weight: 800;
}

.title.medium {
  font-size: clamp(26px, calc(3.01vw + 2.91px), 45px);
  font-weight: 900;
}

.title.small {
  font-size: clamp(24px, calc(1.27vw + 14.28px), 32px);
  font-weight: 800;
}

.title.small-height {
  line-height: clamp(25px, calc(2.37vw + 6.77px), 40px);
}

.main-title {
  font-family: 'SofiaSans';
  font-feature-settings: 'locl' 0;
  font-size: clamp(100px, calc(12.66vw + 2.78px), 180px);
  font-weight: 400;
}

.main-subtitle {
  font-family: 'Consolas', monospace;
  font-feature-settings: 'locl' 0;
  font-size: clamp(20px, calc(2.37vw + 1.77px), 35px);
}

/* =========================
   TYPOGRAPHY - TEXT
========================= */

.ordinary-text {
  font-family: 'Consolas', monospace;
  font-feature-settings: 'locl' 0;
  font-size: clamp(22px, calc(1.47vw + 7.42px), 28px);
  line-height: clamp(40px, calc(4.90vw - 8.65px), 60px);
}

/* От 768 до 992 фиксированный размер основного текста */
@media (max-width: 992px) {
  .ordinary-text {
    font-size: 18px;
    line-height: 30px;
  }
}

.ordinary-text.small-height {
  line-height: clamp(25px, calc(2.37vw + 6.77px), 40px);
}

.ordinary-text .italic {
  font-style: italic;
}

.ordinary-big-text {
  font-family: 'Consolas', monospace;
  font-feature-settings: 'locl' 0;
  font-size: clamp(28px, calc(3.48vw + 1.27px), 50px);
  line-height: clamp(35px, calc(3.16vw + 15.70px), 60px);
}

.signature {
  font-family: 'FingerPaint', cursive;
  font-feature-settings: 'locl' 0;
  font-size: clamp(14px, calc(0.5vw + 12px), 22px);
}

.ps-text {
  font-family: 'SofiaSans';
  font-feature-settings: 'locl' 0;
  font-size: clamp(13px, calc(1.58vw + 0.85px), 23px);
  font-weight: 100;
}

.button-text {
  font-family: 'SofiaSans';
  font-feature-settings: 'locl' 0;
  font-size: clamp(16px, calc(1.74vw + 2.63px), 27px);
  text-align: center;
}

.status-text {
  font-family: 'SofiaSans';
  font-feature-settings: 'locl' 0;
  font-size: clamp(25px, calc(3.16vw + 0.70px), 45px);
  font-weight: 200;
}

.status-text .bold {
  font-weight: 700;
}

.my-navbar-text a{
  font-family: 'Consolas', monospace;
  font-feature-settings: 'locl' 0;
  font-size: clamp(20px, 2vw, 30px);
}


/* =========================
   LAYOUT HELPERS
========================= */

.row-negative {
  transform: translateY(-30px) !important;
}

@media (min-width: 768px) {
  .row-negative { transform: translateY(-40px) !important; }
}

@media (min-width: 992px) {
  .row-negative { transform: translateY(-50px) !important; }
}

.picture-overlap {
  transform: translateY(clamp(-18px, calc(-5.06vw + 20.89px), -50px));
}

.signature-overlap {
  transform: translateY(clamp(-15px, calc(-2.37vw + 3.23px), -30px));
}

.row-fix {
  margin-bottom: clamp(-30px, calc(-2.37vw + -11.77px), -45px);
}

/* Фикс каруселей */
@media (max-width: 992px) { 
  .row-fix-2 {
    margin-bottom: -20px;
  }
}

@media (min-width: 768px) {
  .row-fix-top {
    margin-top: -85px;
  }
}

@media (min-width: 992px) {
  .row-fix-top {
    margin-top: clamp(-150px, calc(15.82vw + -271.52px), -50px);
  }
}

@media (min-width: 1200px) {
  .row-fix-top {
    margin-top: clamp(-180px, calc(4.75vw + -216.46px), -150px);
  }
}


@media (min-width: 1400px) {
  .row-fix-top {
    margin-top: -200px;
  }
}

.text-shrink {
  min-width: 0;
  font-size: clamp(12px, 2.5vw, 32px);
  white-space: nowrap;
}


/* =========================
   IMAGES / COMPONENTS
========================= */

.hero-image {
  width: 60%;
  margin: 0 auto;
}

.info-card {
  width: clamp(110px, calc(17.41vw + -23.67px), 220px);
}

.contact-icon {
  width: clamp(40px, calc(5.54vw - 2.53px), 75px);
  border-radius: clamp(15px, calc(1.58vw + 2.85px), 25px);
}

.border-grey {
  border-color: #808080 !important;
}

/* =========================
   CONTAINER-FIX
========================= */

.container-fix {
  padding-left: 0;
  padding-right: 0;
}

/* =========================
   CAROUSEL
========================= */

.carusel-point {
  width: 15px !important;
  height: 15px !important;
  border-radius: 50%;
  background-color: #808080;
  border: none;
}


/* =========================
   GALLERY GRID
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(8px, calc(1.27vw + -1.72px), 16px);
}

.gallery-grid .item {
  overflow: hidden;
  border-radius: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .big { grid-column: span 2; grid-row: span 2; }
.gallery-grid .tall { grid-row: span 2; }

/* =========================
   SPECIAL SECTIONS
========================= */

.code-header {
  position: relative;
  overflow: hidden;
}

.code-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/background-code.gif');
  background-size: 140%;
  background-position: 0% 60%;
  filter: blur(clamp(2px, calc(0.32vw + -0.43px), 4px));
  transform: scale(1.05);
  z-index: 0;
}

.code-header > * {
  position: relative;
  z-index: 2;
}


/* =========================
   BUTTONS
========================= */

.button-container {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid white;
  border-radius: 55px;
  width: 45%;
}


/* =========================
   DROPDOWN MENU
========================= */

.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  background: rgba(20, 20, 20, 0.952);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 10px 0;
}

.dropdown-item {
  color: #e0e0e0;
  font-size: 24px;
  padding: 10px 20px;
  margin-right: 30px;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
