/* основаной фон */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f6 100%);
    color: #1e2b3c;
}

/* шапка  */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* все секции(прозрачность) */
#about, #projects, .contacts {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    margin: 20px auto;
    border-radius: 40px;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* карточки(стекло) */
.card, .logo-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

/* мягкий градиент */
#home {
    position: relative;
}

#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #eef2f6);
    pointer-events: none;
}

/* header */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 90px;
}

header {
    background: rgba(236, 242, 248, 0.9);  
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 25, 41, 0.12);
    box-shadow: 0 4px 20px rgba(10, 25, 41, 0.02);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.flex {
    display: flex;
}

.center {
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #0000fe;
    margin-left: 10px;
}

.logo_img {
    height: 45px;
}

nav a {
    font-weight: 500;
    font-size: 18px;
    margin-left: 32px;
    text-decoration: none;
    color: #334155;
    position: relative;
}

nav a:hover {
    color: #0000fe;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;           
    background: #0000fe;;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f4f6f8;
    color: #222222ec;
}

/* sections */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* главная */
#home {
    justify-content: space-between;
    align-content: center;
    margin: auto;
    height: 800px;
    background-image: url(img/fon.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(245, 244, 242);
    text-align: center;
    position: relative;
}

#home .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

#home h1 {
    font-size: clamp(40px, 8vw, 70px);
    margin-bottom: 30px;
    font-weight: 800;
    -webkit-text-stroke: 1px #222222d5;
    text-shadow: 1px 1px 2px rgba(92, 90, 90, 0.132), 3px 3px 6px rgba(0,0,0,0.6);
    font-family: 'Tahoma', sans-serif;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,20,60,0.4) 100%);
    z-index: 1;
}

#home p {
    font-size: clamp(16px, 3vw, 24px);    font-weight: 400;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    padding: 16px 32px;
    border-radius: 60px;
    display: inline-block;
    font-family: 'Arial', sans-serif;
}

/* О нас */
#about {
    background: white;
}

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 2;
    min-width: 400px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
}

.about-text h2 {
    font-size: 33px;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

.about-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 140px);
    gap: 30px;
    justify-content: center;
    margin-left: 40px;
}

.logo-card {
    width: 140px;
    height: 140px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.logo-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 24px -8px rgba(37,99,235,0.2);
    transform: scale(1.02);
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Проекты */
#projects {
    background: #eef2f5;
}

#projects h2 {
    font-size: 33px;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
    position: relative;
    display: block;
    padding-bottom: 10px;
}

#projects h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

.cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    width: 280px;
    padding: 28px 20px;
    border-radius: 24px;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -12px rgba(37,99,235,0.2);
}

.card h3 {
    margin-bottom: 13px;
    font-size: 18px;
    font-weight: 600;
}

.card p {
    font-weight: 400;
    color: #475569;
}

/* контакты */
#contacts {
    background: transparent;  
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

#contacts .container {
    max-width: 1100px;
    margin: 0 auto;
}

#contacts h2 {
    font-size: 33px;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
    position: relative;
    display: block;
    padding-bottom: 10px;
    color: #0a2540;
}

#contacts h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2563eb;  
    border-radius: 2px;
}

#contacts p {
    font-size: 1.2rem;
    color: #334155;
    margin: 1rem 0 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для стрелки */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-hint {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 10px;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.arrow-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-svg {
    color: #2563eb;
    z-index: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

.arrow-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.scroll-indicator:hover .scroll-hint {
    opacity: 1;
    transform: translateY(-5px);
}

.scroll-indicator:hover .arrow-svg {
    transform: translateY(5px);
    color: #1e3a5f;
}

/* Анимации */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b1e33;
    color: white;
    padding: 20px 40px;
    border-top: 1px solid #1e3a5f;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__tg-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e3a5f;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    border: 1px solid #3b5f8a;
    transition: all 0.2s ease;
}

.footer__tg-button:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.02);
}

.tg-icon {
    margin-right: 4px;
}

.footer__nav {
    display: flex;
    gap: 24px;
}

.footer__link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    font-weight: 400;
}

.footer__link:hover {
    color: white;
}

.footer__email-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e3a5f;        
    color: white;
    text-decoration: none;
    padding: 10px 20px;          
    border-radius: 40px;         
    font-weight: 500;
    border: 1px solid #3b5f8a;   
    transition: all 0.2s ease;
}

.footer__email-button:hover {
    background: #2563eb;         
    border-color: #2563eb;
    transform: scale(1.02);      
}

/* иконка почты */
.email-icon {
    margin-right: 4px;
}

/* адаптация для мобильных */
@media (max-width: 768px) {
    .footer__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer__tg-button,
    .footer__email-button {
        width: 100%;
        justify-content: center;
    }
}

/* адаптация */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    nav a {
        margin: 0 12px;
    }
    .about-wrapper {
        flex-direction: column;
    }
    .about-logos {
        margin-left: 0;
    }
    #home h1 {
        font-size: 3rem;
    }
    #home p {
        font-size: 1.2rem;
    }
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-brand {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .logo-card {
        width: 110px;
        height: 110px;
    }
    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* анимация */
@keyframes softAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: softAppear 1s ease-out forwards;
}

#about {
    animation-delay: 0.2s;
}

#projects {
    animation-delay: 0.4s;
}

footer {
    animation-delay: 0.6s;
}
/* скроллбар */
::-webkit-scrollbar {
    width: 8px;
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 20px;
}