/* ========================================
   ОБЩИЕ СТИЛИ - Чистый минималистичный дизайн
   ======================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Адаптивный контейнер */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 767px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ========================================
   HEADER И NAVBAR
   ======================================== */

header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    padding: 1rem 0;
    background: transparent;
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.logo {
    max-width: 140px;
    height: auto;
    display: block;
}

.navbar-toggler {
    border: 2px solid #3498db;
    padding: 0.6rem 0.85rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233498db' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.75rem;
    height: 1.75rem;
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.65rem 1.25rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #3498db !important;
}

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

/* Активная ссылка */
.nav-link.active {
    color: #3498db !important;
    font-weight: 600;
}

/* Dropdown меню */
.dropdown-menu {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 1.5rem;
}

.dropdown-item.active {
    background: #e3f2fd;
    color: #3498db;
    font-weight: 600;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e8e8e8;
}

.service-icon-mini {
    font-size: 1.3rem;
    width: 28px;
    display: inline-block;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ========================================
   СЕКЦИИ
   ======================================== */

section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

/* Заголовок секции с подчеркиванием */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

/* ========================================
   ИЗОБРАЖЕНИЯ
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    width: 100%;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .text-md-start .footer-title::after {
        left: 0;
    }
}

@media (max-width: 767px) {
    .text-center .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #bdc3c7;
    margin-bottom: 0.75rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #5dade2;
    text-decoration: underline;
}

.highlight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: #95a5a6;
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.5px;
}

footer .text-muted {
    color: #95a5a6 !important;
    font-size: 0.9rem;
}

/* Адаптивность футера */
@media (max-width: 991px) {
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-section {
        padding: 1.75rem;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-text {
        font-size: 0.95rem;
    }
}

/* ========================================
   ТАБЛИЦЫ
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

th {
    background: #3498db;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #ecf0f1;
}

tr:hover {
    background: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

/* ========================================
   ФОРМЫ
   ======================================== */

form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="submit"],
.btn {
    background: #3498db;
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

input[type="submit"]:hover,
.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

input[type="submit"]:active,
.btn:active {
    transform: translateY(0);
}

/* ========================================
   СООБЩЕНИЯ
   ======================================== */

.message {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 1rem auto;
    max-width: 500px;
    font-weight: 500;
}

.error {
    background: #fee;
    border: 2px solid #e74c3c;
    color: #c0392b;
}

.success {
    background: #efd;
    border: 2px solid #27ae60;
    color: #1e8449;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

/* Планшеты */
@media (max-width: 768px) {
    .logo {
        max-width: 80px;
    }
    
    section {
        padding: 1.5rem;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    main {
        padding: 1.5rem 0.75rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
}

/* Мобильные телефоны */
@media (max-width: 576px) {
    .logo {
        max-width: 70px;
    }
    
    section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    section p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    footer h5 {
        font-size: 1.05rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
    .logo {
        max-width: 60px;
    }
    
    section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
}