*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, sans-serif;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  padding: 5px;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.controls-container {
    display: flex;
    justify-content: space-between;
    gap: 65px;
    background-color: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 25px 0 25px;
    padding: 20px;
    border-radius: 12px;
}
    
.controls-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.controls-column h3 {
    text-align: center;
    margin-bottom: 10px;
}

.controls-column input {
    margin-top: 5px;
}

.wrap {
    display: block;
    max-width: 1440px;
    margin: 20px auto 0;
    padding: 10px 25px;
    /* background-color: #f9fafb; */
    /* background: linear-gradient(135deg, #f9fafb, #e9f0f7); */
    background: linear-gradient(135deg, #f0f5f8 10%, #f9fafb 50%, #e3eaf0 90%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.main-title {
    text-align: center;
    color: #383838;
    letter-spacing: -0.02em;
    font-size: 28px;
    font-weight: 500;
}

.sec-title {
    font-weight: 400;
    font-size: 18px;
    color: #2c2c2c;
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.sec-title-bold {
    font-weight: 600;
    font-size: 18px;
    color: #2c2c2c;
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: -0.01em; 
}

.select {
    border-radius: 4px;
    font-size: 16px;
    padding: 2px 5px;
    color: #2c2c2c;
    border: 1px solid #c7c7c7;
}

.select:focus {
    outline: none;
}

.select-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 300px;
    margin-bottom: 5px;
}

label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    /* max-width: 375px; */
    width: 100%;
    height: 40px;
}

input[type="text"] {
    border-radius: 4px;
    font-size: 16px;
    padding: 2px 5px;
    color: #2c2c2c;
    border: 1px solid #c7c7c7;
}

input[type="file"] {
    max-width: 200px;
}

.btn-primary {
  background-color: #4da3ec; /* было #2b84e0 */
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(77, 163, 236, 0.2);
}

.btn-primary:hover {
  background-color: #3a92dd;
  box-shadow: 0 6px 16px rgba(77, 163, 236, 0.3);
}

.btn-primary:active {
  background-color: #317dc8;
}

.btn-secondary {
  background-color: #e5eff7;
  color: #2b84e0;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #d6e7f4;
}

.btn-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    gap: 15px;
}

.previewFrame {
    border: 1px solid #ccc;
    border-radius: 12px;
    margin-top: 20px;
}

#projectModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  z-index: 9999;
  width: 500px;
  font-family: 'Inter', sans-serif;
}

#projectModal label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 3px;
}

#projectModal input[type="text"] {
    border-radius: 4px;
    font-size: 16px;
    padding: 2px 5px;
    color: #2c2c2c;
    border: 1px solid #c7c7c7;
    width: 100%;
}

#projectModal input[type="text"]:focus {
  outline: none;
  border-color: #4da3ec;
  box-shadow: 0 0 0 2px rgba(77, 163, 236, 0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9998;
}

.modal-window {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  z-index: 9999;
  width: 320px;
  font-family: 'Inter', sans-serif;
}
