/*
Theme Name: Энергия
Theme URI: http://energiypenza.ru
Author: Сергей Афонин
Author URI: 
Description: Тема для сайта ООО "Энергия"
Version: 1.0
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #2f538a;
    color: #e6f1ff;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(28, 58, 173, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(29, 73, 139, 0.8) 0%, transparent 20%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== КНОПКА ТЕЛЕФОНА ===== */
.phone-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #64ffda;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.4);
    transition: all 0.3s ease;
}

.phone-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.6);
}

.phone-button i {
    font-size: 24px;
    color: #0a192f;
}

.phone-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(17, 34, 64, 0.95);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #64ffda;
    display: none;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #64ffda;
}

.phone-tooltip.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.phone-tooltip h3 {
    color: #64ffda;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    margin: 10px 0;
}

.phone-note {
    font-size: 0.9rem;
    color: #a8b2d1;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ПОДВАЛ (FOOTER) ===== */
footer {
    background: rgba(10, 25, 47, 0.95);
    padding: 40px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #64ffda;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.footer-section p {
    margin: 5px 0;
    color: #a8b2d1;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: #8892b0;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #64ffda;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #e6f1ff;
}

/* ===== ПЕРЕХОДЫ МЕЖДУ СТРАНИЦАМИ ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a192f, #112240, #0a192f);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.page-transition.active {
    transform: translateX(0);
}

/* ===== ОСНОВНАЯ СТРУКТУРА ===== */
.wrapper {
    flex: 1;
    min-height: 100vh;
    position: relative;
}

.page {
    min-height: calc(100vh - 1.1rem);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.page-train {
    background-color: #628789;

}

/* Фоновые изображения для страниц */
#main-page::before {
    background-image:
        /*linear-gradient(rgba(173, 183, 199, 0.85), rgba(10, 25, 47, 0.6));*/
        url('https://www.shutterstock.com/image-photo/logistics-concept-using-modern-technologies-260nw-1994289680.jpg');
    width: 100%;
}

#about-page::before {
    background-image:
        /*linear-gradient(rgba(137, 131, 192, 0.85), rgba(98, 124, 148, 0.2)),*/
        url('https://th.bing.com/th/id/OIP.uQ9ExSe_652d_QdiynnskgHaE8?o=7&cb=ucfimg2&rm=3&ucfimg=1&rs=1&pid=ImgDetMain&o=7&rm=3');
}

#services-page::before {
    background-image:
        /*linear-gradient(rgba(22, 58, 94, 0.85), rgba(22, 58, 94, 0.9)), */
        url('https://railtractionmotor.com/img/Transport.png');
}

#documents-page::before {
    background-image:
        /*linear-gradient(rgba(28, 74, 121, 0.85), rgba(28, 74, 121, 0.9)), */
        url('https://www.bing.com/th/id/OIP.ZatB0gOI9ZwFQBME29477QHaEK?w=245&h=211&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2');
}

#contacts-page::before {
    background-image:
        /*linear-gradient(rgba(34, 90, 148, 0.85), rgba(34, 90, 148, 0.9));*/ 
        url('https://energiypenza.ru/wp-content/uploads/2026/06/Freight-market-partnership-300x150.webp');
}

#calculator-page::before {
    background-image:
     /*linear-gradient(rgba(40, 106, 175, 0.85), rgba(40, 106, 175, 0.5)),*/
        url('https://www.mumandcareer.co.uk/wp-content/uploads/2021/10/MC-Logistics-Business.jpg');
}

/* ===== ШАПКА САЙТА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(6, 43, 99, 0.9);
    /* Исправленный backdrop-filter с вендорными префиксами */
    -webkit-backdrop-filter: blur(10px);
    /* Для Safari */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.5));
}

.menu ul {
    min-width: 1000px;
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    color: #ccd6f6;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu a:hover {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after {
    width: 80%;
}

/* ===== ОСНОВНОЕ СОДЕРЖИМОЕ ===== */
.main-content {
    text-align: center;
    max-width: 1400px;
    margin-top: 100px;
    padding: 40px;
    background: rgba(17, 34, 64, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-content {
    max-width: 1400px;
    width: 100%;
    padding: 10px;
    background: rgba(17, 34, 64, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 80px;
}

/* ===== ТИПОГРАФИКА ===== */
h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #64ffda;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px 0;
    color: #64ffda;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #b7952564;
    line-height: 1.6;
    max-width: 530px;
}

/* ===== КНОПКИ ===== */
.glow-on-hover {
    width: 350px;
    height: 70px;
    border: none;
    outline: none;
    color: #aea3a2;
    background: #64ffda;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #64ffda, #0a192f, #64ffda, #0a192f, #64ffda);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #64ffda;
    left: 0;
    top: 0;
    border-radius: 10px;
    z-index: -1;
}

.glow-on-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.6);
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* ===== ТЕКСТОВЫЕ БЛОКИ ===== */
.textbox {
    background: rgba(31, 51, 78, 0.4);
    padding: 10px;
    border-radius: 10px;
    border-left: 4px solid #64ffda;
    margin-bottom: 10px;
}

.textbox ul,
.textbox ol {
    list-style: none;
    padding-left: 0;
}

.textbox li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    font-size: 1.1rem;
    color: #a8b2d1;
}

.textbox li:last-child {
    border-bottom: none;
}

.textbox li a {
    color: #64ffda;
    margin-right: 10px;
    text-decoration: none;
}

/* ===== ТАБЛИЦЫ ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: #a8b2d1;
}

table th {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    font-weight: 600;
}

table tr:hover {
    background: rgba(100, 255, 218, 0.05);
}

.container {
    max-width: 1400px;
    width: 100%;
    padding: 20px;
    background-color: rgb(98, 115, 192);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #4180bb;
}

.header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    color: #7f8c8d;
    font-size: 16px;
}

.content {
    padding: 10px;
}

.content p {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

/* Стили кнопки */
.energy-contact-btn {
    background-color: #3498db;
    color: rgb(191, 199, 83);
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
    width: 350px;
    text-align: center;
}

.energy-contact-btn:hover {
    background-color: #a1bdcf;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(190, 44, 154, 0.5);
}

/* Модальное окно */
.energy-contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.energy-contact-modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: energyModalAppear 0.3s ease-out;
}

@keyframes energyModalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок модального окна */
.energy-modal-header {
    background-color: #3498db;
    color: rgb(209, 197, 197);
    padding: 20px;
    text-align: center;
    position: relative;
}

.energy-modal-header h3 {
    font-size: 22px;
    margin: 0;
}

.energy-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.energy-close-btn:hover {
    color: #f1f1f1;
}

/* Тело модального окна */
.energy-modal-body {
    padding: 30px;
}

.energy-form-group {
    margin-bottom: 20px;
}

.energy-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.energy-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

.energy-form-control:focus {
    border-color: #3498db;
    outline: none;
}

.energy-form-control::placeholder {
    color: #aaa;
}

/* Футер модального окна */
.energy-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.energy-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.energy-btn-submit {
    background-color: #2ecc71;
    color: white;
}

.energy-btn-submit:hover {
    background-color: #27ae60;
}

.energy-btn-close {
    background-color: #e74c3c;
    color: white;
}

.energy-btn-close:hover {
    background-color: #c0392b;
}

/* Уведомление */
.energy-notification {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    font-weight: 600;
    animation: energyFadeInOut 3s ease-in-out;
}

@keyframes energyFadeInOut {
    0% {
        opacity: 0;
        top: 0;
    }

    15% {
        opacity: 1;
        top: 30px;
    }

    85% {
        opacity: 1;
        top: 30px;
    }

    100% {
        opacity: 0;
        top: 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .energy-contact-btn {
        padding: 14px 20px;
        font-size: 15px;
        width: 300px;
    }

    .energy-contact-modal-content {
        width: 95%;
    }

    .energy-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .energy-btn {
        width: 100%;
    }
}

/* ===== КАЛЬКУЛЯТОР ===== */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #64ffda;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    background: rgba(17, 34, 64, 0.8);
    color: #e6f1ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.calculator-result {
    margin-top: 40px;
    padding: 30px;
    background: rgba(23, 42, 69, 0.7);
    border-radius: 10px;
    border-left: 4px solid #64ffda;
    text-align: center;
    display: none;
}

.calculator-result h3 {
    color: #64ffda;
    margin-bottom: 15px;
}

.calculator-result p {
    font-size: 1.5rem;
    color: #e6f1ff;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #64ffda;
    margin: 20px 0;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ===== */
.page-title {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(100, 255, 218, 0.2);
    z-index: -1;
    font-weight: 800;
    white-space: nowrap;
}

.btn-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hidden {
    display: none !important;
}

.etran-badge {
    display: inline-block;
    background: linear-gradient(135deg, #64ffda, #0a192f);
    color: #c8d0df;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    margin: 10px 0;
    border: 2px solid #64ffda;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.advantage-item {
    background: rgba(100, 255, 218, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #64ffda;
}

.advantage-item h4 {
    color: #64ffda;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .menu ul {
        gap: 15px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .page-content {
        padding: 30px;
    }

    .phone-button {
        bottom: 120px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }

    .logo img {
        height: 50px;
        margin-bottom: 15px;
    }

    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .main-content {
        margin-top: 150px;
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .glow-on-hover {
        width: 280px;
        height: 60px;
        font-size: 1rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .phone-button {
        bottom: 120px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .phone-tooltip {
        min-width: 200px;
        right: -50px;
    }

    .phone-tooltip::after {
        right: 65px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .page {
        min-height: calc(100vh - 50px);
    }

    .btn-container {
        bottom: 180px;
    }
}