/* Общие стили */
:root {
    --primary-color: #2D3436;
    --secondary-color: #0984E3;
    --accent-color: #00B894;
    --text-color: #2D3436;
    --light-bg: #F5F6FA;
    --dark-bg: #2D3436;
}

body {
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Главный экран */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    z-index: -1;
}

/* Секция услуг */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Портфолио */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--accent-color);
}

/* Футер */
.footer {
    background: var(--dark-bg);
    color: white;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Анимации */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

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

/* Стили для страницы "О компании" */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
}

.team-card {
    text-align: center;
    margin-bottom: 2rem;
}

.team-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 5px solid var(--light-bg);
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-card p {
    color: var(--secondary-color);
    font-weight: 500;
}

.about-section img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

/* Адаптивность для страницы "О компании" */
@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .team-card img {
        width: 150px;
        height: 150px;
    }

    .about-section img {
        margin-bottom: 2rem;
    }
}

/* Стили для страницы "Портфолио" */
.portfolio-filter {
    background: var(--light-bg);
}

.filter-buttons {
    margin-bottom: 2rem;
}

.filter-buttons .btn {
    margin: 0 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover,
.filter-buttons .btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.portfolio-grid .portfolio-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-grid .portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-grid .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-grid .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-grid .portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-grid .portfolio-overlay h3 {
    color: white;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-grid .portfolio-overlay p {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-grid .portfolio-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.portfolio-grid .portfolio-item:hover .portfolio-overlay h3,
.portfolio-grid .portfolio-item:hover .portfolio-overlay p,
.portfolio-grid .portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* Статистика */
.stats-section {
    background: var(--light-bg);
}

.stat-item {
    padding: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

/* Адаптивность для страницы "Портфолио" */
@media (max-width: 768px) {
    .filter-buttons .btn {
        margin: 0.25rem;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .portfolio-grid .portfolio-item img {
        height: 250px;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }
}

/* Стили для страницы "Услуги" */
.service-card-large {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.service-card-large h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.service-features li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Процесс работы */
.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--light-bg);
    margin-bottom: 1rem;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-step p {
    color: var(--text-color);
    margin: 0;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--light-bg);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

/* Адаптивность для страницы "Услуги" */
@media (max-width: 768px) {
    .service-card-large {
        padding: 2rem;
        margin-bottom: 2rem;
    }

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

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

    .process-step::after {
        display: none;
    }

    .step-number {
        font-size: 3rem;
    }
}

/* Стили для страницы контактов */
.contact-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-card p {
    color: var(--text-color);
    margin-bottom: 0;
}

.form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.map-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
    }

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

    .form-wrapper {
        padding: 2rem;
    }
}

/* --- СТИЛИ ДЛЯ СОВРЕМЕННОЙ СЕКЦИИ УСЛУГ --- */
.styled-services {
    background: linear-gradient(120deg, #e0e7ff 0%, #f5f6fa 50%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.gradient-text {
    background: linear-gradient(90deg, #5f5fff 0%, #7b2ff2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.styled-card {
    border-radius: 2rem 2rem 2.5rem 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    min-height: 340px;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
    background: white;
    z-index: 1;
}

.styled-card:hover {
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.18);
    transform: translateY(-8px) scale(1.03);
}

.styled-card-purple {
    background: linear-gradient(135deg, #a18fff 0%, #e0e7ff 100%);
    color: #fff;
}

.styled-card-blue {
    background: linear-gradient(135deg, #e0e7ff 0%, #7b2ff2 100%);
    color: #222;
}

.styled-card-white {
    background: #fff;
    color: #222;
}

.styled-card h3,
.styled-card p,
.styled-card .tag {
    color: #222;
}

.styled-card-purple h3,
.styled-card-purple p,
.styled-card-purple .tag,
.styled-card-blue h3,
.styled-card-blue p,
.styled-card-blue .tag {
    color: #fff;
}

.styled-card-white h3,
.styled-card-white p,
.styled-card-white .tag {
    color: #222;
}

.styled-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    font-size: 2.5rem;
    color: #7b2ff2;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.08);
}

.styled-card-purple .styled-card-icon,
.styled-card-blue .styled-card-icon {
    color: #fff;
}

.service-tags {
    margin-top: 1.2rem;
}

.tag {
    display: inline-block;
    background: #f5f6fa;
    color: #7b2ff2;
    border-radius: 1rem;
    padding: 0.3rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0.3rem 0.3rem 0;
    transition: background 0.2s, color 0.2s;
}

.styled-card-purple .tag {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.styled-card-blue .tag {
    background: #ede7ff;
    color: #7b2ff2;
}

.styled-card-white .tag {
    background: #f5f6fa;
    color: #7b2ff2;
}

@media (max-width: 992px) {
    .styled-card {
        min-height: 280px;
        padding: 2rem 1.2rem 1.5rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .styled-services {
        border-radius: 0 0 24px 24px;
    }

    .styled-card {
        min-height: 220px;
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .gradient-text {
        font-size: 2rem;
    }
}

/* --- Современная шапка сайта --- */
.site-header {
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 4px 32px rgba(123, 47, 242, 0.06);
    margin: 24px auto 32px auto;
    max-width: 98vw;
    position: sticky;
    top: 12px;
    z-index: 100;
    transition: box-shadow 0.3s, background 0.3s;
}

.header-inner {
    min-height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.2rem;
}

.header-logo {
    flex-shrink: 0;
}

.header-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-list li {
    margin: 0 0.2rem;
    white-space: nowrap;
}

.nav-btn {
    display: inline-block;
    background: #f5f6fa;
    color: #3a2fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 2rem;
    padding: 0.5rem 1.3rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.header-actions {
    gap: 0.7rem;
    flex-shrink: 0;
}

.phone-btn,
.project-btn {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .header-inner {
        gap: 0.5rem;
        padding: 0 8px;
    }

    .nav-btn,
    .phone-btn,
    .project-btn {
        font-size: 0.98rem;
        padding: 0.45rem 1rem;
    }
}

@media (max-width: 992px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 0 8px;
        align-items: stretch;
    }

    .nav-list {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .site-header {
        min-height: unset;
        padding: 0.2rem 0 0.2rem 0;
        border-radius: 0.7rem;
        margin: 4px auto 8px auto;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header-inner {
        min-height: unset;
        gap: 0.1rem;
        padding: 0 2px;
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .header-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.2rem;
    }

    .header-logo {
        width: auto;
        min-width: 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-main,
    .logo-accent {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.8rem;
        margin-left: 3px;
    }

    .burger-menu {
        width: 32px;
        height: 32px;
    }

    .burger-bar {
        width: 20px;
        height: 3px;
        margin: 2px 0;
    }

    .header-actions-mobile {
        margin-bottom: 0.2rem !important;
        margin-top: 0 !important;
        gap: 0.2rem;
    }

    .phone-link {
        font-size: 1.05rem;
        color: #3a2fff;
        background: #f5f6fa;
        border-radius: 1.2rem;
        padding: 0.3rem 0.7rem;
        min-width: 0;
        flex-shrink: 1;
        flex-grow: 1;
        max-width: 60%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .phone-link i {
        font-size: 1.1em;
    }

    .project-btn {
        font-size: 0.95rem;
        padding: 0.3rem 1rem;
        border-radius: 1.2rem;
        width: auto;
        min-width: 0;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .header-nav,
    .header-actions {
        display: none !important;
    }
}

/* --- Современная шапка --- */
.modern-hero-section {
    background: linear-gradient(120deg, #e0e7ff 0%, #f5f6fa 50%, #c3cfe2 100%);
    border-radius: 0 0 40px 40px;
    padding-top: 80px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.modern-hero-section .gradient-text {
    font-size: 2.8rem;
    line-height: 1.1;
}

.hero-quote {
    background: #f5f6fa;
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(123, 47, 242, 0.08);
    font-size: 1.1rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ede7ff;
}

.quote-icon {
    font-size: 2.5rem;
    color: #7b2ff2;
    font-weight: bold;
}

/* --- Фильтры портфолио --- */
.portfolio-filters-section {
    background: transparent;
    margin-bottom: 0;
}

.portfolio-filters {
    margin-bottom: 1.5rem;
}

.portfolio-filter-tag {
    display: inline-block;
    background: #ede7ff;
    color: #7b2ff2;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.5rem;
}

.portfolio-filter-tag.active,
.portfolio-filter-tag:hover {
    background: #7b2ff2;
    color: #fff;
}

/* --- Современный блок портфолио --- */
.modern-portfolio-section {
    background: linear-gradient(120deg, #e0e7ff 0%, #f5f6fa 100%);
    border-radius: 40px;
    margin: 40px 0;
}

.modern-portfolio-card {
    background: linear-gradient(135deg, #a18fff 0%, #7b2ff2 100%);
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 1.5rem 1rem 1rem 1rem;
    min-height: 110px;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.3s;
    text-align: center;
}

.modern-portfolio-card:hover {
    box-shadow: 0 16px 48px 0 rgba(123, 47, 242, 0.18);
    transform: translateY(-8px) scale(1.03);
}

.portfolio-card-img {
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-card-img img {
    max-width: 80%;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.portfolio-card-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    line-height: 1;
}

.portfolio-card-desc {
    font-size: 1.05rem;
    color: #ede7ff;
    margin-bottom: 0;
}

/* --- Современный футер --- */
.modern-footer {
    background: linear-gradient(120deg, #e0e7ff 0%, #f5f6fa 50%, #c3cfe2 100%);
    border-radius: 40px 40px 0 0;
    color: #222;
    box-shadow: 0 -4px 24px rgba(123, 47, 242, 0.08);
    padding: 4rem 0 3rem 0;
    margin-top: 2rem;
}

.modern-footer .gradient-text {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.modern-footer p {
    font-size: 1.1rem;
    color: #444;
    font-weight: 500;
    line-height: 1.6;
}

.footer-social-links {
    display: inline-flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social-link {
    color: #7b2ff2;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(123, 47, 242, 0.1);
    text-decoration: none;
}

.footer-social-link:hover {
    color: #fff;
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(123, 47, 242, 0.2);
}

.footer-contact {
    font-size: 1.15rem;
    color: #444;
    font-weight: 500;
}

.footer-contact span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.08);
}

@media (max-width: 768px) {
    .footer-social-link {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
    }

    .footer-contact {
        font-size: 1rem;
    }

    .footer-contact span {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

.logo-text {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.logo-main {
    color: #222;
    font-weight: 800;
}

.logo-accent {
    color: #3a2fff;
    margin-left: 2px;
    font-weight: 800;
}

.logo-sub {
    font-size: 1rem;
    color: #7b2ff2;
    font-weight: 600;
    margin-top: 0.2rem;
    margin-left: 6px;
}

.phone-btn {
    display: inline-block;
    background: #f5f6fa;
    color: #3a2fff;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.phone-btn:hover {
    background: #ede7ff;
    color: #7b2ff2;
    box-shadow: 0 4px 16px rgba(123, 47, 242, 0.10);
}

.project-btn {
    display: inline-block;
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 2rem;
    padding: 0.6rem 1.7rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(123, 47, 242, 0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
}

.project-btn:hover {
    background: linear-gradient(90deg, #7b2ff2 0%, #3a2fff 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(123, 47, 242, 0.18);
}

/* --- Блок отзывов/партнёров --- */
.partners-section {
    background: #edefff;
    border-radius: 40px;
    margin-bottom: 40px;
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 2.5rem 2.5rem;
    align-items: stretch;
    justify-items: stretch;
    position: relative;
}

.partner-card {
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 200px;
    position: relative;
    z-index: 1;
}

.partner-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-sub {
    font-size: 1rem;
    color: #7b2ff2;
    font-weight: 600;
    margin-left: 6px;
    margin-top: 0.2rem;
}

.partner-desc {
    color: #6c6c8a;
    font-size: 1.08rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.partner-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #7b2ff2;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(123, 47, 242, 0.10);
    margin: auto;
    z-index: 2;
}

@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem 0;
    }
}

.partner-link {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(120deg, #7b2ff2 0%, #3a2fff 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(123, 47, 242, 0.10);
    text-decoration: none;
    transition: background 0.4s, box-shadow 0.2s, transform 0.2s;
    z-index: 2;
    border: none;
    background-size: 200% 200%;
}

.partner-link:hover {
    background: linear-gradient(270deg, #7b2ff2, #3a2fff, #7b2ff2);
    background-size: 200% 200%;
    animation: gradient-move 1.2s linear infinite;
    box-shadow: 0 8px 32px rgba(123, 47, 242, 0.18);
    transform: scale(1.08);
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- SEO-блок с длинным текстом и спойлером --- */
.seo-section {
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 4px 32px rgba(123, 47, 242, 0.06);
    margin: 32px auto 24px auto;
    max-width: 900px;
    padding: 0.5rem 0;
}

.seo-text-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.2rem 1rem 1rem 1rem;
}

.seo-text {
    color: #444;
    font-size: 1.13rem;
    line-height: 1.7;
    max-height: 7.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(.4, 0, .2, 1);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.seo-text.expanded {
    max-height: 1000px;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.seo-toggle-btn {
    display: block;
    margin: 1.2rem auto 0 auto;
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 2rem;
    padding: 0.6rem 2.2rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(123, 47, 242, 0.10);
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.seo-toggle-btn:hover {
    background: linear-gradient(90deg, #7b2ff2 0%, #3a2fff 100%);
    box-shadow: 0 4px 24px rgba(123, 47, 242, 0.18);
}

@media (max-width: 600px) {
    .seo-section {
        border-radius: 1.2rem;
        margin: 18px auto 16px auto;
        max-width: 100vw;
    }

    .seo-text-wrapper {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }

    .seo-toggle-btn {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }
}

/* --- Современный hero-блок --- */
.styled-hero-section {
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 4px 32px rgba(123, 47, 242, 0.06);
    margin: 32px auto 32px auto;
    max-width: 1295px;
    padding: 2.5rem 0 2.5rem 0;
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 2.5rem;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.7);
    display: block;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(123, 47, 242, 0.28) 0%, rgba(58, 47, 255, 0.18) 100%);
    z-index: 1;
}

.styled-hero-section>.container {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-img-rounded {
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    max-width: 90%;
    max-height: 340px;
    object-fit: cover;
}

.hero-btn {
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 2rem;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(123, 47, 242, 0.10);
    border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    display: inline-block;
}

.hero-btn:hover {
    background: linear-gradient(90deg, #7b2ff2 0%, #3a2fff 100%);
    box-shadow: 0 4px 24px rgba(123, 47, 242, 0.18);
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .styled-hero-section {
        padding: 1.2rem 0 1.2rem 0;
        min-height: 320px;
    }

    .hero-img-rounded {
        max-width: 100%;
        max-height: 220px;
    }
}

@media (max-width: 600px) {
    .styled-hero-section {
        border-radius: 1.2rem;
        margin: 12px auto 12px auto;
        padding: 0.7rem 0 0.7rem 0;
    }

    .hero-img-rounded {
        border-radius: 1rem;
        max-height: 140px;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

.hero-content-bg {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 1.5rem;
    padding: 2.2rem 2rem 2rem 2rem;
    display: inline-block;
    box-shadow: 0 4px 32px rgba(123, 47, 242, 0.10);
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.styled-hero-section h1,
.styled-hero-section p {
    text-shadow: 0 2px 12px rgba(58, 47, 255, 0.10), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(123, 47, 242, 0.28) 0%, rgba(58, 47, 255, 0.18) 100%);
    z-index: 1;
}

@media (max-width: 600px) {
    .hero-content-bg {
        padding: 1.1rem 0.7rem 1rem 0.7rem;
        border-radius: 0.8rem;
    }
}

/* --- Блок последних статей из блога --- */
.blog-section {
    background: #fff;
    border-radius: 2.5rem;
    box-shadow: 0 4px 32px rgba(123, 47, 242, 0.06);
    margin: 32px auto 32px auto;
    max-width: 1200px;
}

.blog-card {
    background: #f5f6fa;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(123, 47, 242, 0.08);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 370px;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(123, 47, 242, 0.16);
    transform: translateY(-4px) scale(1.02);
}

.blog-card-img {
    width: 100%;
    height: 160px;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
}

.blog-card-date {
    color: #7b2ff2;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #222;
}

.blog-card-desc {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.blog-link-btn {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.10);
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
    z-index: 2;
    border: none;
}

.blog-link-btn:hover {
    background: linear-gradient(90deg, #7b2ff2 0%, #3a2fff 100%);
    box-shadow: 0 8px 32px rgba(123, 47, 242, 0.18);
    transform: scale(1.08);
}

@media (max-width: 992px) {
    .blog-section {
        border-radius: 1.2rem;
        margin: 16px auto 16px auto;
        max-width: 100vw;
    }

    .blog-card {
        min-height: 320px;
        height: 100%;
        padding: 1rem 0.7rem 1rem 0.7rem;
    }

    .blog-card-img {
        height: 120px;
    }

    .blog-link-btn {
        right: 0.7rem;
        bottom: 0.7rem;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .blog-card {
        min-height: 220px;
        height: auto;
    }
}

/* --- Уведомление о cookies --- */
.cookies-notice {
    position: fixed;
    left: 24px;
    bottom: 24px;
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 4px 32px rgba(123, 47, 242, 0.12);
    padding: 1.2rem;
    max-width: 380px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookies-notice.show {
    transform: translateY(0);
}

.cookies-content {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookies-icon {
    font-size: 2rem;
    color: #7b2ff2;
    flex-shrink: 0;
}

.cookies-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.4rem;
}

.cookies-text p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.cookies-buttons {
    display: flex;
    gap: 0.8rem;
}

.cookies-accept,
.cookies-more {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookies-accept {
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    color: #fff;
}

.cookies-more {
    background: #f5f6fa;
    color: #7b2ff2;
}

.cookies-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 47, 242, 0.2);
}

.cookies-more:hover {
    background: #ede7ff;
}

@media (max-width: 600px) {
    .cookies-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .cookies-content {
        gap: 0.8rem;
    }

    .cookies-icon {
        font-size: 1.5rem;
    }

    .cookies-text h4 {
        font-size: 1rem;
    }

    .cookies-text p {
        font-size: 0.9rem;
    }

    .cookies-buttons {
        flex-direction: column;
    }

    .cookies-accept,
    .cookies-more {
        width: 100%;
        text-align: center;
    }
}

/* --- Бургер-меню --- */
.burger-menu {
    background: none;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1201;
    margin-left: 8px;
}

.burger-bar {
    width: 28px;
    height: 4px;
    background: #7b2ff2;
    border-radius: 2px;
    margin: 3px 0;
    transition: all 0.3s;
}

/* --- Мобильное меню --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(245, 246, 250, 0.98);
    box-shadow: 0 8px 32px rgba(123, 47, 242, 0.10);
    z-index: 1200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav .nav-list {
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav .nav-btn {
    font-size: 1.3rem;
    padding: 0.8rem 2.2rem;
    border-radius: 2rem;
    background: #fff;
    color: #7b2ff2;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.08);
    margin-bottom: 0.5rem;
}

.mobile-nav .nav-btn:hover {
    background: linear-gradient(90deg, #3a2fff 0%, #7b2ff2 100%);
    color: #fff;
}

/* --- Иконка телефона в шапке --- */
.phone-btn {
    display: inline-block;
    background: #f5f6fa;
    color: #3a2fff;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 2rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
}

.phone-btn i {
    font-size: 1.3em;
    vertical-align: middle;
}

.phone-btn:hover {
    background: #ede7ff;
    color: #7b2ff2;
    box-shadow: 0 4px 16px rgba(123, 47, 242, 0.10);
}

@media (max-width: 992px) {
    .header-nav {
        display: none !important;
    }

    .burger-menu {
        display: flex !important;
    }
}

@media (min-width: 993px) {
    .mobile-nav {
        display: none !important;
    }
}

/* --- Современный горизонтальный таймлайн для блока 'Наша история' --- */
.history-section {
    background: linear-gradient(90deg, #1a1266 0%, #2d1e8a 100%);
    padding-top: 64px;
    padding-bottom: 64px;
    position: relative;
    overflow-x: hidden;
}

.history-timeline-wrapper {
    overflow-x: auto;
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.history-timeline-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.history-timeline {
    min-width: unset;
    width: max-content;
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
}

.history-card {
    min-width: 340px;
    max-width: 370px;
    border-radius: 2.2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 2.2rem 2rem 1.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 24px;
    background: #fff;
    color: #222;
    transition: box-shadow 0.3s, transform 0.3s;
    margin-right: 32px;
}

.history-card:last-child {
    margin-right: 0;
}

.history-card-purple {
    background: linear-gradient(135deg, #7b2ff2 0%, #5f5fff 100%);
    color: #fff;
}

.history-card-white {
    background: #fff;
    color: #222;
}

.history-year {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
}

.history-desc {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
}

.history-avatar-group {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

.history-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(123, 47, 242, 0.10);
    margin-left: -10px;
}

.history-card-purple .history-avatar {
    border: 3px solid #7b2ff2;
}

@media (max-width: 900px) {
    .history-timeline {
        min-width: 600px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .history-card {
        min-width: 260px;
        max-width: 320px;
        padding: 1.2rem 1rem 1rem 1rem;
    }

    .history-year {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }

    .history-desc {
        font-size: 1rem;
    }

    .history-avatar {
        width: 32px;
        height: 32px;
    }
}

.breadcrumbs-wrapper {
    width: 100%;
    background: #f5f6fa;
    border-radius: 1.2rem;
    margin: 24px auto 18px auto;
    padding: 0.5rem 1.2rem 0.5rem 1.2rem;
    max-width: 1295px;
    box-shadow: 0 2px 12px rgba(123, 47, 242, 0.06);
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    align-items: center;
}

.breadcrumb-item {
    color: #7b2ff2;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #3a2fff;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #7b2ff2;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #222;
    font-weight: 700;
}

.breadcrumb-item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3a2fff;
    border-radius: 50%;
    margin: 0 0.7rem 0 0.7rem;
    vertical-align: middle;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item i.fa-home {
    font-size: 1.15em;
    margin-right: 0.1em;
    color: #3a2fff;
    vertical-align: middle;
}

.breadcrumb-item+.breadcrumb-item::before {

    display: none;
}

@media (max-width: 600px) {
    .breadcrumbs-wrapper {
        border-radius: 0.7rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.98rem;
        margin: 10px 0 12px 0;
        max-width: 100vw;
    }

    .breadcrumbs-list {
        gap: 0.2rem;
    }
}