/* ===== БАЗОВЫЕ СТИЛИ ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --light-red: #FF4D5A;
  --dark-red: #E91E3A;
  --background: #2B2B2B;
  --outline: #3A3A3A;
  --text-color: #FFFFFF;
  --input-bg: #3A3A3A;
  --input-focus: #FF4D5A;
  --container-padding: 3%;
  --primary-color: var(--light-red);
  --secondary-color: #4A4A4A;
  --background-color: var(--background);
  --header-bg: #1A1A1A;
  --header-text: #ffffff;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--background-color);
  line-height: 1.6;
  color: var(--text-color);
}

.page {
  min-height: 100vh;
}

/* ===== КОМПОНЕНТ: ШАПКА ===== */
.header {
  background-color: var(--header-bg);
  padding: 8px var(--container-padding);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.8);
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--outline);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header__logo {
  margin-right: 15px;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--header-text);
  flex-grow: 1;
  line-height: 1;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

/* ===== КОМПОНЕНТ: ГЛАВНЫЙ ЭКРАН ===== */
.hero {
  padding: 100px var(--container-padding) 20px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--background) 0%, #1a1a1a 100%);
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -2px;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.1;
  text-align: left;
}

.hero__description {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 25px;
  line-height: 1.3;
  text-align: left;
  max-width: 600px;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero__subtitle {
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 500;
  color: var(--text-color);
  padding-top: 10%;
  text-align: left;
  opacity: 0.9;
}

/* ===== КОМПОНЕНТ: КНОПКИ ===== */
.button {
  font-family: "Montserrat", sans-serif;
  font-weight: 550;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 77, 90, 0.3);
}

.button--primary {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 15px 30px;
  font-size: 28px;
}

.button--primary:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 77, 90, 0.4);
}

.button--secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 15px 30px;
  font-size: 28px;
  border: 2px solid var(--outline);
}

.button--secondary:hover {
  background-color: var(--light-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 77, 90, 0.3);
}

/* Кнопка Войти в шапке */
.button--header-login {
  background-color: var(--light-red);
  border-radius: 10px;
  padding: 8px 20px;
  font-size: 18px;
  color: #ffffff;
  white-space: nowrap;
  border: none;
}

.button--header-login:hover {
  background-color: var(--dark-red);
  color: #ffffff;
}

.button--large {
  align-self: flex-start;
}

/* ===== СЕКЦИЯ С ФОТОГРАФИЯМИ ===== */
.photos-section {
  padding: 60px var(--container-padding);
  background-color: var(--background);
  border-top: 1px solid var(--outline);
}

.photos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.photo-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.photo-item--reverse {
  flex-direction: row-reverse;
}

.photo-item:last-child {
  margin-bottom: 0;
}

.photo-wrapper {
  flex: 0 0 45%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--outline);
}

.photo-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 77, 90, 0.2);
}

.photo-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-wrapper:hover .photo-image {
  transform: scale(1.05);
}

.photo-content {
  flex: 1;
  padding: 20px;
}

.photo-title {
  font-size: 2rem;
  font-weight: 650;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.photo-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 0;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.modal-content {
  background-color: var(--background);
  margin: 5% auto;
  padding: 35px;
  border-radius: 20px;
  width: 500px;
  max-width: 95%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  border: 1px solid var(--outline);
  animation: fadeIn 0.3s ease;
  color: var(--text-color);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
}

.close {
  color: #999;
  float: right;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 25px;
  top: 20px;
  transition: color 0.3s ease;
  z-index: 1;
}

.close:hover {
  color: var(--light-red);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 16px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--outline);
  border-radius: 10px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: var(--input-bg);
  color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--input-focus);
  background-color: var(--input-bg);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 77, 90, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

/* Убираем стрелочки у числовых полей */
.form-group input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#registration-form .button,
#login-form .button,
#forgot-password-form .button {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 15px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#registration-form .button:hover,
#login-form .button:hover,
#forgot-password-form .button:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
}

/* Стили для ошибок полей */
.field-error {
  color: var(--light-red);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

/* Ссылки */
a {
  color: var(--light-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-red);
  text-decoration: underline;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 10000;
  max-width: 400px;
  word-wrap: break-word;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  border: 1px solid var(--outline);
}

.notification--success { background: #28a745; color: white; }
.notification--error { background: var(--dark-red); color: white; }
.notification--warning { background: #ffc107; color: black; }
.notification--info { background: var(--light-red); color: white; }

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ===== ТАЙМЕР ===== */
.timer-section {
  padding: 80px var(--container-padding);
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 100%);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.timer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.timer-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-color);
  text-align: center;
}

.timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.timer-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--light-red);
  background: rgba(255, 77, 90, 0.1);
  padding: 20px;
  border-radius: 15px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(255, 77, 90, 0.2);
  border: 2px solid rgba(255, 77, 90, 0.3);
  transition: all 0.3s ease;
}

.timer-unit:hover .timer-number {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 77, 90, 0.3);
  background: rgba(255, 77, 90, 0.15);
}

.timer-label {
  font-size: 1.2rem;
  color: #cccccc;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-separator {
  font-size: 3rem;
  color: var(--light-red);
  font-weight: 700;
  margin-bottom: 30px;
}

.timer-description {
  font-size: 1.3rem;
  color: #cccccc;
  margin-top: 30px;
}

.timer-description strong {
  color: var(--light-red);
}

/* ===== КНОПКА ПОМОЩИ ===== */
.help-button {
  background: var(--light-red);
  border: none;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-right: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.help-button:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 77, 90, 0.3);
}

.help-icon {
  background: white;
  color: var(--light-red);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
}

.help-button:hover .help-icon {
  transform: rotate(15deg);
  background: var(--dark-red);
  color: white;
}

.help-text {
  display: inline-block;
}

/* ===== КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ ===== */

/* 1. ФИКС ШАПКИ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {

  .header {
    height: auto;
    min-height: 60px;
    padding: 10px var(--container-padding);
  }

  .header__container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "logo title help login";
    gap: 10px;
    align-items: center;
  }

  .header__logo {
    grid-area: logo;
    height: 36px;
    margin: 0;
  }

  .header__title {
    grid-area: title;
    text-align: left;

    white-space: normal;
    overflow: visible;
    text-overflow: unset;

    font-size: clamp(0.9rem, 4vw, 1.4rem);
    line-height: 1.2;
    margin: 0;
    padding: 0 5px;
  }

  .help-button {
    grid-area: help;
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    justify-self: center;
    width: fit-content;
  }

  .button--header-login {
    grid-area: login;
    padding: 8px 15px;
    font-size: 14px;
    width: auto;
    justify-self: end;
  }

  .help-text {
    display: none;
  }

  .help-button .help-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }
}

/* 2. ФИКС ГЛАВНОГО ЭКРАНА ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
  :root {
    --container-padding: 4%;
  }

  .hero {
    padding: 120px var(--container-padding) 20px;
    min-height: 60vh;
    justify-content: center;
  }

  .hero__container {
    align-items: center;
    text-align: center;
  }

  .hero__title {
    font-size: 2.2rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero__description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .button--primary,
  .button--secondary {
    font-size: 18px !important;
    padding: 12px 24px !important;
    width: 100%;
    max-width: 280px;
    border-radius: 10px;
  }

  .hero__subtitle {
    padding-top: 30px;
    font-size: 1.1rem;
    text-align: center;
  }


  /* Адаптив для фотографий */
  .photo-item {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
  }

  .photo-item--reverse {
    flex-direction: column;
  }

  .photo-wrapper {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* === ИСПРАВЛЕНИЕ ФОТО === */
  .photo-image {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
  }

  .photo-content {
    padding: 0;
  }

  .photo-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .photo-description {
    font-size: 1.1rem;
  }
}






