    h1, h2, h4 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
}

body {
  font-family: 'Manrope', sans-serif !important;
}

    
    
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Inter', sans-serif; background: #fdfdff; color: #1a1a1a; }
    header {
      justify-content: space-between; align-items: center;
      padding: 20px 60px; background: #fff; position: sticky; top: 0;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05); z-index: 10;
      opacity: 0.95;
    }
    nav a {
      margin-left: 30px; text-decoration: none; color: #333;
      font-weight: 500; transition: color 0.3s ease;
    }
    nav a:hover { color: #3567f5; }
    .section { padding: 65px 20px 100px; text-align: center; }
    .hero {
      position: relative;
      overflow: hidden;
      background: radial-gradient(circle at 20% 50%, #eef4ff, #fef4ff);
      padding: 70px 20px 100px;
      text-align: center;
      color: white;
    }
    .hero .container {
      position: relative;
      z-index: 2;
    }
    .hero h1 { font-size: 2.7rem; color: #1c2b7a; font-weight: 800; }
    .hero h2 { font-size: 1.5rem; margin: 10px 0 20px; color: #333; }
    .hero p { max-width: 900px; margin: 30px auto 50px; color: #444; line-height: 1.6; }
    .hero .button_h {
      background: linear-gradient(45deg, #2563eb, #7c3aed, #2563eb); background-size: 500% 500%; animation: gradientFlow 6s ease-in-out infinite; color: #fff; padding: 14px 28px; font-size: 1rem;
      border: none; border-radius: 8px; cursor: pointer; text-decoration: none;
    }
    .hero a:hover { background-position: 100% 0; }
    h2.section-title { font-size: 2rem; margin-bottom: 50px; }
    .services, .projects, .testimonials {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px; max-width: 1100px; margin: 0 auto;
    }
    .card {
      border: 1px solid #eee; border-radius: 12px; padding: 24px; background: #fff;
      text-align: left; box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }
    .card h3 { margin-bottom: 10px; font-size: 1.1rem; }
    .card p { font-size: 0.95rem; color: #555; }
    .projects .card { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: white; }
    .projects .card:nth-child(3), .projects .card:nth-child(4) {
      background: linear-gradient(135deg, #ec4899, #f97316);
    }
    .contact-form {
      background: #fff; max-width: 500px; margin: 0 auto;
      padding: 24px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .contact-form input, .contact-form textarea {
      width: 100%; padding: 12px; margin-bottom: 14px;
      border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 15px;
    }
    .contact-form button {
      width: 100%; padding: 14px; font-size: 1rem; color: white;
      background: linear-gradient(to right, #3b82f6, #6366f1);
      border: none; border-radius: 8px; cursor: pointer;
    }
.footer {
  background: #0b0c10;
  color: #eee;
  padding: 60px 20px;
  font-family: 'Manrope', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer .logo img {
  height: 35px;
}

.footer-brand .tagline {
  font-size: 14px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 100px;
}

.footer-section h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 6px 0;
  font-size: 15px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #aaa;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

    /* Section: Projects */

#projects {
    background: #f3f6fa;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card.has-links:hover .card-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 150px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.project-card .card-bg {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-links {
  position: absolute;
  top: 0;
  left: 0;
  height: 150px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.project-card:hover .card-links {
  opacity: 1;
  pointer-events: auto;
}

.card-links a {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.card-links a::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  /* background-image: url("data:image/svg+xml,%3Csvg fill='currentColor' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.397 31.488c-1.356 0-2.659-0.561-3.697-1.6-2.301-2.309-2.301-6.064-0.001-8.372l17.946-19.057c2.8-2.804 7.089-2.553 10.219 0.582 1.402 1.405 2.189 3.431 2.16 5.559-0.029 2.107-0.852 4.123-2.259 5.531l-13.563 14.439c-0.377 0.404-1.011 0.423-1.413 0.044s-0.421-1.014-0.043-1.417l13.584-14.461c1.063-1.065 1.672-2.575 1.695-4.164s-0.552-3.09-1.574-4.114c-1.92-1.924-5.046-2.932-7.37-0.602l-17.945 19.057c-1.543 1.547-1.542 4.032-0.02 5.558 0.714 0.715 1.562 1.063 2.464 1.008 0.893-0.055 1.811-0.512 2.585-1.288l14.279-15.198c0.517-0.518 1.558-1.79 0.499-2.851-0.599-0.601-1.02-0.563-1.159-0.552-0.395 0.035-0.858 0.309-1.337 0.79l-10.748 11.43c-0.38 0.404-1.013 0.423-1.414 0.043-0.402-0.379-0.421-1.014-0.042-1.416l10.767-11.452c0.846-0.851 1.712-1.312 2.593-1.391 0.688-0.061 1.71 0.085 2.753 1.131 1.548 1.551 1.355 3.826-0.477 5.663l-14.279 15.197c-1.14 1.144-2.517 1.808-3.898 1.893-0.101 0.007-0.203 0.01-0.304 0.01z'/%3E%3C/svg%3E"); */
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%22800px%22%20height%3D%22800px%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-arrow-up-right%22%3E%3Cline%20x1%3D%227%22%20y1%3D%2217%22%20x2%3D%2217%22%20y2%3D%227%22%3E%3C/line%3E%3Cpolyline%20points%3D%227%207%2017%207%2017%2017%22%3E%3C/polyline%3E%3C/svg%3E");  
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: -3px;
}

.card-links a:hover {
  background: #ddd;
}

.service-number {
  color: #000000;
  font-size: 4.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1;
  margin-top: -6px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.services-grid .service-number,
.services-grid .service-dot {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.services-grid .service-card:hover .service-number,
.services-grid .service-card:hover .service-dot {
  opacity: 1;
}

.service-number .number-digit {
  line-height: 1;
}

.service-number .number-dot {
  color: #04d9ff; /* Цвет по умолчанию (голубой) — можно менять по номеру */
  margin-left: 4px;
  font-weight: bold;
}

.content-col {
  flex-grow: 1;
  text-align: left;
}

.content-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.content-col .service-description {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #333;
}

.project-card.empty::before { background: #eef4ff; background-size: cover; }
  .project-card.np::before { background: url('/img/BAtLAB.jpg'); background-size: cover; }
  .project-card.ip::before { background: url('/img/BLFK5E.jpg'); background-size: cover; }
  .project-card.purple::before { background: url('/img/DQIQA1.jpg'); background-size: cover; }
  .project-card.pink::before { background: url('/img/DFQ1A.jpg'); background-size: cover; }

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.project-content p {
  font-size: 1rem;
  color: #6b7280;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  color: #111;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.letter-from-founder {
  max-width: 900px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1f2937;
}

.letter-from-founder .intro {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111827;
}

.letter-from-founder .signature {
  margin-top: 30px;
  font-weight: 500;
  color: #3b82f6;
  text-align: right;
  line-height: 1.4;
}

.letter-from-founder .signature span {
  font-weight: 700;
}

.hero-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #0d0d0d;
  padding: 120px 20px 100px;
  text-align: center;
  color: white;
}

.hero-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1e2a6d;
  margin-bottom: 30px;
}

.hero-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
}

.hero strong {
  color: #1e2a6d;
  font-weight: 700;
}

.primary-btn {
  background: #3b82f6;
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

header .logo img {
  height: 25px;
  vertical-align: middle;
}

header .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-menu {
  display: flex;
}

.main-menu a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.main-menu a:hover {
  opacity: 0.7;
}

.blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #eef4ff 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, #fdfdff 0%, transparent 60%),
              radial-gradient(circle at 50% 50%, #5c49ec78 0%, transparent 55%);
  filter: blur(80px);
  opacity: 0.9;
  animation: blobFlow 3s ease-in-out infinite alternate;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes blobFlow {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: blur(80px);
  }
  50% {
    transform: translate(-48%, -52%) scale(1.2) rotate(20deg);
    filter: blur(100px);
  }
  100% {
    transform: translate(-52%, -48%) scale(1.05) rotate(-15deg);
    filter: blur(85px);
  }
}
#trusted {
  background: #fafafa;
}

.trusted-by {
  text-align: center;
  padding: 80px 20px;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 60px;
  justify-items: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.trusted-logos img {
  height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s ease;
}

.trusted-logos img:hover {
  filter: none;
  opacity: 1;
}

#about {
  background: #f8f9fc;
}

.arrow {
  margin-left: 5px;
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  background-color: transparent;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.project-button:hover {
  border-color: #000;
  color: #000;
}

.project-button .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.project-button:hover .arrow {
  transform: translateX(4px);
}

.form-status {
  margin-top: 15px;
  font-weight: 500;
}

.form-disclaimer {
  font-size: 12px;
  color: #888;
  margin-top: 12px;
  text-align: center;
}
.form-disclaimer a {
  color: inherit;
  text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 2em;
  max-width: 500px;
  border-radius: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-overlay.active {
  display: flex;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}

/* Service v2 */
.service-block {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 2em;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.service-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.service-block h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.service-block p {
  font-size: 1em;
  color: #666;
}

.service-block .open-modal {
  margin-top: 1.2em;
  font-weight: 500;
  color: #000;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.service-block .open-modal:hover {
  opacity: 0.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid .service-card {
  display: flex;
  flex-direction: row;
  cursor: pointer;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  padding: 24px;
  gap: 16px;
}

.services-grid .number-col {
  flex-shrink: 0;
  width: 60px;
}

.services-grid .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.services-grid .service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  width: 250px;
  float: right;
  text-align: left;
}

.services-grid .service-card ul li::marker {
  color: #999;
}

.services-grid .service-description {
  width: 250px;
  float: right;
  text-align: left;
}

.services-grid .service-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.services-grid .service-card ul {
  padding-left: 1rem;
  margin: 0;
}

.services-grid .service-card li {
  list-style: disc;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 6px;
}
.legal-note {
  max-width: 1200px;
  margin: 30px auto 0;
  font-size: 0.95rem;
  color: #888;
  line-height: 1.4;
  text-align: center;
}

#load-more-projects {
    margin-top: 30px;
    background: linear-gradient(to right, #3b82f6, #6366f1);
    background-size: 500% 500%;
    animation: gradientFlow 6s ease-in-out infinite;
    color: #fff;
    padding: 14px 28px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}


/* Letter from Founder */

#about {
  background: #f8f9fc;
  display: flex;
  justify-content: center;
}

#about .letter {
  flex: 0 0 70%;
  position: relative;
  background: #fff;
  padding: 60px;
  border-radius: 12px 0 0 12px;
  max-width: 1200px;
  width: 100%;
  font-family: Georgia, serif;
  line-height: 1.7;
  color: #222;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#about .letter-logo {
  height: 26px;
  margin-bottom: 24px;
}

#about .letter-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  font-family: 'Merriweather', serif;
}

#about em {
  font-style: italic;
  color: #555;
}

#about strong {
  font-weight: 700;
  color: #000;
}

#about .letter-signature {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

#about .letter-signature p {
  font-size: 16px;
  font-family: 'Helvetica Neue', sans-serif;
}

#about .letter-wrapper {
  display: flex;
  flex-direction: row;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  gap: 0;
  align-items: stretch;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

#about .letter-image {
  /* background: #eee; */
  background: url('/img/P1.jpg');
  background-size: cover;
  background-position: 0;
  background-repeat: no-repeat;
  flex: 0 0 30%;
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about .letter-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about .letter-signature span {
  color: #2b4ff3;
  font-weight: 600;
}

#about .signature-img {
  height: 100px;  
  position: absolute;
  right: 75px;
  bottom: 30px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}