* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: #f5f7fa;
  color: #2c3e50;
  position: relative;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.brand-name {
  color: #1a2a4a;
  font-weight: 700;
}

.logo-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  z-index: 0;
}

.logo-bg a {
  display: block;
}

.logo-bg img {
  width: 160px;
  height: auto;
}

.main-content {
  margin-left: 280px;
  min-height: 100vh;
  padding: 40px 80px 60px;
  position: relative;
  z-index: 1;
}

.page-block {
  padding: 50px 0;
  border-bottom: 1px solid #e2e8f0;
}

.no-wrap {
  white-space: nowrap;
}

.page-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-block:first-child {
  padding-top: 20px;
}

.header-section {
  text-align: center;
  margin-bottom: 36px;
}

.header-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 16px;
  line-height: 1.18;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.header-section h2 {
  font-size: 1.15rem;
  font-weight: 400;
  color: #5a6a7a;
  line-height: 1.42;
  max-width: 800px;
  margin: 0 auto;
}

.block-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #4a5568;
}

.block-text p {
  margin-bottom: 16px;
}

.block-text ul {
  margin: 12px 0 20px 20px;
}

.block-text li {
  margin-bottom: 5px;
  line-height: 1.35;
}

.block-label {
  font-weight: 600;
  color: #1a2a4a;
  margin-top: 24px;
  margin-bottom: 16px;
}

.btn-section {
  text-align: center;
  margin-top: 32px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn-link {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #2d4a7a 0%, #1a2a4a 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(26, 42, 74, 0.3);
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 42, 74, 0.4);
}

.consult-label {
  text-align: center;
  font-weight: 700;
  color: #1a2a4a;
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.contact-label {
  text-align: center;
  font-weight: 600;
  color: #1a2a4a;
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.social-links--labeled {
  margin-top: 20px;
}

.contact-social-row {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 560px;
  margin: 28px auto 0;
}

.contact-social-group {
  flex: 1;
}

.contact-social-group .contact-label,
.contact-social-group .social-label {
  margin-top: 0;
}

.social-label {
  width: 100%;
  text-align: center;
  font-weight: 600;
  color: #1a2a4a;
  margin-bottom: 4px;
  font-size: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.social-link svg {
  width: 26px;
  height: 26px;
}

.social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.social-link--telegram svg { fill: #229ED9; }
.social-link--whatsapp svg { fill: #25D366; }

.social-link--img {
  background: #fff;
}

/* Дополнительные страницы */
.subpage {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}

.back-link {
  display: inline-block;
  color: #2d4a7a;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #1a2a4a;
}

.subpage h1 {
  font-size: 2rem;
  color: #1a2a4a;
  margin-bottom: 24px;
  line-height: 1.3;
}

.placeholder-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #718096;
}

.subpage-content {
  max-width: none;
}

.subpage-content .page-block {
  max-width: 960px;
  margin: 0 auto;
}

.page-block--hero {
  padding-top: 8px;
}

.block-text a {
  color: #2d4a7a;
  font-weight: 700;
}

.block-text h2 {
  color: #1a2a4a;
  font-size: 1.25rem;
  margin: 30px 0 10px;
}

.consultation {
  margin-top: 28px;
}

.price-card {
  max-width: 800px;
  margin: 28px auto 0;
  padding: 26px 30px;
  background: #fff;
  border-left: 4px solid #2d4a7a;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(26, 42, 74, 0.08);
  color: #4a5568;
  line-height: 1.5;
}

.price-card h2 {
  color: #1a2a4a;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.price-card p + p { margin-top: 10px; }
.price-card ul { margin: 14px 0 0 20px; }
.price-card li { margin-bottom: 5px; line-height: 1.35; }
.price-card--home ul + ul { border-top: 1px solid #d6e2f0; margin-top: 18px; padding-top: 18px; }

.subpage-content .social-link { font-size: 0; }
.subpage-content .social-link::before { content: ''; display: block; width: 26px; height: 26px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.subpage-content .social-link--telegram::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23229ED9' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z'/%3E%3C/svg%3E"); }
.subpage-content .social-link--whatsapp::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E"); }


.page5-heading { max-width: 960px; margin: 0 auto 28px; }

.accordion {
  max-width: 960px;
  margin: 0 auto;
}

.accordion details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(26, 42, 74, 0.05);
}

.accordion summary {
  position: relative;
  padding: 22px 58px 22px 24px;
  color: #1a2a4a;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: #2d4a7a; font-size: 1.7rem; font-weight: 400; }
.accordion details[open] summary::after { content: '−'; }
.accordion__content { border-top: 1px solid #e2e8f0; padding: 24px; color: #4a5568; font-size: 1.03rem; line-height: 1.5; }
.accordion__content p { margin-bottom: 16px; }
.accordion__content ul { margin: 0 0 18px 20px; }
.accordion__content li { margin-bottom: 5px; line-height: 1.35; }

@media (max-width: 900px) {
  .logo-bg {
    width: 100%;
    height: auto;
    min-height: 100px;
    position: relative;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .logo-bg img {
    width: 120px;
  }

  .main-content {
    margin-left: 0;
    padding: 32px 20px 48px;
  }

  .page-block {
    padding: 36px 0;
  }

  .header-section {
    margin-bottom: 28px;
  }

  .header-section h1 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .header-section h2 {
    font-size: 1rem;
    line-height: 1.45;
  }

  .block-text {
    font-size: 1rem;
    line-height: 1.52;
  }

  .block-text ul {
    margin-left: 18px;
    padding-right: 4px;
  }

  .block-text li {
    margin-bottom: 6px;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-link {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 16px 20px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .consult-label,
  .contact-label,
  .social-label {
    font-size: 1rem;
    padding: 0 8px;
  }

  .social-links {
    gap: 20px;
  }

  .contact-social-row {
    gap: 24px;
  }

  .social-link {
    width: 52px;
    height: 52px;
  }

  .subpage h1 {
    font-size: 1.45rem;
  }

  .price-card { padding: 20px; }
  .accordion summary { padding: 18px 50px 18px 18px; font-size: 1.02rem; }
  .accordion summary::after { right: 18px; }
  .accordion__content { padding: 18px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .main-content {
    padding: 24px 16px 40px;
  }

  .header-section h1 {
    font-size: 1.3rem;
  }

  .header-section h2 {
    font-size: 0.95rem;
  }

  .block-text {
    font-size: 0.98rem;
  }

  .logo-bg img {
    width: 100px;
  }

  .contact-social-row {
    flex-direction: column;
    gap: 28px;
  }
}
