:root {
  --primary-color: #1a365d;
  --secondary-color: #2b6cb0;
  --text-color: #1a202c;
  --bg-color: #f7fafc;
  --white: #ffffff;
  --transition-main: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.phone a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-main);
}

.phone a:hover {
  color: var(--secondary-color);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  margin-left: 24px;
  font-weight: 600;
  transition: var(--transition-main);
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-main);
  box-shadow: 0 4px 6px rgba(43, 108, 176, 0.2);
}

.btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.about,
.portfolio {
  padding: 100px 0;
}

.services {
  padding: 96px 0;
  background: linear-gradient(135deg, #f7fafc 0%, #e6edf7 50%, #fff3e4 100%);
  position: relative;
  overflow: hidden;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 15%, rgba(43, 108, 176, 0.18), transparent 55%),
    radial-gradient(circle at 88% 10%, rgba(237, 137, 54, 0.16), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(26, 54, 93, 0.14), transparent 55%),
    linear-gradient(120deg, rgba(26, 54, 93, 0.08) 1px, transparent 1px);
  background-size: auto, auto, auto, 90px 90px;
  opacity: 0.6;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header h2 {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.services-lead {
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto;
  color: #2d3748;
}

.services-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.service-step {
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 54, 93, 0.1);
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 18px 30px rgba(26, 54, 93, 0.12);
  position: relative;
  overflow: hidden;
  animation: servicesReveal 0.8s ease both;
}

.service-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--secondary-color), #ed8936);
  z-index: 0;
}

.service-step > * {
  position: relative;
  z-index: 1;
}

.service-step:nth-child(2) {
  animation-delay: 0.1s;
}

.service-step:nth-child(3) {
  animation-delay: 0.2s;
}

.service-step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.service-step h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step-list li {
  background-color: rgba(26, 54, 93, 0.04);
  border: 1px solid rgba(26, 54, 93, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-color);
}

.step-label {
  font-weight: 700;
  color: var(--primary-color);
}

@keyframes servicesReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about h2,
.portfolio h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 40px;
  align-items: center;
}

.about-media {
  max-width: 360px;
  width: 100%;
  /* aspect-ratio: 1 / 1; */
  overflow: hidden;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0;
  text-align: left;
  color: var(--text-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5px;
}

.card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition-main);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 24px;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  color: var(--primary-color);
}

.faq {
  padding: 90px 0;
  background-color: var(--white);
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.3rem;
  color: var(--primary-color);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-color);
  border-radius: 14px;
  border: 1px solid rgba(26, 54, 93, 0.08);
  padding: 18px 22px;
  box-shadow: 0 10px 20px rgba(26, 54, 93, 0.06);
  transition: var(--transition-main);
}

.faq-item[open] {
  background-color: var(--white);
  box-shadow: 0 16px 28px rgba(26, 54, 93, 0.12);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  transform: rotate(45deg);
  transition: var(--transition-main);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  padding-top: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    padding-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-content {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 12px;
}

.faq-content p {
  margin: 0;
  color: var(--text-color);
  font-size: 1.05rem;
}

.faq-item:focus-within {
  outline: 2px solid rgba(43, 108, 176, 0.25);
  outline-offset: 2px;
}

.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .nav-menu {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .nav-menu a {
    margin: 0;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .about,
  .portfolio,
  .services,
  .faq {
    padding: 60px 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .about-media {
    margin: 0 auto;
    max-width: 280px;
  }

  .about-content h2 {
    text-align: center;
  }

  .about-content p {
    text-align: center;
    margin: 0 auto;
  }

  .faq h2 {
    font-size: 2rem;
  }

  .services-header h2 {
    font-size: 2rem;
  }

  .services-lead {
    font-size: 1.05rem;
  }

  .services-steps {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-step {
    padding: 22px 22px 20px;
  }
}