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

body {
    font-family: 'Arial', sans-serif;
    /* line-height: 1.6; */
    color: #333;
    overflow-x: hidden;
}
html{
}

section {
    opacity: var(--scroll-progress);
    transition: opacity 0.1s ease-out;
}
/* Subtle cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 117, 125, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    opacity: 0;
}

/* Show glow only on desktop */
@media (hover: hover) and (pointer: fine) {
    .cursor-glow {
        opacity: 0.6;
    }
}
.telegram-button {
  position: fixed;
  color: white;
  padding: 10px 12px 10px 8px;
  border-radius: 50%;
  height: 60px;
  width: 60px;
  z-index: 9999;
  bottom: 25px;
  right: 25px;
  background: rgba(127,127,127,0.4);
  border: 1px solid rgba(127,127,127,0.6);
  backdrop-filter: blur(10px);
  svg{
    width: 100%;
    height: 100%;
  }
}

.telegram-button:before,
.telegram-button:after {
    content: " ";
    display: block;
    position: absolute;
    border: 1px solid rgba(127,127,127,0.6);
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden;
}

.telegram-button:after{
    animation-delay: .5s;
}

@keyframes animate
{
    0%
    {
        transform: scale(0.5);
        opacity: 0;
    }
    50%
    {
        opacity: 1;
    }
    100%
    {
        transform: scale(1.2);
        opacity: 0;
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    /* background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #95a5a6 100%); */
    background: url('bg1.jpg') center / cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;

    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}
@media (max-width: 768px){
    .stats-bar{
        gap: 30px;
    }
}
@media (max-width: 420px) {
    .stats-bar{
        gap: 15px;
    }
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
    transition: transform 0.3s ease;
}
@media (max-width: 768px) {
    .stat-item{
        min-width: 80px;
        padding: 12px;
    }
}
@media (max-width: 380px) {
    .stat-item{
        min-width: 80px;
        padding: 6px;
    }
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #bdc3c7;
    display: block;
}
@media (max-width: 400px) {
    .stat-number{
        font-size: 1.4rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}
@media (max-width: 380px) {
    .stat-label{
        font-size: 0.7rem;
    }
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: float 3s ease-in-out infinite;
}
.logo-placeholder img{
    width: 64px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .slogan {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-button {

  color: white;
  padding: 15px 40px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  min-width: 120px;
  transition: transform 0.3s ease;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
}

.cta-button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

/* Interactive elements */
.interactive {
    transition: all 0.3s ease;
    position: relative;
}

.interactive:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(108, 117, 125, 0.1) 0%, transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.interactive:hover::before {
    opacity: 1;
}

/* About Section */
.about {
    padding: 100px 20px 180px 20px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 117, 125, 0.1), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #495057;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #6c757d;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    position: relative;
    z-index: 2;
}

.about-text h3 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #6c757d;
    transition: left 0.8s ease;
}

.about-text.animate h3::after {
    left: 0;
}

.about-text p {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.about-text.animate p:nth-of-type(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.about-text.animate p:nth-of-type(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.portfolio-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    opacity: 0;
    transform: scale(0.8) rotateY(45deg);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-item.animate {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.portfolio-item:hover {
    transform: scale(1.05) rotateY(-5deg) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.portfolio-item .icon {
    width: 60px;
    height: 60px;
    background: #6c757d;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.4s ease;
    transform: translateZ(20px);
}

.portfolio-item:hover .icon {
    background: #495057;
    transform: translateZ(40px) rotateY(360deg);
}

.portfolio-item h4 {
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.portfolio-item p {
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

/* Products Section */
.products {
    padding: 100px 20px 240px 20px;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-logo {
    width: 80px;
    height: 80px;
    background: #f1f1f1;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}
.product-logo.emoji{
    font-size: 40px;
}
.product-logo img{
    width: 48px;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #495057;
}

.product-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contacts */
.contacts{
    padding: 100px 40px;
    background: #f8f9fa;
}
.contacts-flex{
    display: flex;
    flex-direction: row;
    gap: 120px;
    align-items: center;
}
@media (max-width: 1023px) {
    .contacts-flex{
        flex-direction: column;
        gap: 20px;
    }
}

.map{
    max-width: 440px;
    width: 100%;
    max-height: 500px;
    height: 100%;
}
.map iframe{
    max-width: 440px !important;
    width: 100% !important;
    height: 500px !important;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 440px;
    height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-header {
    text-align: center;
    margin-bottom: 5px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}
.form-group .none{
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5d676b, #495057);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #5d676b, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    margin-bottom: 20px;
    color: #adb5bd;
}

.footer p, .footer a {
    color: #6c757d;
    text-decoration: none;
    line-height: 1.8;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 30px;
    color: #6c757d;
}


@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-content { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .portfolio-items { grid-template-columns: 1fr; }
    .stats-bar { min-width: 100px; }
}
