@charset "UTF-8";

:root {
  --font-primary: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --color-accent: #fa522f;
  --color-text: #2d2d2d;
  --color-text-muted: #4a5565;
  --color-text-gray: #6a7282;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-border: #f3f4f6;
  --color-border-light: #e5e7eb;
  --color-border-strong: #d1d5dc;
  --container-width: 1216px;
  --container-padding: 24px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  background-color: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

main {
  flex: 1;
}

.text-center {
  text-align: center;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: calc(var(--container-width) + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 32px;
  border: 0;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

.btn img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn--outline {
  padding: 0 33px;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  color: var(--color-text);
}

/* Надпись-разделитель: «— НАШИ УСЛУГИ —» */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 20px;
}

.section-label__line {
  width: 48px;
  height: 1px;
  background-color: var(--color-accent);
}

.section-label__text {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  color: var(--color-text-gray);
}

/* Фотоблок услуги: скруглённая рамка с обрезкой */
.media-frame {
  flex-shrink: 0;
  width: 624px;
  height: 342px;
  overflow: hidden;
  border-radius: 16px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header {
  position: relative;
  background-color: var(--color-white);
}

/* Верхняя строка: локации, соцсети, телефон */
.topbar {
  background-color: var(--color-white);
}

.topbar__line {
  height: 1px;
  background: linear-gradient(180deg, rgba(250, 82, 47, 0) 0%, var(--color-accent) 50%, rgba(250, 82, 47, 0) 100%);
}

.topbar__body {
  border-bottom: 1px solid var(--color-border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.topbar__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.topbar__location-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__social {
  display: block;
  width: 20px;
  height: 20px;
}

.topbar__social img {
  width: 20px;
  height: 20px;
}

.topbar__social--vk {
  width: 21px;
  overflow: hidden;
}

.topbar__social--vk img {
  width: 23px;
  max-width: none;
  margin-left: -1.19px;
}

.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 20px;
  border-radius: 9999px;
  background-color: var(--color-accent);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--color-white);
  white-space: nowrap;
}

.topbar__phone img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Основная строка: логотип, слоган, навигация */
.header__main {
  background-color: rgba(255, 255, 255, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo {
  flex-shrink: 0;
  width: 125.41px;
  height: 56px;
}

.header__tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 40px;
  padding-left: 17px;
  border-left: 1px solid var(--color-border-strong);
}

.header__tagline-top {
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: var(--color-text-gray);
}

.header__tagline-bottom {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--color-text);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav-link {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.35px;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__line {
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 231, 235, 0) 0%, var(--color-border-light) 50%, rgba(229, 231, 235, 0) 100%);
}

.footer {
  padding: 48px 0;
  background: linear-gradient(180deg, #2d2d2d 0%, #3c3c3c 100%);
  color: #99a1af;
}

.footer__top {
  display: flex;
  justify-content: space-between;
}

.footer__col {
  width: 280px;
}

.footer__logo {
  width: 107.48px;
  height: 48px;
}

.footer__about {
  margin-top: 16px;
  font-size: 16px;
  line-height: 26px;
  color: #99a1af;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-accent);
}

.footer__list {
  margin-top: 16px;
}

.footer__list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
}

.footer__list-item+.footer__list-item {
  margin-top: 8px;
}

.footer__list-item img {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__link {
  color: #99a1af;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__phones {
  display: flex;
  flex-direction: column;
}

.footer__addresses .footer__list-item {
  font-size: 15px;
  line-height: 20px;
}

.footer__addresses .footer__list-item+.footer__addresses .footer__list-item {
  margin-top: 12px;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__socials img {
  width: 24px;
  height: 24px;
}

.footer__bottom {
  margin-top: 32px;
}

.footer__slogan-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 30px;
  font-size: 16px;
  line-height: 20px;
}

.footer__slogan {
  color: #99a1af;
}

.footer__slogan b {
  font-weight: 700;
}

.footer__copyright {
  max-width: 292px;
  font-size: 13px;
  line-height: 20px;
  text-align: right;
  color: #6a7282;
}

.footer__legal-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 4px;
  font-size: 16px;
  line-height: 25.6px;
  color: #6a7282;
}

.footer__policy {
  display: flex;
  gap: 16px;
  padding-bottom: 5px;
}

.footer__policy a {
  color: #6a7282;
  transition: color 0.2s ease;
}

.footer__policy a:hover {
  color: #99a1af;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: var(--hero-ratio, 1920 / 658);
  min-height: -webkit-fit-content;
  min-height: fit-content;
  margin-top: 8px;
  padding-bottom: 90px;
  overflow: hidden;
  background-color: #2d2d2d;
}

.hero__picture {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
}

.hero__title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  line-height: 72px;
  letter-spacing: -1.8px;
  text-align: center;
  color: var(--color-white);
  white-space: nowrap;
}

.hero__title b {
  font-weight: 700;
}

.ticker {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  background-color: var(--color-accent);
}

.ticker__track {
  display: flex;
  flex-shrink: 0;
  animation: ticker-move 60s linear infinite;
}

.ticker__text {
  flex-shrink: 0;
  padding-right: 60px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32.5px;
  color: #393939;
  white-space: pre;
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }

  /* трек состоит из двух одинаковых копий текста */
  to {
    transform: translateX(-50%);
  }
}

.awards {
  margin-top: 18px;
  padding: 40px 0 41px;
  background-color: var(--color-white);
  border-bottom: 1px solid #ede0d0;
}

.awards__inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40.63px;
}

.awards__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50.78px;
}

.awards__widget {
  position: relative;
  width: 190.43px;
  height: 63.48px;
  overflow: hidden;
}

.awards__widget iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 150px;
  height: 50px;
  border: 0;
  transform: scale(1.2695);
  transform-origin: top left;
}

.awards__note {
  padding-top: 25.39px;
  font-size: 15.23px;
  line-height: 20.31px;
  text-align: center;
  color: #aaaaaa;
}

.benefits {
  padding-top: 60px;
}

.benefits__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.benefits__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 263px;
}

.benefits__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background-color: var(--color-border);
}

.benefits__icon img {
  width: 106px;
  height: 106px;
  object-fit: cover;
}

.benefits__icon--sm img {
  width: 102px;
  height: 102px;
}

.benefits {
  /* ширины текстовых блоков заданы в макете индивидуально */
}

.benefits__text {
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  color: #364153;
}

.benefits__text p {
  line-height: 26px;
}

.benefits__text p:empty {
  height: 26px;
}

.benefits__text--wide {
  width: 306px;
}

.benefits__text--nowrap {
  white-space: nowrap;
}

.benefits__text--narrow {
  width: 223px;
}

.services {
  padding-top: 146px;
}

.services__inner {
  width: 100%;
  max-width: calc(1234px + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.services__title {
  margin-top: 63.5px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 300;
  line-height: 60px;
  color: var(--color-text);
  white-space: nowrap;
}

.services__title b {
  margin-left: 37px;
  font-weight: 700;
}

.services__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 25.5px;
}

.services__col {
  display: flex;
  flex-direction: column;
  width: 604px;
}

.services__lead {
  width: 522px;
  margin-left: 27px;
  font-size: 20px;
  line-height: 32.5px;
  color: var(--color-text-muted);
}

/* Карточка с пояснением и кнопками */
.info-card {
  margin-top: 15.5px;
  padding: 19px 30px 27px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.info-card__text {
  width: 498px;
}

.info-card__text--wide {
  width: 530px;
}

.info-card__text {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-muted);
}

.info-card__actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.keys {
  padding-top: 69px;
}

.keys__inner {
  width: 100%;
  max-width: calc(1234px + var(--container-padding) * 2);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.keys__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.keys__col {
  width: 604px;
}

.keys__title {
  margin-left: 37px;
  font-family: var(--font-display);
  font-size: 44.5px;
  font-weight: 700;
  line-height: 61px;
  color: var(--color-text);
}

.keys .info-card {
  margin-top: 3px;
}

.service-cards {
  padding-top: 81px;
}

.service-cards__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 32px;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: 384px;
  height: 424px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  background-color: var(--color-white);
}

.service-card__image {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px;
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.service-card__title {
  width: 292px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--color-text);
}

.service-card__chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.service-card__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-accent);
}

.service-card__more img {
  width: 16px;
  height: 16px;
}

.advantages {
  position: relative;
  margin-top: 100px;
  padding: 47px 0 0;
  overflow: hidden;
  /* Декоративный круг в правом верхнем углу */
}

.advantages::before {
  content: "";
  position: absolute;
  top: -192px;
  right: -192px;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background-color: #f9f6f3;
}

.advantages__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  color: var(--color-text);
}

.advantages__title b {
  font-weight: 600;
  color: var(--color-accent);
}

.advantages__list {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 81px;
}

.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 384px;
  padding-top: 24px;
}

.advantage__icon {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.advantage__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage__title {
  width: 336px;
  min-height: 64px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  color: var(--color-text);
}

.advantage__text {
  width: 336px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 29.25px;
  text-align: center;
  color: #5d5d5d;
}

.portfolio {
  padding: 120px 0 105px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f1ed 100%);
}

.portfolio__title {
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 400;
  line-height: 48px;
  text-align: center;
  color: var(--color-text);
}

.portfolio__title b {
  font-weight: 700;
}

.portfolio__subtitle {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 28.5px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  color: var(--color-text);
}

.portfolio__subtitle span {
  color: var(--color-accent);
}

.portfolio__works {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 33px;
}

.portfolio__divider {
  height: 1px;
  margin-top: 57px;
  background-color: #ded9d6;
}

.portfolio__videos-title {
  margin-top: 37px;
  font-family: var(--font-display);
  font-size: 28.5px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  color: var(--color-text);
}

.portfolio__videos {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 25px;
}

.portfolio__note {
  margin-top: 23px;
  padding: 34px;
  border: 2px solid #f4f0ec;
  border-radius: 16px;
  background-color: var(--color-white);
  text-align: center;
}

.portfolio__note-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #6b4423;
}

.portfolio__note-text {
  font-size: 18px;
  line-height: 28px;
  color: #5d5d5d;
}

.work-card {
  width: 389.33px;
  overflow: hidden;
  border: 2px solid #e8dfd6;
  border-radius: 16px;
  background-color: var(--color-white);
}

.work-card img {
  display: block;
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.work-card__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
}

.video-card {
  width: 286px;
  overflow: hidden;
  border: 2px solid #f1efec;
  border-radius: 16px;
  background-color: var(--color-white);
}

.video-card img,
.video-card__preview {
  display: block;
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.video-card__link {
  position: relative;
  display: block;
}
.video-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease;
}
.video-card__link:hover::after,
.video-card__link:focus-visible::after {
  background-color: rgba(0, 0, 0, 0.32);
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.video-card__play::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #f59e0b;
}
.video-card__link:hover .video-card__play,
.video-card__link:focus-visible .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text);
}

.locations {
  padding-top: 80px;
  padding-bottom: 80px;
}

.locations--with-cta .container {
  position: relative;
}

.locations {
  /* В макете внутренних страниц заголовок сдвинут влево, освобождая место кнопке */
}

.locations--with-cta .locations__head {
  padding-right: 348px;
}

.locations {
  /* Кнопка стоит поверх заголовка, у правого края контейнера — как в макете */
}

.locations__cta {
  position: absolute;
  top: 44px;
  right: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 33px 0 32px;
  border-radius: 999px;
  background-color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-white);
  box-shadow: 0 10px 7.5px rgba(0, 0, 0, 0.1), 0 4px 3px rgba(0, 0, 0, 0.1);
}

.locations__cta img {
  width: 20px;
  height: 20px;
}

.locations__label {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid;
  text-align: center;
  display: inline-block;
  color: var(--color-accent);
}

.locations__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 400;
  line-height: 48px;
  text-align: center;
  color: var(--color-text);
}

.locations__title b {
  font-weight: 700;
}

.locations__subtitle {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 32.5px;
  text-align: center;
  color: #5d5d5d;
}

.locations__list {
  display: flex;
  justify-content: space-between;
  margin-top: 45px;
}

.locations__map {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 408px;
  overflow: hidden;
  margin-top: 44px;
  border: 4px solid #e8dfd6;
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.locations__map span {
  font-size: 72px;
  line-height: 86px;
  color: #adadad;
}

.locations__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.locations__note {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  margin-top: 48px;
  border-radius: 12px;
  background-color: #f5f1ed;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: #5d5d5d;
}

.location-card {
  width: 384px;
  padding: 34px 34px 53px;
  border: 2px solid #e8dfd6;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f1ed 0%, #fefefe 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.location-card__badge {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
}

.location-card__badge img {
  width: 100%;
  height: 100%;
}

.location-card__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--color-text);
}

.location-card__row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
  color: #5d5d5d;
}

.location-card__row img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.location-card__row--tight {
  margin-top: 0;
}

.location-card__row--hours {
  margin-top: 7.5px;
}

.location-card__link {
  color: inherit;
}

.location-card__route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 24px;
  border-radius: 8px;
  background-color: var(--color-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-white);
}

.location-card__route img {
  width: 24px;
  height: 24px;
}

.reviews {
  padding-top: 135px;
  padding-bottom: 81px;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.reviews__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 57px;
  font-weight: 400;
  line-height: 60px;
  text-align: center;
  color: var(--color-text);
}

.reviews__title b {
  font-weight: 700;
}

.reviews__subtitle {
  margin-top: 24px;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: var(--color-text-muted);
}

.reviews__slider {
  margin-top: 64px;
  overflow: hidden;
}

.reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 90.5px;
}

.reviews__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 37px;
  border: 2px solid var(--color-accent);
  border-radius: 26px;
  background-color: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-accent);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.reviews__nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: default;
}

.reviews__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.reviews__dots .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0;
  border-radius: 6px;
  background-color: var(--color-border-light);
  opacity: 1;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.reviews__dots .swiper-pagination-bullet-active {
  width: 32px;
  background-color: var(--color-accent);
}

.reviews__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-accent);
}

.review-card {
  height: 228px;
  padding: 32.5px 33px;
  border-radius: 16px;
  background-color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.review-card__inner {
  position: relative;
}

.review-card__stars {
  display: flex;
  gap: 4px;
}

.review-card__stars img {
  width: 20px;
  height: 20px;
}

.review-card__tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  margin-top: 17px;
  padding: 0 12px;
  border-radius: 12px;
  background-color: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  color: var(--color-accent);
}

.review-card__text {
  margin-top: 16px;
  font-size: 16px;
  font-style: italic;
  line-height: 26px;
  color: var(--color-text-muted);
}

.review-card__quote {
  position: absolute;
  top: -8px;
  right: 0;
  width: 64px;
  height: 64px;
}

.seo {
  padding: 64px 0;
  background-color: #f5efe6;
}

.seo__inner {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 32px;
}

.seo__title {
  font-size: 26px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-text);
}

.seo__text {
  margin-top: 24px;
  font-size: 17px;
  line-height: 26px;
  color: #555555;
}

.seo__text p+p {
  margin-top: 26px;
}

.faq {
  /* сверху меньше макетных 64px: SEO-текст в браузере занимает на строку больше,
     компенсируем, чтобы стык секций совпал с макетом */
  padding: 18px 0 65px;
}

.faq__inner {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 32px;
}

.faq__title {
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 400;
  line-height: 48px;
  text-align: center;
  color: var(--color-text);
}

.faq__subtitle {
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #9a9a9a;
}

.faq__list {
  margin-top: 40px;
}

.faq__item {
  border-bottom: 1px solid #eadccb;
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  height: 64px;
  border: 0;
  background: none;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding-bottom: 20px;
  font-size: 17px;
  line-height: 26px;
  color: #666666;
}

.faq__item:not(.is-open) .faq__answer {
  display: none;
}

/* Внутренняя страница услуги: заголовок, фотоблок, карточка с описанием */
.service {
  /* снизу 32px: в макете блок локаций начинается сразу за карточкой описания */
  padding: 80px 0 32px;
}

.service__inner {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
}

.service {
  /* В макете зона заголовка фиксированная: фото всегда начинается на 181px
     от верха контента, сколько бы строк ни занимал заголовок */
}

.service__head {
  min-height: 181px;
}

.service__title {
  max-width: 896px;
  margin: 0 auto;
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 50px;
  text-align: center;
  color: var(--color-text);
}

.service__media {
  --media-height: 482px;
  display: flex;
  gap: 34px;
  width: 1248px;
  max-width: 100%;
  margin: 0 auto;
  /* Сетка 4 в ряд: размеры плиток взяты из макета (292x292, отступ 16) */
}

.service__media--grid {
  flex-wrap: wrap;
  gap: 16px;
  width: 1216px;
  --media-height: 284px;
}

.service__media--duo {
  --media-height: 284px;
}

.service__card {
  width: 896px;
  max-width: 100%;
  margin: 64px auto 0;
  padding: 49px;
  border: 1px solid #eae3da;
  border-radius: 24px;
  background-color: var(--color-white);
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.service__card-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  color: var(--color-text);
}

.service__text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 26px;
  color: #5d5d5d;
}

.service__text p+p {
  margin-top: 26px;
}

.service-photo {
  flex: 1 1 auto;
  padding: 4px;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.service-photo img {
  width: 100%;
  height: var(--media-height);
  object-fit: cover;
  border-radius: 20px;
}

.service-photo {
  /* Заглушки из макета — цветные плашки вместо будущих фотографий */
}

.service-photo__placeholder {
  height: var(--media-height);
  border-radius: 20px;
}

.service__media--grid .service-photo {
  flex: 0 0 292px;
  width: 292px;
}

.service__media--duo .service-photo {
  flex: 0 0 607px;
  width: 607px;
}
.service-photo:only-child {
  margin-inline: auto;
}

/* В макете есть только десктопное состояние (1604px).
   Ниже — базовая адаптация, чтобы блоки не разъезжались на узких экранах. */
@media (max-width: 1280px) {

  .services__inner,
  .keys__inner {
    max-width: calc(100% - var(--container-padding) * 2);
  }

  .services__row,
  .keys__row {
    gap: 24px;
  }

  .services__col,
  .keys__col {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .services__lead,
  .info-card__text {
    width: auto;
  }

  .media-frame {
    flex: 0 1 624px;
    width: auto;
    min-width: 0;
  }

  .services__title,
  .keys__title {
    white-space: normal;
  }

  .services__title {
    font-size: 44px;
  }

  .services__title b {
    margin-left: 16px;
  }

  .hero__title {
    font-size: 64px;
    line-height: 64px;
  }

  .service-cards__grid,
  .portfolio__works,
  .portfolio__videos {
    flex-wrap: wrap;
    justify-content: center;
  }

  .advantages__list,
  .locations__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }

  .service__inner {
    padding: 0 var(--container-padding);
  }

  .service__media {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .service-photo,
  .service__media--grid .service-photo,
  .service__media--duo .service-photo {
    flex: 1 1 292px;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 44px;
    line-height: 48px;
    letter-spacing: -1px;
  }

  .services__row,
  .keys__row {
    flex-direction: column;
  }

  .keys__col {
    display: contents;
  }

  .keys__title {
    order: 1;
  }

  .keys .media-frame {
    order: 2;
  }

  .keys .info-card {
    order: 3;
  }

  .services__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
  }

  .services__row {
    display: contents;
  }

  .services .media-frame {
    order: 1;
  }

  .services__title {
    order: 2;
    margin-top: 0;
  }

  .services__col {
    order: 3;
    width: 100%;
  }

  .media-frame {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 624/342;
  }

  .keys__title {
    margin-left: 0;
    font-size: 36px;
    line-height: 44px;
  }

  .services__title {
    font-size: 36px;
    line-height: 44px;
  }

  .services__title b {
    margin-left: 12px;
  }

  .services__lead,
  .info-card__text {
    width: auto;
    max-width: 100%;
    margin-left: 0;
  }

  .advantages__title,
  .portfolio__title,
  .locations__title,
  .reviews__title,
  .faq__title {
    font-size: 36px;
    line-height: 44px;
  }

  .locations__map {
    height: 320px;
  }

  .locations__map span {
    font-size: 48px;
    line-height: 56px;
  }

  .locations__note,
  .portfolio__note {
    height: auto;
    padding: 24px;
  }

  /* Кнопка перестаёт помещаться рядом с заголовком — ставим её под подзаголовок */
  .locations--with-cta .container {
    display: flex;
    flex-direction: column;
  }

  .locations--with-cta .locations__head {
    order: 1;
    padding-right: 0;
  }

  .locations--with-cta .locations__cta {
    order: 2;
    position: static;
    display: inline-flex;
    margin: 24px auto 0;
  }

  .locations--with-cta .locations__list {
    order: 3;
  }

  .locations--with-cta .locations__map {
    order: 4;
  }

  .service__title {
    font-size: 36px;
    line-height: 44px;
  }

  .service__head {
    min-height: 0;
    margin-bottom: 48px;
  }

  .service__card {
    padding: 32px;
  }

  .header__inner {
    height: 80px;
  }

  .header__nav {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  .topbar__inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header__inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .header__nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .header__tagline {
    padding-left: 12px;
  }

  .header__tagline-top {
    font-size: 12px;
    letter-spacing: 0.3px;
  }

  .topbar__location {
    font-size: 14px;
  }

  .hero {
    aspect-ratio: var(--hero-ratio-mobile, var(--hero-ratio, 1920 / 658));
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.5px;
    white-space: normal;
    padding: 0 16px;
  }

  .benefits__list {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .benefits__text {
    width: 100%;
    max-width: 320px;
    white-space: normal;
  }

  .awards__list {
    flex-wrap: wrap;
    gap: 24px;
  }

  .service-card,
  .work-card,
  .video-card,
  .location-card,
  .advantage {
    width: 100%;
    max-width: 384px;
  }

  .service-card {
    height: auto;
  }

  .service-card__title {
    width: auto;
  }

  .info-card__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .services__title,
  .keys__title,
  .advantages__title,
  .portfolio__title,
  .locations__title,
  .reviews__title,
  .faq__title {
    font-size: 28px;
    line-height: 36px;
  }

  .services__title b {
    margin-left: 8px;
  }

  .portfolio__subtitle,
  .portfolio__videos-title {
    font-size: 22px;
    line-height: 30px;
  }

  .review-card {
    height: auto;
    min-height: 228px;
  }

  .footer__top {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__col {
    width: 100%;
    max-width: 280px;
  }

  .footer__slogan-row,
  .footer__legal-row {
    flex-direction: column;
    gap: 16px;
  }

  .footer__copyright {
    max-width: none;
    text-align: left;
  }

  .footer__policy {
    flex-wrap: wrap;
  }

  .seo__title {
    font-size: 22px;
    line-height: 30px;
  }

  .service__title {
    font-size: 28px;
    line-height: 36px;
  }

  .service__card {
    padding: 24px;
  }

  .ticker__text {
    font-size: 16px;
  }
}
