/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    max-width: 100vw;
}

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

/* Хедер */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    font-weight: bold;
    padding: 4px;
    position: relative;
}

.logo-top {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1px;
}

.logo-bottom {
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    word-spacing: -0.1em;
}

.header-info {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-item i {
    font-size: 1.2rem;
}

/* Навигация */
nav {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Главный контент */
main {
    padding: 40px 0;
}

.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 15px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Секции */
.section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1e3c72;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e3c72;
}

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

/* Преимущества */
.advantages {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-number {
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

/* Футер */
footer {
    background: #1e3c72;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    color: #b8c9ee;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b8c9ee;
}

.footer-company-info {
    background: #153060;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-company-info h3 {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.company-details {
    text-align: center;
    color: #b8c9ee;
    line-height: 1.0;
}

.company-details p {
    margin-bottom: 10px;
}

.footer-company-info-about {
    background: #153060;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-company-info-about h3 {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.company-details-normal {
    text-align: center;
    color: #b8c9ee;
    line-height: 1.6;
}

.company-details-normal p {
    margin-bottom: 10px;
}

.company-details-normal strong {
    color: #fff;
}

.company-details strong {
    color: #fff;
}

/* Стили для секции с реквизитами компании */
.company-requisites {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.company-requisites h2 {
    color: #1e3c72;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.company-requisites h3 {
    color: #1e3c72;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.company-requisites p {
    margin-bottom: 5px;
    line-height: 1.2;
    color: #555;
}

.company-requisites ul {
    margin-top: 15px;
    margin-bottom: 0;
    padding-left: 20px;
}

.company-requisites ul li {
    margin-bottom: 3px;
    line-height: 1.2;
    color: #555;
}

.certificates {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.certificates p {
    margin-bottom: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        margin-right: 8px;
        padding: 2px;
    }
    
    .logo-top {
        font-size: 0.7rem;
        margin-bottom: 0px;
    }
    
    .logo-bottom {
        font-size: 0.35rem;
    }
    
    .header-info {
        justify-content: center;
        gap: 20px;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    
    .contact-item {
        gap: 3px;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 0.9rem;
    }
    
    nav {
        margin-top: 8px;
        padding: 0;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 2px;
        padding: 0 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        flex: 0 0 auto;
    }
    
    .nav-menu li a {
        padding: 6px 10px;
        display: block;
        text-align: center;
        font-size: 0.75rem;
        border-radius: 15px;
        white-space: nowrap;
    }
    
    .hero {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 5px;
        display: inline-block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    
    .content-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .page-header {
        padding: 40px 0;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-company-info {
        padding: 20px 0;
    }
    
    .footer-company-info h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .company-details {
        font-size: 0.9rem;
    }
    
    .steps-list li {
        padding: 15px;
        padding-left: 60px;
        font-size: 0.9rem;
    }
    
    .steps-list li::before {
        width: 30px;
        height: 30px;
        left: 15px;
        font-size: 0.8rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .tech-category {
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .tech-category h4 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .tech-list li {
        font-size: 0.9rem;
        padding: 6px 0;
        padding-left: 18px;
        word-wrap: break-word;
    }
}

/* Стили для маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        margin-right: 6px;
        padding: 2px;
    }
    
    .logo-top {
        font-size: 0.6rem;
        margin-bottom: 0px;
    }
    
    .logo-bottom {
        font-size: 0.3rem;
    }
    
    .header-info {
        gap: 15px;
        font-size: 0.7rem;
    }
    
    .nav-menu {
        gap: 1px;
        padding: 0 2px;
    }
    
    .nav-menu li a {
        padding: 5px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        display: block;
        width: 80%;
        max-width: 250px;
        margin: 10px auto;
        text-align: center;
    }
    
    .nav-menu li a {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .product-card {
        padding: 20px 15px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .steps-list li {
        padding: 12px;
        padding-left: 50px;
        font-size: 0.8rem;
    }
    
    .steps-list li::before {
        width: 25px;
        height: 25px;
        left: 12px;
        font-size: 0.7rem;
    }
    
    .footer-content {
        font-size: 0.9rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-company-info {
        padding: 15px 0;
    }
    
    .footer-company-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .company-details {
        font-size: 0.85rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0;
        padding: 0;
    }
    
    .tech-category {
        padding: 12px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tech-category h4 {
        font-size: 0.95rem;
        gap: 6px;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .tech-category h4 i {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .tech-list li {
        font-size: 0.85rem;
        padding: 5px 0;
        padding-left: 16px;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Специальные стили для страниц */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-section h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.highlight {
    background: #fff3cd;
    padding: 20px;
    border-left: 5px solid #ffc107;
    margin: 20px 0;
    border-radius: 5px;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    padding-left: 80px;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #1e3c72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-card p {
    color: #666;
    margin-bottom: 10px;
}

.product-features {
    list-style: none;
    margin-top: 15px;
}

.product-features li {
    padding: 5px 0;
    color: #555;
}

.product-features li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.contact-info {
    background: #e3f2fd;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.contact-info h3 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-item strong {
    color: #1e3c72;
}

/* Стили для технологического стека */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

.tech-category {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.tech-category h4 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-category h4 i {
    font-size: 1.2rem;
    color: #667eea;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.tech-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 8px;
    color: #667eea;
    font-weight: bold;
}
