:root
{
  --background: #f4f4f1;
  --surface: #ffffff;
  --text: #202020;
  --muted: #6d6d68;
  --border: #d8d8d2;
  --accent: #202020;
}

*
{
  box-sizing: border-box;
}

html
{
  scroll-behavior: smooth;
}

body
{
  margin: 0;

  background: var(--background);
  color: var(--text);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
}

a
{
  color: inherit;
  text-decoration: none;
}

.container
{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}


/* Header */

.site-header
{
  border-bottom: 1px solid var(--border);
  background: rgba(244, 244, 241, 0.94);
}

.header-inner
{
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo
{
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav
{
  display: flex;
  gap: 28px;

  font-size: 14px;
}

.main-nav a
{
  color: var(--muted);
}

.main-nav a:hover
{
  color: var(--text);
}

.main-nav a.main-nav-active
{
  color: var(--text);
}

/* Intro */

.intro
{
  padding-top: 90px;
  padding-bottom: 70px;
}

.eyebrow
{
  margin: 0 0 16px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.intro h1
{
  margin: 0;

  max-width: 800px;

  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-text
{
  max-width: 560px;
  margin: 30px 0 0;

  color: var(--muted);
  font-size: 18px;
}


/* Model grid */

.models
{
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;
}

.model-card
{
  overflow: hidden;

  border: 1px solid var(--border);
  background: var(--surface);
}

.model-image
{
  aspect-ratio: 4 / 3;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e7e7e2;

  border-bottom: 1px solid var(--border);
}

.model-image img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-image.placeholder
{
  color: #8a8a84;

  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.model-content
{
  padding: 25px;
}

.model-content h2
{
  margin: 0 0 10px;

  font-size: 23px;
  line-height: 1.15;
}

.model-content p
{
  min-height: 72px;
  margin: 0 0 22px;

  color: var(--muted);
}


/* Files */

.file-list
{
  display: flex;
  gap: 8px;
}

.file-button
{
  min-width: 110px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 10px 12px;

  border: 1px solid var(--border);

  font-family: monospace;
  font-size: 13px;
}

.file-button small
{
  color: var(--muted);
}

.file-button:hover
{
  border-color: var(--text);
}

/* Test style*/

.test-style
{
  /*отступы сверху и снизу от соседних элементов*/
  margin-top: 80px;
  margin-bottom: 80px;
  
  /*отступ от края элемента до содержимого*/
  padding: 20px 30px;
  
  /*отображать будет Flexbox, с выравниванием по центру и по расстоянию между, если несколько*/
  display: flex;
  align-items: center;
  /*justify-content: space-between;*/
  /*с расстоянием 30пикс*/
  gap: 30px;
  /*в рамке цвета border и фоном surface*/
  border: 1px solid var(--border);
  background: var(--surface);
  /*закруглим границы*/
  border-radius: 8px;
  /**/
  /**/
  /**/
}

.test-style h2
{
  margin: 0 0 8px;

  font-size: 30px;
  letter-spacing: -0.03em;
}

.test-style p
{
  margin: 0;
  color: var(--muted);
}

/* About */

.about-content
{
  display: grid;
  gap: 1px;

  border: 1px solid var(--border);
  background: var(--border);
}

.about-block
{
  padding: 30px;

  background: var(--surface);
}

.about-block h2
{
  margin: 0 0 12px;

  font-size: 24px;
  line-height: 1.15;
}

.about-block p
{
  max-width: 700px;
  margin: 0 0 14px;

  color: var(--muted);
}

.about-block p:last-child
{
  margin-bottom: 0;
}

/* Upload form */

.upload-form
{
  display: grid;
  gap: 24px;
}

.upload-block
{
  padding: 32px;

  border: 1px solid var(--border);
  background: var(--surface);
}

.upload-block-header
{
  margin-bottom: 30px;
}

.upload-block-header .eyebrow
{
  margin-bottom: 10px;
}

.upload-block-header h2
{
  margin: 0 0 8px;

  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.upload-block-header > p:last-child
{
  margin: 0;

  color: var(--muted);
}


/* Form fields */

.form-field
{
  display: grid;
  gap: 8px;

  margin-top: 24px;
}

.form-field:first-of-type
{
  margin-top: 0;
}

.form-field label
{
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field textarea
{
  width: 100%;

  padding: 13px 14px;

  border: 1px solid var(--border);
  border-radius: 0;

  background: var(--surface);
  color: var(--text);

  font: inherit;
  font-size: 15px;

  outline: none;
}

.form-field textarea
{
  min-height: 140px;

  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus
{
  border-color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder
{
  color: #999993;
}


/* File dropzone */

.file-dropzone
{
  min-height: 180px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px dashed var(--border);

  background: var(--background);

  text-align: center;

  cursor: pointer;
}

.file-dropzone.dragover
{
  border-color: var(--text);

  background: var(--surface);
}

.file-dropzone:hover
{
  border-color: var(--text);
}

.file-dropzone-title
{
  font-size: 17px;
  font-weight: 600;
}

.file-dropzone-link
{
  color: var(--muted);

  font-size: 14px;
}

.file-dropzone small
{
  margin-top: 8px;

  color: var(--muted);

  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}


/* Hide native file input */

.file-input
{
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


/* Selected files */

.selected-files
{
  display: grid;
  gap: 6px;

  margin-top: 12px;
}

.selected-file
{
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 11px 13px;

  border: 1px solid var(--border);

  font-family: monospace;
  font-size: 13px;
}

.selected-file-remove
{
  padding: 0;

  border: 0;

  background: none;
  color: var(--muted);

  font-family: inherit;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
}

.selected-file-remove:hover
{
  color: var(--text);
}

.selected-file small
{
  color: var(--muted);
}


/* Submit */

.upload-submit
{
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 10px 0 80px;
}

.upload-submit p
{
  max-width: 560px;

  margin: 0;

  color: var(--muted);

  font-size: 13px;
}

.upload-submit .button
{
  border: 0;

  cursor: pointer;
}

/* Upload teaser */

.upload-teaser
{
  margin-top: 80px;
  margin-bottom: 80px;

  padding: 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  border: 1px solid var(--border);
  background: var(--surface);
}

.upload-teaser h2
{
  margin: 0 0 8px;

  font-size: 30px;
  letter-spacing: -0.03em;
}

.upload-teaser p:last-child
{
  margin: 0;
  color: var(--muted);
}


/* Buttons */

.button
{
  display: inline-block;

  padding: 13px 18px;

  background: var(--accent);
  color: white;

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
}

.button:hover
{
  opacity: 0.8;
}


/* Footer */

.site-footer
{
  border-top: 1px solid var(--border);
}

.footer-inner
{
  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--muted);

  font-size: 13px;
}


/* Mobile */

@media(max-width: 700px)
{
  .container
  {
    width: min(100% - 28px, 1120px);
  }

  .header-inner
  {
    min-height: 62px;

    align-items: flex-start;
    flex-direction: column;

    padding: 18px 0;
  }

  .main-nav
  {
    gap: 18px;
  }

  .intro
  {
    padding-top: 60px;
    padding-bottom: 45px;
  }

  .models
  {
    grid-template-columns: 1fr;
  }

  .upload-teaser
  {
    align-items: flex-start;
    flex-direction: column;

    margin-top: 50px;
    margin-bottom: 50px;

    padding: 28px;
  }

  .file-list
  {
    flex-wrap: wrap;
  }

  .footer-inner
  {
    min-height: 70px;
  }
}