/* Fonts - using Google Fonts Inter */
/* @font-face {
  font-family: "Angry";
  src: url("Angry.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
} */
/* @font-face {
  font-family: "Fatal";
  src: url("../fonts/Fatal (TRIAL) Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
} */

/* CSS Variables from template2 */
:root {
  --padding: 2rem;
  --gutter: 0.75rem;
  --columns: 12;
  --bg-color: #0a0a0a;
  --text-color: #e0e0e0;
  --accent-color: #ffd700;
  --secondary-color: #ff6b6b;
  --tertiary-color: #4ecdc4;
  --gold-color: #ffd700;
  --teal-color: #4ecdc4;
  --grid-color: rgba(255, 255, 255, 0.15);
  --row-spacing: 4rem;
  --x: 0px;
  --y: 0px;
}

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


body {
  /* font-family: "Fatal", sans-serif; */
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.03em;
  background: #ffd9b3;
  color: #ffffff;
  padding: var(--padding) 0 0 0;
  overflow-x: hidden;
  position: relative;
}

/* Фон с изображением */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/public/vendor/web_banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}



/* Grid overlay from template2 */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--padding);
  pointer-events: none;
  z-index: 10;
}

.grid-overlay-inner {
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: var(--gutter);
  height: 100%;
  width: 100%;
  margin: 0 auto;
}

.grid-column {
  height: 100%;
  border-left: 1px solid var(--grid-color);
  border-right: 1px solid var(--grid-color);
  border-top: none;
  border-bottom: none;
  opacity: 0.7;
}

/* Grid container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: var(--gutter);
  row-gap: var(--row-spacing);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Logo and login button - responsive positioning */
.logo-link {
  position: fixed;
  top: 2rem;
  left: 2rem;
  text-decoration: none;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.7;
}

.logo-text {
  font-size: 4rem;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.9);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}



.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 0.75rem;
  position: absolute;
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  width: 90%;
  max-width: 450px;
  min-height: 200px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3), 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
}

.modal-body {
  padding: 1rem 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.form-group input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-group input:focus {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.3);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  color: rgba(255, 215, 0, 0.9);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 215, 0, 0.5);
  color: rgba(255, 215, 0, 1);
  transform: translateY(-1px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

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

.modal-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.form-group input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-group input:focus {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.3);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  color: rgba(255, 215, 0, 0.9);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 215, 0, 0.5);
  color: rgba(255, 215, 0, 1);
  transform: translateY(-1px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

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

.modal-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.modal-footer a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

/* Comprehensive responsive design */
/* Extra large screens */
@media (max-width: 1400px) {
  .grid-overlay-inner {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Large screens */
@media (max-width: 1200px) {
  .grid-overlay-inner {
    grid-template-columns: repeat(10, 1fr);
  }
}

/* Medium large screens */
@media (max-width: 1200px) {
  body {
    padding: 2rem;
  }

  .logo-text {
    font-size: 4rem;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  body {
    padding: 1.5rem;
  }

  .grid-container {
    row-gap: 3rem;
  }

  .logo-text {
    font-size: 3.5rem;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  body {
    padding: 1.25rem;
  }

  .grid-overlay-inner {
    grid-template-columns: repeat(7, 1fr);
  }

  .logo-text {
    font-size: 2.2rem;
  }

  .login-btn {
    padding: 7px 14px;
    font-size: 1.8rem;
  }
}

/* Mobile landscape / Small tablet */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .grid-overlay-inner {
    grid-template-columns: repeat(8, 1fr);
  }

  .logo-text {
    font-size: 2.2rem;
  }

  .login-btn {
    padding: 6px 12px;
    font-size: 1rem;
  }

  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-width: 350px;
  }

  .modal-header {
    padding: 1.5rem 2rem;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }

  .form-group input {
    padding: 1rem 1.2rem;
    font-size: 1.8rem;
  }

  .submit-btn {
    padding: 1.2rem;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  /* Mobile header layout using grid positioning */

  .logo-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
  }

  .login-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    padding: 5px 8px;
    font-size: 0.85rem;
    border-radius: 5px;
  }

  .services-btn {
    position: fixed;
    top: 1rem;
    right: 8rem;
    z-index: 1001;
    padding: 5px 8px;
    font-size: 0.85rem;
    border-radius: 5px;
  }


  .logo-text {
    font-size: 2.2rem;
  }

  .grid-container {
    padding-top: 3.5rem;
  }

  body {
    padding: 1rem;
  }

  .grid-overlay-inner {
    grid-template-columns: repeat(8, 1fr);
  }

  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-width: 350px;
  }

  .modal-header {
    padding: 1.5rem 2rem;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }

  .form-group input {
    padding: 1rem 1.2rem;
    font-size: 1.8rem;
  }

  .submit-btn {
    padding: 1.2rem;
    font-size: 1.8rem;
  }
}

/* Large mobile */
@media (max-width: 600px) {
  body {
    padding: 0.875rem;
  }

  .grid-container {
    padding-top: 3.5rem;
  }

  .grid-overlay-inner {
    grid-template-columns: repeat(6, 1fr);
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .login-btn {
    padding: 5px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }

  .grid-container {
    padding-top: 3rem;
  }

  .grid-overlay-inner {
    grid-template-columns: repeat(5, 1fr);
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .login-btn {
    padding: 4px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
  }


  .modal-content {
    margin: 3% auto;
    width: 98%;
    max-width: 320px;
  }

  .modal-header {
    padding: 1.2rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 2.2rem;
  }

  .modal-close {
    font-size: 2.2rem;
  }

  .modal-body {
    padding: 1.5rem 1.2rem;
  }

  .login-form {
    gap: 1.4rem;
  }

  .form-group input {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
  }

  .modal-footer {
    padding-top: 1rem;
  }
}

