/* Мобильное меню и адаптивность */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.mobile-menu-overlay.active {
  display: flex;
}
.mobile-menu-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px 20px 20px;
  min-width: 250px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeInMenu 0.2s;
}
@keyframes fadeInMenu {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}
.mobile-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.mobile-nav-menu ul li {
  margin: 15px 0;
  text-align: center;
}
.mobile-nav-menu ul li a {
  color: #222;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-menu ul li a:hover {
  color: #007bff;
}
.mobile-contact-info {
  text-align: center;
}
.mobile-contact-info .btn {
  margin-top: 10px;
}

/* Скрыть hamburger и мобильное меню на десктопе */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2rem;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .contact-info {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .contact-info .btn{
    display: none;
 
  }
}
/* === Reset and Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a3a6c;
    --secondary: #2c5282;
    --accent: #3182ce;
    --light: #ebf8ff;
    --dark: #0a1a2f;
    --success: #38a169;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header Styles === */
header {
    background-color: var(--primary);
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #4fd1c5;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.8;
}

nav {
    flex: 1;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #4fd1c5;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

.btn {
    background-color: #4fd1c5;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #38b2ac;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(rgba(10, 26, 47, 0.85), rgba(10, 26, 47, 0.9)), url('./photo_2025-08-04_15-06-56.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #4fd1c5;
    color: #4fd1c5;
}

.btn-secondary:hover {
    background-color: rgba(79, 209, 197, 0.1);
}

/* === Services Section === */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
}

/* === About Section === */
.about {
    background-color: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: #666;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Portfolio Section === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 108, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* === Contact Section === */
.contact {
    background: linear-gradient(rgba(10, 26, 47, 0.9), rgba(10, 26, 47, 0.95)), url('https://placehold.co/1200x600/2c5282/ffffff?text=Контакты') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 100px 0;
}

.contact .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* fixed typo from 'direction: column;' */
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
   
}

#contactInfo {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 600px; /* ограничиваем максимальную ширину */
    width: 100%;      /* адаптивная ширина */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    gap: 20px;
    margin: 0 auto; /* центрируем блок */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;

}

.contact-info-item {
    margin-bottom: 30px;
}

.contact-info-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-item p,
.contact-info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.contact-info-item a:hover {
    color: #4fd1c5;
}

/* Форма */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 600px; /* ограничиваем максимальную ширину */
    width: 100%;      /* адаптивная ширина */
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    width: 100%; /* Убираем фиксированную ширину, делаем адаптивной */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* === Footer === */
footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4fd1c5;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: #4fd1c5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #4fd1c5;
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* === Responsive === */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        width: 100%;
    }

    .contact-form,
    .contact-info {
        width: 100%;
        max-width: 600px; /* ограничиваем ширину */
    }

    .form-group {
        width: 100%;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .services-grid,
    .portfolio-grid,
    .about-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .btn,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
