.page-header {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, #1fa5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #1fa5fd, #0dcaf0);
    border-radius: 2px;
}

.page-subtitle {
    position: relative;
    font-size: 1.5rem;
    color: #1fa5fd;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 20px 40px;
    border-radius: 16px;
    background: rgba(31, 165, 253, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 165, 253, 0.2);
    box-shadow:
        0 10px 30px rgba(31, 165, 253, 0.1),
        inset 0 0 20px rgba(31, 165, 253, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: subtitlePulse 2s ease-in-out infinite alternate;
}

.page-subtitle::before {
    content: '';
    position: absolute;
    right: -15px;
    top: -15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1fa5fd, #0dcaf0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    animation: pulseSubtitle 2s infinite;
    box-shadow: 0 5px 15px rgba(31, 165, 253, 0.3);
}

/* Add icons using data attributes */
.page-subtitle[data-icon]::before {
    font-family: "Font Awesome 6 Free";
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    position: absolute;
    right: -15px;
    top: -15px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1fa5fd, #0dcaf0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(31, 165, 253, 0.3);
    animation: iconPulse 2s infinite ease-in-out;
}

.page-subtitle[data-icon="question"]::before {
    content: '\f059';
}

.page-subtitle[data-icon="info"]::before {
    content: '\f05a';
}

.page-subtitle[data-icon="magic"]::before {
    content: '\e2ca';
}

.page-subtitle::before::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.15) 48%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.15) 52%,
            transparent 55%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes subtitlePulse {
    0% {
        box-shadow:
            0 10px 30px rgba(31, 165, 253, 0.1),
            inset 0 0 20px rgba(31, 165, 253, 0.05);
    }

    100% {
        box-shadow:
            0 15px 40px rgba(31, 165, 253, 0.2),
            inset 0 0 30px rgba(31, 165, 253, 0.1);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(31, 165, 253, 0.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Добавляем разделители секций */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(31, 165, 253, 0.2), transparent);
    margin: 60px 0;
}

.hero-section {
    padding-bottom: 3rem;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    animation: glow 4s ease-in-out infinite alternate;
    box-shadow: 1px 12px 25px rgba(0, 0, 0, 0.78);
    border: solid 1px rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 600px;
    margin: 0px auto 50px;
    aspect-ratio: 16/9;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

@keyframes glow {
    0% {
        box-shadow:
            0 0 30px rgba(31, 165, 253, 0.1),
            0 0 60px rgba(31, 165, 253, 0.05),
            0 0 90px rgba(31, 165, 253, 0.025),
            inset 0 0 30px rgba(31, 165, 253, 0.1);
        border-color: rgba(31, 165, 253, 0.1);
    }

    50% {
        box-shadow:
            0 0 40px rgba(31, 165, 253, 0.15),
            0 0 80px rgba(31, 165, 253, 0.075),
            0 0 120px rgba(31, 165, 253, 0.037),
            inset 0 0 40px rgba(31, 165, 253, 0.15);
        border-color: rgba(31, 165, 253, 0.2);
    }

    100% {
        box-shadow:
            0 0 50px rgba(13, 202, 240, 0.2),
            0 0 100px rgba(13, 202, 240, 0.1),
            0 0 150px rgba(13, 202, 240, 0.05),
            inset 0 0 50px rgba(13, 202, 240, 0.2);
        border-color: rgba(13, 202, 240, 0.3);
    }
}

/* Adjust glow for better mobile performance */
@media (max-width: 768px) {
    .hero-content {
        animation: glow 4s ease-in-out infinite alternate;
    }

    @keyframes glow {
        0% {
            box-shadow:
                0 0 20px rgba(31, 165, 253, 0.1),
                inset 0 0 20px rgba(31, 165, 253, 0.1);
        }

        100% {
            box-shadow:
                0 0 30px rgba(13, 202, 240, 0.15),
                inset 0 0 30px rgba(13, 202, 240, 0.15);
        }
    }
}

.hero-text {
    /* Modern responsive typography using clamp() for fluid scaling */
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: clamp(1.6, 2vw, 1.8);
    color: #c1d1e9;
    position: relative;
    padding: clamp(20px, 5vw, 40px);
    text-align: center;
    
    /* Enhanced readability */
    font-weight: 400;
    letter-spacing: 0.3px;
    word-spacing: 1px;
    
    /* Improved text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* Responsive max-width for optimal reading */
    max-width: min(65ch, 90%);
    margin: 0 auto;
}

.hero-text p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    
    /* Better paragraph spacing */
    margin-bottom: clamp(16px, 3vw, 24px);
}

.hero-text p:last-child {
    margin-bottom: 0;
}

/* Enhanced responsive breakpoints */
@media (max-width: 1200px) {
    .hero-text {
        font-size: clamp(0.95rem, 2.2vw, 1.15rem);
        padding: clamp(18px, 4vw, 35px);
    }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: clamp(1.5, 1.5vw, 1.7);
        padding: clamp(15px, 4vw, 25px);
        text-align: left;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
        line-height: 1.6;
        padding: clamp(12px, 3vw, 20px);
        letter-spacing: 0.1px;
    }
}

.tech-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(31, 165, 253, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tech-circle.pulse {
    animation: pulse 3s infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0;
    }
}

/*Стили повторяются из catalo_product_card_block*/
.page-cards-settings {
    padding: 40px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.page-card-settings {
    background: linear-gradient(145deg, rgba(9, 16, 26, 0.95) 0%, rgba(9, 16, 72, 0.95) 100%);
    border: 1px solid rgba(31, 165, 253, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    height: 100%;
}

.page-card-settings::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(31, 165, 253, 0.1), rgba(13, 202, 240, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.page-card-settings:hover {
    transform: translateY(-8px);
    border-color: rgba(31, 165, 253, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.page-card-settings:hover::after {
    opacity: 1;
}

.cards-grid-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-card-settings:hover .card-image-settings img {
    transform: scale(1.1);
}

.card-block-card {
    background: linear-gradient(145deg, rgba(9, 16, 26, 0.95) 0%, rgba(9, 16, 72, 0.95) 100%);
    border: 1px solid rgba(31, 165, 253, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-block-card:hover {
    transform: translateY(-8px);
    border-color: rgba(31, 165, 253, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image-settings {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
}

.card-image-settings img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-block-card:hover .card-image-settings img {
    transform: scale(1.1);
}

.card-overlay-settings {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(9, 16, 26, 0) 0%,
            rgba(9, 16, 26, 0.9) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.card-content-settings {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title-settings {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, #c1d1e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
}

.card-description-settings {
    color: #8b9bb4;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}


/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .cards-grid-settings {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-cards-settings {
        padding: 20px 0;
    }

    .cards-grid-settings {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .card-content-settings {
        padding: 20px;
    }

    .card-title-settings {
        font-size: 1.25rem;
    }
}

.highlight-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-text {
    font-size: 1.25rem;
    line-height: 1.6;
    padding: 15px 25px;
    background: rgba(31, 165, 253, 0.05);
    border-radius: 12px;
    border-left: 3px solid rgba(31, 165, 253, 0.3);
    transition: all 0.3s ease;
    margin: 0;
    transition: all 0.3s ease;
}

.highlight-text:hover {
    transform: translateX(10px);
    background: rgba(31, 165, 253, 0.15);
}

.highlight-text.accent {
    background: linear-gradient(90deg, rgba(31, 165, 253, 0.15), rgba(13, 202, 240, 0.05));
    border-left-color: #1fa5fd;
    font-weight: 500;
}

.highlight-text.accent:hover {
    background: linear-gradient(90deg, rgba(31, 165, 253, 0.2), rgba(13, 202, 240, 0.1));
}

@media (max-width: 768px) {
    .highlight-text {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .highlight-wrapper {
        gap: 15px;
    }
}

/* Обновленные стили для карточек */
.page-cards-settings {
    padding: 60px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.cards-grid-settings {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 0 20px;
}

/* Стандартная карточка */
.page-card-settings {
    grid-column: span 4;
    min-height: 400px;
}

/* Широкая карточка */
.page-card-settings.wide {
    grid-column: span 8;
}

/* Высокая карточка */
.page-card-settings.tall {
    min-height: 500px;
}

/* Выделенная карточка */
.page-card-settings.featured {
    grid-column: span 6;
    background: linear-gradient(145deg, rgba(31, 165, 253, 0.1) 0%, rgba(13, 202, 240, 0.1) 100%);
    border-color: rgba(31, 165, 253, 0.2);
}

/* Горизонтальная карточка */
.page-card-settings.horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: span 12;
    gap: 30px;
}

.page-card-settings.horizontal .card-image-settings {
    height: 100%;
    padding-top: 0;
}

.page-card-settings.horizontal .card-content-settings {
    padding: 40px;
}

/* Медиа запросы */
@media (max-width: 1200px) {

    .page-card-settings,
    .page-card-settings.featured {
        grid-column: span 6;
    }

    .page-card-settings.horizontal {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {

    .page-card-settings,
    .page-card-settings.featured,
    .page-card-settings.wide {
        grid-column: span 12;
    }

    .page-card-settings.horizontal {
        grid-template-columns: 1fr;
    }

    .page-card-settings.horizontal .card-image-settings {
        padding-top: 56.25%;
    }
}

.aspect-showcase {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.aspect-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 40px 0;
}

.aspect-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.aspect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.aspect-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(31, 165, 253, 0.2) 0%, rgba(13, 202, 240, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aspect-item:hover .aspect-overlay {
    opacity: 1;
}

.aspect-item:hover .aspect-image img {
    transform: scale(1.05);
}

.aspect-content {
    flex: 1;
    padding: 40px;
    position: relative;
}

.aspect-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1fa5fd 0%, #0dcaf0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.aspect-icon i {
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s ease;
}

.aspect-item:hover .aspect-icon i {
    transform: scale(1.2);
}

.aspect-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff 0%, #c1d1e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.aspect-content p {
    color: #c1d1e9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.aspect-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(31, 165, 253, 0.2) 50%,
            transparent 100%);
    margin: 60px 0;
}

@media (max-width: 991px) {

    .aspect-item,
    .aspect-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .aspect-content {
        padding: 20px 0;
    }

    .aspect-content h3 {
        font-size: 1.5rem;
    }

    .aspect-content p {
        font-size: 1rem;
    }

    .aspect-divider {
        margin: 40px 0;
    }
}

/* Добавляем анимацию появления */
.aspect-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.aspect-item:nth-child(2) {
    animation-delay: 0.2s;
}

.aspect-item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.personal-section {
    margin-bottom: 60px;
}

.personal-header {
    text-align: center;
}

.personal-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #1fa5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.personal-subtitle {
    font-size: 1.2rem;
    color: #8b9bb4;
    text-align: center;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    perspective: 1000px;
    position: relative;
}

.per-card {
    background: rgba(31, 165, 253, 0.05);
    border: 1px solid rgba(31, 165, 253, 0.1);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: default;
}

.per-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg,
            rgba(31, 165, 253, 0.1) 0%,
            rgba(13, 202, 240, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.per-card.featured {
    grid-column: span 2;
    background: linear-gradient(145deg,
            rgba(31, 165, 253, 0.15) 0%,
            rgba(13, 202, 240, 0.15) 100%);
    border-width: 2px;
}

.per-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1fa5fd, #0dcaf0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.per-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 23px;
    background: linear-gradient(135deg, #1fa5fd50, #0dcaf050);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.per-icon i {
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s ease;
}

.per-card:hover .per-icon i {
    transform: scale(1.2);
}

.per-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(90deg, #fff, #c1d1e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.per-card:hover h3 {
    transform: translateZ(15px);
}

.per-card p {
    color: #8b9bb4;
    line-height: 1.7;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.personal-footer {
    margin-top: 60px;
    padding: 0 20px;
}

.sec-note {
    background: rgba(31, 165, 253, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sec-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1fa5fd, #0dcaf0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-icon i {
    font-size: 20px;
    color: #fff;
}

.sec-note p {
    color: #8b9bb4;
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 1200px) {
    .personal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .per-card.featured {
        grid-column: auto;
    }
}

@media (max-width: 991px) {
    .personal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .per-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .personal-section {
        padding: 40px 0;
    }

    .personal-title {
        font-size: 2rem;
    }

    .personal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .per-card {
        padding: 25px;
    }

    .per-icon {
        width: 60px;
        height: 60px;
    }

    .per-card h3 {
        font-size: 1.4rem;
    }

    .per-card p {
        font-size: 1rem;
    }

    .sec-note {
        flex-direction: column;
        text-align: center;
    }
}


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

    .page-subtitle {
        font-size: 1.3rem;
        padding: 15px 30px;
        margin: 40px 20px;
    }
    .hero-image{
        margin:0px
    }
}