/*
Theme Name: Monolitdom.by
Theme URI: https://monolitdom.by
Author: monolitdom.by
Author URI: https://monolitdom.by
Description: Современная минималистичная тема WordPress для сайта monolitdom.by.
Version: 1.0.0
Text Domain: monolitdom-by
*/

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f3f4f6;
  line-height: 1.6;
}

a {
  color: #0f766e;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #115e59;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  color: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.site-description {
  display: none;
}

.custom-logo-link img {
  height: 40px;
  width: auto;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.primary-navigation a {
  color: #111827;
  font-weight: 500;
  font-size: 0.9375rem;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: #0f766e;
}

/* Dropdowns */
.primary-navigation li {
  position: relative;
}

.primary-navigation .menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.35rem;
  opacity: 0.8;
}

.primary-navigation ul ul {
  position: absolute;
  top: 140%;
  left: 0;
  min-width: 200px;
  padding: 0.75rem 0;
  margin: 0;
  display: block;
  gap: 0;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}

.primary-navigation ul ul li {
  width: 100%;
}

.primary-navigation ul ul a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.primary-navigation li:hover > ul,
.primary-navigation li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Burger button (mobile) */
.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle-box {
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.menu-toggle-line:nth-child(1) {
  top: 0;
}

.menu-toggle-line:nth-child(2) {
  top: 9px;
}

.menu-toggle-line:nth-child(3) {
  bottom: 0;
}

.menu-toggle.is-active .menu-toggle-line:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle-line:nth-child(3) {
  bottom: 9px;
  transform: rotate(-45deg);
}

/* Mobile menu */
@media (max-width: 768px) {
  .primary-navigation .menu-item-has-children > a::after {
    display: none;
  }

  .primary-navigation {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #ffffff;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    padding: 1.25rem 1.5rem 1.75rem;
  }

  .primary-navigation.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .primary-navigation ul ul {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .primary-navigation li.is-submenu-open > ul {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 0.25rem 0 0.5rem 0.9rem;
  }

  .primary-navigation ul ul a {
    padding-inline-start: 0;
    font-size: 0.875rem;
    opacity: 0.9;
  }

  .submenu-toggle {
    margin-left: 0.25rem;
    border: 0;
    background: none;
    padding: 0.15rem 0.15rem 0.15rem 0.35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .submenu-toggle-icon {
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid #4b5563;
    border-bottom: 2px solid #4b5563;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
  }

  .is-submenu-open > .submenu-toggle .submenu-toggle-icon {
    transform: rotate(225deg);
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Hero (front-page) */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top left, #22c55e 0, transparent 55%),
              radial-gradient(circle at bottom right, #0ea5e9 0, transparent 55%),
              #020617;
  color: #f9fafb;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 34rem;
  color: #cbd5f5;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-secondary:hover {
  border-color: #e5e7eb;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.hero-visual {
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.15), transparent 55%),
              radial-gradient(circle at bottom, rgba(56, 189, 248, 0.12), transparent 55%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.65);
}

.hero-visual-inner {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.25rem 1.5rem 1.5rem;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 60%),
              #020617;
}

.hero-visual-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

.hero-visual-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5f5;
}

.hero-visual-list li::before {
  content: "●";
  color: #22c55e;
  margin-right: 0.5rem;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 4.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  max-width: 32rem;
  margin: 0 auto;
  color: #6b7280;
  font-size: 0.9375rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.card-title {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.card-text {
  font-size: 0.9375rem;
  color: #6b7280;
}

/* Blog layout */
.content-area {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
}

.content-area--page {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

@media (max-width: 960px) {
  .content-area {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.9);
  margin-bottom: 1.75rem;
}

.post-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.post-card-meta {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.post-card-excerpt {
  font-size: 0.9375rem;
}

.entry-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.entry-header-title {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
}

.entry-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 96px;
}

.widget {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(209, 213, 219, 0.9);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.widget-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: radial-gradient(circle at top left, #1f2933 0, #020617 45%, #000000 100%);
  color: #9ca3af;
  padding: 2.5rem 0 2rem;
}

.mnd-footer-root {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.35), transparent 55%),
    #05060a;
  padding: 40px 15px 20px 15px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  position: relative;
}

.mnd-footer-glass-wrap {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 24px;
  padding: 40px;
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.mnd-footer-glass-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(34, 197, 94, 0.16), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.mnd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.mnd-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff9800;
  margin-bottom: 20px;
  font-weight: 800;
}

.mnd-footer-logo img {
  height: 45px;
  width: auto;
  margin-bottom: 15px;
}

.mnd-brand-text {
  font-size: 14px;
  line-height: 1.5;
  color: #888;
  margin-bottom: 20px;
}

.mnd-social-flex {
  display: flex;
  gap: 10px;
}

.mnd-social-item {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mnd-social-item img {
  width: 20px;
  height: 20px;
}

.mnd-social-item:hover {
  background: rgba(255, 152, 0, 0.15);
  border-color: #ff9800;
  transform: translateY(-3px);
}

.mnd-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mnd-footer-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.mnd-footer-nav a:hover {
  color: #f9fafb;
  transform: translateX(3px);
  text-shadow: 0 0 18px rgba(248, 250, 252, 0.65);
}

.mnd-contacts-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mnd-phone-btn {
  background: radial-gradient(circle at 0 0, #f97316, #ea580c);
  color: #020617 !important;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.25s ease;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
  background-size: 140% 140%;
}

.mnd-phone-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.55);
  background-position: 15% 0;
}

.mnd-mail-link {
  color: #fff;
  text-decoration: none;
  margin-top: 15px;
  font-size: 15px;
  display: block;
  opacity: 0.8;
}

.mnd-mail-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.mnd-legal-info {
  margin-top: 20px;
  font-size: 12px;
  color: #555;
  line-height: 1.4;
}

.mnd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.mnd-copy {
  font-size: 13px;
  color: #555;
}

.mnd-developer {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}

.mnd-developer span {
  color: #ff9800;
  font-weight: bold;
}

.mnd-developer:hover {
  color: #f9fafb;
  text-shadow: 0 0 18px rgba(248, 250, 252, 0.7);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .mnd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .mnd-footer-glass-wrap {
    padding: 30px 20px;
  }

  .mnd-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .mnd-social-flex {
    justify-content: center;
  }

  .mnd-contacts-block {
    align-items: center;
  }

  .mnd-footer-nav a:hover {
    padding-left: 0;
  }

  .mnd-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-widgets {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding-top: 1rem;
  font-size: 0.8125rem;
}

.footer-menu {
  display: flex;
  gap: 1rem;
}

.footer-menu a {
  color: #9ca3af;
}

.footer-menu a:hover {
  color: #e5e7eb;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.pt-0 {
  padding-top: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.hidden {
  display: none !important;
}

