@charset "utf-8";

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

@font-face {
    font-family: 'icons';
    src: url('/fonts/icons.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Decorative';
    src: url('/fonts/Smooz.ttf');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #46e546;
    --primary-hover: #3dca38;
    --secondary-color: #648b67;
    --bg-color: #0E152F;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --radius: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --swal2-border-radius: 2rem; /* или любое нужное значение, например 20px */
}

.swal2-container {
  z-index: 20000 !important;
}


body {
    background: linear-gradient(135deg, #0f2f0e 0%, #1a421e 50%, #132f0e 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Единый паттерн на весь сайт */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hidden { display: none !important; }


.glass {
  position: relative;
  background: rgba(50, 50, 50, 0.15);
  /*backdrop-filter: blur(2px) saturate(180%);
  -webkit-backdrop-filter: blur(2px) saturate(180%);*/
  border: 1px solid rgba(20, 20, 20, 0.4);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(80, 80, 80, 0.2),
              inset 0 4px 20px rgba(80, 80, 80, 0.3);
  overflow: hidden; /* ← добавлено: обрезает ::after */
}

.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(80, 80, 80, 0.1);
  border-radius: inherit; /* ← наследует border-radius родителя */
  backdrop-filter: blur(1px);
  box-shadow: inset -10px -8px 0px -11px rgba(80, 80, 80, 1),
              inset 0px -9px 0px -8px rgba(80, 80, 80, 1);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
  pointer-events: none; /* ← добавлено: не перехватывает клики */
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 21, 47, 0.85);
    padding: 1.2rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: Decorative;
    background: linear-gradient(135deg, #1363d3, #69a4f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover { transform: scale(1.05); }

.logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover { color: var(--primary-color); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-nav::after { display: none; }

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 5% 4rem;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 4rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    transition: all 0.5s ease;
}

.hero-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.3);
}

@keyframes fadeInUp {
    to { transform: translateY(0); opacity: 1; }
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    font-family: Decorative;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.5s ease-in-out;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 300;
    transition: opacity 0.5s ease-in-out;
}

.text-fade-out { opacity: 0; }

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 60px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.6);
}

.geometric-shapes {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
    background: linear-gradient(135deg, var(--primary-color), transparent);
}

.geo-shape:nth-child(1) {
    top: 20%; left: 15%;
    width: 120px; height: 120px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation: float 12s ease-in-out infinite;
}

.geo-shape:nth-child(2) {
    top: 15%; right: 20%;
    width: 100px; height: 100px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 10s ease-in-out infinite reverse;
}

.geo-shape:nth-child(3) {
    top: 60%; left: 10%;
    width: 80px; height: 80px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float 8s ease-in-out infinite;
}

.geo-shape:nth-child(4) {
    top: 70%; right: 15%;
    width: 90px; height: 90px;
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    animation: float 14s ease-in-out infinite;
}

.geo-shape:nth-child(5) {
    top: 35%; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 110px;
    clip-path: polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* ========== SECTION STYLES ========== */
.section {
    min-height: 100vh;
    padding: 8rem 5%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-main);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SERVICES SECTION ========== */
.services {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 5%;
    z-index: 1;
}

.services-container {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-top: 4rem;
    align-items: start;
}

.services-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    min-height: 450px;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.services-content:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
}

.service-details {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.service-details.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.service-details h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-details .service-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-details p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.service-features li:last-child { border-bottom: none; }

.feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.services-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-tab {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2);
}

.service-tab.active {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.service-tab::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    transition: width 0.3s ease;
}

.service-tab.active::before { width: 4px; }

.tab-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-content {
    flex: 1;
    min-width: 0;
}

.service-tab h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

.service-tab p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.service-tab:hover .tab-icon,
.service-tab.active .tab-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.about {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.about-content:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
}

.about-content h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content .highlight {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: rgba(79, 70, 229, 0.3);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.feature-text {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat:first-child { grid-column: 1 / -1; }

.stat {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), #69a4f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ========== CONTACT SECTION ========== */
.contact {
    min-height: 100vh;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.contact .section-title { color: var(--text-main); }

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
}

.contact-content:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.3);
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
}

.contact-form textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    justify-self: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before { left: 100%; }

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.6);
}

/* ========== FOOTER ========== */
.footer {
    background: rgba(14, 21, 47, 0.95);
    color: white;
    padding: 3rem 5% 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1363d3, #69a4f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--primary-color); }

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== ALERTS ========== */
.alert {
    padding: 1rem 5%;
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    border-bottom: 2px solid var(--danger-color);
    backdrop-filter: blur(10px);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-icon { font-size: 1.5rem; }


/* ========== MODAL (BASE) ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== LOGIN MODAL ========== */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.login-modal-card {
    /*background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(71, 85, 105, 0.95) 100%);*/
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    max-width: 450px;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transform: translateY(-50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.modal.active .login-modal-card {
    transform: translateY(0) scale(1);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
}

.login-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p { color: var(--text-secondary); font-size: 0.95rem; }

.form-group-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group-floating input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    /*border: 2px solid var(--border-color);
    border-radius: 12px;*/
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group-floating input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.form-group-floating label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 0.3rem;
}

.form-group-floating input:focus + label,
.form-group-floating input:not(:placeholder-shown) + label {
    top: 0;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--text-main);
    background: linear-gradient(135deg, #1e293b, #475569);
    border-radius: 5px;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.form-group-floating input:focus + .input-icon { color: var(--primary-color); }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-container input { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-color: transparent;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    /*background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));*/
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before { left: 100%; }

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(20, 20, 20, 0.6);
}

.btn-login:active { transform: translateY(-1px); }

.btn-text,
.btn-loader {
    font-family: icons;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loader.hidden { display: none; }

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.login-footer {
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.signup-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    background: var(--glass-bg);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.signup-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.login-decoration {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent);
    animation: floatDecoration 20s ease-in-out infinite;
}

.deco-circle:nth-child(1) {
    width: 300px; height: 300px;
    top: -150px; right: -150px;
    animation-delay: 0s;
}

.deco-circle:nth-child(2) {
    width: 200px; height: 200px;
    bottom: -100px; left: -100px;
    animation-delay: -7s;
}

.deco-circle:nth-child(3) {
    width: 150px; height: 150px;
    top: 50%; left: 50%;
    animation-delay: -14s;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
}

.form-group-floating.error input {
    border-color: var(--danger-color);
    animation: shake 0.5s ease;
}

.form-group-floating.error label { color: var(--danger-color); }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-success { animation: successPulse 0.5s ease; }

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading { animation: pulse 2s ease-in-out infinite; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
}

@media (max-width: 940px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(14, 21, 47, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 5%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 20px 20px;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .mobile-menu { display: flex; }

    .services-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-tabs { order: -1; }
    .service-tab {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .form-group { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats { grid-template-columns: 1fr; }
    .stat:first-child { grid-column: 1; }
    .about-features { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .section, .services, .about-section, .contact { padding: 5rem 5%; }

    .hero-content { padding: 2.5rem 1.5rem; }
    .about-content { padding: 2rem 1.5rem; }
    .contact-content { padding: 2rem 1.5rem; }
    .services-content { padding: 1.5rem; }

    .login-modal-card { padding: 1rem; }
    .login-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .login-header h2 { font-size: 1rem; }
}