@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-darker: #5B21B6;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --bg-dark: #080202;
    --bg-gray: #1A1A1A;
    --accent-purple: #EBBFFF;
    --accent-light: #DD91FF;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.wrapper {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    padding: 40px 0;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800;
    color: var(--text-dark);
}

.main-nav {
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav li:not(.btn) a {
    color: var(--text-dark);
    position: relative;
    transition: all 0.3s ease;
}

.main-nav li:not(.btn) a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

.main-nav li:not(.btn) a:hover::after {
    width: 100%;
}

.main-nav li:not(.btn) a:hover {
    transform: translateY(-2px);
}

.main-nav li.btn a {
    background: var(--text-light);
    padding: 9px 17px;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.main-nav li.btn a:hover {
    background: var(--text-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Sections Common Styles */
section {
    padding: 100px 0;
}

.section-title {
    color: var(--text-light);
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #FFF 0%, var(--accent-purple) 50%, var(--accent-light) 80%);
    min-height: 100vh;
    padding: 0;
    position: relative;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--primary-color) 50%, var(--bg-dark) 100%);
    padding-top: 50px; /* Уменьшил отступ для ПК версии */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 50px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-arrow {
    transform: translateX(10px);
    color: var(--primary-color);
}

.service-icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin: 20px 0 15px 0;
}

.service-card p {
    color: var(--primary-dark);
    font-size: 16px;
    line-height: 1.5;
}

.service-arrow {
    font-size: 32px;
    color: #CBD5E1;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: var(--bg-dark);
}

.accordion {
    width: 100%;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-gray);
    margin-bottom: 2px;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
}

.accordion-header {
    padding: 40px 60px;
    background: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    min-height: 120px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
}

.header-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
    opacity: 0.8;
}

.accordion-header:hover {
    background: var(--bg-gray);
}

.accordion-header:hover .header-title {
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    transition: all 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    transition: max-height 0.5s ease;
}

.content-wrapper {
    padding: 60px;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.content-left, .content-right {
    color: var(--text-light);
}

.content-left h3, .content-right h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.content-left ul, .content-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-left li, .content-right li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.content-left li::before, .content-right li::before {
    content: '•';
    color: var(--text-light);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -2px;
}

.content-left li.no-bullet, .content-right li.no-bullet {
    padding-left: 0;
}

.content-left li.no-bullet::before, .content-right li.no-bullet::before {
    content: none;
}

/* About Section */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-image-container {
    position: relative;
    margin-bottom: 40px;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

/* Logo Styles */
.logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.logo-image {
    height: 75px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    color: var(--text-light);
    padding-top: 20px;
    transform: translate(300px, -250px);
}

.image-caption h4 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.image-caption p {
    font-size: 18px;
    opacity: 0.9;
}

.about-divider {
    height: 3px;
    background: var(--text-light);
    width: 120%;
    margin-left: -50px;
    margin-bottom: 40px;
    margin-top: -80px;
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(124, 58, 237, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 4;
    font-size: 20px;
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* Active States */
.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--text-light);
}

.accordion-item.active .accordion-header {
    background: var(--primary-color);
}

.accordion-item.active .accordion-header .header-title {
    color: var(--text-light);
}

.accordion-item.active .accordion-header .header-subtitle {
    color: #E2E8F0;
}

.accordion-item.active .accordion-header:hover {
    background: var(--primary-dark);
}

.accordion-item.active {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

/* Hero Square Styles */
.hero-square {
    width: calc(100% - 40px);
    height: 600px;
    background: white;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Делаем изображение фоном всего hero-square */
.hero-square::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-image: url('../img/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    clip-path: circle(75% at 75% 80%);
}

/* Градиент поверх фонового изображения */
.hero-square::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    clip-path: circle(75% at 75% 78%);
    background: linear-gradient(
        110deg, 
        rgba(255, 255, 255, 0.9) 45%, 
        rgba(0, 0, 0, 0.5) 100%, 
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-left {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 3;
}

/* Убираем старый hero-image */
.hero-right {
    display: none;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 260px;
    transform: translatex(-440px);
}

.hero-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 75%;
    justify-content: center;
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.btn-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Текст над кнопками */
.hero-text {
    margin-bottom: 0px;
    transform: translateY(-250px);
    width: 800px;
    height: 50px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

/* Footer Styles */
.main-footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Центрируем только среднюю колонку с контактами */
.footer-section:nth-child(2) {
    align-items: center;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-info p {
    justify-content: center;
}

.footer-years {
    margin-top: 20px;
}

.years-badge {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.contact-info p,
.address-info p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.7;
}

.logo a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh !important;
        height: 50vh;
    }
    
    .hero-square {
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
    }
    
    .hero-square::before {
        width: 100% !important;
        height: 100% !important;
        clip-path: none !important;
        background: linear-gradient(45deg, var(--accent-purple), var(--accent-light)) !important;
    }
    
    .hero-square::after {
        width: 100% !important;
        height: 100% !important;
        clip-path: none !important;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%
        ) !important;
    }
    
    .hero-left {
        flex: 1 !important;
        padding: 20px !important;
        justify-content: flex-start !important;
    }
    
    .hero-text {
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        margin-top: 0 !important;
        transform: none !important;
        position: relative;
        z-index: 4;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100% !important;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .services {
        padding-top: 100px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid,
    .about-grid,
    .content-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-nav {
        width: 50%;
    }
    
    .accordion-header {
        padding: 30px 40px;
    }
    
    .content-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .service-card {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .accordion-header {
        padding: 20px 25px;
        min-height: 100px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .about-image-container {
        width: 150px;
        height: 150px;
    }
    
    .image-caption {
        transform: translate(200px, -200px);
    }
    
    .logo-image {
        height: 40px;
        max-width: 150px;
    }
    
    .hero-square {
        height: auto;
        margin: 15px;
    }
    
    .hero-left {
        padding: 20px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .hero-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 24px;
    }
    
    .footer-section h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }
    
    .service-card h3 {
        font-size: 24px;
    }
    
    .accordion-header {
        padding: 15px 20px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .about-image-container {
        width: 120px;
        height: 120px;
    }
    
    .image-caption {
        transform: translate(150px, -150px);
    }
    
    .image-caption h4 {
        font-size: 24px;
    }
    
    .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .hero-square {
        height: auto;
        margin: 10px;
    }
    
    .hero-left {
        padding: 15px;
    }
    
    .hero-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .btn-icon {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 22px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
}