@import url('sections/navbar.css');
@import url('sections/hero.css');
@import url('main.css');
@import url('portfolio.css');
@import url('swiper.css');
@import url('sections/contact-form.css');
@import url('widgets/feedback.css');
@import url('sections/footer.css');

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-red: #c00a0a;
    --light-red: #ff3333;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

html {
    scroll-padding-top: 60px; /* Высота шапки для якорных ссылок */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--primary-black);
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

p {
    color: #bbb;
}

/**
 * Кастомный контейнер на 80% ширины экрана
 * Адаптивен, центрируется автоматически
 */
.container-main {
    width: 70%;
    max-width: 1400px;
    /* Опционально: максимальная ширина, чтобы на очень широких экранах не растягивался бесконечно */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Для мобильных устройств делаем шире, чтобы не было слишком узко */
@media (max-width: 768px) {
    .container-main {
        width: 92%;
    }
}

/* Для очень больших экранов можно ограничить максимальную ширину */
@media (min-width: 1920px) {
    .container-main {
        max-width: 1600px;
    }
}

/* Общие стили для SVG внутри социальных иконок */
.social-icon svg {
    width: 1.5rem;
    /* Соответствует размеру иконок Bootstrap */
    height: 1.5rem;
    fill: currentColor;
    /* Наследует цвет от родителя */
    transition: fill 0.3s ease;
}

/* Специфические стили для иконки VK */
.social-icon .vk-svg-icon {
    width: 1.3rem;
    /* Чуть меньше для лучшего визуального баланса */
    height: 1.3rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-red);
    transform: translateX(-10px);
}

.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background-color: var(--accent-red);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10000;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover::before,
.social-icon:hover::after {
    opacity: 1;
}

/* ============================================
   КНОПКА (единый стиль)
   ============================================ */

.btn-primary-red {
    background-color: var(--accent-red);
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--light-red);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary-red:hover::before {
    left: 0;
}

.btn-primary-red:hover {
    box-shadow: 0 10px 25px rgba(192, 10, 10, 0.4);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ============================================
   ЧАСТНЫЕ СЛУЧАИ (только модификации)
   ============================================ */

/* Кнопка внутри блока с ценой */
.price-action .btn-primary-red {
    padding: 0.85rem 2rem;
}

/* Кнопка внутри бонуса */
.bonus-wrapper .btn-primary-red {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Кнопка в контактной форме */
.contact-form .btn-primary-red {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form .btn-primary-red:hover {
    gap: 0.75rem;
}

.contact-form .btn-primary-red i {
    transition: transform 0.3s ease;
}

.contact-form .btn-primary-red:hover i {
    transform: translateX(3px);
}

.social-icon::after {
    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--accent-red);
    opacity: 0;
    transition: opacity 0.3s;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title-no-banner {
    margin: 10rem 0 2rem 0;
}

.section-padding {
    padding: 5rem 0;
}

/* ============================================
   СТИЛИ ДЛЯ ОБНОВЛЕННОЙ СЕКЦИИ "ОБО МНЕ"
   ============================================ */

/* Растягиваем строку на всю доступную высоту */
.row.align-items-stretch {
    align-items: stretch !important;
}

/* Обертка для фото справа с растягиванием */
.about-image-right-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
}

/* Фото на всю высоту текстового блока */
.about-image-full-height {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Сохраняет пропорции, обрезая при необходимости */
    object-position: center 25%;
    /* Фокус на лице, немного смещен вверх */
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Вертикальное выравнивание текста по верху */
.row.align-items-start {
    align-items: flex-start !important;
}

/* Уменьшение высоты изображения и улучшение пропорций */
.about-image-adjusted {
    max-height: 500px;
    /* Уменьшена высота */
    width: 100%;
    object-fit: cover;
    /* Сохраняет пропорции при обрезке */
    object-position: top center;
    /* Фокусировка на верхней части лица */
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Контейнер для текста с отступами */
.about-text-container {
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
}

/* Подсветка ключевых фраз */
.highlight-text {
    color: var(--accent-red);
    font-weight: 600;
}

/* Список достижений с иконками */
.achievements-list {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid var(--accent-red);
    flex-grow: 1;
    /* Растягивается, чтобы заполнить пространство */
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.achievement-item i {
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.achievement-item span {
    line-height: 1.5;
}

.about-section {
    background-color: var(--secondary-black);
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.achievement-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s;
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-red);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.achievement-card:hover::before {
    transform: translateX(0);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ============================================
   СТИЛИ ДЛЯ СЕКЦИИ УСЛУГ
   ============================================ */

/* Ссылочные карточки - убираем стандартное оформление ссылок */
.service-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-link-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Креативные карточки услуг */
.service-card.creative-card {
    background-color: var(--secondary-black);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.creative-card:hover .service-card-bg {
    opacity: 1;
}

/* Обертка для иконок с эффектом свечения */
.service-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.service-icon-wrapper i {
    font-size: 3rem;
    color: var(--accent-red);
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

.service-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: 2;
}

.creative-card:hover .service-icon-glow {
    opacity: 0.3;
}

.creative-card:hover .service-icon-wrapper i {
    transform: scale(1.1) rotate(5deg);
}

/* Заголовок услуг */
.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 3;
}

/* Примечание в карточке услуг */
.service-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.5rem;
    background: rgba(192, 10, 10, 0.08);
    border: 1px solid rgba(192, 10, 10, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-note i {
    color: var(--accent-red);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Описание услуг */
.creative-card p {
    position: relative;
    z-index: 3;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Список особенностей */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

.service-feature {
    background-color: rgba(192, 10, 10, 0.1);
    color: var(--accent-red);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(192, 10, 10, 0.2);
    transition: all 0.3s ease;
}

.creative-card:hover .service-feature {
    background-color: rgba(192, 10, 10, 0.2);
    transform: translateY(-2px);
}

/* CTA внутри карточки */
.service-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 3;
}

.service-cta span {
    font-weight: 600;
    color: var(--accent-red);
    transition: all 0.3s ease;
}

.service-cta i {
    color: var(--accent-red);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.creative-card:hover .service-cta span {
    transform: translateX(5px);
}

.creative-card:hover .service-cta i {
    transform: translateX(5px);
}

/* Линия при наведении */
.service-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--light-red));
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.creative-card:hover .service-hover-line {
    width: 100%;
}

/* Эффекты при наведении на всю карточку */
.creative-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(192, 10, 10, 0.1);
    border-color: rgba(192, 10, 10, 0.2);
}

/* Подзаголовок секции */
.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопка "Посмотреть все услуги" */
.btn-all-services {
    background: transparent;
    color: var(--accent-red);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent-red);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-all-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    transition: left 0.4s ease;
    z-index: 1;
}

.btn-all-services span,
.btn-all-services i {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.btn-all-services:hover {
    color: white;
    box-shadow: 0 10px 25px rgba(192, 10, 10, 0.3);
}

.btn-all-services:hover::before {
    left: 0;
}

.btn-all-services:hover span,
.btn-all-services:hover i {
    color: white;
}

/* Анимация появления карточек с задержкой */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.services-section {
    background-color: var(--primary-black);
}

.service-card {
    background-color: var(--secondary-black);
    padding: 3rem 2.5rem;
    height: 100%;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--light-red));
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.service-card:hover::after {
    transform: translateX(0);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-red);
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.advantages-section {
    background-color: var(--secondary-black);
}

.advantages-section-home {
    background-color: var(--primary-black);
}

.advantage-card {
    padding: 3rem 2.5rem;
    background-color: rgba(10, 10, 10, 0.5);
    height: 100%;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.advantage-card:hover {
    background-color: rgba(192, 10, 10, 0.08);
    transform: translateY(-10px);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1.8rem;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ============================================
   СТИЛИ ДЛЯ ХЛЕБНЫХ КРОШЕК
   ============================================ */

.breadcrumb-section-padding {
    padding: 8rem 0 0 0 !important;
}

.breadcrumb-section {
    padding: 2rem 0 0 0;
}

.breadcrumb-wrapper {
    margin: 2.5rem 0 2.5rem 0px;
    position: relative;
    z-index: 3;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-red);
}

.breadcrumb-item.active {
    color: var(--accent-red);
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "/";
    padding: 0 0.5rem;
}

/* Подзаголовок в стиле страницы услуг */
.service-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 1rem;
    border-left: 3px solid var(--accent-red);
    font-weight: 400;
}

/* Дополнительные стили для страницы "Разработка сайтов" */

.site-types-section {
    padding: 3rem 0 8rem 0;
}

/* Цена в карточках типов сайтов */
.price-tag {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.price-tag span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* Секция стека технологий */
.tech-item {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-item:hover {
    transform: translateY(-10px);
    background-color: rgba(192, 10, 10, 0.1);
    border-color: var(--accent-red);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.tech-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.05);
}

.tech-item i {
    transition: all 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Секция администрирования */
#admin .lead {
    font-size: 1.2rem;
    line-height: 1.6;
}

#admin ul i {
    font-size: 1.2rem;
}

/**
 * Стили для блока «Стоимость» (единый пакет обслуживания)
 * Адаптированы под тёмную тему сайта (переменные :root)
 */

/* Карточка пакета — тёмная, с акцентной рамкой */
.price-card {
    position: relative;
    background: var(--secondary-black);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.6);
    border-color: rgba(192, 10, 10, 0.3);
}

/* Бейдж — в стиле акцентного красного */
.price-badge {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(192, 10, 10, 0.3);
}

/* Заголовки — светлые */
.price-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.price-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.price-subtitle strong {
    color: var(--accent-red);
    font-weight: 700;
}

/* Цена — крупная, акцентная */
.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-red);
    margin: 1.5rem 0;
    letter-spacing: -1px;
}

.price-currency {
    font-size: 2rem;
    vertical-align: super;
}

.price-period {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.25rem;
}

/* Список преимуществ — светлый текст */
.price-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 1.5rem;
    text-align: left;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-text strong {
    color: var(--accent-red);
    font-weight: 700;
}

/* Бейдж для годового пакета — ярче */
.price-badge-popular {
    background: linear-gradient(135deg, var(--accent-red), #ff4d4d);
    box-shadow: 0 0 12px rgba(192, 10, 10, 0.5);
}

/* Карточка годового пакета — лёгкое свечение и рамка */
.price-card-popular {
    border: 1px solid rgba(192, 10, 10, 0.4);
    box-shadow: 0 20px 40px -12px rgba(192, 10, 10, 0.2);
}

.price-card-popular:hover {
    border-color: var(--accent-red);
    box-shadow: 0 25px 45px -12px rgba(192, 10, 10, 0.4);
}

/* Цена годового пакета — чуть крупнее или с дополнительным оформлением */
.price-value-popular {
    color: var(--accent-red);
    text-shadow: 0 0 8px rgba(192, 10, 10, 0.3);
}

/* Строка с эквивалентной месячной ценой */
.price-equivalent {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(192, 10, 10, 0.15);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    margin: -0.5rem auto 1rem auto;
    width: fit-content;
}

/* Кнопка годового пакета — более выразительная */
.btn-popular {
    background-color: var(--accent-red) !important;
    box-shadow: 0 5px 15px rgba(192, 10, 10, 0.3);
}

.btn-popular:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 10, 10, 0.5);
}

/* Кнопка — используем готовый класс btn-primary-red с сайта */
.price-action {
    margin-top: auto;
}

/* Примечание под кнопкой */
.price-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Список функций в карточках услуг для администрирования */
.service-features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-features-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-features-list li i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(192, 10, 10, 0.15);
    border: 1px solid rgba(192, 10, 10, 0.3);
    border-radius: 50%;
    color: var(--accent-red);
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: all 0.3s ease;
}

.service-card.creative-card:hover .service-features-list li i {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    transform: scale(1.1);
}

/* Увеличиваем высоту карточек для длинного списка */
.service-card.creative-card {
    display: flex;
    flex-direction: column;
}

.service-card.creative-card .service-cta {
    margin-top: auto;
}

/* ============================================
   БОНУС
   ============================================ */

.bonus-section {
    background: linear-gradient(135deg, rgba(192, 10, 10, 0.08) 0%, #0d0d0d 50%, rgba(192, 10, 10, 0.05) 100%);
    padding: 5rem 0;
}

.bonus-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(192, 10, 10, 0.08) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid rgba(192, 10, 10, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.bonus-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 10, 10, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.bonus-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 10, 10, 0.15);
    border: 1px solid rgba(192, 10, 10, 0.3);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--accent-red);
    position: relative;
    z-index: 1;
}

.bonus-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.bonus-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.bonus-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bonus-description strong {
    color: var(--accent-red);
    font-weight: 700;
}

.bonus-total {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.bonus-total span {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    background: rgba(192, 10, 10, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    margin-left: 0.25rem;
}

.form-label-custom {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

.required-star {
    color: var(--accent-red);
}

.form-control-custom {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(192, 10, 10, 0.1);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.form-control-custom.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.3s ease;
}

.field-error i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 120px;
}

.content {
    margin: 2.5rem 5px 1px 0px;
}

/* Анимация появления ошибки */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   СТРАНИЦА «ОБО МНЕ»
   ============================================ */

.hero-section-about .hero-content-about {
    position: relative;
    z-index: 2;
}

.hero-subtitle-sm {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.about-hero-image {
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* Скиллы */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--accent-red);
    flex-shrink: 0;
}

.skill-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.skill-item:hover {
    background: rgba(192, 10, 10, 0.1);
    border-color: rgba(192, 10, 10, 0.3);
    transform: translateY(-3px);
}

/* Таймлайн */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Вертикальная линия */
.timeline::before {
    content: '';
    position: absolute;
    left: 140px; /* Позиция линии — между годом и контентом */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(192, 10, 10, 0.3);
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.timeline-year {
    min-width: 120px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-red);
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

/* Точка на линии */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 138px; /* Позиция точки — по центру линии */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 3px solid var(--primary-black);
    box-shadow: 0 0 10px rgba(192, 10, 10, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 20px rgba(192, 10, 10, 0.7);
}

/* Горизонтальная линия от года к точке */
.timeline-year::after {
    content: '';
    position: absolute;
    right: -2rem; /* Длина линии от года к точке */
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2px;
    background: rgba(192, 10, 10, 0.3);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(192, 10, 10, 0.2);
}

.timeline-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    text-align: left;
    transition: background 0.3s ease;
}

.timeline-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-toggle i {
    transition: transform 0.3s ease;
    color: var(--accent-red);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.timeline-toggle.open i {
    transform: rotate(180deg);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    padding-right: 1rem;
}

.timeline-body {
    display: none;
    padding: 1rem 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.timeline-body.open {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.timeline-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 1.25rem 0 0.5rem;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.timeline-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
}

.timeline-body strong {
    color: #fff;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO ДЛЯ ВНУТРЕННИХ СТРАНИЦ (без фона)
   ============================================ */

.hero-section-page {
    min-height: 60vh;
    padding: 10rem 0 4rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.hero-content-page {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    top: 1rem;
}

@media (max-width: 768px) {
    .hero-section-page {
        min-height: auto;
        padding: 8rem 0 3rem;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.75rem;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 14px;
        top: 1.5rem;
        transform: translateY(0);
    }
    
    .timeline-year {
        text-align: left;
        min-width: auto;
        padding-top: 0;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .timeline-year::after {
        display: none;
    }

    .timeline-content {
        width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .skill-item {
        padding: 0.75rem 1rem;
    }
    
    .skill-item i {
        font-size: 1.2rem;
    }
    
    .skill-item span {
        font-size: 0.85rem;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    
    .form-control-custom {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .bonus-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .bonus-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 2rem;
    }
    
    .bonus-title {
        font-size: 1.4rem;
    }
    
    .bonus-description {
        font-size: 0.95rem;
    }
    
    .bonus-total span {
        font-size: 1.2rem;
    }
    
    .bonus-wrapper .btn-primary-red {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .btn-primary-red {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Адаптивность под мобильные устройства */
@media (max-width: 768px) {
    .price-card {
        padding: 1.8rem 1.2rem;
        border-radius: 1.2rem;
    }

    .price-title {
        font-size: 1.6rem;
    }

    .price-value {
        font-size: 2.8rem;
    }

    .price-currency {
        font-size: 1.6rem;
    }

    .price-features li {
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .feature-icon {
        font-size: 1.2rem;
    }

    .price-equivalent {
        font-size: 0.8rem;
        padding: 0.15rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .price-card {
        padding: 1.5rem 1rem;
    }

    .price-title {
        font-size: 1.4rem;
    }

    .price-value {
        font-size: 2.4rem;
    }

    .price-period {
        font-size: 1rem;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .price-card {
        padding: 1.8rem 1.2rem;
        border-radius: 1.5rem;
    }

    .price-title {
        font-size: 1.6rem;
    }

    .price-value {
        font-size: 2.8rem;
    }

    .price-currency {
        font-size: 1.6rem;
    }

    .price-features li {
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .feature-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .price-card {
        padding: 1.5rem 1rem;
    }

    .price-title {
        font-size: 1.4rem;
    }

    .price-value {
        font-size: 2.4rem;
    }

    .price-period {
        font-size: 1rem;
    }
}

/* Адаптивные стили для хлебных крошек */
@media (max-width: 768px) {
    .breadcrumb-wrapper {
        margin-bottom: 1.5rem;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .service-subtitle {
        font-size: 1.1rem;
        padding-left: 0.8rem;
    }

    .price-tag {
        font-size: 1.2rem;
    }

    .tech-item {
        padding: 2rem 1rem !important;
    }

    #admin .row {
        flex-direction: column-reverse;
    }

    #admin .col-lg-6:first-child {
        margin-top: 2rem;
    }
}

/* Адаптивность */
@media (min-width: 1400px) {

}

/* Для планшетов в альбомной ориентации тоже скрываем */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {

}

@media (max-width: 992px) {

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .social-icon:hover {
        transform: translateY(-5px);
    }

    .social-icon::before {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-image-adjusted {
        max-height: 400px;
        margin-bottom: 2rem;
    }

    .about-text-container {
        padding-right: 0;
    }

    /* На планшетах и телефонах возвращаем стандартную структуру */
    .about-image-full-height {
        height: 400px;
        /* Фиксированная высота на мобильных */
        margin-top: 2rem;
        object-position: center 20%;
        /* Корректируем обрезку для мобильных */
    }

    .about-image-right-wrapper {
        height: auto;
        /* Отменяем растягивание на мобильных */
    }

    .achievements-list {
        padding: 1.2rem;
    }

    .achievement-item {
        flex-direction: column;
    }

    .achievement-item i {
        margin-bottom: 0.5rem;
    }

    .service-card.creative-card {
        padding: 2rem 1.5rem;
    }

    .service-features {
        justify-content: center;
    }

    .btn-all-services {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (min-height: 900px) {
    .about-image-full-height {
        max-height: 700px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .service-card,
    .advantage-card {
        padding: 2.5rem 2rem;
    }

    .about-image-adjusted {
        max-height: 350px;
    }

    .achievement-item span {
        font-size: 0.95rem;
    }

    .about-image-full-height {
        height: 350px;
    }

    .service-card.creative-card {
        padding: 1.8rem 1.2rem;
    }

    .service-icon-wrapper i {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}
