*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #f5f5f5;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
/* Skip link для навигации с клавиатуры (WCAG 2.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #f5f5f5;
  color: #111;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border: 2px solid #111;
}
.skip-link:focus {
  top: 0;
  position: fixed;
}
a { color: #ddd; text-decoration: none; }
a:hover { color: #fff; }
/* Видимый фокус для навигации с клавиатуры (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #f5f5f5;
  outline-offset: 2px;
  border-radius: 2px;
}
/* Улучшенная контрастность для ссылок (WCAG 2.1 AA) */
a {
  color: #e0e0e0; /* Улучшенный контраст вместо #ddd */
}
a:hover {
  color: #fff;
}
.wrapper { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sticky-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #111;
  border-bottom: 1px solid #333;
  padding: 10px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.sticky-top-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.sticky-top-bar .agent-name-sticky {
  font-weight: 600;
  font-size: 18px;
  color: #f5f5f5;
}
.sticky-top-bar .header-consultation-btn {
  font-size: 15px;
  padding: 8px 16px;
}
header {
  border-bottom: 1px solid #333;
  padding: 12px 0;
  margin-top: 50px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header .brand {
  font-weight: 600;
  font-size: 22px;
}
header .brand .agent-name {
  display: block;
  font-weight: 600;
  font-size: 20px;
  color: #f5f5f5;
}
header .brand span {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #aaa;
}
.main-nav {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 18px;
}
.main-nav a {
  color: #bbb; /* Улучшенный контраст для WCAG 2.1 AA */
  padding: 4px 0;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
}
.main-nav a[aria-current="page"] {
  color: #f5f5f5;
  font-weight: 600;
}
.header-consultation-btn {
  background: #f5f5f5;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  border: 2px solid #f5f5f5;
}
.header-consultation-btn:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}
.contacts-inline {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 18px;
}
.messengers {
  display: flex;
  gap: 10px;
}
.messenger-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ccc;
}

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid #222;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 32px;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 18px;
}
.hero p {
  color: #ccc;
  margin-bottom: 26px;
}
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid #888;
  background: transparent;
  color: #f5f5f5;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-primary {
  background: #f5f5f5;
  color: #111;
  border-color: #f5f5f5;
}
.hero-aside {
  border-radius: 12px;
  border: 1px solid #333;
  background: radial-gradient(circle at top, #333 0, #111 60%);
  min-height: 180px;
  overflow: hidden;
  position: relative;
}
.hero-aside img,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  background: #141414;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid #191919;
}
section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  border-radius: 10px;
  border: 1px solid #333;
  padding: 16px 18px;
  background: #141414;
}
.card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.muted {
  color: #aaa;
  font-size: 17px;
}
.page-intro {
  color: #ccc;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.note {
  background: #1a1a1a;
  border-left: 3px solid #666;
  padding: 12px 16px;
  margin: 16px 0;
  color: #ccc;
  font-size: 17px;
}
.price {
  font-size: 24px;
  font-weight: 600;
  color: #f5f5f5;
  margin: 12px 0 16px;
}
.reviews {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.review-card {
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px;
  background: #141414;
}
.review-name {
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 6px;
}
.review-meta {
  font-size: 15px;
  color: #888;
  margin-bottom: 12px;
}
.review-card p {
  color: #ccc;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}
.faq-item {
  border-top: 1px solid #222;
  padding: 12px 0;
}
.faq-item strong {
  display: block;
  margin-bottom: 4px;
}
.contacts-block {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 24px;
}
.callback-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.callback-form label {
  display: grid;
  gap: 4px;
  font-size: 17px;
}
.callback-form input,
.callback-form textarea {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 12px;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 17px;
  outline: none;
}
.callback-form input:focus,
.callback-form textarea:focus {
  border-color: #777;
}
.callback-form button {
  margin-top: 4px;
  width: 100%;
}
.form-message {
  font-size: 15px;
  color: #aaa;
  min-height: 1.2em;
}
.footer-call-button {
  background: #111;
  color: #111;
  text-align: center;
  padding: 28px 16px;
  border-top: 1px solid #333;
}
.footer-call-button a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #111;
  font-size: 22px;
  font-weight: 600;
  padding: 18px 32px;
  border-radius: 999px;
  border: 2px solid #f5f5f5;
  text-decoration: none;
  transition: all 0.2s;
  max-width: 420px;
  width: 100%;
}
.footer-call-button a span {
  display: block;
}
.footer-call-button a .footer-call-label {
  margin-bottom: 4px;
  font-size: 18px;
}
.footer-call-button a .footer-call-phone {
  font-size: 24px;
}
.footer-call-button a:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}
footer {
  padding: 24px 0 34px;
  font-size: 15px;
  color: #777;
  text-align: center;
}
.footer-social {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-social-btn {
  background: #222;
  color: #f5f5f5;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #444;
  transition: all 0.2s;
  display: inline-block;
}
.footer-social-btn:hover {
  background: #333;
  border-color: #666;
  color: #fff;
}

/* Планшеты и ниже */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: 30px;
  }
}

/* Телефоны - WCAG 2.1 для пожилых пользователей */
@media (max-width: 768px) {
  body {
    font-size: 20px;
  }
  .sticky-top-bar {
    padding: 8px 0;
  }
  .sticky-top-bar-inner {
    padding: 0 12px;
    gap: 8px;
    min-height: 44px;
  }
  .sticky-top-bar .agent-name-sticky {
    font-size: 16px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-top-bar .header-consultation-btn {
    font-size: 14px;
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  header {
    margin-top: 60px;
    padding: 16px 0;
  }
  header .brand {
    font-size: 26px;
  }
  header .brand .agent-name {
    font-size: 24px;
  }
  header .brand span {
    font-size: 16px;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .header-inner > div:first-child {
    width: 100%;
  }
  .main-nav {
    width: 100%;
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 18px;
  }
  .main-nav a {
    display: block;
    text-align: center;
    border-radius: 999px;
    border: 1px solid #333;
    padding: 12px 6px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
  }
  .header-consultation-btn {
    font-size: 18px;
    padding: 12px 18px;
    width: 100%;
    text-align: center;
    margin-top: 0;
  }
  .contacts-inline {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    font-size: 20px;
    gap: 12px;
  }
  .contacts-inline .header-consultation-btn {
    width: 100%;
    margin-top: 0;
  }
  .hero {
    padding: 36px 0 32px;
  }
  .hero-inner,
  .contacts-block {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    min-height: 250px;
    order: -1;
  }
  .hero h1 {
    font-size: 30px;
  }
  .about-photo {
    aspect-ratio: 4 / 3;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero p {
    font-size: 20px;
    line-height: 1.8;
  }
  .buttons {
    flex-direction: column;
    gap: 14px;
  }
  .btn,
  .btn-primary {
    width: 100%;
    font-size: 20px;
    padding: 16px 20px;
    min-height: 56px;
  }
  section {
    padding: 32px 0;
  }
  section h2 {
    font-size: 28px;
  }
  .card {
    padding: 18px 16px;
  }
  .card h3 {
    font-size: 20px;
  }
  .muted {
    font-size: 18px;
  }
  .messenger-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  .callback-form {
    margin-top: 20px;
    display: grid;
    gap: 14px;
  }
  .callback-form label {
    font-size: 18px;
    gap: 6px;
  }
  .callback-form input,
  .callback-form textarea {
    font-size: 18px;
    padding: 14px 16px;
    min-height: 50px;
  }
  .callback-form textarea {
    min-height: 100px;
  }
  .callback-form button {
    font-size: 20px;
    padding: 16px 20px;
    min-height: 56px;
    margin-top: 8px;
  }
  .form-message {
    font-size: 17px;
  }
  .footer-call-button {
    padding: 28px 16px;
  }
  .footer-call-button a {
    font-size: 20px;
    padding: 16px 28px;
    width: 100%;
    max-width: 100%;
    display: block;
  }
  .footer-social {
    gap: 10px;
    margin-bottom: 24px;
  }
  .footer-social-btn {
    font-size: 18px;
    padding: 12px 22px;
  }
}

/* Маленькие телефоны - ещё больше для удобства */
@media (max-width: 480px) {
  body {
    font-size: 21px;
  }
  .sticky-top-bar {
    padding: 10px 0;
  }
  .sticky-top-bar-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .sticky-top-bar .agent-name-sticky {
    font-size: 17px;
    flex-shrink: 1;
    min-width: 0;
  }
  .sticky-top-bar .header-consultation-btn {
    font-size: 15px;
    padding: 10px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  header {
    margin-top: 68px;
    padding: 18px 0;
  }
  header .brand {
    font-size: 28px;
  }
  header .brand .agent-name {
    font-size: 26px;
  }
  header .brand span {
    font-size: 17px;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .header-inner > div:first-child {
    width: 100%;
  }
  .header-consultation-btn {
    width: 100%;
    text-align: center;
    margin-top: 0;
  }
  .contacts-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .contacts-inline .header-consultation-btn {
    width: 100%;
    margin-top: 0;
  }
  .wrapper {
    padding: 0 14px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 21px;
  }
  .hero-aside {
    min-height: 280px;
  }
  .about-photo {
    aspect-ratio: 1 / 1;
    max-width: 100%;
  }
  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 18px;
  }
  .main-nav a {
    padding: 12px 6px;
    min-height: 48px;
    font-size: 17px;
  }
  .header-consultation-btn {
    font-size: 19px;
    padding: 14px 20px;
    width: 100%;
    text-align: center;
    margin-top: 0;
  }
  .contacts-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 21px;
    width: 100%;
  }
  .contacts-inline .header-consultation-btn {
    width: 100%;
    margin-top: 0;
  }
  .btn,
  .btn-primary {
    font-size: 21px;
    padding: 18px 22px;
    min-height: 60px;
  }
  .callback-form {
    margin-top: 24px;
    gap: 16px;
  }
  .callback-form label {
    font-size: 19px;
  }
  .callback-form input,
  .callback-form textarea {
    font-size: 19px;
    padding: 16px 18px;
    min-height: 54px;
  }
  .callback-form textarea {
    min-height: 110px;
  }
  .callback-form button {
    font-size: 21px;
    padding: 18px 22px;
    min-height: 60px;
  }
  .form-message {
    font-size: 18px;
  }
  .footer-call-button {
    padding: 32px 16px;
  }
  .footer-call-button a {
    font-size: 22px;
    padding: 18px 32px;
    width: 100%;
    max-width: 100%;
    display: block;
  }
  .footer-social {
    gap: 10px;
    margin-bottom: 28px;
  }
  .footer-social-btn {
    font-size: 19px;
    padding: 14px 24px;
  }
  section h2 {
    font-size: 26px;
  }
}
@media (max-width: 360px) {
  .sticky-top-bar-inner {
    padding: 0 10px;
    gap: 6px;
    min-height: 46px;
  }
  .sticky-top-bar .agent-name-sticky {
    font-size: 15px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-top-bar .header-consultation-btn {
    font-size: 13px;
    padding: 8px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  header {
    margin-top: 66px;
  }
}

