/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f9f9f9;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --light-gray: #ecf0f1;
    --text: #333;
    --text-light: #666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--secondary);
}

.btn-telegram {
    background-color: #0088cc;
    font-size: 1.1rem;
    padding: 16px 40px;
}

.btn-telegram:hover {
    background-color: #0077b5;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo h1 a {
    color: var(--primary);
    text-decoration: none;
}

.logo h1 span {
    color: var(--secondary);
}

.tagline {
    font-size: 0.9rem;
    color: var(--gray);
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.nav ul li a:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-image {
    flex: 0 0 300px;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--secondary);
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-item:hover {
    transform: translateY(-5px);
}

.why-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 5px solid white;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Contacts Section */
.contacts {
    background-color: var(--light-gray);
}

.contacts-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-text a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-action {
    flex: 0 0 300px;
    text-align: center;
}

.contact-note {
    margin-top: 20px;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 33.333%;
        margin-bottom: 40px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex: 0 0 100%;
    }
    
    .contacts-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Добавляем в существующий CSS */

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Кнопка входа в панель лицензий — рядом с переключателем языка.
   Оформлена так же, как .lang-btn, чтобы не выбиваться из шапки. */
.admin-btn {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.admin-btn:hover {
    border-color: var(--secondary);
    background-color: var(--light-gray);
}

/* На узких экранах оставляем только значок — надпись съедала бы место
   у переключателя языка и кнопки меню. */
@media (max-width: 768px) {
    .admin-btn span { display: none; }
    .admin-btn { padding: 8px 11px; }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--primary);
}

.lang-btn:hover {
    border-color: var(--secondary);
    background-color: var(--light-gray);
}

.lang-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.lang-flag i {
    color: var(--secondary);
}

.lang-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Language dropdown (для будущего расширения) */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.lang-option:hover {
    background-color: var(--light-gray);
}

.lang-option.active {
    background-color: var(--secondary);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-right {
        gap: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .lang-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .lang-btn {
        padding: 5px 10px;
    }
    
    .lang-flag span {
        display: none;
    }
}

/* Logo with image */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.logo-text h1 a {
    color: var(--primary);
    text-decoration: none;
}

.logo-text h1 span {
    color: var(--secondary);
}

.logo-text .tagline {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text .tagline {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text .tagline {
        display: none; /* Hide tagline on very small screens */
    }
}