/*
Theme Name: М-Парк
Theme URI: https://m-park.ru
Author: Команда М-Парк
Author URI: https://m-park.ru
Description: Современная тема для сервиса рассылок М-Парк с кастомными блоками Гутенберг
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: m-park
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, featured-images, translation-ready, wide-blocks
*/

/* ==========================================================================
   CSS VARIABLES - Глобальные переменные М-Парк
   ========================================================================== */
:root {
  /* Основные цвета из Figma */
  --m-park-color-green-dark: #053d22;
  --m-park-color-green-bright: #07d16e;
  --m-park-color-green-light: #1a9c40;
  --m-park-color-white: #ffffff;
  --m-park-color-black: #000000;
  --m-park-color-gray-light: #f5f5f5;
  --m-park-color-gray: #666666;

  /* Текстовые цвета */
  --m-park-text-primary: var(--m-park-color-green-dark);
  --m-park-text-secondary: var(--m-park-color-gray);
  --m-park-text-inverse: var(--m-park-color-white);

  /* Фоновые цвета */
  --m-park-bg-primary: var(--m-park-color-white);
  --m-park-bg-secondary: var(--m-park-color-green-dark);
  --m-park-bg-accent: var(--m-park-color-green-light);
  --m-park-bg-light: var(--m-park-color-gray-light);

  /* Размеры контейнеров для "резины" */
  --m-park-container-sm: 100%;
  --m-park-container-md: 720px;
  --m-park-container-lg: 1440px;
  --m-park-container-xl: 1920px;
}

/* ==========================================================================
   BASE RESET - Сброс стилей
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

*:not(ul):not(ol):not(li) {
  padding: 0;
}

ul {
  padding-inline-start: 23px;
}

html {
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0;
}

.flex {
  display: flex !important;
}

.none {
  display: none !important;
}

@media (min-width: 720px) {
  .flex {
    display: flex !important;
  }

  .none {
    display: none !important;
  }
}

/* ==========================================================================
   LAYOUT - Структура страницы
   ========================================================================== */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 60px;
}

.site-content {
  flex: 1;
}

@media (min-width: 1440px) {
  #page {
    padding-top: 70px;
  }
}

/* Базовые стили для всех заголовков */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #053d22;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  font-style: normal;

  letter-spacing: -0.05em;
}

/* Стили для H1 */
h1 {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 36px;
  line-height: 100%;
}

@media (min-width: 720px) {
  h1 {
    font-size: 40px;
    line-height: 90%;
  }
}

@media (min-width: 1440px) {
  h1 {
    font-size: 64px;
    line-height: 90%;
  }
}

/* Стили для H2 */
h2 {
  text-transform: none;
  font-weight: 700;
  font-size: 22px;
  line-height: 120%;
}

@media (min-width: 720px) {
  h2 {
    font-size: 28px;
    line-height: 120%;
  }
}

@media (min-width: 1440px) {
  h2 {
    font-size: 28px;
    line-height: 120%;
  }
}

/* Стили для H3 */
h3 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
}

@media (min-width: 720px) {
  h3 {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (min-width: 1440px) {
  h3 {
    font-size: 18px;
    line-height: 22px;
  }
}

/* Стили для H4 */
h4 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
}

@media (min-width: 720px) {
  h4 {
    font-size: 14px;
    line-height: 17px;
  }
}

@media (min-width: 1440px) {
  h4 {
    font-size: 15px;
    line-height: 18px;
  }
}

/*  Текст (p) & список ========== */
p,
.wp-block-list li {
  /* Базовые стили */
  margin: 0;
  padding: 0;
  text-align: left;
  color: #053d22;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 150%;
  text-transform: none;

  /* Адаптивные стили */
  @media (min-width: 720px) {
    font-size: 12px;
    line-height: 150%;
  }

  @media (min-width: 1440px) {
    font-size: 12px;
    line-height: 150%;
  }
}

/* ========== Ссылка ========== */
a {
  color: inherit;

  /* Стили подчеркивания */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-decoration-color: inherit;
  text-underline-offset: auto;

  /* Убираем стандартные стили ссылок */
  text-decoration-skip-ink: auto;

  /* Состояние при наведении */
  &:hover {
    color: #053d22;
    background-color: transparent;
    border-color: transparent;
    text-decoration-color: #053d22;
  }
}

.link,
p:has(a) {
  /* Стили текста */
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 150%;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;

  background-color: transparent;
  border: 0 solid transparent;
  border-radius: 0;
}

/* ========== Company info из контентной ========== */
blockquote.wp-block-quote {
  margin: 0;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-left: 20px;

  border-left: 5px solid #07d16e;

  /* p.caption */
  p {
    color: #053d22;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    line-height: 15px;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: color 0.2s ease-in-out;
  }
}

.caption {
  color: #053d22;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 15px;
  text-transform: uppercase;
  letter-spacing: 0;

  transition: color 0.2s ease-in-out;
}

.quote {
  color: #053d22;
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  line-height: 21px;
  letter-spacing: 0px;
}

/* Навигация общие стили */
.nav {
  color: #053d22;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0px;
  font-style: normal;
  white-space: normal;
  text-decoration: none;
}

.nav:hover {
  color: #07d16e;
}

/* Навигация */
.nav.navigation {
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

/* Пункт подменю */
.nav.navigation-submenu {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-transform: none;
}

/* Навигация малая */
.nav.navigation-small {
  font-size: 12px;
  font-weight: 500;
  line-height: 150%;
  text-transform: none;
}

/* Цифры */
.digits {
  color: #053d22;
  font-size: 55px;
  font-weight: 300;
  font-style: normal;
  line-height: 100%;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

/* Адаптивные размеры */
@media (min-width: 720px) {
  .digits {
    font-size: 100px;
  }
}

@media (min-width: 1440px) {
  .digits {
    font-size: 55px;
  }
}

/* ========== Content Table ========== */
.wp-block-table {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.wp-block-table tbody {
  width: 100%;
}

.wp-block-table tr {
  border-bottom: 1px solid #07d16e;
}

.wp-block-table td {
  border: 0;
  padding: 10px;
  vertical-align: middle;

  /* p */

  text-align: left;
  color: #053d22;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 150%;
  text-transform: none;

  /* Адаптивные стили */
  @media (min-width: 720px) {
    font-size: 12px;
    line-height: 150%;
  }

  @media (min-width: 1440px) {
    font-size: 12px;
    line-height: 150%;
  }
}

.wp-block-table thead {
  border: 0;
}

/* Заголовки таблицы */
.wp-block-table thead th {
  border: 0;
  background-color: #07d16e;
  padding: 12.5px 10px;
  color: #ffffff;
  text-align: left;

  /* caption */
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 15px;
  text-transform: uppercase;
  letter-spacing: 0;

  transition: color 0.2s ease-in-out;
}

/* Адаптивность */
@media (min-width: 720px) {
  .wp-block-table td {
    font-size: 14px;
  }
}

@media (min-width: 1440px) {
  .wp-block-table td {
    font-size: 14px;
  }
}
