/*
Theme Name: SecurityTech
Description: Модульная тема для сайта "Технологии безопасности" с отдельными стилями для каждой страницы
Version: 2.0
Author: SecurityTech Team
*/

/* ========================================
   ОСНОВНЫЕ СТИЛИ ТЕМЫ
   ======================================== */

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ========================================
   ХЕДЕР (общий для всех страниц)
   ======================================== */
header {
  background: #2c2c2c;
  color: white;
  padding: 10px 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.slogan {
  font-size: 14px;
  font-style: italic;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icons {
  border: 2px solid #b0ff00;
  border-radius: 4px;
  padding: 5px;
  display: flex;
  gap: 5px;
}

.contact-icons img {
  width: 20px;
  height: 20px;
}

.phone {
  font-weight: bold;
}

/* Навигация */
nav {
  background: #2c2c2c;
  border-top: 1px solid #444;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.menu li {
  position: relative;
}

.menu a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  padding: 15px 0;
  display: block;
  transition: background 0.3s;
}

.menu a:hover,
.menu .current-menu-item a {
  background: #444;
}

/* ========================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
}

.content-wrapper {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ОБЩИЕ ЭЛЕМЕНТЫ
   ======================================== */
/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2c2c2c;
  margin-bottom: 20px;
}

h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
}

h2 {
  font-size: 24px;
  border-bottom: 2px solid #b0ff00;
  padding-bottom: 10px;
}

h3 {
  font-size: 20px;
}

/* Кнопки */
.button {
  display: inline-block;
  background: #2c2c2c;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #444;
}

/* ========================================
   ФУТЕР (общий для всех страниц)
   ======================================== */
footer {
  background: #2c2c2c;
  color: white;
  padding: 30px 0;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu a {
    padding: 10px 20px;
    border-bottom: 1px solid #444;
  }

  .container {
    padding: 10px;
  }

  .content-wrapper {
    padding: 20px;
  }
}

/* ========================================
   WORDPRESS СПЕЦИФИЧНЫЕ СТИЛИ
   ======================================== */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1em;
}

.alignright {
  float: right;
  margin-left: 1em;
}

/* Стили для Gutenberg блоков */
.wp-block-group {
  margin-bottom: 20px;
}

.wp-block-columns {
  display: flex;
  gap: 20px;
}

.wp-block-column {
  flex: 1;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ
   ======================================== */

/* Основные цвета */
:root {
    --primary-color: #b0ff00;
    --secondary-color: #2c2c2c;
    --text-color: #555;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

/* Общие стили для контейнеров */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    background: white;
    padding: 40px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Стили для изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Стили для кнопок */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    background: #9ee600;
    transform: translateY(-2px);
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
}

h2 {
    font-size: 2em;
    font-weight: bold;
}

h3 {
    font-size: 1.5em;
    font-weight: bold;
}

/* Стили для параграфов */
p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Стили для списков */
ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

/* Стили для ссылок */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9ee600;
}

/* Стили для форм */
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Стили для таблиц */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--light-gray);
    font-weight: bold;
}

/* Стили для блоков кода */
code {
    background: var(--light-gray);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

pre {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

/* Стили для цитат */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-color);
}

/* Стили для разделителей */
hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

/* Стили для утилит */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
