/* ==============================
   RESET / BASE
============================== */

:root {
  --color-dark: #061b60;
  --color-dark-2: #08266f;
  --color-blue: #075bff;
  --color-blue-2: #1363ff;
  --color-red: #e71925;
  --color-white: #ffffff;
  --color-bg: #f6fbff;
  --color-muted: #667aa6;
  --color-border: rgba(6, 27, 96, 0.14);

  --shadow-soft: 0 16px 45px rgba(5, 29, 90, 0.08);
  --shadow-card: 0 24px 60px rgba(5, 29, 90, 0.14);
  --shadow-button: 0 14px 28px rgba(4, 28, 97, 0.18);

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --container-width: 1760px;
  --page-padding: 56px;

  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-dark);
  background: var(--color-bg);
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  cursor: pointer;
}

/* ==============================
   PAGE
============================== */

.page {
  width: 100%;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(7, 91, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

/* ==============================
   HEADER
============================== */

.header {
  position: relative;
  z-index: 20;
  padding: 22px var(--page-padding) 0;
}

.header__container {
  max-width: var(--container-width);
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.logo__image {
  width: 250px;
  height: auto;
}

.header__nav {
  flex: 1 1 auto;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-dark);
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 10px;
  background: var(--color-blue);
  transition: width 0.2s ease;
}

.nav__link:hover {
  color: var(--color-blue);
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__phone {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

/* ==============================
   BUTTONS
============================== */

.button {
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--dark,
.button--primary {
  color: var(--color-white);
  background: linear-gradient(180deg, #062981 0%, #03195e 100%);
  box-shadow: var(--shadow-button);
}

.button--dark:hover,
.button--primary:hover {
  box-shadow: 0 18px 34px rgba(4, 28, 97, 0.25);
}

.button--light {
  color: var(--color-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(6, 27, 96, 0.2);
}

.button--light:hover {
  color: var(--color-blue);
  border-color: rgba(7, 91, 255, 0.4);
}

/* ==============================
   MAIN / HERO
============================== */

.main {
  position: relative;
}

.hero {
  position: relative;
  padding: 35px var(--page-padding) 0;
}

.hero__container {
  position: relative;
  max-width: var(--container-width);
  min-height: calc(100vh - 180px);
  margin: 0 auto;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: 540px;
  padding-top: 95px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(54px, 4.8vw, 76px);
  line-height: 0.95;
  letter-spacing: -2.4px;
  font-weight: 900;
}

.hero__title-word {
  display: inline-block;
  color: var(--color-dark);
}

.hero__title-word--red {
  margin-left: 16px;
  color: var(--color-red);
}

.hero__description {
  max-width: 560px;
  margin: 0 0 34px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-dark-2);
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__media {
  position: absolute;
  z-index: 1;
  top: -35px;
  right: -80px;
  width: 70%;
  height: 500px;
  pointer-events: none;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(to right, #f6fbff 0%, rgba(246, 251, 255, 0) 18%),
    linear-gradient(to bottom, #f6fbff 0%, rgba(246, 251, 255, 0) 18%),
    linear-gradient(to left, #f6fbff 0%, rgba(246, 251, 255, 0) 12%),
    linear-gradient(to top, #f6fbff 0%, rgba(246, 251, 255, 0) 16%);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;  
}

.hero__wave {
  position: absolute;
  z-index: 0;
  left: -140px;
  right: -140px;
  bottom: 150px;
  height: 170px;
  border-radius: 60% 40% 0 0;
  background:
    linear-gradient(135deg,
      rgba(7, 91, 255, 0.11),
      rgba(255, 255, 255, 0));
  transform: rotate(-3deg);
  pointer-events: none;
}

/* ==============================
   UPLOAD CARD
============================== */

.upload-card {
  position: absolute;
  z-index: 8;
  top: 370px;
  right: 180px;
  width: 640px;
  padding: 10px 48px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.upload-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.72));
}

.upload-card__title {
  margin: 0 0 5px;
  text-align: center;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--color-dark);
}

.upload-card__text {
  margin: 0 0 5px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-muted);
}

.upload-card__form {
  width: 100%;
}

/* ==============================
   UPLOAD FORM
============================== */

.upload-form {
  display: flex;
  flex-direction: column;
}

.upload-form__area {
  min-height: 90px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px dashed var(--color-blue);
  border-radius: 14px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.8),
      rgba(247, 251, 255, 0.75));
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.upload-form__area:hover {
  background: #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(7, 91, 255, 0.18),
    0 12px 30px rgba(7, 91, 255, 0.06);
}

.upload-form__area:active {
  transform: scale(0.995);
}

.upload-form__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-form__button {
  min-width: 160px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-blue);
  border-radius: 9px;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  color: var(--color-blue);
  background: rgba(255, 255, 255, 0.65);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.upload-form__area:hover .upload-form__button {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(7, 91, 255, 0.18);
}

.upload-form__submit {
  display: none;
}

.upload-form__admin {
  align-self: center;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--color-blue);
  opacity: 0.86;
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.upload-form__admin::before {
  content: "⚙";
  font-size: 12px;
}

.upload-form__admin:hover {
  opacity: 1;
  color: #0047d9;
  transform: translateY(-1px);
}

/* Состояние, если позже добавишь JS-класс при dragover */

.upload-form__area--active {
  background: #eef5ff;
  box-shadow:
    inset 0 0 0 1px rgba(7, 91, 255, 0.35),
    0 14px 32px rgba(7, 91, 255, 0.12);
}

.upload-form__area--error {
  border-color: var(--color-red);
}

.upload-form__area--error .upload-form__icon,
.upload-form__area--error .upload-form__title {
  color: var(--color-red);
}

.upload-form__file--selected {
  color: var(--color-dark);
  font-weight: 700;
}

/*==================================================
FOOTER
==================================================*/

.footer {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 100%;
  z-index: 20;
  padding: 0 var(--page-padding);
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(5, 1fr);

  background: rgba(255, 255, 255, .92);

  backdrop-filter: blur(18px);

  border-radius: 18px;

  box-shadow:
    0 18px 48px rgba(0, 0, 0, .08);

  overflow: hidden;
}

.footer__item {

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 18px;

  padding: 26px 10px;

  position: relative;
}

.footer__item:not(:last-child)::after {

  content: "";

  position: absolute;

  top: 22px;
  bottom: 22px;
  right: 0;

  width: 1px;

  background: #e6edf8;

}

.footer__icon {

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #eef4ff;

  flex-shrink: 0;
}

.footer__icon img {

  width: 48px;
  height: 48px;

}

.footer__text {

  font-size: 18px;

  line-height: 1.3;

  font-weight: 800;

  color: var(--color-dark);

}

/*==================================================
1700
==================================================*/

@media (max-width:1700px) {
  .upload-card {
  
      top: 340px;
  
    }

}


/*==================================================
1600
==================================================*/

@media (max-width:1600px) {

  .hero__content {

    width: 480px;

  }

  .hero__title {

    font-size: 68px;

  }

  .hero__description {

    font-size: 18px;

  }

  .upload-card {

    width: 620px;
    top: 300px;
    right: 120px;

  }

  .hero__media {

    width: 67%;

  }

}

/*==================================================
1440
==================================================*/

@media (max-width:1440px) {

  :root {

    --page-padding: 36px;

  }

  .logo__image {

    width: 210px;

  }

  .nav {

    gap: 28px;

  }

  .hero__content {

    width: 430px;

  }

  .hero__title {

    font-size: 62px;

  }

  .hero__description {

    font-size: 17px;

  }

  .hero__media {

    width: 66%;
    top: -10px;

  }

  .upload-card {

    width: 720px;
    right: 20px;
    top: 290px;

  }

  .upload-form__area {

    min-height: 170px;

  }

  .footer__text {

    font-size: 16px;

  }

}

/*==================================================
1280
==================================================*/

@media (max-width:1280px) {

  .nav {

    gap: 20px;

  }

  .nav__link {

    font-size: 14px;

  }

  .header__phone {

    display: none;

  }

  .hero__content {

    width: 390px;

  }

  .hero__title {

    font-size: 56px;

  }

  .hero__buttons {

    flex-wrap: wrap;

  }

  .hero__media {

    width: 63%;

  }

  .upload-card {

    width: 640px;
    top: 250px;

  }

  .footer__text {

    font-size: 15px;

  }

}

/*==================================================
1180
==================================================*/

@media (max-width:1180px) {
  .upload-card {  
      
      top: 220px;
      width: 500px;
  
    }
}

/*==================================================
1024
==================================================*/

@media (max-width:1024px) {

  .page {

    height: auto;
    overflow: visible;

  }

  .header {

    padding-top: 18px;

  }

  .header__nav {

    display: none;

  }

  .hero {

    padding-top: 20px;

  }

  .hero__container {

    display: flex;
    flex-direction: column;

    min-height: auto;

  }

  .hero__content {

    width: 100%;
    max-width: 700px;

    padding-top: 20px;

  }

  .hero__media {

    position: relative;

    width: 100%;

    right: auto;
    top: auto;

    height: 340px;

  }

  .hero__image {

    object-position: center;

  }

  .upload-card {

    position: relative;

    top: auto;
    right: auto;

    width: 100%;

    margin-top: -30px;

  }

  .footer {

    position: relative;

    margin-top: 40px;

    bottom: auto;

  }

  .footer__container {

    grid-template-columns: repeat(2, 1fr);

  }

  .footer__item:nth-child(2n) {

    border-right: none;

  }

  .footer__item {

    border-bottom: 1px solid #edf2fb;

  }

  .footer__item:last-child {

    grid-column: 1/3;

  }

}

/*==================================================
940
==================================================*/

@media (max-width:940px) {
  .upload-card {

    top: -20px;

  }
}

/*==================================================
768
==================================================*/

@media (max-width:768px) {

  .header {

    padding: 16px;

  }

  .hero {

    padding: 16px;

  }

  .footer {

    padding: 16px;

  }

  .header__actions {

    display: none;

  }

  .logo__image {

    width: 180px;

  }

  .hero__title {

    font-size: 48px;

  }

  .hero__title-word {

    display: block;

  }

  .hero__title-word--red {

    margin-left: 0;

  }

  .hero__description {

    font-size: 16px;

  }

  .hero__buttons {

    flex-direction: column;

  }

  .button {

    width: 100%;

  }

  .hero__media {

    height: 240px;

  }

  .upload-card {

    padding: 20px;

  }

  .upload-card__title {

    font-size: 21px;

  }

  .upload-card__text {

    font-size: 15px;

  }

  .upload-form__area {

    min-height: 160px;

  }

  .footer__container {

    grid-template-columns: 1fr;

  }

  .footer__item {

    justify-content: flex-start;

  }

  .footer__item::after {

    display: none;

  }

}

/*==================================================
420
==================================================*/

@media (max-width:420px) {
  .upload-card {

    top: -30px;

  }
}