/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #ffffff;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

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

/* Firm Colors */
:root {
    --lime-green: #B8E986;
    --light-blue: #8ED1FC;
    --light-purple: #C7B8F7;
    --dark-gray: #222222;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid #565656;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.logo-svg {
    height: 24px;
    width: auto;
    max-width: 120px;
    vertical-align: middle;
}

.logo-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--dark-gray);
    margin-top: 8px;
    text-decoration: none;
}

.header-auth {
    display: flex;
    gap: 30px;
}

.auth-link {
    color: var(--dark-gray);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--lime-green);
}

.whatsapp-link {
    color: #000000;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
}

.whatsapp-link:hover {
    background: #25D366;
    color: #ffffff;
}

.whatsapp-text {
    font-size: 14px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}


/* Simple Mechanics Section */
.simple-mechanics {
    padding: 80px 0;
    background: white;
    position: relative;
}

.simple-mechanics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/pt_pattern_optimized.svg');
    background-repeat: repeat;
    background-size: 38px 34px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.mechanics-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.mechanics-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.step {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.step::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--lime-green);
    font-weight: bold;
    font-size: 1.5rem;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--dark-gray);
    max-width: 800px;
}

.highlight {
    background: linear-gradient(45deg, var(--lime-green), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.black-box {
    background: #000000;
    color: #ffffff;
    padding-left: 12px;
    padding-bottom: 6px;
    padding-right: 12px;
    padding-top: 6px;
    border-radius: 0px;
    display: inline-block;
    line-height: 1.3;
    margin-top: 6px;
    white-space: nowrap;
}

.green-box {
    background: #b28ed4;
    color: #ffffff;
    padding-left: 12px;
    padding-right: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    display: inline-block;
    line-height: 1.3;
    margin-top: 6px;
    white-space: nowrap;
}

.purple-box {
    background: #25D366;
    color: #ffffff;
    padding-left: 0;
    padding-right: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    display: inline-block;
    line-height: 1.3;
    margin-top: 6px;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Двухколоночный макет для контента */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.left-column p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.left-column p:last-child {
    margin-bottom: 0;
}

.services-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.services-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.services-list ul {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-whatsapp-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    background: #25D366;
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.services-whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--lime-green), var(--light-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 233, 134, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 233, 134, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--dark-gray);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: var(--white);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.geometric-shapes {
    position: relative;
    width: 300px;
    height: 300px;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: var(--lime-green);
    top: 20px;
    left: 50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    top: 100px;
    right: 30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--light-purple);
    bottom: 50px;
    left: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--dark-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 24px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.icon-green { background: var(--lime-green); }
.icon-blue { background: var(--light-blue); }
.icon-purple { background: var(--light-purple); }

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark-gray);
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-gray);
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-gray);
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-shapes {
    position: relative;
    width: 250px;
    height: 250px;
}

.about-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.8;
}

.shape-green {
    width: 100px;
    height: 100px;
    background: var(--lime-green);
    top: 0;
    left: 0;
    transform: rotate(45deg);
}

.shape-blue {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    top: 80px;
    right: 0;
    border-radius: 50%;
}

.shape-purple {
    width: 120px;
    height: 60px;
    background: var(--light-purple);
    bottom: 0;
    left: 50px;
    border-radius: 30px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark-gray);
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-gray);
    color: var(--dark-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--lime-green);
}

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

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo-svg {
    height: 36px;
    width: auto;
    max-width: 180px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    display: block;
}

.footer-logo p {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--lime-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Мобильная кнопка WhatsApp */
.mobile-whatsapp-btn {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.mobile-nav-link:hover {
    background: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        height: auto;
        padding: 15px 20px;
    }
    
    .whatsapp-link {
        display: none;
    }
    
    .header-auth {
        justify-content: center;
    }
    
    .whatsapp-link {
        display: none !important;
    }
    
    .mobile-whatsapp-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: #25D366;
        color: white;
        padding: 18px 30px;
        border-radius: 50px;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        z-index: 9999;
        transition: all 0.3s ease;
    }
    
    .mobile-whatsapp-btn:hover {
        background: #20BA5A;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding-bottom: 100px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-sections-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* About Page Styles */
.about-page {
    padding: 120px 0 80px;
    background: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--dark-gray);
    width: 100%;
}

.about-title .green-box {
    background: #25D366;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 0px;
    display: inline-block;
    white-space: nowrap;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.5;
}

.about-sections-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .about-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px;
    }
    
    .about-subtitle {
        font-size: 1.2rem;
    }
    
    .about-section h3 {
        font-size: 1.6rem !important;
    }
    
    .about-section p {
        font-size: 1rem !important;
    }
    
    .about-sections-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.about-section {
    margin-bottom: 0;
}

.about-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666;
}

.about-cta {
    margin-top: 60px;
    text-align: center;
}

.about-cta .services-whatsapp-btn {
    max-width: 400px;
    margin: 0 auto;
}
