:root {
  --background: #f3f4f6;
  --paper: #ffffff;
  --ink: #22252b;
  --muted: #666b75;
  --accent: #b21d2a;
  --link: #275c9d;
  --line: #e9ebef;
  --radius: 16px;
  --page-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Arial, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; border-radius: 3px; }
::selection { background: #e9d4d7; }
.skip-link { position: absolute; z-index: 10; left: 16px; top: 12px; padding: 8px 16px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--page-width), calc(100% - 64px)); min-height: 80px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-name { color: var(--ink); font-weight: 700; font-size: 19px; line-height: 1.4; }
.site-name span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.site-name:hover { text-decoration: none; }
.header-navigation { display: flex; gap: 28px; }
.header-navigation a { color: var(--muted); font-size: 14px; padding-block: 10px; }
.profile-layout { width: min(var(--page-width), calc(100% - 64px)); margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 20px 24px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.profile, .about, .services, .reviews { grid-column: 1; }
.profile { grid-row: 1; }
.profile-cover { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.profile-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2.5; }
.profile-information { padding: 0 28px 26px; }
.profile-avatar { position: relative; width: 136px; height: 136px; border-radius: 50%; border: 5px solid white; overflow: hidden; margin-top: -55px; margin-bottom: 16px; background: #d50000; }
.profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.9); transform-origin: 50% 0; }
h1 { margin: 0 0 5px; font-size: 30px; line-height: 1.25; letter-spacing: -.025em; font-weight: 700; }
.profile-profession { margin: 0; font-size: 14px; color: #444b56; }
.profile-employment { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.profile-description { max-width: 650px; font-size: 15px; line-height: 1.75; margin: 18px 0 20px; }
.profile-specialties { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.profile-specialties li { padding: 5px 12px; background: #f4f5f7; border-radius: 6px; font-size: 12px; color: #565d69; }
.profile-navigation { border-top: 1px solid var(--line); display: flex; gap: 32px; padding: 0 28px; }
.profile-navigation a { display: block; padding: 17px 0; font-size: 14px; font-weight: 600; color: #555d69; }
.profile-navigation a:hover { color: var(--accent); }
.content-panel { padding: 26px 28px; }
h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.35; letter-spacing: -.02em; font-weight: 700; }
.about { grid-row: 2; }
.about p { margin: 0 0 16px; font-size: 15px; line-height: 1.8; }
.about p:last-child { margin-bottom: 0; }
.services { grid-row: 3; }
.content-panel h3 { margin: 28px 0 14px; font-size: 18px; line-height: 1.4; }
.content-list { padding-left: 20px; margin: 12px 0 0; font-size: 14px; line-height: 1.8; }
.content-list li + li { margin-top: 7px; }
.presentation-link { margin-top: 22px !important; font-size: 13px !important; }
.presentation-link a { text-decoration: underline; }
.section-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 18px; }
.offer { border-top: 1px solid var(--line); padding: 22px 0; }
.offer:last-child { padding-bottom: 0; }
.offer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.offer-heading h4 { font-size: 17px; line-height: 1.5; font-weight: 600; margin: 0; }
.price { margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; }
.offer > p, .services > p { font-size: 14px; line-height: 1.8; }
.offer > p { margin: 12px 0 0; }
.content-panel h3.subsection-heading { margin-top: 34px; }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.65; }
.price-table thead th { color: var(--muted); font-size: 12px; font-weight: 400; text-align: left; padding: 0 0 12px; }
.price-table th[scope="row"] { text-align: left; font-weight: 500; padding: 17px 16px 17px 0; overflow-wrap: anywhere; }
.price-table th[scope="row"] span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.price-table tbody tr { border-top: 1px solid var(--line); }
.price-table td { padding: 17px 0; font-weight: 500; vertical-align: top; white-space: nowrap; }
.price-table thead th:last-child, .price-table td { text-align: right; width: 104px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.services-note { color: var(--muted); margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }
.reviews { grid-row: 4; }
.review { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review figcaption strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; }
.review figcaption span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.review blockquote { margin: 15px 0 0; font-size: 14px; line-height: 1.8; }
.review blockquote p { margin: 0 0 14px; }
.review blockquote p:last-child { margin-bottom: 0; }
.contacts { grid-column: 2; grid-row: 1 / 5; padding: 24px; position: sticky; top: 24px; }
.contacts h2 { font-size: 20px; margin-bottom: 8px; }
.contacts-intro { color: var(--muted); font-size: 13px; margin: 0 0 24px; line-height: 1.65; }
.contact-list { margin: 0; }
.contact-list > div { margin-top: 22px; }
.contact-list > div:first-child { margin-top: 0; }
.contact-list dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.contact-list a { text-decoration: underline; text-decoration-color: #c5d2e4; }
.contact-list a:hover { text-decoration-color: currentColor; }
.site-footer { width: min(var(--page-width), calc(100% - 64px)); display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 26px auto; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 1020px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .profile-information, .content-panel { padding-inline: 24px; }
  .profile-avatar { width: 120px; height: 120px; margin-top: -40px; }
  .contacts { padding: 22px; }
  h1 { font-size: 28px; }
}
@media (max-width: 800px) {
  .header-inner, .profile-layout, .site-footer { width: min(680px, calc(100% - 40px)); }
  .profile-layout { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .contacts { grid-column: 1; grid-row: 5; position: static; }
  .contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact-list > div { margin-top: 0; }
  .contacts-intro { margin-bottom: 18px; }
  .profile-avatar { width: 128px; height: 128px; margin-top: -48px; }
  .header-navigation { gap: 22px; }
  .header-navigation a { font-size: 13px; }
}
@media (max-width: 520px) {
  :root { --radius: 12px; }
  html { scroll-padding-top: 16px; }
  .header-inner, .profile-layout, .site-footer { width: calc(100% - 24px); }
  .header-inner { min-height: 68px; }
  .site-name { font-size: 16px; }
  .site-name span { font-size: 10px; }
  .header-navigation { gap: 0; }
  .header-navigation a { display: none; }
  .header-navigation a:last-child { display: block; font-size: 12px; }
  .profile-layout { margin-top: 12px; gap: 12px; }
  .profile-information { padding: 0 20px 22px; }
  .profile-avatar { width: 102px; height: 102px; border-width: 4px; margin-top: -22px; margin-bottom: 12px; }
  h1 { font-size: 26px; margin-bottom: 7px; }
  .profile-profession { font-size: 13px; line-height: 1.65; }
  .profile-description { margin: 16px 0; font-size: 14px; line-height: 1.75; }
  .profile-specialties { gap: 6px; }
  .profile-specialties li { font-size: 11px; padding: 5px 10px; }
  .profile-navigation { gap: 0; justify-content: space-between; padding-inline: 20px; }
  .profile-navigation a { font-size: 13px; padding-block: 15px; }
  .content-panel { padding: 22px 20px; }
  h2 { font-size: 21px; margin-bottom: 15px; }
  .about p { font-size: 14px; }
  .content-panel h3 { font-size: 17px; }
  .offer-heading { flex-wrap: wrap; gap: 8px 20px; }
  .offer-heading h4, .price { font-size: 16px; }
  .price-table thead th:last-child, .price-table td { width: 80px; }
  .price-table th[scope="row"] { padding-right: 12px; }
  .contact-list { display: block; }
  .contact-list > div { margin-top: 20px; }
  .contact-list > div:first-child { margin-top: 0; }
  .contact-list dd { font-size: 15px; }
  .site-footer { font-size: 11px; gap: 16px; margin-block: 22px; }
}
