:root {
  --bg-main: #f5f5f5;
  --bg-elevated: #ffffff;
  --bg-soft: #f2ece6;
  --border-subtle: #e2ded7;
  --text-main: #222222;
  --text-muted: #707070;
  --accent: #d8d3cc;
  --shadow-soft: 0 18px 35px rgba(15, 10, 5, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease-out;
  --transition-medium: 0.35s ease-out;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(
    circle at top left,
    #c0b1a2 0,
    #ffffff 40%,
    #c0b1a2 100%
  );
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.header {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 14px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f2ece6, #d8d3cc);
  box-shadow: inset 0 0 0 1px rgba(160, 150, 140, 0.4);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  color: #494949;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: #f5f2ec;
  transform: translateY(-1px);
}


.lang-switcher {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f3eee7;
  gap: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #8a8277;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-btn.active {
  background: #ffffff;
  color: #453f3a;
  box-shadow: 0 6px 16px rgba(66, 56, 48, 0.18);
  transform: translateY(-1px);
}




main {
  flex: 1;
}

.hero {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 32px 24px 50px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
}

.hero-text {
  padding: 20px 80px;
  animation: fadeInUp 0.6s var(--transition-medium) both;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-subtitle {
  margin: 0 0 14px;
  color: #494949;
  font-size: 0.98rem;
  max-width: 520px;
  line-height: 1.3;
}



.hero-photo {
  display: flex;
  align-items: center;
  
}

.hero-photo dotlottie-wc {
  max-width: 320px;
  width: 100%;
  height: auto;
}


.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 40px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.section-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.section-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, #d8d3cc, transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.section-link:hover::after {
  transform: scaleX(1);
}


.about-cards {
  max-width: 1120px;
  margin: 40px auto 20px;
  padding: 0 24px;
  display: grid;
  gap: 16px;
}

.about-card {
  background: rgba(240, 234, 226, 0.55); 
  border: 1px solid rgba(210, 200, 190, 0.65);
  border-radius: 20px;
  padding: 22px 24px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 20px rgba(40, 32, 24, 0.08);
  animation: aboutFade 0.6s ease both;
  opacity: 0;
  transform: translateY(10px);
}


.about-card:nth-child(1) {
  animation-delay: 0.1s;
}
.about-card:nth-child(2) {
  animation-delay: 0.2s;
}
.about-card:nth-child(3) {
  animation-delay: 0.3s;
}

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

.about-card-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2b2a28;
}

.about-card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5c5854;
}

/* Адаптив */
@media (max-width: 700px) {
  .about-card {
    padding: 18px 20px;
  }
  .about-card-title {
    font-size: 1rem;
  }
}


.bottom-cta {
  max-width: 1120px;
  margin: 80px auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}


.btn-portfolio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: #18120d;
  color: #f9f5ef;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 14px 30px rgba(15, 10, 5, 0.35);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out,
    background 0.2s ease-out;
  white-space: nowrap;
}

.btn-portfolio:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(15, 10, 5, 0.45);
  background: #130e0a;
}


.bottom-contact {
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(244, 238, 231, 0.8),
    rgba(234, 226, 217, 0.9)
  );
  border: 1px solid rgba(210, 200, 190, 0.8);
  box-shadow: 0 14px 30px rgba(40, 32, 24, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-contact-text {
  margin: 0;
  font-size: 0.9rem;
  color: #3a3632;
}

.bottom-contact-email {
  margin-left: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #18120d;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 18, 13, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.bottom-contact-email:hover {
  color: #000;
  border-color: #000;
}





.footer {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 8px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}













.portfolio {
  max-width: 1120px;
  margin: 80px auto 0px;
  padding: 0 24px;
}

.portfolio-header {
  margin-bottom: 24px;
}

.portfolio-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
      text-align: center;
}

.portfolio-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
      text-align: center;
}


.projects-grid {
  display: grid;
  gap: 60px;
  margin-top: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 216, 207, 0.9);
  box-shadow: 0 16px 32px rgba(35, 28, 22, 0.12);
  align-items: center;
    opacity: 0;
  transform: translateY(12px);
  animation: aboutFade 1.5s ease both;
}

.project-card:nth-child(1) {
  animation-delay: 0.15s;
}

.project-card:nth-child(2) {
  animation-delay: 0.28s;
}


.project-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background: #f1ebe4;
  box-shadow: 0 10px 26px rgba(30, 24, 18, 0.18);
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


.project-content {
  display: grid;
  gap: 8px;
}

.project-title {
  margin: 0;
  font-size: 1.25rem;
}

.project-tag {
  margin: 0;
  font-size: 0.88rem;
  color: #7a736b;
}

.project-desc {
  margin: 4px 0 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}


.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(38, 30, 24, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  color: #241c16;
  background: linear-gradient(
    135deg,
    rgba(248, 244, 238, 0.9),
    rgba(238, 230, 222, 0.95)
  );
  box-shadow: 0 10px 22px rgba(32, 26, 20, 0.18);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

.project-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(32, 26, 20, 0.26);
  background: linear-gradient(
    135deg,
    rgba(252, 248, 242, 1),
    rgba(238, 230, 222, 1)
  );
}


.portfolio-header {
  margin-bottom: 24px;
  animation: fadeInUp 0.7s var(--transition-medium) both;
}







.services-page {
max-width: 1120px;
  margin: 80px auto 0px;
  padding: 0 24px;
}

.services-header {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--transition-medium) both;
}

.services-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  text-align: center;

}

.services-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}


.services-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}


.service-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  border: 1px solid rgba(223, 216, 207, 0.9);
  padding: 18px 18px 20px;
  box-shadow: 0 16px 30px rgba(32, 26, 20, 0.12);
  animation: aboutFade 0.6s ease both;
  opacity: 0;
  transform: translateY(10px);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.18s; }
.service-card:nth-child(3) { animation-delay: 0.26s; }
.service-card:nth-child(4) { animation-delay: 0.34s; }

.service-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.service-text {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2;
}

.service-price {
  margin: 0;
  font-size: 0.88rem;
  color: #8a5119;
}



.process-section {
  margin-top: 90px;
}

.process-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  text-align: center;
  line-height: 3;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  background: rgba(240, 234, 226, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(210, 200, 190, 0.9);
  padding: 14px 14px 16px;
  box-shadow: 0 14px 26px rgba(32, 26, 20, 0.12);
  animation: aboutFade 0.6s ease both;
  opacity: 0;
  transform: translateY(10px);
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.18s; }
.process-step:nth-child(3) { animation-delay: 0.26s; }
.process-step:nth-child(4) { animation-delay: 0.34s; }

.process-step-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #857a70;
}

.process-step-title {
  margin: 0 0 4px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #2d2925;
}

.process-step-text {
  margin: 0;
  font-size: 0.86rem;
  color: #5e5953;
}


@media (max-width: 720px) {




  .header {
    padding: 16px 18px;
    margin: 16px auto 0;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 28px rgba(0,0,0,0.09);
    backdrop-filter: blur(16px);
  }


  .nav {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f7f3ee;
  }


  .lang-switcher {
    order: 1;
    display: flex;
    justify-content: center;
    border-radius: 16px;
    background: #f1ebe4;
  }

  .lang-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .hero {
    margin-top: 20px !important;
  }


  .hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-text {
    padding: 0 24px 10px;  
    text-align: center;
  }

  .hero-subtitle {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }


  .about-cards {
    padding: 0 16px;
  }

  .about-card {
    padding: 16px 18px;
  }


  .bottom-cta {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .bottom-contact {
    flex-direction: column;
    gap: 6px;
    border-radius: 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  .project-card {
    grid-template-columns: 1fr !important;
  }

  .project-image-wrapper {
    height: auto;
  }

  .services-grid,
  .process-steps {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .hero-photo lottie-player {
    max-width: 180px;
    justify-content: center;
  }

   .hero-photo {
    justify-content: center;
  }
}

