/* Цветовая схема: Профессиональный */
:root {
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
    --accent-color: #a2d9ce;
    --light-color: #e8f6f3;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}

/* Неоморфизм стиль с мягкими тенями */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--light-color) 0%, #f8f9fa 100%);
    overflow-x: hidden;
}

/* Золотое сечение - пропорции 1.618 */
.golden-container {
    max-width: 1296px; /* 800 * 1.618 */
    margin: 0 auto;
}

.golden-section-a {
    width: 61.8%;
}

.golden-section-b {
    width: 38.2%;
}

/* Неоморфизм эффекты */
.neomorphic {
    background: var(--light-color);
    border-radius: 16px;
    box-shadow: 
        8px 8px 20px rgba(22, 160, 133, 0.1),
        -8px -8px 20px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.neomorphic:hover {
    transform: translateY(-2px);
    box-shadow: 
        12px 12px 25px rgba(22, 160, 133, 0.15),
        -12px -12px 25px rgba(255, 255, 255, 0.95);
}

.neomorphic-inset {
    background: var(--light-color);
    border-radius: 16px;
    box-shadow: 
        inset 6px 6px 12px rgba(22, 160, 133, 0.1),
        inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* Навигация - Sticky header */
.navbar-custom {
    background: rgba(232, 246, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 188, 156, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.4rem;
}

.navbar-item {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Hero секция - карточный стиль */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(162, 217, 206, 0.3) 100%);
}

.hero-card {
    background: rgba(232, 246, 243, 0.8);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        20px 20px 40px rgba(22, 160, 133, 0.1),
        -20px -20px 40px rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Кнопки */
.btn-neomorphic {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        6px 6px 12px rgba(22, 160, 133, 0.3),
        -2px -2px 8px rgba(255, 255, 255, 0.1);
}

.btn-neomorphic:hover {
    transform: translateY(-2px);
    box-shadow: 
        8px 8px 20px rgba(22, 160, 133, 0.4),
        -4px -4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Секции контента */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.content-card {
    background: rgba(232, 246, 243, 0.6);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 
        8px 8px 20px rgba(22, 160, 133, 0.08),
        -8px -8px 20px rgba(255, 255, 255, 0.8);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        12px 12px 30px rgba(22, 160, 133, 0.15),
        -12px -12px 30px rgba(255, 255, 255, 0.9);
}

/* Иконки */
.icon-neomorphic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    box-shadow: 
        6px 6px 12px rgba(22, 160, 133, 0.1),
        -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* Изображения */
.image-neomorphic {
    border-radius: 16px;
    box-shadow: 
        12px 12px 24px rgba(22, 160, 133, 0.1),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.image-neomorphic:hover {
    transform: scale(1.02);
}

/* Футер */
.footer-custom {
    background: linear-gradient(135deg, var(--text-dark), #34495e);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Адаптивность */
@media (max-width: 768px) {
  .golden-section-a,
  .golden-section-b {
      width: 100%;
  }
  
  .hero-card {
      padding: 2rem;
      margin: 1rem;
  }
  
  .btn-secondary {
      margin-left: 0;
      margin-top: 1rem;
  }
  
  /* Адаптивный заголовок */
  .site-header {
      padding: 0.5rem 1rem;
  }
  
  .site-header .container {
      flex-direction: column;
      align-items: center;
  }
  
  .site-logo {
      margin-bottom: 0.75rem;
  }
  
  /* Увеличиваем отступ для контента */
  body {
      padding-top: 100px;
  }
}

/* === Базовые настройки из исходной темы ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Cписок записей ================================================ */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;             /* 32 px */
  max-width: 1200px;
  margin: 2.5rem auto;   /* 40 px */
  padding: 0 1rem;
}

/* === Карточка записи ============================================== */
.post-item {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Картинка */
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Заголовок */
.post-item h3 {
  font-size: 1.125rem;   /* 18 px */
  margin: 1rem;
  line-height: 1.4;
}

.post-item h3 a {
  color: #111;
  text-decoration: none;
}

.post-item h3 a:hover {
  color: var(--primary-color);
}

/* Краткий текст */
.post-item p {
  margin: 0 1rem 1.25rem;
  color: #555;
  flex: 1 0 auto;
}

/* Ссылка "Подробнее" */
.post-item > a:last-of-type {
  align-self: flex-start;
  margin: 0 1rem 1.25rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.2s ease-in-out;
}

.post-item > a:last-of-type:hover {
  background: var(--secondary-color);
}

/* === Пагинация ===================================================== */
nav.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;          /* 12 px */
  margin-bottom: 3rem;   /* 48 px */
  font-weight: 600;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: var(--primary-color);
  transition: background 0.2s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.next.page-numbers,
.prev.page-numbers {
  border-color: transparent;
  color: var(--primary-color);
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
  color: var(--secondary-color);
}

/* === Хлебные крошки (breadcrumbs) ================================== */
.breadcrumbs {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: #777;
  background: rgba(232, 246, 243, 0.5);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 160, 133, 0.05);
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumbs span {
  color: #555;
  font-weight: 500;
}

/* Разделитель для хлебных крошек */
.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #aaa;
}

/* === Страница-контейнер =========================================== */
.page-content {
  max-width: 800px;
  margin: 2rem auto 3rem;
  padding: 0 1rem 2rem;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Картинка в шапке страницы */
.page-content .post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Заголовок страницы */
.page-content h1 {
  font-size: 1.75rem;     /* 28 px */
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
  color: #111;
  text-align: center;
}

/* Текстовое содержимое */
.page-content .content p {
  margin-bottom: 1rem;
  color: #444;
}

/* === Активный пункт меню ========================================== */
#top_menus .current-menu-item .nav-link,
#top_menus .current_page_item .nav-link {
  color: var(--primary-color);
  cursor: default;
}

/* === Адаптивность ================================================= */
@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
  .page-content h1 {
    font-size: 1.35rem;   /* 22 px */
  }
}

/* === Подвал сайта ================================================ */
footer {
  background: linear-gradient(135deg, var(--text-dark), #34495e);
  color: #d3d3d3;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-top: 4px solid var(--primary-color);
}

/* Ссылки в подвале */
footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Мелкие устройства */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* === Меню в подвале ============================================== */
.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;           /* 20 px между пунктами */
  list-style: none;
  margin: 0 0 1.5rem;     /* отступ снизу, чтобы текст © не "лип" */
  padding: 0;
}

.footer-menu li {
  /* можно добавить разделители, раскомментировав следующий пункт */
  /* position: relative; */
}

.footer-menu a {
  font-size: 0.875rem;
  color: #d3d3d3;          /* тот же цвет, что и текст в футере */
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #ffffff;          /* подсветка при наведении */
  text-decoration: underline;
}

/* — Адаптивность — */
@media (max-width: 480px) {
  .footer-menu {
    gap: 0.75rem;          /* 12 px */
    margin-bottom: 1rem;
  }
}

/* Bulma CSS Framework */
@import url('https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css');
/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
/* AOS Animation Library */
@import url('https://unpkg.com/aos@2.3.4/dist/aos.css');

/* Стили для страницы 404 */
.error-404 {
  text-align: center;
  padding: 3rem 1rem;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.error-404 .btn-neomorphic {
  display: inline-block;
  text-decoration: none;
}

/* Стили для навигации WordPress */
/* Стили для шапки сайта */
.site-header {
  background: rgba(232, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 188, 156, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Стили для логотипа */
.site-logo {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.logo-link:hover {
  color: var(--secondary-color);
}

.logo-icon {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.logo-text {
  letter-spacing: 0.5px;
}

/* Обновленные стили для меню */
#top_menus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0.5rem 0;
  width: 100%;
  transition: all 0.3s ease;
}

#top_menus .nav-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s ease-in-out;
}

#top_menus .nav-link:hover,
#top_menus .nav-link:focus {
  color: var(--primary-color);
}

/* Отступ для контента под фиксированным меню */
body {
  padding-top: 70px;
}

/* Стили для WordPress админ-бара */
.admin-bar #top_menus {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #top_menus {
    top: 46px;
  }
}

/* Стили для WordPress изображений */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 0.5rem;
}

/* Стили для WordPress галерей */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

@media (max-width: 768px) {
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-columns-3,
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Стили для минималистичной главной страницы */
.homepage {
  margin: 0;
  padding: 0;
}

/* Стили для секции случайных постов */
.random-posts .post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.random-posts .post-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 
    8px 8px 20px rgba(22, 160, 133, 0.1),
    -8px -8px 20px rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.random-posts .post-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    12px 12px 25px rgba(22, 160, 133, 0.15),
    -12px -12px 25px rgba(255, 255, 255, 0.95);
}

.random-posts .post-featured-image {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.random-posts .post-featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.random-posts .post-item:hover .post-featured-image img {
  transform: scale(1.05);
}

.random-posts .post-item h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.random-posts .post-item h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.random-posts .post-item h3 a:hover {
  color: var(--primary-color);
}

.random-posts .post-item p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.random-posts .read-more-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.random-posts .read-more-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Стили для ссылки на блог */
.blog-link-section {
  text-align: center;
  margin-top: 2rem;
}

.blog-link-section .btn-neomorphic {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--light-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 
    8px 8px 20px rgba(22, 160, 133, 0.1),
    -8px -8px 20px rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.blog-link-section .btn-neomorphic:hover {
  transform: translateY(-3px);
  box-shadow: 
    12px 12px 25px rgba(22, 160, 133, 0.15),
    -12px -12px 25px rgba(255, 255, 255, 0.95);
  color: var(--secondary-color);
}

/* Дополнительная адаптивность для новой главной страницы */
@media (max-width: 768px) {
  .random-posts .post-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .random-posts .post-item {
    padding: 1rem;
  }
  
  .blog-link-section .btn-neomorphic {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}