* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fc;
  color: #1f2937;
  min-height: 100vh;
  line-height: 1.6;
}


.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  position: fixed;
  height: 100%;
  padding: 2.5rem 1.8rem;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.sidebar .logo {
  font-size: 2.1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3.5rem;
  text-align: center;
  letter-spacing: -1.2px;
}

.logo-img,
.sidebar .logo img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav li {
  margin: 0.6rem 0;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #4b5563;
  text-decoration: none;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  font-weight: 500;
  position: relative;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #111827;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #B8860B;
  border-radius: 0 4px 4px 0;
}

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 5rem 6rem 4rem;
  background:
    linear-gradient(to bottom, rgba(248, 250, 252, 0.85), rgba(229, 231, 235, 0.75)),
    url('./images/background.jpg') center/cover no-repeat fixed;
  background-color: #f1f5f9;
  position: relative;
  color: #1f2937;
}

.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.4) 0%, rgba(229, 231, 235, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}


h1 {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.2rem;
  color: #111827;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 1.8rem;
  color: #111827;
  border-left: 5px solid #B8860B;
  padding-left: 1.2rem;
}

.subtitle {
  font-size: 1.6rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

p, li {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.4rem;
}

section {
  margin-bottom: 7rem;
}


#о-себе {
  padding-top: 2rem;
}

.about-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.about-photo img:hover {
  transform: translateY(-8px);
}

.about-text .lead {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  color: #111827;
}

.skills-list {
  list-style: none;
  margin: 1.8rem 0 2.2rem;
  padding-left: 0;
}

.skills-list li {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.8rem;
}

.skills-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #B8860B;
  font-weight: bold;
}


#услуги {
  padding-top: 2rem;
}

.services-list {
  list-style: none;
  margin: 1.5rem 0 3.5rem;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.services-list li {
  font-size: 1.15rem;
  padding: 1rem 1.4rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #374151;
  transition: all 0.25s ease;
}

.services-list li:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-3px);
}

.services-gallery {
  margin-top: 3rem;
}

.services-gallery h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #111827;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.gallery-item img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0) 60%);
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}


#контакты {
  padding: 5rem 0 7rem;
}

#контакты h2 {
  text-align: center;
  margin-bottom: 3.5rem;
}

.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(6px);
  transition: all 0.28s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.10);
  color: #B8860B;
  border-radius: 14px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-content .contact-label {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.contact-content .contact-value,
.contact-content address {
  font-size: 1.18rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.contact-value {
  color: #B8860B;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.contacts-right {
  position: relative;
}

.map-container {
  height: 640px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  background: #e5e7eb;
  border: 1px solid rgba(0,0,0,0.06);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .contacts-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .map-container {
    height: 420px;
  }
}

@media (max-width: 600px) {
  .map-container {
    height: 360px;
  }

  .contact-card {
    padding: 1.2rem 1.4rem;
  }
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: #B8860B;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

@media (max-width: 900px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }

  .main-content {
    margin-left: 0;
    padding: 3rem 1.5rem 4rem;
  }

  .layout {
    flex-direction: column;
  }

  h1 { font-size: 3.2rem; }
  .subtitle { font-size: 1.4rem; }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo img {
    max-width: 380px;
    margin: 0 auto;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  .about-text .lead,
  .about-text {
    text-align: center;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .main-content { padding: 2.5rem 1.2rem 3.5rem; }
}