/*
 Theme Name:   Astra Child
 Theme URI:    https://example.com/astra-child/
 Description:  Дочерняя тема для Astra
 Author:       Ваше Имя
 Author URI:   https://example.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/


/* Основные стили для лендинга */
:root {
	--neo-bg: #ffffff;
	--neo-text: #000000;
	--neo-accent: #748dc1; /* Неоново-лаймовый (энергия/заряд) */
	--neo-muted: #555555;
	--neo-font: 'Inter', 'Montserrat', 'Helvetica Neue', sans-serif;
}

body {
	line-height: 1.5 !important; 
}

figure {
	height: 30px;
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link {
	height: 60px;
	background: #3184D7;
    color: #fff;	
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link:hover {
	margin-bottom: 5px;
	background: #2a77c5;
}

header .custom-logo-link img:hover {
	transform: scale(1.05);
}

.main-navigation ul {
	gap: 20px;
}

.neo-layout {
	font-family: var(--neo-font);
	background-color: var(--neo-bg);
	color: var(--neo-text);
	line-height: 1.5;
	overflow-x: hidden;
}

/* Общие стили для секций */
.neo-section {
	padding: 80px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.neo-title {
	font-size: clamp(30px, 6vw, 50px);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.1;
	margin: 0 0 30px 0;
	color: var(--neo-text) !important;
}

.neo-subtitle {
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--neo-muted);
	display: block;
	margin-bottom: 20px;
}

/* Кнопка */
.neo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--neo-text);
	color: var(--neo-bg) !important;
	padding: 20px 50px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	border-radius: 100px; /* Круглая кнопка как в референсе */
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid var(--neo-text);
}

.neo-btn:hover {
	background-color: #8ea9df !important;
	color: #385081 !important;
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.neo-btn-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--neo-text);
	color: var(--neo-bg) !important;
	padding: 20px 50px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	border-radius: 100px; /* Круглая кнопка как в референсе */
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.neo-btn-main:hover {
	background-color: #4d4d4d !important;
    color: #ffffff !important;
    transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Главный экран (Hero) */
.neo-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	min-height: 90vh;
	padding-top: 60px;
}

.neo-hero-text h1 {
	font-size: clamp(50px, 8vw, 100px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -3px;
	text-transform: uppercase;
	margin-bottom: 30px;
	color: var(--neo-text) !important;
}

.neo-hero-text p {
	font-size: 20px;
	color: var(--neo-muted);
	margin-bottom: 40px;
	max-width: 500px;
}

.neo-hero-image-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Яркий круг на фоне фото */
.neo-circle-bg {
	position: absolute;
	width: 100%;
	padding-bottom: 100%;
	background-color: var(--neo-accent);
	border-radius: 50%;
	z-index: 1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.neo-hero-img {
	position: relative;
	z-index: 2;
	width: 85%;
	border-radius: 20px;
	box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Обо мне */
.neo-about {
	background-color: #f8f8f8;
	border-radius: 40px;
	padding: 80px;
	margin: 0 20px;
}

.neo-about-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
}

.neo-stats {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.neo-stat-item {
	border-left: 4px solid var(--neo-accent);
	padding-left: 20px;
}

.neo-stat-num {
	font-size: 48px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 5px;
}

.neo-stat-text {
	font-size: 16px;
	color: var(--neo-muted);
	text-transform: uppercase;
	font-weight: 600;
}

.neo-about-desc p {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 30px;
	line-height: 1.4;
}

/* Услуги */
.neo-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 40px;
	margin-top: 60px;
}

.neo-card {
	padding: 50px 40px;
	background: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: 30px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.neo-card:hover {
	border-color: var(--neo-text);
	background-color: var(--neo-text);
	color: var(--neo-bg);
	transform: translateY(-10px);
}

.neo-card:hover h3, 
.neo-card:hover p, 
.neo-card:hover .neo-card-num {
	color: var(--neo-bg) !important;
}

.neo-card-num {
	font-size: 24px;
	font-weight: 900;
	color: var(--neo-text);
	background-color: var(--neo-accent);
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-bottom: 30px;
	transition: 0.3s;
}

.neo-card h3 {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 20px;
	line-height: 1.2;
	color: var(--neo-text) !important;
	transition: 0.3s;
}

.neo-card p {
	font-size: 16px;
	color: var(--neo-muted);
	margin: 0;
	transition: 0.3s;
}

/* Контакты */
.neo-contact {
	text-align: center;
	padding-bottom: 150px;
}

.neo-phone {
	display: block;
	font-size: clamp(30px, 6vw, 50px);
	font-weight: 900;
	color: var(--neo-text) !important;
	text-decoration: none;
	margin: 40px 0;
	transition: 0.3s;
}

.neo-phone:hover {
	color: var(--neo-accent) !important;
}

/* footer */
.footer-icon-text__wrapper {
	display: flex;
    flex-direction: row;
	align-items: center;
    gap: 15px;
}

.ast-footer-copyright p {
	margin-bottom: 10px !important;
}

.footer-contacts-nav {
	font-size: 20px;
}

#astra-footer-menu > .menu-item > .menu-link:hover {
	color: #bbbbbb;
    border-bottom: solid 1px;
}

#astra-footer-menu {
	flex-direction: column;
}

.footer-nav-wrap .astra-footer-horizontal-menu a {
	padding: 0 !important;
}

footer nav {
	display: flex;
}

.ast-builder-grid-row-container-inner {
	padding: 20px !important;
}

/* бургер меню */
/* 1. Запрещаем прокрутку страницы, когда меню открыто */
body.ast-main-header-nav-open {
    overflow: hidden;
}

/* 2. Белый оверлей через псевдоэлемент */
body.ast-main-header-nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* белый фон */
    z-index: 50;             /* под меню (у Astra меню обычно 9999) */
    pointer-events: none;      /* чтобы не мешать кликам по меню */
}

.ast-mobile-header-content {
    background: transparent; /* фон будет белым за счёт оверлея */
    padding: 20px;
}

body .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link {
	background: #3184D7 !important;
    color: #fff !important;
}

/* Адаптивность */
/* 1. Планшеты и небольшие ноутбуки (до 992px) */
@media (max-width: 992px) {
	.ast-builder-html-element {
		font-size: 12px !important;
		text-align: center !important;
		line-height: 1.2 !important;
	}
	.ast-builder-html-element > p {
		margin-bottom: 20px !important;
	}
    .neo-hero { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding-top: 40px; 
    }
    .neo-hero-text p { 
        margin: 0 auto 40px; 
    }
    .neo-hero-image-wrap { 
        margin-top: 20px; 
        max-width: 500px; 
        margin-left: auto; 
        margin-right: auto; 
    }
    .neo-about { 
        padding: 50px 40px; 
        margin: 0; 
        border-radius: 30px; 
    }
    .neo-about-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .neo-stats {
        flex-direction: row; /* На планшете статы в ряд */
        flex-wrap: wrap;
        justify-content: space-around;
        text-align: center;
    }
    .neo-stat-item {
        border-left: none;
        border-bottom: 4px solid var(--neo-accent);
        padding-left: 0;
        padding-bottom: 10px;
    }
	.ast-footer-copyright {
        text-align: left;
    }
	body .astra-footer-mobile-vertical-menu .menu-item {
		align-items: flex-start !important;
	}
}

@media (max-width: 922px) {
	.ast-builder-html-element > p {
		margin-bottom: 20px !important;
	}
}

/* 2. Вертикальные планшеты и большие смартфоны (до 768px) */
@media (max-width: 768px) {
	header .custom-logo-link img {
		max-width: 150px;
	}
    .neo-section {
        padding: 60px 15px; /* Уменьшаем боковые отступы */
    }
    .neo-about-desc p {
        font-size: 20px;
    }
    .neo-services-grid {
        /* Предотвращаем горизонтальный скролл, если экран меньше 320px */
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .neo-card {
        padding: 40px 30px;
    }
    .neo-contact {
        padding-bottom: 100px;
    }
    /* Уменьшаем кнопки для мобильных */
    .neo-btn, 
    .neo-btn-main {
        padding: 15px 35px;
        font-size: 14px;
        width: 100%; /* Кнопка на всю ширину для удобства нажатия */
        max-width: 300px;
    }
    .neo-phone {
        margin: 25px 0;
    }
	
	.neo-section { padding: 60px 15px; }
    .neo-subtitle { font-size: 14px; letter-spacing: 1px; margin-bottom: 15px; }
    .neo-hero-text p { font-size: 16px; } 
    .neo-about-desc p { font-size: 18px; } 
    .neo-services-grid { grid-template-columns: 1fr; gap: 30px; }
    .neo-card { padding: 40px 30px; }
    .neo-contact { padding-bottom: 80px; }
    .neo-btn, .neo-btn-main { 
        padding: 15px 20px; /* Уменьшили боковые отступы */
        font-size: 14px; 
        width: 100%; 
        max-width: 100%; 
        box-sizing: border-box; /* Чтобы кнопка не вылезала за экран */
    }
    .neo-phone { margin: 25px 0; font-size: 26px !important; }
}

@media (max-width: 600px) {
	.ast-header-html-1 a {
		font-size: 10px;
		margin-bottom: 20px;
	}
	
	body header .custom-logo-link img {
        max-width: 120px !important;
    }
	
	.neo-circle-bg {
		display: none;
	}
}

/* 3. Маленькие смартфоны (до 480px) */
@media (max-width: 480px) {
	.entry-content {
		padding: 0 !important;
	}
	
    ul { font-size: 15px !important; }
	
    .neo-section {
        padding: 40px 15px;
    }
    .neo-about {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .neo-stats {
        flex-direction: column; /* На узком телефоне снова в колонку */
        align-items: flex-start;
        text-align: left;
    }
    .neo-stat-item {
        border-bottom: none;
        border-left: 4px solid var(--neo-accent);
        padding-left: 15px;
        padding-bottom: 0;
    }
    .neo-stat-num {
        font-size: 36px;
    }
    .neo-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .neo-card h3 {
        font-size: 24px;
    }
	
	.neo-section { padding: 40px 15px; }
    .neo-about { padding: 30px 20px; border-radius: 20px; }
    .neo-stats { flex-direction: column; align-items: flex-start; text-align: left; }
    .neo-stat-item { border-bottom: none; border-left: 4px solid var(--neo-accent); padding-left: 15px; padding-bottom: 0; }
    
    .neo-stat-num { font-size: 32px; }
    .neo-stat-text { font-size: 14px; }
    .neo-card { padding: 30px 20px; border-radius: 20px; }
    .neo-card-num { width: 45px; height: 45px; font-size: 18px; margin-bottom: 20px; }
    .neo-card h3 { font-size: 20px; margin-bottom: 10px; }
    .neo-card p { font-size: 14px; line-height: 1.4; }
    
    .neo-about-desc p { font-size: 16px; }
    ul { font-size: 15px !important; } 
    
    /* Фиксы для главного экрана и контактов */
    .neo-hero-text h1 { font-size: 30px !important; letter-spacing: 2px !important; } /* Делаем имя не слишком гигантским */
    .neo-title { font-size: 20px !important; } /* Фиксируем заголовки, чтобы не прыгали */
    .neo-phone { font-size: 18px !important; } /* Номер точно влезет в 1 строку */
}
