/* Основные стили */
@import './reset.css';

:root {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --primary-color: #fff100;
  --primary-color-2: #221f20;
  --primary-color-3: #d1ab66;
  --white: #fff;
  --color-1: #d9d9d9;
  --color-2: #6f6f6f;
  --ccolor-5: #f8e7ca;

  font-family: 'Rubik', Arial, sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.content, .footer_inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}

.logo {
  background-color: var(--white);
  padding: 16px 26px;
  flex-shrink: 1;
}

.footer_phone {
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 2px;

  &::before {
    display: block;
    content: '';
    width: 24px;
    height: 24px;
    background: url('/public/phone.svg');
  }
}

main {
  flex-grow: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(225, 225, 225, 0.3) 98.5%),
    url('../public/bg-2.png') no-repeat right bottom;
  background-size: contain;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}

/* Футер */
.footer_outer {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

/* Текстовые ссылки */
.doc-link {
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  padding: 10px 0;
  margin: 10px 0;
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 400;
  font-size: 32px;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.doc-link:hover {
  color: var(--primary-color-2);
  text-decoration: underline;
}

.doc-title {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
}

.doc-title2 {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .content, .footer_inner {
    padding: 0 16px;
    max-width: 100%;
  }
}

/* Перенос текста для мобильных устройств */
@media (max-width: 768px) {
  .doc-link, .doc-title {
    font-size: 24px;
    white-space: normal; /* Разрешаем перенос текста */
    overflow-wrap: break-word; /* Переносим длинные слова */
    word-wrap: break-word; /* Для совместимости с более старыми браузерами */
  }

  .footer_phone {
    font-size: 14px;
    white-space: normal;
  }

  .logo {
    padding: 12px 20px;
  }
}


