/* Импорт шрифта Inter с Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Базовые стили и переменные */
:root {
  /* Базовые цвета */
  --color-blue: #0061FE;
  --color-blue-hover: #0052D6;
  --color-black: #1f2329;
  --color-grey: #424954;
  --color-white: #FFFFFF;
  --color-invalid: #FFD1D1;
  --color-red: #F11616;
  --color-green: #27AE60;
  
    /* Основные цвета */
  --background-dark: var(--color-black);
  --background-grey: var(--color-grey);
  --background-blue: var(--color-blue);
  --background-white: var(--color-white);
  --background-blue-hover: var(--color-blue-hover);
  --background-invalid: var(--color-invalid);
  --text-light: var(--color-white);
  --text-error: var(--color-red);
  --text-success: var(--color-green);
  --text-muted: rgba(255, 255, 255, 0.7);
  --primary-color: var(--color-blue);
  --primary-color-hover: #0052d6;
  --block-bg: #29292e;
  
  /* Цвета компонентов */
  --header-bg: var(--background-dark);
  --footer-bg: var(--background-dark);
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-text: var(--text-muted);
  
  /* Размеры и отступы */
  --container-max-width: 1200px;
  
  /* Шрифты */
  --font-primary: 'AvantGardeCTT';
  --font-secondary: 'GothamPro';
  --font-tertiary: 'Inter';
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;
  --font-size-large: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Скругления */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-round: 50%;
}

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

html {
  font-size: 16px; /* 1rem = 16px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-light);
  background-color: var(--background-dark);
  font-size: var(--font-size-base);
  line-height: 1.5;
  min-height: 100vh;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

/* Стили для всех параграфов */
p, li {
  font-size: 16px;
  font-family: var(--font-secondary);
}

a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary-color-hover);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Основной контент */
.main-content {
  min-height: 50vh;
}

/* Утилиты */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Медиа-запросы */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

  p, li {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 14px;
  }

  p, li {
    font-size: 12px;
  }
}

/* Стили для модального окна уведомлений */
.notification-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.notification-modal__content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.notification-modal.show .notification-modal__content {
    transform: translateY(0);
}

.notification-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    background: none;
    border: none;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.notification-modal__message {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 14px;
    color: var(--background-grey);
    margin-bottom: 0;
}

.notification-modal.success .notification-modal__title {
    color: var(--text-success);
}

.notification-modal.error .notification-modal__title {
    color: var(--text-error);
}

@font-face {
  font-family: 'AvantGardeCTT';
  src: url('../fonts/AvantGardeCTT-Bold.woff2') format('woff2'),
       url('../fonts/AvantGardeCTT-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamPro';
  src: url('../fonts/GothamPro.woff2') format('woff2'),
       url('../fonts/GothamPro.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
} 