:root {
    --accent: #00c6ff;
    --dark: #0f2027;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    line-height: 1.6;
}

/* Ледяные переходы */
header::after,
.hero::after,
footer::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 25px var(--accent);
    animation: iceGlow 7s linear infinite;
}
header::after { bottom: 0; }
.hero::after { bottom: 0; }
footer::before { top: 0; }

@keyframes iceGlow {
    0%   { opacity: 0.7; filter: hue-rotate(0deg); }
    50%  { opacity: 1; filter: hue-rotate(25deg); }
    100% { opacity: 0.7; filter: hue-rotate(0deg); }
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(12px);
    padding: 12px 0 8px;
    box-shadow: 0 4px 25px rgba(0, 198, 255, 0.15);
}

nav {
    display: flex;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-wrapper:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 198, 255, 0.7));
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 198, 255, 0.5));
}

.logo-text {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradientFlow 7s linear infinite, pulse 4s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.cabinet-btn {
    background: rgba(0, 198, 255, 0.2);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: all 0.3s;
    white-space: nowrap;
}

.cabinet-btn:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--accent);
}

/* ==================== ГЛАВНЫЕ СЕКЦИИ ==================== */
.hero {
    height: 55vh;
    min-height: 420px;
    background: linear-gradient(-45deg, #0a171f, #0e1e2a, #13273a, #0f2027, #0a171f);
    background-size: 500% 500%;
    animation: animatedGradient 28s ease infinite;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 35px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 16px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.7);
}

.cta-button {
    background: var(--accent);
    color: #000;
    padding: 15px 45px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(0,198,255,0.5);
}

.section {
    padding: 80px 35px;
    max-width: 1440px;
    margin: 0 auto;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
h2:after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid rgba(0,198,255,0.1);
}

.card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0,198,255,0.25);
}

.card i {
    font-size: 3.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.contact-form {
    max-width: 620px;
    margin: 0 auto;
    background: rgba(15, 32, 39, 0.88);
    backdrop-filter: blur(16px);
    padding: 45px 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 198, 255, 0.25);
    box-shadow: 0 15px 45px rgba(0, 198, 255, 0.18);
}

/* Стили для обычных форм */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 12px 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(0,198,255,0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    box-sizing: border-box;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,198,255,0.25);
    background: rgba(255,255,255,0.12);
}

/* ==================== МОДАЛЬНЫЕ ОКНА ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(10, 23, 31, 0.92);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(15, 32, 39, 0.98);
    border-radius: 24px;
    padding: 45px 40px;
    max-width: 620px;
    width: 80%;
    border: 1px solid rgba(0, 198, 255, 0.35);
    box-shadow: 0 25px 60px rgba(0, 198, 255, 0.25);
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.7) translateY(50px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.close {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 42px;
    cursor: pointer;
    color: var(--accent);
    transition: 0.3s;
    line-height: 1;
}

.close:hover {
    transform: rotate(90deg);
    color: #fff;
}

#languageModal .lang-option {
    width: 90%;                        /* меньше, чтобы помещались три языка */
    padding: 18px 20px;                /* уменьшенный padding сверху/снизу и слева/справа */
    margin: 14px 0;                     /* отступы сверху/снизу без изменений */
    background: rgba(255,255,255,0.08); /* фон с прозрачностью */
    border: 2px solid rgba(0,198,255,0.35); /* рамка */
    border-radius: 18px;                /* скругление углов */
    color: white;                       /* цвет текста */
    font-size: 1.38rem;                 /* размер текста */
    font-weight: 500;                   /* жирность текста */
    cursor: pointer;                    /* курсор при наведении */
    transition: all 0.3s;               /* плавная анимация */
    display: flex;                      /* внутренние элементы в ряд */
    align-items: center;                /* вертикальное выравнивание */
    gap: 18px;                          /* промежуток между иконкой и текстом */
}

#languageModal .lang-option:hover {
    border-color: var(--accent);        /* цвет рамки при наведении */
    background: rgba(0,198,255,0.25);   /* фон при наведении */
    transform: translateX(10px);        /* сдвиг при наведении */
    box-shadow: 0 0 30px rgba(0,198,255,0.4); /* тень при наведении */
}

#languageModal .lang-option .flag {
    font-size: 2.3rem;                  /* чуть уменьшил размер флага */
    min-width: 40px;                     /* минимальная ширина для флага */
}

/* Стили для полей в модальных окнах (orderModal) */
.modal-input {
    width: 100%;
    padding: 14px 18px;
    margin: 12px 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(0,198,255,0.35);
    border-radius: 12px;
    color: #fff;
    font-size: 1.05rem;
    box-sizing: border-box;
    transition: all 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,198,255,0.25);
    background: rgba(255,255,255,0.12);
}

/* ==================== ВЫПАДАЮЩИЙ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ==================== */
.lang-dropdown {
    position: relative;
    margin-left: 15px;
    z-index: 1100;
}

.lang-current {
    background: rgba(0, 198, 255, 0.15);
    color: white;
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 115px;
    justify-content: center;
}

.lang-current:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.06);
}

.lang-options {
    display: none;
    position: absolute;
    top: 115%;
    right: 0;
    background: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent);
    border-radius: 16px;
    margin-top: 8px;
    min-width: 195px;
    box-shadow: 0 15px 45px rgba(0, 198, 255, 0.45);
    overflow: hidden;
    z-index: 1200;
}

.lang-options div {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.25s;
}

.lang-options div:hover {
    background: rgba(0, 198, 255, 0.35);
}

.lang-options .flag {
    font-size: 1.45rem;
}

.lang-dropdown.active .lang-options {
    display: block;
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-group { justify-content: flex-end; }
    .nav-links {
        position: fixed;
        top: 66px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 66px);
        background: var(--dark);
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
        font-size: 1.3rem;
    }
    .nav-links.active { left: 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.4rem; }
    .section { padding: 60px 20px; }
    .modal-content { padding: 35px 25px; }
}