/* «Мои услуги» webnub.ru — итог показа 7б: верх варианта 1 с фото за столом, услуги карточками варианта 2
 * (утверждён 08.11.2026). Основа (шрифт Source Sans 3, цвета, шапка, подвал) — glavnaya/glavnaya_v3.css, классы g3-.
 * Здесь — содержимое страницы, классы us-; размеры и раскладка — 07b_pokaz/Itog.html, правила — 07_dizajn.md.
 * Без анимаций. Точка перестройки — 900 px, как в макете; шапка перестраивается по своим правилам (1100 px).
 */

/* Заголовки и текст */
.us h1 { font-size: 28px; line-height: 1.18; font-weight: 600; margin: 0 0 14px; text-wrap: balance; } /* строки примерно равной длины (слово Александра 09.11) */
.us h2 { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 0 0 16px; }
.us h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0 0 4px; color: #1d1f23; font-family: inherit; }
.us p { margin: 0 0 14px; }
.us b { font-weight: 600; }
.us-lid { font-size: 19px; line-height: 1.55; margin: 0 0 20px !important; }
.us p.us-bez-niza { margin-bottom: 0; }

/* Ссылки в тексте: посещённые — свой цвет (палитра блога); кнопки и перечень цен не перекрашиваем */
.us-tekst p a:visited, .us-prim a.us-nz:visited { color: #5a3d9a; }
.us-tekst p a:hover, .us-prim a.us-nz:hover { color: #0e3580; }

/* Колонка текста 720 px и воздух между частями */
.us-k { max-width: 752px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.us-rz { margin-top: 56px; }

/* Кнопки: главная — заливка, в карточках и у формы — контур. На телефоне во всю ширину */
.us a.us-knopka, .us .us-knopka2 {
  display: flex; justify-content: center; align-items: center; text-align: center;
  min-height: 52px; padding: 8px 24px; border-radius: 10px; border: 2px solid #154cb3;
  font-family: inherit; font-size: 19px; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer;
}
.us a.us-knopka { background: #154cb3; color: #ffffff; }
.us a.us-knopka:hover, .us a.us-knopka:visited { color: #ffffff; }
.us a.us-knopka:hover { background: #0e3580; border-color: #0e3580; }
.us .us-knopka2 { background: #ffffff; color: #154cb3; padding: 8px 22px; }
.us .us-knopka2:visited { color: #154cb3; }
.us .us-knopka2:hover { color: #0e3580; border-color: #0e3580; }
.us-vniz { display: inline-flex; align-items: center; min-height: 44px; margin: 10px 0 18px; font-size: 18px; } /* палец на телефоне — не меньше 44 px */

/* Первый экран: фото автора — на телефоне под кнопкой (4:3), на компьютере справа (4:5) */
.us-verh { max-width: 1100px; margin: 0 auto; padding: 24px 16px 0; }
.us-foto { margin: 0 0 22px; max-width: 360px; }
.us-foto img { display: block; width: 100%; height: auto; border-radius: 12px; background: #f0f2f5; }
.us-foto--pk { display: none; }

/* Перечень «услуга — цена» со ссылками на карточки */
.us-spis { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid #d5dae2; }
.us-spis li { border-bottom: 1px solid #d5dae2; }
.us-spis a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 2px; min-height: 44px; text-decoration: none; color: #1d1f23;
}
.us-spis a:visited, .us-spis a:hover { color: #1d1f23; }
.us-spis a span:first-child { color: #154cb3; text-decoration: underline; }
.us-spis a:hover span:first-child { color: #0e3580; }
.us-spis b { white-space: nowrap; }

/* Карточки услуг */
.us-usl { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.us-usl > li { border: 1px solid #d5dae2; border-radius: 12px; padding: 16px 14px 18px; }
.us-cena { font-size: 23px; font-weight: 600; margin: 2px 0 14px !important; line-height: 1.35; }
.us-cena span { white-space: nowrap; }
.us-usl .us-knopka2 { margin-top: 6px; }

/* Сайты-примеры: снимок первого экрана 16:10, название-ссылка, описание */
.us-prim { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 18px; }
.us-prim img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 6px; outline: 1px solid #e8ebf0; background: #f0f2f5;
}
.us-prim a.us-nz { display: flex; align-items: center; min-height: 44px; font-weight: 600; margin-top: 2px; line-height: 1.35; }
.us-prim p { margin: 2px 0 0; font-size: 17px; line-height: 1.5; }

/* Шаги «Как начнём работу» — номер в круге */
.us-shagi { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: us-sh; }
.us-shagi li { position: relative; padding-left: 48px; counter-increment: us-sh; }
.us-shagi li::before {
  content: counter(us-sh); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #154cb3; color: #ffffff; font-size: 17px; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* Кнопки связи */
.us-svz { display: grid; gap: 10px; margin: 6px 0 20px; }

/* Отзывы */
.us-prinyat { border: 1px solid #d5dae2; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.us-otzyvy, .us-otzyvy .children { list-style: none; margin: 0 0 24px; padding: 0; }
.us-otzyv { border-top: 1px solid #e8ebf0; padding: 16px 0 4px; }
.us-otzyvy .children { margin: 0; padding-left: 24px; }
.us-otzyv__kto { margin: 0 0 6px !important; font-size: 17px; color: #5b6270; }
.us-otzyv__kto b { color: #1d1f23; }

/* Форма отзыва */
.us-forma { margin: 8px 0 0; }
.us-forma label { display: block; font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.us-forma input[type="text"], .us-forma input[type="email"], .us-forma textarea {
  display: block; width: 100%; border: 1px solid #8a8f99; border-radius: 8px; padding: 10px 12px;
  font: inherit; font-size: 18px; color: #1d1f23; background: #ffffff;
}
.us-forma .us-pole { margin: 0 0 16px; }
.us-forma .us-gal { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 17px; line-height: 1.5; }
.us-forma .us-gal input { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; }
.us-forma .us-gal label { display: inline; font-size: 17px; font-weight: 400; margin: 0; }
.us-forma .us-zdorove { font-size: 17px; }
.us-forma .us-otpravit { margin: 0; }
.us-forma .us-knopka2 { display: flex; width: 100%; margin-top: 6px; } /* на телефоне — во всю ширину, как остальные кнопки (слово Александра 09.11) */

@media (min-width: 900px) {
  .us h1 { font-size: 38px; }
  .us h2 { font-size: 28px; }
  .us h3 { font-size: 23px; }
  .us-lid { font-size: 21px; }
  .us-cena { font-size: 25px; }
  .us-rz { margin-top: 72px; }
  .us a.us-knopka, .us .us-knopka2 { display: inline-flex; }
  .us-forma .us-knopka2 { width: auto; }
  .us-verh { max-width: 1032px; display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; padding-top: 48px; }
  .us-verh .us-vniz { margin-left: 24px; }
  .us-foto { max-width: none; margin: 6px 0 0; }
  .us-foto--tel { display: none; }
  .us-foto--pk { display: block; }
  .us-prim { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .us-svz { grid-template-columns: 1fr 1fr; max-width: 690px; }
  .us-svz a.us-knopka { display: flex; }
  .us-forma .us-dva { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Невысокий ноутбук: первый экран целиком — кнопка и начало текста видны без прокрутки */
@media (min-width: 900px) and (max-height: 700px) {
  body.g3.us { font-size: 18px; }
  .us h1 { font-size: 34px; }
  .us h2 { font-size: 26px; }
  .us h3 { font-size: 22px; }
  .us-lid { font-size: 20px; }
  .us-cena { font-size: 23px; }
  .us a.us-knopka, .us .us-knopka2 { font-size: 18px; }
}

/* Полный текст согласия на показ — раскрывается под галочкой (б) */
.us-usloviya { margin: -4px 0 14px 32px; font-size: 16px; line-height: 1.5; }
.us-usloviya summary { cursor: pointer; color: #154cb3; text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.us-usloviya p { margin: 0 0 8px !important; }
.us-forma .us-zdorove { margin: -8px 0 16px; }

/* Строка-заголовок блока согласия не нужна, когда текст раскрывает ссылка «Условия показа» (09.11.2026) */
.us-usloviya.us-js > summary { display: none; }
.us-usloviya.us-js[open] { margin-top: 0; }
