* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('images/fon.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.5;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== ШАПКА ===== */
header {
    background: linear-gradient(180deg, rgba(15, 20, 30, 0.95) 0%, rgba(8, 12, 18, 0.95) 100%);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    font-family: 'Segoe UI', 'Arial Black', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.5);
}

.logo-text span {
    color: #ffffff;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: 0.3s;
    min-width: 45px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.lang-btn.active {
    background: #FFD700;
    color: #1a1a2e;
    border-color: #FFD700;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: #c0c0c0;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.2s;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 0;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ===== ВИДЖЕТЫ ===== */

/* КНОПКА КАЛЬКУЛЯТОРА */
.calculator-widget {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
}

.calculator-button {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    color: #1a1a2e;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calculator-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e0e0e0 0%, #bbbbbb 100%);
}

/* КНОПКА ПОМОЩНИКА */
.help-widget {
    position: fixed;
    bottom: 95px;
    right: 20px;
    z-index: 1000;
}

.help-button {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    color: #1a1a2e;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e0e0e0 0%, #bbbbbb 100%);
}

.help-popup {
    position: absolute;
    bottom: 55px;
    right: 0;
    background: linear-gradient(145deg, rgba(20, 25, 35, 0.98) 0%, rgba(10, 15, 20, 0.98) 100%);
    border: 1px solid #ffffff;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    backdrop-filter: blur(10px);
}

.help-popup.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.help-popup h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.help-popup input, .help-popup textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    background: rgba(30, 35, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
}

.close-help {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #888;
}

.close-help:hover {
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* КРУГЛЫЕ ИКОНКИ СОЦСЕТЕЙ */
.social-circle-widget {
    position: fixed;
    bottom: 185px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-circle:hover {
    transform: scale(1.1);
}

.social-circle.tg {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.social-circle.ig {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-circle.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #075e54 100%);
}

.social-circle img {
    width: 26px;
    height: 26px;
}

/* ===== МОДАЛЬНОЕ ОКНО КАЛЬКУЛЯТОРА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 750px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background-image: url('images/calculator-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
    transition: 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

/* ===== СТИЛИ КАЛЬКУЛЯТОРА ===== */
.calc-row {
    margin-bottom: 20px;
}

.calc-label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}

.calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
}

.calc-option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FFD700;
}

.calc-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.calc-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: 0.3s;
}

.calc-check:hover {
    background: rgba(255, 215, 0, 0.1);
}

.calc-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FFD700;
}

.calc-check:has(input:checked) {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.calc-input {
    width: 120px;
    padding: 10px;
    background: rgba(30, 35, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.result-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.result-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFD700;
    border-top: 2px solid #FFD700;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 8px;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 80px 0;
    text-align: center;
    margin: 20px 0;
    border-radius: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 6px;
    font-family: 'Segoe UI', 'Arial Black', 'Impact', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #dddddd;
    letter-spacing: 1px;
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.9) 0%, rgba(8, 12, 18, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px 35px;
    text-align: center;
    min-width: 160px;
    transition: 0.2s;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ===== СТАТУС БАР ===== */
.status-bar {
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.9) 0%, rgba(8, 12, 18, 0.9) 100%);
    border-left: 4px solid #ffffff;
    padding: 20px 30px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 8px;
}

.status-title {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

.status-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff88;
}

/* ===== ЗАГОЛОВКИ ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 50px 0 30px;
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff;
    text-transform: uppercase;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffffff;
    margin: 15px auto 0;
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.9) 0%, rgba(8, 12, 18, 0.9) 100%);
    padding: 30px 25px;
    width: 280px;
    transition: 0.2s;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 15px 0;
    color: #ffffff;
    text-transform: uppercase;
}

.card p {
    color: #bbbbbb;
    font-size: 0.85rem;
}

/* ===== ОПИСАНИЕ КОМПАНИИ ===== */
.company-description {
    background: linear-gradient(145deg, rgba(10, 15, 25, 0.9) 0%, rgba(5, 10, 18, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
    margin: 40px 0;
    text-align: center;
}

.company-description h2 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
    margin-bottom: 25px;
}

.company-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #dddddd;
    margin-bottom: 20px;
}

.company-description .quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #ffffff;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== РУКОВОДСТВО ===== */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.95) 0%, rgba(8, 12, 18, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    transition: all 0.3s ease;
}

/* Белое свечение рамки при наведении */
.team-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.team-photo {
    flex: 0 0 160px;
}

.team-photo img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Белое свечение фото при наведении */
.team-photo img:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.team-info {
    flex: 1;
}

.team-position {
    font-size: 0.8rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.team-desc {
    color: #cccccc;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    .team-photo {
        flex: 0 0 auto;
        text-align: center;
    }
    .team-photo img {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
}

/* ===== ПОРТФОЛИО ===== */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 40px 0;
}

.portfolio-item {
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.95) 0%, rgba(8, 12, 18, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 350px;
    overflow: hidden;
    transition: 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.portfolio-desc {
    color: #bbbbbb;
    font-size: 0.85rem;
}

/* ===== ПРОЕКТЫ ===== */
.project-item {
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.9) 0%, rgba(8, 12, 18, 0.9) 100%);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-left: 4px solid #ffffff;
    border-radius: 8px;
}

.project-item h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-date {
    color: #ffffff;
    font-size: 0.75rem;
    margin-top: 10px;
    opacity: 0.7;
}

/* ===== КОНТАКТЫ ===== */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
}

.contact-block {
    flex: 1;
    background: linear-gradient(145deg, rgba(15, 20, 30, 0.9) 0%, rgba(8, 12, 18, 0.9) 100%);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.contact-block h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

input, textarea {
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px;
    width: 100%;
    margin: 10px 0;
    border-radius: 8px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ffffff;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.95) 0%, rgba(4, 6, 10, 0.95) 100%);
    color: #888888;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    .logo-area {
        justify-content: center;
    }
    .header-right {
        align-items: center;
        width: 100%;
    }
    .nav-wrapper {
        justify-content: center;
    }
    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    nav a {
        margin: 0 8px;
        font-size: 0.65rem;
    }
    .lang-switcher {
        justify-content: center;
    }
    .calculator-widget {
        bottom: 20px;
        right: 10px;
    }
    .calculator-button {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .help-widget {
        bottom: 80px;
        right: 10px;
    }
    .help-button {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .social-circle-widget {
        bottom: 155px;
        right: 10px;
        gap: 8px;
    }
    .social-circle {
        width: 42px;
        height: 42px;
    }
    .social-circle img {
        width: 22px;
        height: 22px;
    }
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-card {
        padding: 12px 20px;
        min-width: 130px;
    }
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    .team-photo {
        flex: 0 0 auto;
        text-align: center;
    }
    .team-photo img {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    .portfolio-item {
        width: 100%;
        max-width: 320px;
    }
    .modal-body {
        padding: 15px;
    }
    .calc-options, .calc-check-group {
        gap: 8px;
    }
}