/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://obabko.ru
 Description:  Child theme for GeneratePress
 Author:       Obabko
 Author URI:   https://obabko.ru
 Template:     generatepress
 Version:      1.0
 Text Domain:  generatepress-child
*/

/* ========================================
   GLOBAL STYLES
======================================== */

body {
      font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

.page-id-123 .tools-result {
    display: none !important;
}

h1.about-title {
font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  }

article.post-card h3 {
    padding: 24px;
}

section.hero-section {
    background: #0f172a;
  padding: 40px;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.cardico {
  display: block;
  margin: 0px;
  padding: 0px;
}

.cardico img {
    width: 50px;
  margin-top: 25px;
  padding: 10px;
  border-radius: 12px;
}

.cardico img.i1 {
    background:orange;
}

.cardico img.i2 {
    background:red;
}

.cardico img.i3 {
    background:green;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
}

span.menu-bar-item a {
      font-size:15px;
    text-decoration:none;
    background: #bdcdde;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  margin-left: 10px;
  line-height: 16px !important;
}

a.butheader {
    font-size:15px;
    text-decoration:none;
    background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
}

.main-navigation .main-nav ul li a {
  padding-left: 10px;
  padding-right: 10px;
  line-height: 60px;
    font-weight: 500;
}

h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2em;
  font-weight: 400;
  text-transform: none;
}

/* Контейнер */
.site-content {
    padding-top: 0px;
    padding-bottom: 40px;
}

/* Заголовки */
h1, h2, h3 {
    font-weight: 700;
}

/* Кнопки */
.button,
.wp-block-button__link {
    border-radius: 8px;
    transition: 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover {
    transform: translateY(-1px);
}


/* ========================================
   KNOWLEDGE
======================================== */

.knowledge-page {
    padding: 0px 0 80px;
}

/* HERO */

.knowledge-hero {
    margin-bottom: 0px;
}

.knowledge-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.knowledge-description {
    font-size: 18px;
    color: #64748b;
    max-width: 760px;
}

/* SUBCATEGORIES */

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.subcategory-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    text-decoration: none;
    transition: .2s ease;
}

.subcategory-card:hover {
    transform: translateY(-4px);
}

.subcategory-card h3 {
    margin-bottom: 10px;
    color: #0f172a;
}

.subcategory-card span {
    color: #64748b;
}

/* LAYOUT */

.knowledge-layout {
    display: grid;
    grid-template-columns: minmax(0,3fr) 340px;
    gap: 40px;
}

/* POSTS GRID */

.knowledge-posts-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

/* CARD */

.knowledge-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.knowledge-card a {
    text-decoration: none;
}

.knowledge-thumb img {
    width: 100%;
    display: block;
}

.knowledge-card-content {
    padding: 24px;
}

.knowledge-card h2 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #0f172a;
}

.knowledge-excerpt {
    color: #64748b;
    line-height: 1.7;
}

/* SIDEBAR */

.knowledge-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}

.sidebar-box {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

/* MOBILE */

@media(max-width:1200px){

    .knowledge-posts-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .subcategory-grid {
        grid-template-columns: repeat(2,1fr);
    }

}

@media(max-width:992px){

    .knowledge-layout {
        grid-template-columns: 1fr;
    }

    .knowledge-sidebar {
        position: relative;
        top: auto;
    }

}

@media(max-width:768px){

    .knowledge-posts-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-title {
        font-size: 38px;
    }

}


.custom-breadcrumbs {
   
    font-size: 14px;
    color: #64748b;
}

.custom-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}

.custom-breadcrumbs a:hover {
    color: #2563eb;
}

.rank-math-breadcrumb span.separator {
    margin: 0 8px;
}


/*Стили для главной страницы*/

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	padding: 80px 0;
}

.hero-left h1 {
	font-size: 44px;
	font-weight: 800;
	line-height: 1.1;
}

.hero-left p {
	font-size: 18px;
	color: #64748b;
	margin-top: 16px;
}

.hero-buttons {
	margin-top: 24px;
	display: flex;
	gap: 12px;
	justify-content: center
}

.btn-primary {
	background: #2563eb;
	color: #fff;
	padding: 12px 20px;
	border-radius: 12px;
	text-decoration: none;
}

.btn-secondary {
	background: #f1f5f9;
	color: #0f172a;
	padding: 12px 20px;
	border-radius: 12px;
	text-decoration: none;
}

.hero-right {
	position: relative;
}

.hero-mockup {
	background: #e2e8f0;
	height: 280px;
	border-radius: 20px;
}

.hero-mockup img {
    border-radius:12px;
}

.hero-stats {
	display: flex;
	gap: 12px;
	margin-top: 16px;
    padding-bottom: 10px;
}

.stat-card {
  background: #f0f0f0;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  flex: 1;
  text-align: left;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 20px;
	margin-top: 24px;
}

.card {
	background: #f0f0f0;
	padding: 20px;
	border-radius: 16px;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 20px;
	margin-top: 24px;
}

section.directions h2 {
    font-size:40px;
    padding-bottom:40px;
}

.post-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.cta-box {
	background: #0f172a;
	color: #000;
	padding: 60px;
	border-radius: 24px;
	text-align: center;
}

section.latest-posts h2 {
    font-size:40px;
    padding-bottom:40px;
}

/* wewewe */

/* HERO TITLE */

.hero-title {

	font-size: clamp(48px, 8vw, 80px);

	font-weight: 900;

	line-height: .95;

	letter-spacing: -0.06em;

	text-align: center;

	margin-top: 0px;

	padding: 40px 0;

	/* GRADIENT */

	background:
		linear-gradient(
			90deg,
			#2563eb,
			#7c3aed,
			#ec4899,
			#2563eb
		);

	background-size: 300% auto;

	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;

	background-clip: text;

	animation:
		gradientMove 8s linear infinite;

	/* GLOW */

	filter:
		drop-shadow(0 0 30px rgba(124,58,237,.25));

}

/* ANIMATION */

@keyframes gradientMove {

	0% {
		background-position: 0% center;
	}

	100% {
		background-position: 300% center;
	}

}

.hero-subtitle {

	max-width: 760px;

	margin: 24px auto 0;

	font-size: 22px;

	line-height: 1.5;

	text-align: center;

	color: #64748b;

}

.start-grid {
    display: grid;
  grid-template-columns: minmax(0,3fr) 340px;
  gap: 40px;
}